<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxVmlCanvas2D"></a>mxVmlCanvas2D</h1><divclass=CBody><p>Implements a canvas to be used for rendering VML. Here is an example of implementing a fallback for SVG images which are not supported in VML-based browsers.</p><blockquote><preclass="prettyprint">var mxVmlCanvas2DImage = mxVmlCanvas2D.prototype.image;
mxVmlCanvas2D.prototype.image = function(x, y, w, h, src, aspect, flipH, flipV)
{
if (src.substring(src.length - 4, src.length) == '.svg')
{
src = 'http://www.jgraph.com/images/mxgraph.gif';
}
mxVmlCanvas2DImage.apply(this, arguments);
};</pre></blockquote><p>To disable anti-aliasing in the output, use the following code.</p><blockquote><preclass="prettyprint">document.createStyleSheet().cssText = mxClient.VML_PREFIX + '\\:*{antialias:false;)}';</pre></blockquote><p>A description of the public API is available in <ahref="mxXmlCanvas2D-js.html#mxXmlCanvas2D"class=LClassid=link34onMouseOver="ShowTip(event, 'tt32', 'link34')"onMouseOut="HideTip('tt32')">mxXmlCanvas2D</a>. Note that there is a known issue in VML where gradients are painted using the outer bounding box of rotated shapes, not the actual bounds of the shape. See also <ahref="#mxVmlCanvas2D.text"class=LFunctionid=link35onMouseOver="ShowTip(event, 'tt27', 'link35')"onMouseOut="HideTip('tt27')">text</a> for plain text label restrictions in shapes for VML.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxVmlCanvas2D">mxVmlCanvas2D</a></td><tdclass=SDescription>Implements a canvas to be used for rendering VML. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxVmlCanvas2D.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxVmlCanvas2D.root"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">root</a></td><tdclass=SDescription>Reference to the container for the SVG content.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxVmlCanvas2D.path">path</a></td><tdclass=SDescription>Holds the current DOM node.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxVmlCanvas2D.textEnabled"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">textEnabled</a></td><tdclass=SDescription>Specifies if text output should be enabledetB. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxVmlCanvas2D.moveOp"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">moveOp</a></td><tdclass=SDescription>Contains the string used for moving in paths. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxVmlCanvas2D.lineOp"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">lineOp</a></td><tdclass=SDescription>Contains the string used for moving in paths. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxVmlCanvas2D.curveOp"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">curveOp</a></td><tdclass=SDescription>Contains the string used for bezier curves. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxVmlCanvas2D.closeOp"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">closeOp</a></td><tdclass=SDescription>Holds the operator for closing curves. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxVmlCanvas2D.rotatedHtmlBackground"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">rotatedHtmlBackground</a></td><tdclass=SDescription>Background color for rotated HTML. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxVmlCanvas2D.vmlScale"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">vmlScale</a></td><tdclass=SDescription>Specifies the scale used to draw VML shapes.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxVmlCanvas2D.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxVmlCanvas2D.createElement"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">createElement</a></td><tdclass=SDescription>Creates the given element using the document.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxVmlCanvas2D.createVmlElement"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.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="mxVmlCanvas2D.path"></a>path</h3><divclass=CBody><p>Holds the current DOM node.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.textEnabled"></a>textEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.textEnabled</td></tr></table></blockquote><p>Specifies if text output should be enabledetB. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.moveOp"></a>moveOp</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.moveOp</td></tr></table></blockquote><p>Contains the string used for moving in paths. Default is ‘m’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.lineOp"></a>lineOp</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.lineOp</td></tr></table></blockquote><p>Contains the string used for moving in paths. Default is ‘l’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.curveOp"></a>curveOp</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.curveOp</td></tr></table></blockquote><p>Contains the string used for bezier curves. Default is ‘c’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.closeOp"></a>closeOp</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.closeOp</td></tr></table></blockquote><p>Holds the operator for closing curves. Default is ‘x e’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.rotatedHtmlBackground"></a>rotatedHtmlBackground</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.rotatedHtmlBackground</td></tr></table></blockquote><p>Background color for rotated HTML. Default is ‘’. This can be set to eg. white to improve rendering of rotated text in VML for IE9.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.vmlScale"></a>vmlScale</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.vmlScale</td></tr></table></blockquote><p>Specifies the scale used to draw VML shapes.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createElement"></a>createElement</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.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 document.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createVmlElement"></a>createVmlElement</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.prototype.createVmlElement = function(</td><tdclass="PParameter prettyprint "nowrap>name</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a new element using <ahref="#mxVmlCanvas2D.createElement"class=LFunctionid=link36onMouseOver="ShowTip(event, 'tt9', 'link36')"onMouseOut="HideTip('tt9')">createElement</a> and prefixes the given name with <ahref="../mxClient-js.html#mxClient.VML_PREFIX"class=LVariableid=link37onMouseOver="ShowTip(event, 'tt11', 'link37')"onMouseOut="HideTip('tt11')">mxClient.VML_PREFIX</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.addNode"></a>addNode</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.prototype.addNode = function(</td><tdclass="PParameter prettyprint "nowrap>filled,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>stroked</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the current node to the <ahref="#mxVmlCanvas2D.root"class=LVariableid=link38onMouseOver="ShowTip(event, 'tt1', 'link38')"onMouseOut="HideTip('tt1')">root</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createTransparentFill"></a>createTransparentFill</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.createTransparentFill = function()</td></tr></table></blockquote><p>Creates a transparent fill.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createFill"></a>createFill</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.createFill = function()</td></tr></table></blockquote><p>Creates a fill for the current state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createStroke"></a>createStroke</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.createStroke = function()</td></tr></table></blockquote><p>Creates a fill for the current state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.getVmlDashPattern"></a>getVmlDashPattern</h3><divclass=CBody><p>Returns a VML dash pattern for the current dashPattern. See <ahref="http://msdn.microsoft.com/en-us/library/bb264085"class=LURLtarget=_top>http://msdn.microsoft.com/en-us/library/bb264085</a>(v=vs.85).aspx</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createShadow"></a>createShadow</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.prototype.createShadow = function(</td><tdclass="PParameter prettyprint "nowrap>node,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>filled,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>stroked</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a shadow for the given node.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createShadowFill"></a>createShadowFill</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.createShadowFill = function()</td></tr></table></blockquote><p>Creates the fill for the shadow.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createShadowStroke"></a>createShadowStroke</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.createShadowStroke = function()</td></tr></table></blockquote><p>Creates the stroke for the shadow.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.rotate"></a>rotate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.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>Sets the rotation of the canvas. Note that rotation cannot be concatenated.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.begin"></a>begin</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.begin = function()</td></tr></table></blockquote><p>Extends superclass to create path.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.createText"></a>createText</h3><divclass=CBody><p>Creates the innermost element that contains the HTML text.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.text"></a>text</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.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. Clipping, text background and border are not supported for plain text in VML.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.plainText"></a>plainText</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.prototype.plainText = 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 outline of the current path.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.stroke"></a>stroke</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.stroke = function()</td></tr></table></blockquote><p>Paints the outline of the current path.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.fill"></a>fill</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.fill = function()</td></tr></table></blockquote><p>Fills the current path.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxVmlCanvas2D.fillAndStroke"></a>fillAndStroke</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.fillAndStroke = function()</td></tr></table></blockquote><p>Fills and paints the outline of the current path.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><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="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.textEnabled</td></tr></table></blockquote>Specifies if text output should be enabledetB. </div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.moveOp</td></tr></table></blockquote>Contains the string used for moving in paths. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.lineOp</td></tr></table></blockquote>Contains the string used for moving in paths. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.curveOp</td></tr></table></blockquote>Contains the string used for bezier curves. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.closeOp</td></tr></table></blockquote>Holds the operator for closing curves. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.rotatedHtmlBackground</td></tr></table></blockquote>Background color for rotated HTML. </div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxVmlCanvas2D.prototype.vmlScale</td></tr></table></blockquote>Specifies the scale used to draw VML shapes.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.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 document.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.prototype.createVmlElement = function(</td><tdclass="PParameter prettyprint "nowrap>name</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates a new element using createElement and prefixes the given name with mxClient.VML_PREFIX.</div></div><divclass=CToolTipid="tt11"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">VML_PREFIX: 'v'</td></tr></table></blockquote>Prefix for VML namespace in node names. </div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxVmlCanvas2D.prototype.addNode = function(</td><tdclass="PParameter prettyprint "nowrap>filled,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>stroked</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Adds the current node to the root.</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpa