maxGraph/docs/api/classes/SvgCanvas2D.html

247 lines
202 KiB
HTML

<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SvgCanvas2D | @maxgraph/core</title><meta name="description" content="Documentation for @maxgraph/core"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@maxgraph/core</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">@maxgraph/core</a></li><li><a href="SvgCanvas2D.html">SvgCanvas2D</a></li></ul><h1>Class SvgCanvas2D</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Extends {@link mxAbstractCanvas2D} to implement a canvas for SVG. This canvas writes all calls as SVG output to the
given SVG root node.</p>
</div><div><pre><code class="language-javascript"><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">svgDoc</span><span class="hl-1"> = </span><span class="hl-0">mxUtils</span><span class="hl-1">.</span><span class="hl-2">createXmlDocument</span><span class="hl-1">();</span><br/><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">root</span><span class="hl-1"> = (</span><span class="hl-0">svgDoc</span><span class="hl-1">.</span><span class="hl-0">createElementNS</span><span class="hl-1"> != </span><span class="hl-3">null</span><span class="hl-1">) ?</span><br/><span class="hl-1"> </span><span class="hl-0">svgDoc</span><span class="hl-1">.</span><span class="hl-2">createElementNS</span><span class="hl-1">(</span><span class="hl-0">mxConstants</span><span class="hl-1">.</span><span class="hl-7">NS_SVG</span><span class="hl-1">, </span><span class="hl-6">&#39;svg&#39;</span><span class="hl-1">) : </span><span class="hl-0">svgDoc</span><span class="hl-1">.</span><span class="hl-2">createElement</span><span class="hl-1">(</span><span class="hl-6">&#39;svg&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-5">if</span><span class="hl-1"> (</span><span class="hl-0">svgDoc</span><span class="hl-1">.</span><span class="hl-0">createElementNS</span><span class="hl-1"> == </span><span class="hl-3">null</span><span class="hl-1">)</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-0">root</span><span class="hl-1">.</span><span class="hl-2">setAttribute</span><span class="hl-1">(</span><span class="hl-6">&#39;xmlns&#39;</span><span class="hl-1">, </span><span class="hl-0">mxConstants</span><span class="hl-1">.</span><span class="hl-7">NS_SVG</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">root</span><span class="hl-1">.</span><span class="hl-2">setAttribute</span><span class="hl-1">(</span><span class="hl-6">&#39;xmlns:xlink&#39;</span><span class="hl-1">, </span><span class="hl-0">mxConstants</span><span class="hl-1">.</span><span class="hl-7">NS_XLINK</span><span class="hl-1">);</span><br/><span class="hl-1">}</span><br/><span class="hl-5">else</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-0">root</span><span class="hl-1">.</span><span class="hl-2">setAttributeNS</span><span class="hl-1">(</span><span class="hl-6">&#39;http://www.w3.org/2000/xmlns/&#39;</span><span class="hl-1">, </span><span class="hl-6">&#39;xmlns:xlink&#39;</span><span class="hl-1">, </span><span class="hl-0">mxConstants</span><span class="hl-1">.</span><span class="hl-7">NS_XLINK</span><span class="hl-1">);</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">bounds</span><span class="hl-1"> = </span><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-2">getGraphBounds</span><span class="hl-1">();</span><br/><span class="hl-0">root</span><span class="hl-1">.</span><span class="hl-2">setAttribute</span><span class="hl-1">(</span><span class="hl-6">&#39;width&#39;</span><span class="hl-1">, (</span><span class="hl-0">bounds</span><span class="hl-1">.</span><span class="hl-0">x</span><span class="hl-1"> + </span><span class="hl-0">bounds</span><span class="hl-1">.</span><span class="hl-0">width</span><span class="hl-1"> + </span><span class="hl-8">4</span><span class="hl-1">) + </span><span class="hl-6">&#39;px&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">root</span><span class="hl-1">.</span><span class="hl-2">setAttribute</span><span class="hl-1">(</span><span class="hl-6">&#39;height&#39;</span><span class="hl-1">, (</span><span class="hl-0">bounds</span><span class="hl-1">.</span><span class="hl-0">y</span><span class="hl-1"> + </span><span class="hl-0">bounds</span><span class="hl-1">.</span><span class="hl-0">height</span><span class="hl-1"> + </span><span class="hl-8">4</span><span class="hl-1">) + </span><span class="hl-6">&#39;px&#39;</span><span class="hl-1">);</span><br/><span class="hl-0">root</span><span class="hl-1">.</span><span class="hl-2">setAttribute</span><span class="hl-1">(</span><span class="hl-6">&#39;version&#39;</span><span class="hl-1">, </span><span class="hl-6">&#39;1.1&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-0">svgDoc</span><span class="hl-1">.</span><span class="hl-2">appendChild</span><span class="hl-1">(</span><span class="hl-0">root</span><span class="hl-1">);</span><br/><br/><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">svgCanvas</span><span class="hl-1"> = </span><span class="hl-3">new</span><span class="hl-1"> </span><span class="hl-2">mxSvgCanvas2D</span><span class="hl-1">(</span><span class="hl-0">root</span><span class="hl-1">);</span>
</code></pre>
<p>To disable anti-aliasing in the output, use the following code.</p>
<pre><code class="language-javascript"><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-0">view</span><span class="hl-1">.</span><span class="hl-0">canvas</span><span class="hl-1">.</span><span class="hl-0">ownerSVGElement</span><span class="hl-1">.</span><span class="hl-2">setAttribute</span><span class="hl-1">(</span><span class="hl-6">&#39;shape-rendering&#39;</span><span class="hl-1">, </span><span class="hl-6">&#39;crispEdges&#39;</span><span class="hl-1">);</span>
</code></pre>
<p>Or set the respective attribute in the SVG element directly.</p>
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><ul class="tsd-hierarchy"><li><span class="target">SvgCanvas2D</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#cacheOffsetSize" class="tsd-kind-icon">cache<wbr/>Offset<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#closeOp" class="tsd-kind-icon">close<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#converter" class="tsd-kind-icon">converter</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#curveOp" class="tsd-kind-icon">curve<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#defs" class="tsd-kind-icon">defs</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#foAltText" class="tsd-kind-icon">fo<wbr/>Alt<wbr/>Text</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#foEnabled" class="tsd-kind-icon">fo<wbr/>Enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#foOffset" class="tsd-kind-icon">fo<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#fontMetricsPadding" class="tsd-kind-icon">font<wbr/>Metrics<wbr/>Padding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#gradients" class="tsd-kind-icon">gradients</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#imageOffset" class="tsd-kind-icon">image<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lastX" class="tsd-kind-icon">lastX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lastY" class="tsd-kind-icon">lastY</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#lineHeightCorrection" class="tsd-kind-icon">line<wbr/>Height<wbr/>Correction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lineOp" class="tsd-kind-icon">line<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#matchHtmlAlignment" class="tsd-kind-icon">match<wbr/>Html<wbr/>Alignment</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#minStrokeWidth" class="tsd-kind-icon">min<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#moveOp" class="tsd-kind-icon">move<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#node" class="tsd-kind-icon">node</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#originalRoot" class="tsd-kind-icon">original<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#path" class="tsd-kind-icon">path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#pointerEvents" class="tsd-kind-icon">pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#pointerEventsValue" class="tsd-kind-icon">pointer<wbr/>Events<wbr/>Value</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#quadOp" class="tsd-kind-icon">quad<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#refCount" class="tsd-kind-icon">ref<wbr/>Count</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#root" class="tsd-kind-icon">root</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#rotateHtml" class="tsd-kind-icon">rotate<wbr/>Html</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#states" class="tsd-kind-icon">states</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#strokeTolerance" class="tsd-kind-icon">stroke<wbr/>Tolerance</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#styleEnabled" class="tsd-kind-icon">style<wbr/>Enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#textEnabled" class="tsd-kind-icon">text<wbr/>Enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#textOffset" class="tsd-kind-icon">text<wbr/>Offset</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#addForeignObject" class="tsd-kind-icon">add<wbr/>Foreign<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#addNode" class="tsd-kind-icon">add<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#addOp" class="tsd-kind-icon">add<wbr/>Op</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#addTextBackground" class="tsd-kind-icon">add<wbr/>Text<wbr/>Background</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#arcTo" class="tsd-kind-icon">arc<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#begin" class="tsd-kind-icon">begin</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#close" class="tsd-kind-icon">close</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#convertHtml" class="tsd-kind-icon">convert<wbr/>Html</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createAlternateContent" class="tsd-kind-icon">create<wbr/>Alternate<wbr/>Content</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createClip" class="tsd-kind-icon">create<wbr/>Clip</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createDashPattern" class="tsd-kind-icon">create<wbr/>Dash<wbr/>Pattern</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createDiv" class="tsd-kind-icon">create<wbr/>Div</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createElement" class="tsd-kind-icon">create<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createGradientId" class="tsd-kind-icon">create<wbr/>Gradient<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createShadow" class="tsd-kind-icon">create<wbr/>Shadow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#createState" class="tsd-kind-icon">create<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createStyle" class="tsd-kind-icon">create<wbr/>Style</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createSvgGradient" class="tsd-kind-icon">create<wbr/>Svg<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createTolerance" class="tsd-kind-icon">create<wbr/>Tolerance</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#createUrlConverter" class="tsd-kind-icon">create<wbr/>Url<wbr/>Converter</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#curveTo" class="tsd-kind-icon">curve<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#ellipse" class="tsd-kind-icon">ellipse</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#end" class="tsd-kind-icon">end</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#fillAndStroke" class="tsd-kind-icon">fill<wbr/>And<wbr/>Stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#format" class="tsd-kind-icon">format</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getAlternateText" class="tsd-kind-icon">get<wbr/>Alternate<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getBaseUrl" class="tsd-kind-icon">get<wbr/>Base<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getCurrentStrokeWidth" class="tsd-kind-icon">get<wbr/>Current<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getSvgGradient" class="tsd-kind-icon">get<wbr/>Svg<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getTextCss" class="tsd-kind-icon">get<wbr/>Text<wbr/>Css</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lineTo" class="tsd-kind-icon">line<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#moveTo" class="tsd-kind-icon">move<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#plainText" class="tsd-kind-icon">plain<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#quadTo" class="tsd-kind-icon">quad<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#rect" class="tsd-kind-icon">rect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#reset" class="tsd-kind-icon">reset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#restore" class="tsd-kind-icon">restore</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#rotate" class="tsd-kind-icon">rotate</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#rotatePoint" class="tsd-kind-icon">rotate<wbr/>Point</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#roundrect" class="tsd-kind-icon">roundrect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#save" class="tsd-kind-icon">save</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#scale" class="tsd-kind-icon">scale</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setAlpha" class="tsd-kind-icon">set<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setDashPattern" class="tsd-kind-icon">set<wbr/>Dash<wbr/>Pattern</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setDashed" class="tsd-kind-icon">set<wbr/>Dashed</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFillAlpha" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFillColor" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontBackgroundColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Background<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontBorderColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Border<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontFamily" class="tsd-kind-icon">set<wbr/>Font<wbr/>Family</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontSize" class="tsd-kind-icon">set<wbr/>Font<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontStyle" class="tsd-kind-icon">set<wbr/>Font<wbr/>Style</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setGradient" class="tsd-kind-icon">set<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setLineCap" class="tsd-kind-icon">set<wbr/>Line<wbr/>Cap</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setLineJoin" class="tsd-kind-icon">set<wbr/>Line<wbr/>Join</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#setLink" class="tsd-kind-icon">set<wbr/>Link</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setMiterLimit" class="tsd-kind-icon">set<wbr/>Miter<wbr/>Limit</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadow" class="tsd-kind-icon">set<wbr/>Shadow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadowAlpha" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadowColor" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadowOffset" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setStrokeAlpha" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setStrokeColor" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setStrokeWidth" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#stroke" class="tsd-kind-icon">stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#text" class="tsd-kind-icon">text</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#translate" class="tsd-kind-icon">translate</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateFill" class="tsd-kind-icon">update<wbr/>Fill</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateFont" class="tsd-kind-icon">update<wbr/>Font</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateStroke" class="tsd-kind-icon">update<wbr/>Stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateStrokeAttributes" class="tsd-kind-icon">update<wbr/>Stroke<wbr/>Attributes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#updateText" class="tsd-kind-icon">update<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateTextNodes" class="tsd-kind-icon">update<wbr/>Text<wbr/>Nodes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="SvgCanvas2D.html#createCss" class="tsd-kind-icon">create<wbr/>Css</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Svg<wbr/>Canvas2D<span class="tsd-signature-symbol">(</span>root<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span>, styleEnabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="SvgCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">SvgCanvas2D</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L86">view/canvas/SvgCanvas2D.ts:86</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>root: <span class="tsd-signature-type">SVGElement</span></h5></li><li><h5>styleEnabled: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="SvgCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">SvgCanvas2D</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="cacheOffsetSize" class="tsd-anchor"></a><h3>cache<wbr/>Offset<wbr/>Size</h3><div class="tsd-signature tsd-kind-icon">cache<wbr/>Offset<wbr/>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L245">view/canvas/SvgCanvas2D.ts:245</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if offsetWidth and offsetHeight should be cached. This is used to speed up repaint of text in <a href="SvgCanvas2D.html#updateText">updateText</a>.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="closeOp" class="tsd-anchor"></a><h3>close<wbr/>Op</h3><div class="tsd-signature tsd-kind-icon">close<wbr/>Op<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;Z&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#closeOp">closeOp</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L104">view/canvas/AbstractCanvas2D.ts:104</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the operator for closing curves. Default is &#39;Z&#39;.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="converter" class="tsd-anchor"></a><h3>converter</h3><div class="tsd-signature tsd-kind-icon">converter<span class="tsd-signature-symbol">:</span> <a href="UrlConverter.html" class="tsd-signature-type" data-tsd-kind="Class">UrlConverter</a></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#converter">converter</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L49">view/canvas/AbstractCanvas2D.ts:49</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the <UrlConverter> to convert image URLs.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="curveOp" class="tsd-anchor"></a><h3>curve<wbr/>Op</h3><div class="tsd-signature tsd-kind-icon">curve<wbr/>Op<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;C&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#curveOp">curveOp</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L99">view/canvas/AbstractCanvas2D.ts:99</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Contains the string used for bezier curves. Default is &#39;C&#39;.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="defs" class="tsd-anchor"></a><h3>defs</h3><div class="tsd-signature tsd-kind-icon">defs<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGDefsElement</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L153">view/canvas/SvgCanvas2D.ts:153</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="foAltText" class="tsd-anchor"></a><h3>fo<wbr/>Alt<wbr/>Text</h3><div class="tsd-signature tsd-kind-icon">fo<wbr/>Alt<wbr/>Text<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;[Object]&#39;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L185">view/canvas/SvgCanvas2D.ts:185</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies the fallback text for unsupported foreignObjects in exported documents.
If this is set to <code>null</code> then no fallback text is added to the exported document.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>[Object]</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="foEnabled" class="tsd-anchor"></a><h3>fo<wbr/>Enabled</h3><div class="tsd-signature tsd-kind-icon">fo<wbr/>Enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L178">view/canvas/SvgCanvas2D.ts:178</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if use of foreignObject for HTML markup is allowed.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="foOffset" class="tsd-anchor"></a><h3>fo<wbr/>Offset</h3><div class="tsd-signature tsd-kind-icon">fo<wbr/>Offset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L191">view/canvas/SvgCanvas2D.ts:191</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Offset to be used for foreignObjects.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="fontMetricsPadding" class="tsd-anchor"></a><h3>font<wbr/>Metrics<wbr/>Padding</h3><div class="tsd-signature tsd-kind-icon">font<wbr/>Metrics<wbr/>Padding<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L239">view/canvas/SvgCanvas2D.ts:239</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Padding to be added for text that is not wrapped to account for differences in font metrics on different platforms in pixels.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><ol start="10">
<li></li>
</ol>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="gradients" class="tsd-anchor"></a><h3>gradients</h3><div class="tsd-signature tsd-kind-icon">gradients<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">GradientMap</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L151">view/canvas/SvgCanvas2D.ts:151</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="imageOffset" class="tsd-anchor"></a><h3>image<wbr/>Offset</h3><div class="tsd-signature tsd-kind-icon">image<wbr/>Offset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L203">view/canvas/SvgCanvas2D.ts:203</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Offset to be used for image elements.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="lastX" class="tsd-anchor"></a><h3>lastX</h3><div class="tsd-signature tsd-kind-icon">lastX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#lastX">lastX</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L74">view/canvas/AbstractCanvas2D.ts:74</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the last x coordinate.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="lastY" class="tsd-anchor"></a><h3>lastY</h3><div class="tsd-signature tsd-kind-icon">lastY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#lastY">lastY</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L79">view/canvas/AbstractCanvas2D.ts:79</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the last y coordinate.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="lineHeightCorrection" class="tsd-anchor"></a><h3>line<wbr/>Height<wbr/>Correction</h3><div class="tsd-signature tsd-kind-icon">line<wbr/>Height<wbr/>Correction<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L227">view/canvas/SvgCanvas2D.ts:227</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Correction factor for {@link mxConstants.LINE_HEIGHT} in HTML output.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>1</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="lineOp" class="tsd-anchor"></a><h3>line<wbr/>Op</h3><div class="tsd-signature tsd-kind-icon">line<wbr/>Op<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;L&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#lineOp">lineOp</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L89">view/canvas/AbstractCanvas2D.ts:89</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Contains the string used for moving in paths. Default is &#39;L&#39;.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="matchHtmlAlignment" class="tsd-anchor"></a><h3>match<wbr/>Html<wbr/>Alignment</h3><div class="tsd-signature tsd-kind-icon">match<wbr/>Html<wbr/>Alignment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L166">view/canvas/SvgCanvas2D.ts:166</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if plain text output should match the vertical HTML alignment.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true.</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="minStrokeWidth" class="tsd-anchor"></a><h3>min<wbr/>Stroke<wbr/>Width</h3><div class="tsd-signature tsd-kind-icon">min<wbr/>Stroke<wbr/>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L215">view/canvas/SvgCanvas2D.ts:215</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Minimum stroke width for output.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>1</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="moveOp" class="tsd-anchor"></a><h3>move<wbr/>Op</h3><div class="tsd-signature tsd-kind-icon">move<wbr/>Op<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;M&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#moveOp">moveOp</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L84">view/canvas/AbstractCanvas2D.ts:84</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Contains the string used for moving in paths. Default is &#39;M&#39;.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="node" class="tsd-anchor"></a><h3>node</h3><div class="tsd-signature tsd-kind-icon">node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L160">view/canvas/SvgCanvas2D.ts:160</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the current DOM node.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="originalRoot" class="tsd-anchor"></a><h3>original<wbr/>Root</h3><div class="tsd-signature tsd-kind-icon">original<wbr/>Root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L247">view/canvas/SvgCanvas2D.ts:247</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="path" class="tsd-anchor"></a><h3>path</h3><div class="tsd-signature tsd-kind-icon">path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#path">path</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L64">view/canvas/AbstractCanvas2D.ts:64</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the current path as an array.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="pointerEvents" class="tsd-anchor"></a><h3>pointer<wbr/>Events</h3><div class="tsd-signature tsd-kind-icon">pointer<wbr/>Events<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#pointerEvents">pointerEvents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L109">view/canvas/AbstractCanvas2D.ts:109</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Boolean value that specifies if events should be handled. Default is false.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a id="pointerEventsValue" class="tsd-anchor"></a><h3>pointer<wbr/>Events<wbr/>Value</h3><div class="tsd-signature tsd-kind-icon">pointer<wbr/>Events<wbr/>Value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;all&#39;</span></div><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#pointerEventsValue">pointerEventsValue</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L233">view/canvas/SvgCanvas2D.ts:233</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Default value for active pointer events.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>all</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="quadOp" class="tsd-anchor"></a><h3>quad<wbr/>Op</h3><div class="tsd-signature tsd-kind-icon">quad<wbr/>Op<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;Q&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#quadOp">quadOp</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L94">view/canvas/AbstractCanvas2D.ts:94</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Contains the string used for quadratic paths. Default is &#39;Q&#39;.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="refCount" class="tsd-anchor"></a><h3>ref<wbr/>Count</h3><div class="tsd-signature tsd-kind-icon">ref<wbr/>Count<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L221">view/canvas/SvgCanvas2D.ts:221</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Local counter for references in SVG export.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="root" class="tsd-anchor"></a><h3>root</h3><div class="tsd-signature tsd-kind-icon">root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L149">view/canvas/SvgCanvas2D.ts:149</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="rotateHtml" class="tsd-anchor"></a><h3>rotate<wbr/>Html</h3><div class="tsd-signature tsd-kind-icon">rotate<wbr/>Html<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#rotateHtml">rotateHtml</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L69">view/canvas/AbstractCanvas2D.ts:69</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Switch for rotation of HTML. Default is false.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="state" class="tsd-anchor"></a><h3>state</h3><div class="tsd-signature tsd-kind-icon">state<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CanvasState</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#state">state</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L54">view/canvas/AbstractCanvas2D.ts:54</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the current state.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="states" class="tsd-anchor"></a><h3>states</h3><div class="tsd-signature tsd-kind-icon">states<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CanvasState</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#states">states</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L59">view/canvas/AbstractCanvas2D.ts:59</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Stack of states.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="strokeTolerance" class="tsd-anchor"></a><h3>stroke<wbr/>Tolerance</h3><div class="tsd-signature tsd-kind-icon">stroke<wbr/>Tolerance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L209">view/canvas/SvgCanvas2D.ts:209</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Adds transparent paths for strokes.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="styleEnabled" class="tsd-anchor"></a><h3>style<wbr/>Enabled</h3><div class="tsd-signature tsd-kind-icon">style<wbr/>Enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L155">view/canvas/SvgCanvas2D.ts:155</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="textEnabled" class="tsd-anchor"></a><h3>text<wbr/>Enabled</h3><div class="tsd-signature tsd-kind-icon">text<wbr/>Enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L172">view/canvas/SvgCanvas2D.ts:172</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if text output should be enabled.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="textOffset" class="tsd-anchor"></a><h3>text<wbr/>Offset</h3><div class="tsd-signature tsd-kind-icon">text<wbr/>Offset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L197">view/canvas/SvgCanvas2D.ts:197</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Offset to be used for text elements.</p>
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
</dd></dl></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addForeignObject" class="tsd-anchor"></a><h3>add<wbr/>Foreign<wbr/>Object</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>Foreign<wbr/>Object<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dir<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TextDirectionValue</span>, div<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span>, root<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1200">view/canvas/SvgCanvas2D.ts:1200</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates a foreignObject for the given string and adds it to the given root.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>str: <span class="tsd-signature-type">string</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>format: <span class="tsd-signature-type">string</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span></h5></li><li><h5>dir: <span class="tsd-signature-type">TextDirectionValue</span></h5></li><li><h5>div: <span class="tsd-signature-type">HTMLElement</span></h5></li><li><h5>root: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addNode" class="tsd-anchor"></a><h3>add<wbr/>Node</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>Node<span class="tsd-signature-symbol">(</span>filled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, stroked<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L640">view/canvas/SvgCanvas2D.ts:640</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>filled: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>stroked: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="addOp" class="tsd-anchor"></a><h3>add<wbr/>Op</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">add<wbr/>Op<span class="tsd-signature-symbol">(</span>op<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, <span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#addOp">addOp</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L180">view/canvas/AbstractCanvas2D.ts:180</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Adds the given operation to the path.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>op: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="addTextBackground" class="tsd-anchor"></a><h3>add<wbr/>Text<wbr/>Background</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">add<wbr/>Text<wbr/>Background<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span>, str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1727">view/canvas/SvgCanvas2D.ts:1727</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Background color and border</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li><li><h5>str: <span class="tsd-signature-type">string</span></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="arcTo" class="tsd-anchor"></a><h3>arc<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">arc<wbr/>To<span class="tsd-signature-symbol">(</span>rx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, ry<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, angle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, largeArcFlag<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, sweepFlag<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#arcTo">arcTo</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L471">view/canvas/AbstractCanvas2D.ts:471</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Adds the given arc to the current path. This is a synthetic operation that
is broken down into curves.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>rx: <span class="tsd-signature-type">number</span></h5></li><li><h5>ry: <span class="tsd-signature-type">number</span></h5></li><li><h5>angle: <span class="tsd-signature-type">number</span></h5></li><li><h5>largeArcFlag: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>sweepFlag: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="begin" class="tsd-anchor"></a><h3>begin</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">begin<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#begin">begin</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L970">view/canvas/SvgCanvas2D.ts:970</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Extends superclass to create path.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="close" class="tsd-anchor"></a><h3>close</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">close<span class="tsd-signature-symbol">(</span>x1<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, y1<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, x2<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, y2<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, x3<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, y3<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#close">close</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L509">view/canvas/AbstractCanvas2D.ts:509</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Closes the current path.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> x1: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> y1: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> x2: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> y2: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> x3: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> y3: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="convertHtml" class="tsd-anchor"></a><h3>convert<wbr/>Html</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">convert<wbr/>Html<span class="tsd-signature-symbol">(</span>val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1098">view/canvas/SvgCanvas2D.ts:1098</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Converts the given HTML string to XHTML.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>val: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createAlternateContent" class="tsd-anchor"></a><h3>create<wbr/>Alternate<wbr/>Content</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Alternate<wbr/>Content<span class="tsd-signature-symbol">(</span>fo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGForeignObjectElement</span>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L420">view/canvas/SvgCanvas2D.ts:420</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the alternate content for the given foreignObject.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>fo: <span class="tsd-signature-type">SVGForeignObjectElement</span></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>str: <span class="tsd-signature-type">string</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>format: <span class="tsd-signature-type">string</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createClip" class="tsd-anchor"></a><h3>create<wbr/>Clip</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Clip<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1492">view/canvas/SvgCanvas2D.ts:1492</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates a clip for the given coordinates.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createDashPattern" class="tsd-anchor"></a><h3>create<wbr/>Dash<wbr/>Pattern</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Dash<wbr/>Pattern<span class="tsd-signature-symbol">(</span>scale<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L831">view/canvas/SvgCanvas2D.ts:831</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates the SVG dash pattern for the given state.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>scale: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createDiv" class="tsd-anchor"></a><h3>create<wbr/>Div</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Div<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1121">view/canvas/SvgCanvas2D.ts:1121</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements
Note: signature changed in mxgraph 4.1.0</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>str: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createElement" class="tsd-anchor"></a><h3>create<wbr/>Element</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Element<span class="tsd-signature-symbol">(</span>tagName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, namespace<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L389">view/canvas/SvgCanvas2D.ts:389</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>tagName: <span class="tsd-signature-type">string</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> namespace: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createGradientId" class="tsd-anchor"></a><h3>create<wbr/>Gradient<wbr/>Id</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Gradient<wbr/>Id<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, end<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, alpha1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, alpha2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, direction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DirectionValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L501">view/canvas/SvgCanvas2D.ts:501</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>start: <span class="tsd-signature-type">string</span></h5></li><li><h5>end: <span class="tsd-signature-type">string</span></h5></li><li><h5>alpha1: <span class="tsd-signature-type">number</span></h5></li><li><h5>alpha2: <span class="tsd-signature-type">number</span></h5></li><li><h5>direction: <span class="tsd-signature-type">DirectionValue</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createShadow" class="tsd-anchor"></a><h3>create<wbr/>Shadow</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Shadow<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L866">view/canvas/SvgCanvas2D.ts:866</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates a shadow for the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createState" class="tsd-anchor"></a><h3>create<wbr/>State</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>State<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CanvasState</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#createState">createState</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L132">view/canvas/AbstractCanvas2D.ts:132</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates the state of the this canvas.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CanvasState</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createStyle" class="tsd-anchor"></a><h3>create<wbr/>Style</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Style<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L376">view/canvas/SvgCanvas2D.ts:376</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates the optional style section.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createSvgGradient" class="tsd-anchor"></a><h3>create<wbr/>Svg<wbr/>Gradient</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Svg<wbr/>Gradient<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, end<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, alpha1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, alpha2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, direction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DirectionValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Gradient</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L597">view/canvas/SvgCanvas2D.ts:597</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates the given SVG gradient.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>start: <span class="tsd-signature-type">string</span></h5></li><li><h5>end: <span class="tsd-signature-type">string</span></h5></li><li><h5>alpha1: <span class="tsd-signature-type">number</span></h5></li><li><h5>alpha2: <span class="tsd-signature-type">number</span></h5></li><li><h5>direction: <span class="tsd-signature-type">DirectionValue</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Gradient</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createTolerance" class="tsd-anchor"></a><h3>create<wbr/>Tolerance</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">create<wbr/>Tolerance<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L851">view/canvas/SvgCanvas2D.ts:851</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates a hit detection tolerance shape for the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createUrlConverter" class="tsd-anchor"></a><h3>create<wbr/>Url<wbr/>Converter</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Url<wbr/>Converter<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="UrlConverter.html" class="tsd-signature-type" data-tsd-kind="Class">UrlConverter</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#createUrlConverter">createUrlConverter</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L117">view/canvas/AbstractCanvas2D.ts:117</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Create a new <UrlConverter> and returns it.</p>
</div></div><h4 class="tsd-returns-title">Returns <a href="UrlConverter.html" class="tsd-signature-type" data-tsd-kind="Class">UrlConverter</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="curveTo" class="tsd-anchor"></a><h3>curve<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">curve<wbr/>To<span class="tsd-signature-symbol">(</span>x1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, x2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, x3<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y3<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#curveTo">curveTo</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L463">view/canvas/AbstractCanvas2D.ts:463</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Adds a bezier curve to the current path.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x1: <span class="tsd-signature-type">number</span></h5></li><li><h5>y1: <span class="tsd-signature-type">number</span></h5></li><li><h5>x2: <span class="tsd-signature-type">number</span></h5></li><li><h5>y2: <span class="tsd-signature-type">number</span></h5></li><li><h5>x3: <span class="tsd-signature-type">number</span></h5></li><li><h5>y3: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="ellipse" class="tsd-anchor"></a><h3>ellipse</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">ellipse<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#ellipse">ellipse</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1009">view/canvas/SvgCanvas2D.ts:1009</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="end" class="tsd-anchor"></a><h3>end</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#end">end</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L516">view/canvas/AbstractCanvas2D.ts:516</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Empty implementation for backwards compatibility. This will be removed.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="fill" class="tsd-anchor"></a><h3>fill</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">fill<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#fill">fill</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1857">view/canvas/SvgCanvas2D.ts:1857</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Fills the current path.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="fillAndStroke" class="tsd-anchor"></a><h3>fill<wbr/>And<wbr/>Stroke</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">fill<wbr/>And<wbr/>Stroke<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#fillAndStroke">fillAndStroke</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1864">view/canvas/SvgCanvas2D.ts:1864</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Fills and paints the outline of the current path.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="format" class="tsd-anchor"></a><h3>format</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">format<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#format">format</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L344">view/canvas/SvgCanvas2D.ts:344</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Rounds all numbers to 2 decimal points.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAlternateText" class="tsd-anchor"></a><h3>get<wbr/>Alternate<wbr/>Text</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Alternate<wbr/>Text<span class="tsd-signature-symbol">(</span>fo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGForeignObjectElement</span>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L399">view/canvas/SvgCanvas2D.ts:399</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the alternate text string for the given foreignObject.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>fo: <span class="tsd-signature-type">SVGForeignObjectElement</span></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>str: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>format: <span class="tsd-signature-type">string</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getBaseUrl" class="tsd-anchor"></a><h3>get<wbr/>Base<wbr/>Url</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Base<wbr/>Url<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L354">view/canvas/SvgCanvas2D.ts:354</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the URL of the page without the hash part. This needs to use href to
include any search part with no params (ie question mark alone). This is a
workaround for the fact that window.location.search is empty if there is
no search string behind the question mark.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getCurrentStrokeWidth" class="tsd-anchor"></a><h3>get<wbr/>Current<wbr/>Stroke<wbr/>Width</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Current<wbr/>Stroke<wbr/>Width<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L755">view/canvas/SvgCanvas2D.ts:755</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the current stroke width (&gt;= 1), ie. max(1, this.format(this.state.strokeWidth * this.state.scale)).</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSvgGradient" class="tsd-anchor"></a><h3>get<wbr/>Svg<wbr/>Gradient</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Svg<wbr/>Gradient<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, end<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, alpha1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, alpha2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, direction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DirectionValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L547">view/canvas/SvgCanvas2D.ts:547</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>start: <span class="tsd-signature-type">string</span></h5></li><li><h5>end: <span class="tsd-signature-type">string</span></h5></li><li><h5>alpha1: <span class="tsd-signature-type">number</span></h5></li><li><h5>alpha2: <span class="tsd-signature-type">number</span></h5></li><li><h5>direction: <span class="tsd-signature-type">DirectionValue</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getTextCss" class="tsd-anchor"></a><h3>get<wbr/>Text<wbr/>Css</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Text<wbr/>Css<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1379">view/canvas/SvgCanvas2D.ts:1379</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="image" class="tsd-anchor"></a><h3>image</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">image<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, src<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, aspect<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, flipH<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, flipV<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#image">image</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1023">view/canvas/SvgCanvas2D.ts:1023</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>src: <span class="tsd-signature-type">string</span></h5></li><li><h5>aspect: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5></li><li><h5>flipH: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li><li><h5>flipV: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="lineTo" class="tsd-anchor"></a><h3>line<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">line<wbr/>To<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#lineTo">lineTo</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L449">view/canvas/AbstractCanvas2D.ts:449</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Draws a line to the given coordinates. Uses moveTo with the op argument.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="moveTo" class="tsd-anchor"></a><h3>move<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">move<wbr/>To<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#moveTo">moveTo</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L442">view/canvas/AbstractCanvas2D.ts:442</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p> Moves the current path the given coordinates.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="plainText" class="tsd-anchor"></a><h3>plain<wbr/>Text</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">plain<wbr/>Text<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, dir<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TextDirectionValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1526">view/canvas/SvgCanvas2D.ts:1526</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the given text. Possible values for format are empty string for
plain text and html for HTML markup.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>str: <span class="tsd-signature-type">string</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5></li><li><h5>dir: <span class="tsd-signature-type">TextDirectionValue</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="quadTo" class="tsd-anchor"></a><h3>quad<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">quad<wbr/>To<span class="tsd-signature-symbol">(</span>x1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, x2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#quadTo">quadTo</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L456">view/canvas/AbstractCanvas2D.ts:456</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Adds a quadratic curve to the current path.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x1: <span class="tsd-signature-type">number</span></h5></li><li><h5>y1: <span class="tsd-signature-type">number</span></h5></li><li><h5>x2: <span class="tsd-signature-type">number</span></h5></li><li><h5>y2: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="rect" class="tsd-anchor"></a><h3>rect</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">rect<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#rect">rect</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L978">view/canvas/SvgCanvas2D.ts:978</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="reset" class="tsd-anchor"></a><h3>reset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#reset">reset</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L368">view/canvas/SvgCanvas2D.ts:368</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns any offsets for rendering pixels.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="restore" class="tsd-anchor"></a><h3>restore</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">restore<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#restore">restore</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L221">view/canvas/AbstractCanvas2D.ts:221</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Restores the current state.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="rotate" class="tsd-anchor"></a><h3>rotate</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">rotate<span class="tsd-signature-symbol">(</span>theta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, flipH<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, flipV<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, cx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, cy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#rotate">rotate</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L922">view/canvas/SvgCanvas2D.ts:922</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the rotation of the canvas. Note that rotation cannot be concatenated.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>theta: <span class="tsd-signature-type">number</span></h5></li><li><h5>flipH: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>flipV: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>cx: <span class="tsd-signature-type">number</span></h5></li><li><h5>cy: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="rotatePoint" class="tsd-anchor"></a><h3>rotate<wbr/>Point</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">rotate<wbr/>Point<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, theta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, cx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, cy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#rotatePoint">rotatePoint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L199">view/canvas/AbstractCanvas2D.ts:199</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Rotates the given point and returns the result as an <a href="Point.html">Point</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>theta: <span class="tsd-signature-type">number</span></h5></li><li><h5>cx: <span class="tsd-signature-type">number</span></h5></li><li><h5>cy: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="roundrect" class="tsd-anchor"></a><h3>roundrect</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">roundrect<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#roundrect">roundrect</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L992">view/canvas/SvgCanvas2D.ts:992</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Private helper function to create SVG elements</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>dx: <span class="tsd-signature-type">number</span></h5></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="save" class="tsd-anchor"></a><h3>save</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">save<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#save">save</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L213">view/canvas/AbstractCanvas2D.ts:213</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Saves the current state.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="scale" class="tsd-anchor"></a><h3>scale</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">scale<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#scale">scale</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L237">view/canvas/AbstractCanvas2D.ts:237</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Scales the current state.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setAlpha" class="tsd-anchor"></a><h3>set<wbr/>Alpha</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Alpha<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setAlpha">setAlpha</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L261">view/canvas/AbstractCanvas2D.ts:261</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current alpha.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setDashPattern" class="tsd-anchor"></a><h3>set<wbr/>Dash<wbr/>Pattern</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Dash<wbr/>Pattern<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setDashPattern">setDashPattern</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L334">view/canvas/AbstractCanvas2D.ts:334</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current dash pattern.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setDashed" class="tsd-anchor"></a><h3>set<wbr/>Dashed</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Dashed<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, fixDash<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setDashed">setDashed</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L326">view/canvas/AbstractCanvas2D.ts:326</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Enables or disables dashed lines.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>fixDash: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFillAlpha" class="tsd-anchor"></a><h3>set<wbr/>Fill<wbr/>Alpha</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Fill<wbr/>Alpha<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFillAlpha">setFillAlpha</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L268">view/canvas/AbstractCanvas2D.ts:268</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current solid fill alpha.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFillColor" class="tsd-anchor"></a><h3>set<wbr/>Fill<wbr/>Color</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Fill<wbr/>Color<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFillColor">setFillColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L282">view/canvas/AbstractCanvas2D.ts:282</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current fill color.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFontBackgroundColor" class="tsd-anchor"></a><h3>set<wbr/>Font<wbr/>Background<wbr/>Color</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Font<wbr/>Background<wbr/>Color<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFontBackgroundColor">setFontBackgroundColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L369">view/canvas/AbstractCanvas2D.ts:369</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current font background color.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFontBorderColor" class="tsd-anchor"></a><h3>set<wbr/>Font<wbr/>Border<wbr/>Color</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Font<wbr/>Border<wbr/>Color<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFontBorderColor">setFontBorderColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L376">view/canvas/AbstractCanvas2D.ts:376</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current font border color.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFontColor" class="tsd-anchor"></a><h3>set<wbr/>Font<wbr/>Color</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Font<wbr/>Color<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFontColor">setFontColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L362">view/canvas/AbstractCanvas2D.ts:362</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current font color.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFontFamily" class="tsd-anchor"></a><h3>set<wbr/>Font<wbr/>Family</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Font<wbr/>Family<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFontFamily">setFontFamily</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L390">view/canvas/AbstractCanvas2D.ts:390</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current font family.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFontSize" class="tsd-anchor"></a><h3>set<wbr/>Font<wbr/>Size</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Font<wbr/>Size<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFontSize">setFontSize</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L383">view/canvas/AbstractCanvas2D.ts:383</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current font size.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setFontStyle" class="tsd-anchor"></a><h3>set<wbr/>Font<wbr/>Style</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Font<wbr/>Style<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setFontStyle">setFontStyle</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L397">view/canvas/AbstractCanvas2D.ts:397</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current font style.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setGradient" class="tsd-anchor"></a><h3>set<wbr/>Gradient</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Gradient<span class="tsd-signature-symbol">(</span>color1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, color2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, direction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DirectionValue</span>, alpha1<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, alpha2<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setGradient">setGradient</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L290">view/canvas/AbstractCanvas2D.ts:290</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current gradient.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>color1: <span class="tsd-signature-type">string</span></h5></li><li><h5>color2: <span class="tsd-signature-type">string</span></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>direction: <span class="tsd-signature-type">DirectionValue</span></h5></li><li><h5>alpha1: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></h5></li><li><h5>alpha2: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setLineCap" class="tsd-anchor"></a><h3>set<wbr/>Line<wbr/>Cap</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Line<wbr/>Cap<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setLineCap">setLineCap</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L341">view/canvas/AbstractCanvas2D.ts:341</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current line cap.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setLineJoin" class="tsd-anchor"></a><h3>set<wbr/>Line<wbr/>Join</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Line<wbr/>Join<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setLineJoin">setLineJoin</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L348">view/canvas/AbstractCanvas2D.ts:348</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current line join.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="setLink" class="tsd-anchor"></a><h3>set<wbr/>Link</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">set<wbr/>Link<span class="tsd-signature-symbol">(</span>link<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setLink">setLink</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L896">view/canvas/SvgCanvas2D.ts:896</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Experimental implementation for hyperlinks.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>link: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setMiterLimit" class="tsd-anchor"></a><h3>set<wbr/>Miter<wbr/>Limit</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Miter<wbr/>Limit<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setMiterLimit">setMiterLimit</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L355">view/canvas/AbstractCanvas2D.ts:355</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current miter limit.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setShadow" class="tsd-anchor"></a><h3>set<wbr/>Shadow</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Shadow<span class="tsd-signature-symbol">(</span>enabled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setShadow">setShadow</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L404">view/canvas/AbstractCanvas2D.ts:404</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Enables or disables and configures the current shadow.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enabled: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setShadowAlpha" class="tsd-anchor"></a><h3>set<wbr/>Shadow<wbr/>Alpha</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Shadow<wbr/>Alpha<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setShadowAlpha">setShadowAlpha</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L418">view/canvas/AbstractCanvas2D.ts:418</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Enables or disables and configures the current shadow.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setShadowColor" class="tsd-anchor"></a><h3>set<wbr/>Shadow<wbr/>Color</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Shadow<wbr/>Color<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setShadowColor">setShadowColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L411">view/canvas/AbstractCanvas2D.ts:411</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Enables or disables and configures the current shadow.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setShadowOffset" class="tsd-anchor"></a><h3>set<wbr/>Shadow<wbr/>Offset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Shadow<wbr/>Offset<span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setShadowOffset">setShadowOffset</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L425">view/canvas/AbstractCanvas2D.ts:425</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Enables or disables and configures the current shadow.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dx: <span class="tsd-signature-type">number</span></h5></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setStrokeAlpha" class="tsd-anchor"></a><h3>set<wbr/>Stroke<wbr/>Alpha</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Stroke<wbr/>Alpha<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setStrokeAlpha">setStrokeAlpha</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L275">view/canvas/AbstractCanvas2D.ts:275</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current stroke alpha.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setStrokeColor" class="tsd-anchor"></a><h3>set<wbr/>Stroke<wbr/>Color</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Stroke<wbr/>Color<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setStrokeColor">setStrokeColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L312">view/canvas/AbstractCanvas2D.ts:312</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current stroke color.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setStrokeWidth" class="tsd-anchor"></a><h3>set<wbr/>Stroke<wbr/>Width</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Stroke<wbr/>Width<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#setStrokeWidth">setStrokeWidth</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L319">view/canvas/AbstractCanvas2D.ts:319</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the current stroke width.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="stroke" class="tsd-anchor"></a><h3>stroke</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">stroke<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#stroke">stroke</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1850">view/canvas/SvgCanvas2D.ts:1850</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the outline of the current path.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="text" class="tsd-anchor"></a><h3>text</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">text<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, format<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, dir<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TextDirectionValue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#text">text</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1423">view/canvas/SvgCanvas2D.ts:1423</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the given text. Possible values for format are empty string for plain
text and html for HTML markup. Note that HTML markup is only supported if
foreignObject is supported and <foEnabled> is true. (This means IE9 and later
does currently not support HTML text as part of shapes.)</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>str: <span class="tsd-signature-type">string</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>format: <span class="tsd-signature-type">string</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5></li><li><h5>dir: <span class="tsd-signature-type">TextDirectionValue</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="translate" class="tsd-anchor"></a><h3>translate</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">translate<span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#translate">translate</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L246">view/canvas/AbstractCanvas2D.ts:246</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Translates the current state.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dx: <span class="tsd-signature-type">number</span></h5></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="updateFill" class="tsd-anchor"></a><h3>update<wbr/>Fill</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">update<wbr/>Fill<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L719">view/canvas/SvgCanvas2D.ts:719</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Transfers the stroke attributes from <state> to <node>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="updateFont" class="tsd-anchor"></a><h3>update<wbr/>Font</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">update<wbr/>Font<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1690">view/canvas/SvgCanvas2D.ts:1690</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates the text properties for the given node. (NOTE: For this to work in
IE, the given node must be a text or tspan element.)</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="updateStroke" class="tsd-anchor"></a><h3>update<wbr/>Stroke</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">update<wbr/>Stroke<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L765">view/canvas/SvgCanvas2D.ts:765</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Transfers the stroke attributes from {@link mxAbstractCanvas2D.state} to <a href="SvgCanvas2D.html#node">node</a>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="updateStrokeAttributes" class="tsd-anchor"></a><h3>update<wbr/>Stroke<wbr/>Attributes</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">update<wbr/>Stroke<wbr/>Attributes<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L798">view/canvas/SvgCanvas2D.ts:798</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Transfers the stroke attributes from {@link mxAbstractCanvas2D.state} to <a href="SvgCanvas2D.html#node">node</a>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="updateText" class="tsd-anchor"></a><h3>update<wbr/>Text</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">update<wbr/>Text<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="AbstractCanvas2D.html">AbstractCanvas2D</a>.<a href="AbstractCanvas2D.html#updateText">updateText</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1167">view/canvas/SvgCanvas2D.ts:1167</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates existing DOM nodes for text rendering. LATER: Merge common parts with text function below.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span></h5></li><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="updateTextNodes" class="tsd-anchor"></a><h3>update<wbr/>Text<wbr/>Nodes</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">update<wbr/>Text<wbr/>Nodes<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">VAlignValue</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">OverflowValue</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, rotation<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, g<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L1277">view/canvas/SvgCanvas2D.ts:1277</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates existing DOM nodes for text rendering.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">VAlignValue</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">OverflowValue</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>rotation: <span class="tsd-signature-type">number</span></h5></li><li><h5>g: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="createCss" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr/>Css</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">create<wbr/>Css<span class="tsd-signature-symbol">(</span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, align<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AlignValue</span>, valign<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, wrap<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, overflow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, clip<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, bg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, border<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, flex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, block<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, scale<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, flex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, block<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, ofl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/SvgCanvas2D.ts#L252">view/canvas/SvgCanvas2D.ts:252</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates existing DOM nodes for text rendering.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>align: <span class="tsd-signature-type">AlignValue</span></h5></li><li><h5>valign: <span class="tsd-signature-type">string</span></h5></li><li><h5>wrap: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>overflow: <span class="tsd-signature-type">string</span></h5></li><li><h5>clip: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>bg: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li><h5>border: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li><h5>flex: <span class="tsd-signature-type">string</span></h5></li><li><h5>block: <span class="tsd-signature-type">string</span></h5></li><li><h5>scale: <span class="tsd-signature-type">number</span></h5></li><li><h5>callback: <span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, flex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, block<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, ofl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h5><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, flex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, block<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, ofl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dx: <span class="tsd-signature-type">number</span></h5></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5></li><li><h5>flex: <span class="tsd-signature-type">string</span></h5></li><li><h5>item: <span class="tsd-signature-type">string</span></h5></li><li><h5>block: <span class="tsd-signature-type">string</span></h5></li><li><h5>ofl: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/DomHelpers.html">Dom<wbr/>Helpers</a></li><li class=" tsd-kind-namespace"><a href="../modules/cloneUtils.html">clone<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/constants.html">constants</a></li><li class=" tsd-kind-namespace"><a href="../modules/domUtils.html">dom<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/eventUtils.html">event<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/gestureUtils.html">gesture<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/mathUtils.html">math<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/stringUtils.html">string<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/styleUtils.html">style<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/xmlUtils.html">xml<wbr/>Utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="SvgCanvas2D.html" class="tsd-kind-icon">Svg<wbr/>Canvas2D</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#cacheOffsetSize" class="tsd-kind-icon">cache<wbr/>Offset<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#closeOp" class="tsd-kind-icon">close<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#converter" class="tsd-kind-icon">converter</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#curveOp" class="tsd-kind-icon">curve<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#defs" class="tsd-kind-icon">defs</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#foAltText" class="tsd-kind-icon">fo<wbr/>Alt<wbr/>Text</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#foEnabled" class="tsd-kind-icon">fo<wbr/>Enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#foOffset" class="tsd-kind-icon">fo<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#fontMetricsPadding" class="tsd-kind-icon">font<wbr/>Metrics<wbr/>Padding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#gradients" class="tsd-kind-icon">gradients</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#imageOffset" class="tsd-kind-icon">image<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lastX" class="tsd-kind-icon">lastX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lastY" class="tsd-kind-icon">lastY</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#lineHeightCorrection" class="tsd-kind-icon">line<wbr/>Height<wbr/>Correction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lineOp" class="tsd-kind-icon">line<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#matchHtmlAlignment" class="tsd-kind-icon">match<wbr/>Html<wbr/>Alignment</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#minStrokeWidth" class="tsd-kind-icon">min<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#moveOp" class="tsd-kind-icon">move<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#node" class="tsd-kind-icon">node</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#originalRoot" class="tsd-kind-icon">original<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#path" class="tsd-kind-icon">path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#pointerEvents" class="tsd-kind-icon">pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#pointerEventsValue" class="tsd-kind-icon">pointer<wbr/>Events<wbr/>Value</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#quadOp" class="tsd-kind-icon">quad<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#refCount" class="tsd-kind-icon">ref<wbr/>Count</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#root" class="tsd-kind-icon">root</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#rotateHtml" class="tsd-kind-icon">rotate<wbr/>Html</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#states" class="tsd-kind-icon">states</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#strokeTolerance" class="tsd-kind-icon">stroke<wbr/>Tolerance</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#styleEnabled" class="tsd-kind-icon">style<wbr/>Enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#textEnabled" class="tsd-kind-icon">text<wbr/>Enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="SvgCanvas2D.html#textOffset" class="tsd-kind-icon">text<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#addForeignObject" class="tsd-kind-icon">add<wbr/>Foreign<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#addNode" class="tsd-kind-icon">add<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#addOp" class="tsd-kind-icon">add<wbr/>Op</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#addTextBackground" class="tsd-kind-icon">add<wbr/>Text<wbr/>Background</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#arcTo" class="tsd-kind-icon">arc<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#begin" class="tsd-kind-icon">begin</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#close" class="tsd-kind-icon">close</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#convertHtml" class="tsd-kind-icon">convert<wbr/>Html</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createAlternateContent" class="tsd-kind-icon">create<wbr/>Alternate<wbr/>Content</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createClip" class="tsd-kind-icon">create<wbr/>Clip</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createDashPattern" class="tsd-kind-icon">create<wbr/>Dash<wbr/>Pattern</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createDiv" class="tsd-kind-icon">create<wbr/>Div</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createElement" class="tsd-kind-icon">create<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createGradientId" class="tsd-kind-icon">create<wbr/>Gradient<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createShadow" class="tsd-kind-icon">create<wbr/>Shadow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#createState" class="tsd-kind-icon">create<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createStyle" class="tsd-kind-icon">create<wbr/>Style</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createSvgGradient" class="tsd-kind-icon">create<wbr/>Svg<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#createTolerance" class="tsd-kind-icon">create<wbr/>Tolerance</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#createUrlConverter" class="tsd-kind-icon">create<wbr/>Url<wbr/>Converter</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#curveTo" class="tsd-kind-icon">curve<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#ellipse" class="tsd-kind-icon">ellipse</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#end" class="tsd-kind-icon">end</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#fillAndStroke" class="tsd-kind-icon">fill<wbr/>And<wbr/>Stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#format" class="tsd-kind-icon">format</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getAlternateText" class="tsd-kind-icon">get<wbr/>Alternate<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getBaseUrl" class="tsd-kind-icon">get<wbr/>Base<wbr/>Url</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getCurrentStrokeWidth" class="tsd-kind-icon">get<wbr/>Current<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getSvgGradient" class="tsd-kind-icon">get<wbr/>Svg<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#getTextCss" class="tsd-kind-icon">get<wbr/>Text<wbr/>Css</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#lineTo" class="tsd-kind-icon">line<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#moveTo" class="tsd-kind-icon">move<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#plainText" class="tsd-kind-icon">plain<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#quadTo" class="tsd-kind-icon">quad<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#rect" class="tsd-kind-icon">rect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#reset" class="tsd-kind-icon">reset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#restore" class="tsd-kind-icon">restore</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#rotate" class="tsd-kind-icon">rotate</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#rotatePoint" class="tsd-kind-icon">rotate<wbr/>Point</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#roundrect" class="tsd-kind-icon">roundrect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#save" class="tsd-kind-icon">save</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#scale" class="tsd-kind-icon">scale</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setAlpha" class="tsd-kind-icon">set<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setDashPattern" class="tsd-kind-icon">set<wbr/>Dash<wbr/>Pattern</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setDashed" class="tsd-kind-icon">set<wbr/>Dashed</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFillAlpha" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFillColor" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontBackgroundColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Background<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontBorderColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Border<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontFamily" class="tsd-kind-icon">set<wbr/>Font<wbr/>Family</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontSize" class="tsd-kind-icon">set<wbr/>Font<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setFontStyle" class="tsd-kind-icon">set<wbr/>Font<wbr/>Style</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setGradient" class="tsd-kind-icon">set<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setLineCap" class="tsd-kind-icon">set<wbr/>Line<wbr/>Cap</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setLineJoin" class="tsd-kind-icon">set<wbr/>Line<wbr/>Join</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#setLink" class="tsd-kind-icon">set<wbr/>Link</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setMiterLimit" class="tsd-kind-icon">set<wbr/>Miter<wbr/>Limit</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadow" class="tsd-kind-icon">set<wbr/>Shadow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadowAlpha" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadowColor" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setShadowOffset" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setStrokeAlpha" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setStrokeColor" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#setStrokeWidth" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#stroke" class="tsd-kind-icon">stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#text" class="tsd-kind-icon">text</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="SvgCanvas2D.html#translate" class="tsd-kind-icon">translate</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateFill" class="tsd-kind-icon">update<wbr/>Fill</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateFont" class="tsd-kind-icon">update<wbr/>Font</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateStroke" class="tsd-kind-icon">update<wbr/>Stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateStrokeAttributes" class="tsd-kind-icon">update<wbr/>Stroke<wbr/>Attributes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="SvgCanvas2D.html#updateText" class="tsd-kind-icon">update<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="SvgCanvas2D.html#updateTextNodes" class="tsd-kind-icon">update<wbr/>Text<wbr/>Nodes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="SvgCanvas2D.html#createCss" class="tsd-kind-icon">create<wbr/>Css</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>