<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.root"></a>root</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">this.root</td></tr></table></blockquote><p>Reference to the container for the SVG content.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.textEnabled"></a>textEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.textEnabled</td></tr></table></blockquote><p>Specifies if text output should be enabled. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.compressed"></a>compressed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.compressed</td></tr></table></blockquote><p>Specifies if the output should be compressed by removing redundant calls. Default is true.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.writeDefaults"></a>writeDefaults</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.writeDefaults = function()</td></tr></table></blockquote><h4class=CHeading>Writes the rendering defaults to <ahref="#mxXmlCanvas2D.root"class=LVariableid=link91onMouseOver="ShowTip(event, 'tt2', 'link91')"onMouseOut="HideTip('tt2')">root</a></h4></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.createElement"></a>createElement</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.createElement = function(</td><tdclass="PParameter prettyprint "nowrap>name</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates the given element using the owner document of <ahref="#mxXmlCanvas2D.root"class=LVariableid=link92onMouseOver="ShowTip(event, 'tt2', 'link92')"onMouseOut="HideTip('tt2')">root</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.scale"></a>scale</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.scale = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scales the output.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>scale</td><tdclass=CDLDescription>Number that represents the scale where 1 is equal to 100%.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.translate"></a>translate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.translate = function(</td><tdclass="PParameter prettyprint "nowrap>dx,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>dy</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Translates the output.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>dx</td><tdclass=CDLDescription>Number that specifies the horizontal translation.</td></tr><tr><tdclass=CDLEntry>dy</td><tdclass=CDLDescription>Number that specifies the vertical translation.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.rotate"></a>rotate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.rotate = function(</td><tdclass="PParameter prettyprint "nowrap>theta,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>flipH,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>flipV,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>cx,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>cy</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Rotates and/or flips the output around a given center. (Note: Due to limitations in VML, the rotation cannot be concatenated.)</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>theta</td><tdclass=CDLDescription>Number that represents the angle of the rotation (in degrees).</td></tr><tr><tdclass=CDLEntry>flipH</td><tdclass=CDLDescription>Boolean indicating if the output should be flipped horizontally.</td></tr><tr><tdclass=CDLEntry>flipV</td><tdclass=CDLDescription>Boolean indicating if the output should be flipped vertically.</td></tr><tr><tdclass=CDLEntry>cx</td><tdclass=CDLDescription>Number that represents the x-coordinate of the rotation center.</td></tr><tr><tdclass=CDLEntry>cy</td><tdclass=CDLDescription>Number that represents the y-coordinate of the rotation center.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setAlpha"></a>setAlpha</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setAlpha = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current alpha.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Number that represents the new alpha. Possible values are between 1 (opaque) and 0 (transparent).</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFillAlpha"></a>setFillAlpha</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFillAlpha = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current fill alpha.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Number that represents the new fill alpha. Possible values are between 1 (opaque) and 0 (transparent).</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setStrokeAlpha"></a>setStrokeAlpha</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setStrokeAlpha = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current stroke alpha.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Number that represents the new stroke alpha. Possible values are between 1 (opaque) and 0 (transparent).</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFillColor"></a>setFillColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFillColor = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current fill color.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Hexadecimal representation of the color or ‘none’.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setGradient"></a>setGradient</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setGradient = function(</td><tdclass="PParameter prettyprint "nowrap>color1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>color2,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>direction,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>alpha1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>alpha2</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the gradient. Note that the coordinates may be ignored by some implementations.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>color1</td><tdclass=CDLDescription>Hexadecimal representation of the start color.</td></tr><tr><tdclass=CDLEntry>color2</td><tdclass=CDLDescription>Hexadecimal representation of the end color.</td></tr><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>X-coordinate of the gradient region.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>y-coordinate of the gradient region.</td></tr><tr><tdclass=CDLEntry>w</td><tdclass=CDLDescription>Width of the gradient region.</td></tr><tr><tdclass=CDLEntry>h</td><tdclass=CDLDescription>Height of the gradient region.</td></tr><tr><tdclass=CDLEntry>direction</td><tdclass=CDLDescription>One of <ahref="mxConstants-js.html#mxConstants.DIRECTION_NORTH"class=LVariableid=link93onMouseOver="ShowTip(event, 'tt50', 'link93')"onMouseOut="HideTip('tt50')">mxConstants.DIRECTION_NORTH</a>, <ahref="mxConstants-js.html#mxConstants.DIRECTION_EAST"class=LVariableid=link94onMouseOver="ShowTip(event, 'tt51', 'link94')"onMouseOut="HideTip('tt51')">mxConstants.DIRECTION_EAST</a>, <ahref="mxConstants-js.html#mxConstants.DIRECTION_SOUTH"class=LVariableid=link95onMouseOver="ShowTip(event, 'tt52', 'link95')"onMouseOut="HideTip('tt52')">mxConstants.DIRECTION_SOUTH</a> or <ahref="mxConstants-js.html#mxConstants.DIRECTION_WEST"class=LVariableid=link96onMouseOver="ShowTip(event, 'tt53', 'link96')"onMouseOut="HideTip('tt53')">mxConstants.DIRECTION_WEST</a>.</td></tr><tr><tdclass=CDLEntry>alpha1</td><tdclass=CDLDescription>Optional alpha of the start color. Default is 1. Possible values are between 1 (opaque) and 0 (transparent).</td></tr><tr><tdclass=CDLEntry>alpha2</td><tdclass=CDLDescription>Optional alpha of the end color. Default is 1. Possible values are between 1 (opaque) and 0 (transparent).</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setStrokeColor"></a>setStrokeColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setStrokeColor = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current stroke color.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Hexadecimal representation of the color or ‘none’.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setStrokeWidth"></a>setStrokeWidth</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setStrokeWidth = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current stroke width.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Numeric representation of the stroke width.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setDashed"></a>setDashed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setDashed = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables dashed lines.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Boolean that specifies if dashed lines should be enabled.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setDashPattern"></a>setDashPattern</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setDashPattern = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current dash pattern. Default is ‘3 3’.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>String that represents the dash pattern, which is a sequence of numbers defining the length of the dashes and the length of the spaces</td></tr><tr><tdclass=CDLEntry>between the dashes. The lengths are relative to the line width</td><tdclass=CDLDescription>a length of 1 is equals to the line width.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setLineCap"></a>setLineCap</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setLineCap = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the line cap. Default is ‘flat’ which corresponds to ‘butt’ in SVG.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>String that represents the line cap. Possible values are flat, round and square.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setLineJoin"></a>setLineJoin</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setLineJoin = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the line join. Default is ‘miter’.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>String that represents the line join. Possible values are miter, round and bevel.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setMiterLimit"></a>setMiterLimit</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setMiterLimit = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the miter limit. Default is 10.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Number that represents the miter limit.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFontColor"></a>setFontColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFontColor = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font color. Default is ‘#000000’.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Hexadecimal representation of the color or ‘none’.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFontBackgroundColor"></a>setFontBackgroundColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFontBackgroundColor = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font background color.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Hexadecimal representation of the color or ‘none’.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFontBorderColor"></a>setFontBorderColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFontBorderColor = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font border color.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Hexadecimal representation of the color or ‘none’.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFontSize"></a>setFontSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFontSize = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font size. Default is <ahref="mxConstants-js.html#mxConstants.DEFAULT_FONTSIZE"class=LVariableid=link97onMouseOver="ShowTip(event, 'tt54', 'link97')"onMouseOut="HideTip('tt54')">mxConstants.DEFAULT_FONTSIZE</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Numeric representation of the font size.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFontFamily"></a>setFontFamily</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFontFamily = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font family. Default is <ahref="mxConstants-js.html#mxConstants.DEFAULT_FONTFAMILY"class=LVariableid=link98onMouseOver="ShowTip(event, 'tt55', 'link98')"onMouseOut="HideTip('tt55')">mxConstants.DEFAULT_FONTFAMILY</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>String representation of the font family. This handles the same values as the CSS font-family property.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setFontStyle"></a>setFontStyle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setFontStyle = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font style.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Numeric representation of the font family. This is the sum of the font styles from <ahref="mxConstants-js.html#mxConstants"class=LClassid=link99onMouseOver="ShowTip(event, 'tt56', 'link99')"onMouseOut="HideTip('tt56')">mxConstants</a>.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setShadow"></a>setShadow</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setShadow = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables shadows.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Boolean that specifies if shadows should be enabled.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setShadowColor"></a>setShadowColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setShadowColor = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current shadow color. Default is <ahref="mxConstants-js.html#mxConstants.SHADOWCOLOR"class=LVariableid=link100onMouseOver="ShowTip(event, 'tt57', 'link100')"onMouseOut="HideTip('tt57')">mxConstants.SHADOWCOLOR</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Hexadecimal representation of the color or ‘none’.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setShadowAlpha"></a>setShadowAlpha</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setShadowAlpha = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current shadows alpha. Default is <ahref="mxConstants-js.html#mxConstants.SHADOW_OPACITY"class=LVariableid=link101onMouseOver="ShowTip(event, 'tt58', 'link101')"onMouseOut="HideTip('tt58')">mxConstants.SHADOW_OPACITY</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Number that represents the new alpha. Possible values are between 1 (opaque) and 0 (transparent).</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.setShadowOffset"></a>setShadowOffset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.setShadowOffset = function(</td><tdclass="PParameter prettyprint "nowrap>dx,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>dy</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current shadow offset.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>dx</td><tdclass=CDLDescription>Number that represents the horizontal offset of the shadow.</td></tr><tr><tdclass=CDLEntry>dy</td><tdclass=CDLDescription>Number that represents the vertical offset of the shadow.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.rect"></a>rect</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.rect = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Puts a rectangle into the drawing buffer.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the rectangle.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the rectangle.</td></tr><tr><tdclass=CDLEntry>w</td><tdclass=CDLDescription>Number that represents the width of the rectangle.</td></tr><tr><tdclass=CDLEntry>h</td><tdclass=CDLDescription>Number that represents the height of the rectangle.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.roundrect"></a>roundrect</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.roundrect = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>dx,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>dy</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Puts a rounded rectangle into the drawing buffer.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the rectangle.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the rectangle.</td></tr><tr><tdclass=CDLEntry>w</td><tdclass=CDLDescription>Number that represents the width of the rectangle.</td></tr><tr><tdclass=CDLEntry>h</td><tdclass=CDLDescription>Number that represents the height of the rectangle.</td></tr><tr><tdclass=CDLEntry>dx</td><tdclass=CDLDescription>Number that represents the horizontal rounding.</td></tr><tr><tdclass=CDLEntry>dy</td><tdclass=CDLDescription>Number that represents the vertical rounding.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.ellipse"></a>ellipse</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.ellipse = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Puts an ellipse into the drawing buffer.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the ellipse.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the ellipse.</td></tr><tr><tdclass=CDLEntry>w</td><tdclass=CDLDescription>Number that represents the width of the ellipse.</td></tr><tr><tdclass=CDLEntry>h</td><tdclass=CDLDescription>Number that represents the height of the ellipse.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.image"></a>image</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.image = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>src,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>aspect,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>flipH,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>flipV</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Paints an image.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the image.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the image.</td></tr><tr><tdclass=CDLEntry>w</td><tdclass=CDLDescription>Number that represents the width of the image.</td></tr><tr><tdclass=CDLEntry>h</td><tdclass=CDLDescription>Number that represents the height of the image.</td></tr><tr><tdclass=CDLEntry>src</td><tdclass=CDLDescription>String that specifies the URL of the image.</td></tr><tr><tdclass=CDLEntry>aspect</td><tdclass=CDLDescription>Boolean indicating if the aspect of the image should be preserved.</td></tr><tr><tdclass=CDLEntry>flipH</td><tdclass=CDLDescription>Boolean indicating if the image should be flipped horizontally.</td></tr><tr><tdclass=CDLEntry>flipV</td><tdclass=CDLDescription>Boolean indicating if the image should be flipped vertically.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.begin"></a>begin</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.begin = function()</td></tr></table></blockquote><p>Starts a new path and puts it into the drawing buffer.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.moveTo"></a>moveTo</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.moveTo = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Moves the current path the given point.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the point.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the point.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.lineTo"></a>lineTo</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.lineTo = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a line to the given coordinates.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the endpoint.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the endpoint.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.quadTo"></a>quadTo</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.quadTo = function(</td><tdclass="PParameter prettyprint "nowrap>x1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>x2,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y2</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a quadratic curve to the current path.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x1</td><tdclass=CDLDescription>Number that represents the x-coordinate of the control point.</td></tr><tr><tdclass=CDLEntry>y1</td><tdclass=CDLDescription>Number that represents the y-coordinate of the control point.</td></tr><tr><tdclass=CDLEntry>x2</td><tdclass=CDLDescription>Number that represents the x-coordinate of the endpoint.</td></tr><tr><tdclass=CDLEntry>y2</td><tdclass=CDLDescription>Number that represents the y-coordinate of the endpoint.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.curveTo"></a>curveTo</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.curveTo = function(</td><tdclass="PParameter prettyprint "nowrap>x1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>x2,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y2,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>x3,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y3</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a bezier curve to the current path.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x1</td><tdclass=CDLDescription>Number that represents the x-coordinate of the first control point.</td></tr><tr><tdclass=CDLEntry>y1</td><tdclass=CDLDescription>Number that represents the y-coordinate of the first control point.</td></tr><tr><tdclass=CDLEntry>x2</td><tdclass=CDLDescription>Number that represents the x-coordinate of the second control point.</td></tr><tr><tdclass=CDLEntry>y2</td><tdclass=CDLDescription>Number that represents the y-coordinate of the second control point.</td></tr><tr><tdclass=CDLEntry>x3</td><tdclass=CDLDescription>Number that represents the x-coordinate of the endpoint.</td></tr><tr><tdclass=CDLEntry>y3</td><tdclass=CDLDescription>Number that represents the y-coordinate of the endpoint.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.close"></a>close</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.close = function()</td></tr></table></blockquote><p>Closes the current path.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.text"></a>text</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.text = function(</td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>str,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>align,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>valign,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>wrap,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>format,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>overflow,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>clip,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>rotation,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>dir</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Paints the given text. Possible values for format are empty string for plain text and html for HTML markup. Background and border color as well as clipping is not available in plain text labels for VML. HTML labels are not available as part of shapes with no foreignObject support in SVG (eg. IE9, IE10).</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>Number that represents the x-coordinate of the text.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Number that represents the y-coordinate of the text.</td></tr><tr><tdclass=CDLEntry>w</td><tdclass=CDLDescription>Number that represents the available width for the text or 0 for automatic width.</td></tr><tr><tdclass=CDLEntry>h</td><tdclass=CDLDescription>Number that represents the available height for the text or 0 for automatic height.</td></tr><tr><tdclass=CDLEntry>str</td><tdclass=CDLDescription>String that specifies the text to be painted.</td></tr><tr><tdclass=CDLEntry>align</td><tdclass=CDLDescription>String that represents the horizontal alignment.</td></tr><tr><tdclass=CDLEntry>valign</td><tdclass=CDLDescription>String that represents the vertical alignment.</td></tr><tr><tdclass=CDLEntry>wrap</td><tdclass=CDLDescription>Boolean that specifies if word-wrapping is enabled. Requires w > 0.</td></tr><tr><tdclass=CDLEntry>format</td><tdclass=CDLDescription>Empty string for plain text or ‘html’ for HTML markup.</td></tr><tr><tdclass=CDLEntry>overflow</td><tdclass=CDLDescription>Specifies the overflow behaviour of the label. Requires w > 0 and/or h > 0.</td></tr><tr><tdclass=CDLEntry>clip</td><tdclass=CDLDescription>Boolean that specifies if the label should be clipped. Requires w > 0 and/or h > 0.</td></tr><tr><tdclass=CDLEntry>rotation</td><tdclass=CDLDescription>Number that specifies the angle of the rotation around the anchor point of the text.</td></tr><tr><tdclass=CDLEntry>dir</td><tdclass=CDLDescription>Optional string that specifies the text direction. Possible values are rtl and lrt.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.stroke"></a>stroke</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.stroke = function()</td></tr></table></blockquote><p>Paints the outline of the current drawing buffer.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.fill"></a>fill</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.fill = function()</td></tr></table></blockquote><p>Fills the current drawing buffer.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxXmlCanvas2D.fillAndStroke"></a>fillAndStroke</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.fillAndStroke = function()</td></tr></table></blockquote><p>Fills the current drawing buffer and its outline.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxXmlCanvas2D(</td><tdclass="PParameter prettyprint "nowrap>root</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new abstract canvas.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">this.root</td></tr></table></blockquote>Reference to the container for the SVG content.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.textEnabled</td></tr></table></blockquote>Specifies if text output should be enabled. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.compressed</td></tr></table></blockquote>Specifies if the output should be compressed by removing redundant calls. </div></div><divclass=CToolTipid="tt5"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.writeDefaults = function()</td></tr></table></blockquote></div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.format = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a formatted number with 2 decimal places.</div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.createElement = function(</td><tdclass="PParameter prettyprint "nowrap>name</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates the given element using the owner document of root.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.save = function()</td></tr></table></blockquote>Saves the drawing state.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxXmlCanvas2D.prototype.restore = function()</td></tr></table></blockquote>Restores the drawing state.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.scale = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scales the output.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxXmlCanvas2D.prototype.translate = function(</td><tdclass="PParameter prettyprint "nowrap>dx,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>dy</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Translates the output.</div></div><divclass=CToolTipid="tt12"><divclass=CFuncti