Support for canvas elements in XML machine files

(laying the groundwork for a new graphical control panel)
This commit is contained in:
Jeff Parsons 2015-01-22 16:16:44 -08:00 committed by jeffpar
commit 792604d5e3
11 changed files with 87 additions and 111 deletions

View file

@ -350,6 +350,9 @@
</xsl:if>
</xsl:if>
<xsl:choose>
<xsl:when test="@type = 'canvas'">
<canvas class="{$APPCLASS}-binding {$APPCLASS}-canvas" width="{@width}" height="{@height}" style="-webkit-user-select:none;{$border}{$fontsize}{$style}" data-value="{$type},{$binding}"><xsl:apply-templates/></canvas>
</xsl:when>
<xsl:when test="@type = 'button'">
<button class="{$APPCLASS}-binding" style="-webkit-user-select:none;{$border}{$width}{$height}{$fontsize}{$style}" data-value="{$type},{$binding}"><xsl:apply-templates/></button>
</xsl:when>