361 lines
140 KiB
HTML
361 lines
140 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>XmlCanvas2D | @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="XmlCanvas2D.html">XmlCanvas2D</a></li></ul><h1>Class XmlCanvas2D</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>Base class for all canvases. The following methods make up the public
|
|
interface of the canvas 2D for all painting in mxGraph:</p>
|
|
</div><div><ul>
|
|
<li><save>, <restore></li>
|
|
<li><scale>, <translate>, <rotate></li>
|
|
<li><setAlpha>, <setFillAlpha>, <setStrokeAlpha>, <setFillColor>, <setGradient>,
|
|
<setStrokeColor>, <setStrokeWidth>, <setDashed>, <setDashPattern>, <setLineCap>,
|
|
<setLineJoin>, <setMiterLimit></li>
|
|
<li><setFontColor>, <setFontBackgroundColor>, <setFontBorderColor>, <setFontSize>,
|
|
<setFontFamily>, <setFontStyle></li>
|
|
<li><setShadow>, <setShadowColor>, <setShadowAlpha>, <setShadowOffset></li>
|
|
<li><rect>, <roundrect>, <ellipse>, <image>, <text></li>
|
|
<li><begin>, {@link oveTo}, <lineTo>, <quadTo>, <curveTo></li>
|
|
<li><stroke>, <fill>, <fillAndStroke></li>
|
|
</ul>
|
|
<p><AbstractCanvas2D.arcTo> is an additional method for drawing paths. This is
|
|
a synthetic method, meaning that it is turned into a sequence of curves by
|
|
default. Subclassers may add native support for arcs.</p>
|
|
<p>Constructor: D</p>
|
|
<p>Constructs a new abstract canvas.</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">XmlCanvas2D</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="XmlCanvas2D.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 tsd-is-inherited"><a href="XmlCanvas2D.html#closeOp" class="tsd-kind-icon">close<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="XmlCanvas2D.html#compressed" class="tsd-kind-icon">compressed</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#converter" class="tsd-kind-icon">converter</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#curveOp" class="tsd-kind-icon">curve<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#lastX" class="tsd-kind-icon">lastX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#lastY" class="tsd-kind-icon">lastY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#lineOp" class="tsd-kind-icon">line<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#moveOp" class="tsd-kind-icon">move<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#path" class="tsd-kind-icon">path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#pointerEvents" class="tsd-kind-icon">pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#quadOp" class="tsd-kind-icon">quad<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="XmlCanvas2D.html#root" class="tsd-kind-icon">root</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#states" class="tsd-kind-icon">states</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="XmlCanvas2D.html#textEnabled" class="tsd-kind-icon">text<wbr/>Enabled</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 tsd-is-inherited"><a href="XmlCanvas2D.html#addOp" class="tsd-kind-icon">add<wbr/>Op</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#begin" class="tsd-kind-icon">begin</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#close" class="tsd-kind-icon">close</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="XmlCanvas2D.html#createElement" class="tsd-kind-icon">create<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#createState" class="tsd-kind-icon">create<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#createUrlConverter" class="tsd-kind-icon">create<wbr/>Url<wbr/>Converter</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#ellipse" class="tsd-kind-icon">ellipse</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#end" class="tsd-kind-icon">end</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#format" class="tsd-kind-icon">format</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#lineTo" class="tsd-kind-icon">line<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#moveTo" class="tsd-kind-icon">move<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#rect" class="tsd-kind-icon">rect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#reset" class="tsd-kind-icon">reset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#restore" class="tsd-kind-icon">restore</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#rotate" class="tsd-kind-icon">rotate</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#roundrect" class="tsd-kind-icon">roundrect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#save" class="tsd-kind-icon">save</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#scale" class="tsd-kind-icon">scale</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setAlpha" class="tsd-kind-icon">set<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setDashPattern" class="tsd-kind-icon">set<wbr/>Dash<wbr/>Pattern</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setDashed" class="tsd-kind-icon">set<wbr/>Dashed</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFillAlpha" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFillColor" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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-overwrite"><a href="XmlCanvas2D.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-overwrite"><a href="XmlCanvas2D.html#setFontColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFontFamily" class="tsd-kind-icon">set<wbr/>Font<wbr/>Family</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFontSize" class="tsd-kind-icon">set<wbr/>Font<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFontStyle" class="tsd-kind-icon">set<wbr/>Font<wbr/>Style</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setGradient" class="tsd-kind-icon">set<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setLineCap" class="tsd-kind-icon">set<wbr/>Line<wbr/>Cap</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setLineJoin" class="tsd-kind-icon">set<wbr/>Line<wbr/>Join</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#setLink" class="tsd-kind-icon">set<wbr/>Link</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setMiterLimit" class="tsd-kind-icon">set<wbr/>Miter<wbr/>Limit</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadow" class="tsd-kind-icon">set<wbr/>Shadow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadowAlpha" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadowColor" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadowOffset" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setStrokeAlpha" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setStrokeColor" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#stroke" class="tsd-kind-icon">stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#text" class="tsd-kind-icon">text</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#translate" class="tsd-kind-icon">translate</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#updateText" class="tsd-kind-icon">update<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="XmlCanvas2D.html#writeDefaults" class="tsd-kind-icon">write<wbr/>Defaults</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/>Xml<wbr/>Canvas2D<span class="tsd-signature-symbol">(</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><a href="XmlCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">XmlCanvas2D</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/XmlCanvas2D.ts#L45">view/canvas/XmlCanvas2D.ts:45</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></ul><h4 class="tsd-returns-title">Returns <a href="XmlCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">XmlCanvas2D</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 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"> = 'Z'</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 'Z'.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="compressed" class="tsd-anchor"></a><h3>compressed</h3><div class="tsd-signature tsd-kind-icon">compressed<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/XmlCanvas2D.ts#L69">view/canvas/XmlCanvas2D.ts:69</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if the output should be compressed by removing redundant calls.</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="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"> = 'C'</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 'C'.</p>
|
|
</div></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 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"> = 'L'</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 'L'.</p>
|
|
</div></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"> = 'M'</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 'M'.</p>
|
|
</div></div></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-inherited"><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">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <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/AbstractCanvas2D.ts#L112">view/canvas/AbstractCanvas2D.ts:112</a></li></ul></aside></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"> = 'Q'</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 'Q'.</p>
|
|
</div></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">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/XmlCanvas2D.ts#L57">view/canvas/XmlCanvas2D.ts:57</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Reference to the container for the SVG content.</p>
|
|
</div></div></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="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/XmlCanvas2D.ts#L63">view/canvas/XmlCanvas2D.ts:63</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><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><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 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/XmlCanvas2D.ts#L783">view/canvas/XmlCanvas2D.ts:783</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts a new path and puts it into the drawing buffer.</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="close" class="tsd-anchor"></a><h3>close</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">close<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#close">close</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/XmlCanvas2D.ts#L864">view/canvas/XmlCanvas2D.ts:864</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Closes 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"><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>name<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">Element</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/XmlCanvas2D.ts#L115">view/canvas/XmlCanvas2D.ts:115</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Creates the given element using the owner document of <a href="XmlCanvas2D.html#root">root</a>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>name: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Element</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 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-overwrite"><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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L848">view/canvas/XmlCanvas2D.ts:848</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the first control point.</p>
|
|
</div></div></li><li><h5>y1: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the first control point.</p>
|
|
</div></div></li><li><h5>x2: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the second control point.</p>
|
|
</div></div></li><li><h5>y2: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the second control point.</p>
|
|
</div></div></li><li><h5>x3: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the endpoint.</p>
|
|
</div></div></li><li><h5>y3: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the endpoint.</p>
|
|
</div></div></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/XmlCanvas2D.ts#L734">view/canvas/XmlCanvas2D.ts:734</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Puts an ellipse into the drawing buffer.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the ellipse.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the ellipse.</p>
|
|
</div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the width of the ellipse.</p>
|
|
</div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the height of the ellipse.</p>
|
|
</div></div></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/XmlCanvas2D.ts#L962">view/canvas/XmlCanvas2D.ts:962</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Fills the current drawing buffer.</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/XmlCanvas2D.ts#L969">view/canvas/XmlCanvas2D.ts:969</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Fills the current drawing buffer and its outline.</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">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-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/XmlCanvas2D.ts#L104">view/canvas/XmlCanvas2D.ts:104</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns a formatted number with 2 decimal places.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><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 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/XmlCanvas2D.ts#L755">view/canvas/XmlCanvas2D.ts:755</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Paints an image.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the image.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the image.</p>
|
|
</div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the width of the image.</p>
|
|
</div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the height of the image.</p>
|
|
</div></div></li><li><h5>src: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that specifies the URL of the image.</p>
|
|
</div></div></li><li><h5>aspect: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean indicating if the aspect of the image should be preserved.</p>
|
|
</div></div></li><li><h5>flipH: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean indicating if the image should be flipped horizontally.</p>
|
|
</div></div></li><li><h5>flipV: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean indicating if the image should be flipped vertically.</p>
|
|
</div></div></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="lineTo" class="tsd-anchor"></a><h3>line<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L810">view/canvas/XmlCanvas2D.ts:810</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Draws a line to 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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the endpoint.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the endpoint.</p>
|
|
</div></div></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="moveTo" class="tsd-anchor"></a><h3>move<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L795">view/canvas/XmlCanvas2D.ts:795</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Moves the current path the given point.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the point.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the point.</p>
|
|
</div></div></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="quadTo" class="tsd-anchor"></a><h3>quad<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L827">view/canvas/XmlCanvas2D.ts:827</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the control point.</p>
|
|
</div></div></li><li><h5>y1: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the control point.</p>
|
|
</div></div></li><li><h5>x2: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the endpoint.</p>
|
|
</div></div></li><li><h5>y2: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the endpoint.</p>
|
|
</div></div></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/XmlCanvas2D.ts#L696">view/canvas/XmlCanvas2D.ts:696</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Puts a rectangle into the drawing buffer.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the rectangle.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the rectangle.</p>
|
|
</div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the width of the rectangle.</p>
|
|
</div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the height of the rectangle.</p>
|
|
</div></div></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="reset" class="tsd-anchor"></a><h3>reset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><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>Inherited from <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/AbstractCanvas2D.ts#L124">view/canvas/AbstractCanvas2D.ts:124</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Resets the state of this canvas.</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="restore" class="tsd-anchor"></a><h3>restore</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L132">view/canvas/XmlCanvas2D.ts:132</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Restores the drawing 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/XmlCanvas2D.ts#L173">view/canvas/XmlCanvas2D.ts:173</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Rotates and/or flips the output around a given center. (Note: Due to
|
|
limitations in VML, the 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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the angle of the rotation (in degrees).</p>
|
|
</div></div></li><li><h5>flipH: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean indicating if the output should be flipped horizontally.</p>
|
|
</div></div></li><li><h5>flipV: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean indicating if the output should be flipped vertically.</p>
|
|
</div></div></li><li><h5>cx: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the rotation center.</p>
|
|
</div></div></li><li><h5>cy: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the rotation center.</p>
|
|
</div></div></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/XmlCanvas2D.ts#L715">view/canvas/XmlCanvas2D.ts:715</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Puts a rounded rectangle into the drawing buffer.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the rectangle.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the rectangle.</p>
|
|
</div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the width of the rectangle.</p>
|
|
</div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the height of the rectangle.</p>
|
|
</div></div></li><li><h5>dx: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the horizontal rounding.</p>
|
|
</div></div></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the vertical rounding.</p>
|
|
</div></div></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="save" class="tsd-anchor"></a><h3>save</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L122">view/canvas/XmlCanvas2D.ts:122</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Saves the drawing 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="scale" class="tsd-anchor"></a><h3>scale</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L144">view/canvas/XmlCanvas2D.ts:144</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Scales the output.</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="setAlpha" class="tsd-anchor"></a><h3>set<wbr/>Alpha</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L192">view/canvas/XmlCanvas2D.ts:192</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the new alpha. Possible values are between
|
|
1 (opaque) and 0 (transparent).</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L395">view/canvas/XmlCanvas2D.ts:395</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current dash pattern.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>'3 3'</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the dash pattern, which is a sequence of
|
|
numbers defining the length of the dashes and the length of the spaces
|
|
between the dashes. The lengths are relative to the line width - a length
|
|
of 1 is equals to the line width.</p>
|
|
</div></div></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="setDashed" class="tsd-anchor"></a><h3>set<wbr/>Dashed</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L368">view/canvas/XmlCanvas2D.ts:368</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Enables or disables dashed lines.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>false</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean that specifies if dashed lines should be enabled.</p>
|
|
</div></div></li><li><h5>fixDash: <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-overwrite"><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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L211">view/canvas/XmlCanvas2D.ts:211</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current 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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the new fill alpha. Possible values are between
|
|
1 (opaque) and 0 (transparent).</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L248">view/canvas/XmlCanvas2D.ts:248</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><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the color or 'none'.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L497">view/canvas/XmlCanvas2D.ts:497</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><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the color or 'none'.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L521">view/canvas/XmlCanvas2D.ts:521</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><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the color or 'none'.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L473">view/canvas/XmlCanvas2D.ts:473</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current font color.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>'#000000'</p>
|
|
</dd></dl></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><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the color or 'none'.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L568">view/canvas/XmlCanvas2D.ts:568</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current font family.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>{@link mxConstants.DEFAULT_FONTFAMILY}</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String representation of the font family. This handles the same
|
|
values as the CSS font-family property.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L546">view/canvas/XmlCanvas2D.ts:546</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current font size.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>{@link mxConstants.DEFAULT_FONTSIZE}</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Numeric representation of the font size.</p>
|
|
</div></div></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="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-overwrite"><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">null</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-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#setFontStyle">setFontStyle</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/XmlCanvas2D.ts#L589">view/canvas/XmlCanvas2D.ts:589</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">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Numeric representation of the font family. This is the sum of the
|
|
font styles from {@link mxConstants}.</p>
|
|
</div></div></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="setGradient" class="tsd-anchor"></a><h3>set<wbr/>Gradient</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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">null</span><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">null</span><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>Overrides <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/XmlCanvas2D.ts#L281">view/canvas/XmlCanvas2D.ts:281</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the gradient. Note that the coordinates may be ignored by some implementations.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>color1: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the start color.</p>
|
|
</div></div></li><li><h5>color2: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the end color.</p>
|
|
</div></div></li><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>X-coordinate of the gradient region.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>y-coordinate of the gradient region.</p>
|
|
</div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Width of the gradient region.</p>
|
|
</div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Height of the gradient region.</p>
|
|
</div></div></li><li><h5>direction: <span class="tsd-signature-type">DirectionValue</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>One of {@link Constants#DIRECTION_NORTH}, {@link Constants#DIRECTION_EAST},
|
|
{@link Constants#DIRECTION_SOUTH} or {@link Constants#DIRECTION_WEST}.</p>
|
|
</div></div></li><li><h5>alpha1: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1.0</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional alpha of the start color. Default is 1. Possible values
|
|
are between 1 (opaque) and 0 (transparent).</p>
|
|
</div></div></li><li><h5>alpha2: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1.0</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional alpha of the end color. Default is 1. Possible values
|
|
are between 1 (opaque) and 0 (transparent).</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L415">view/canvas/XmlCanvas2D.ts:415</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the line cap.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>'flat' which corresponds to 'butt' in SVG</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the line cap. Possible values are flat, round
|
|
and square.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L435">view/canvas/XmlCanvas2D.ts:435</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the line join.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>'miter'</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the line join. Possible values are miter,
|
|
round and bevel.</p>
|
|
</div></div></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="setLink" class="tsd-anchor"></a><h3>set<wbr/>Link</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><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">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#setLink">setLink</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/AbstractCanvas2D.ts#L230">view/canvas/AbstractCanvas2D.ts:230</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current link. Hook for subclassers.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>link: <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-overwrite"><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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L454">view/canvas/XmlCanvas2D.ts:454</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the miter limit.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>10</p>
|
|
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the miter limit.</p>
|
|
</div></div></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="setShadow" class="tsd-anchor"></a><h3>set<wbr/>Shadow</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">set<wbr/>Shadow<span class="tsd-signature-symbol">(</span>value<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#setShadow">setShadow</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/canvas/XmlCanvas2D.ts#L613">view/canvas/XmlCanvas2D.ts:613</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Enables or disables shadows.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean that specifies if shadows should be enabled.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L655">view/canvas/XmlCanvas2D.ts:655</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current shadows alpha. Default is {@link mxConstants.SHADOW_OPACITY}</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the new alpha. Possible values are between 1 (opaque) and 0 (transparent).</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L632">view/canvas/XmlCanvas2D.ts:632</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current shadow color. Default {@link mxConstants.SHADOWCOLOR}</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><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the color or 'none'.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L674">view/canvas/XmlCanvas2D.ts:674</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the current shadow offset.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the horizontal offset of the shadow.</p>
|
|
</div></div></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the vertical offset of the shadow.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L230">view/canvas/XmlCanvas2D.ts:230</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the new stroke alpha. Possible values are between
|
|
1 (opaque) and 0 (transparent).</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L325">view/canvas/XmlCanvas2D.ts:325</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><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hexadecimal representation of the color or 'none'.</p>
|
|
</div></div></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="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-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L347">view/canvas/XmlCanvas2D.ts:347</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Numeric representation of the stroke width.</p>
|
|
</div></div></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/XmlCanvas2D.ts#L955">view/canvas/XmlCanvas2D.ts:955</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Paints the outline of the current drawing buffer.</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><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span>, align<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>, valign<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>, wrap<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><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">null</span><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">null</span><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">null</span><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">null</span><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">null</span><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/XmlCanvas2D.ts#L889">view/canvas/XmlCanvas2D.ts:889</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. Background and border color as well
|
|
as clipping is not available in plain text labels for VML. HTML labels
|
|
are not available as part of shapes with no foreignObject support in SVG
|
|
(eg. IE9, IE10).</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the x-coordinate of the text.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the y-coordinate of the text.</p>
|
|
</div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the available width for the text or 0 for automatic width.</p>
|
|
</div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that represents the available height for the text or 0 for automatic height.</p>
|
|
</div></div></li><li><h5>str: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that specifies the text to be painted.</p>
|
|
</div></div></li><li><h5>align: <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"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the horizontal alignment.</p>
|
|
</div></div></li><li><h5>valign: <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"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the vertical alignment.</p>
|
|
</div></div></li><li><h5>wrap: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean that specifies if word-wrapping is enabled. Requires w > 0.</p>
|
|
</div></div></li><li><h5>format: <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"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Empty string for plain text or 'html' for HTML markup.</p>
|
|
</div></div></li><li><h5>overflow: <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"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies the overflow behaviour of the label. Requires w > 0 and/or h > 0.</p>
|
|
</div></div></li><li><h5>clip: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean that specifies if the label should be clipped. Requires w > 0 and/or h > 0.</p>
|
|
</div></div></li><li><h5>rotation: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that specifies the angle of the rotation around the anchor point of the text.</p>
|
|
</div></div></li><li><h5>dir: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TextDirectionValue</span><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional string that specifies the text direction. Possible values are rtl and ltr.</p>
|
|
</div></div></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="translate" class="tsd-anchor"></a><h3>translate</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/XmlCanvas2D.ts#L156">view/canvas/XmlCanvas2D.ts:156</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Translates the output.</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><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that specifies the horizontal translation.</p>
|
|
</div></div></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Number that specifies the vertical translation.</p>
|
|
</div></div></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="updateText" class="tsd-anchor"></a><h3>update<wbr/>Text</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><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>Inherited from <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/AbstractCanvas2D.ts#L557">view/canvas/AbstractCanvas2D.ts:557</a></li></ul></aside><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><span class="tsd-signature-symbol"> = 0</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="writeDefaults" class="tsd-anchor"></a><h3>write<wbr/>Defaults</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">write<wbr/>Defaults<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/XmlCanvas2D.ts#L74">view/canvas/XmlCanvas2D.ts:74</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Writes the rendering defaults to <a href="XmlCanvas2D.html#root">root</a>:</p>
|
|
</div></div><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="XmlCanvas2D.html" class="tsd-kind-icon">Xml<wbr/>Canvas2D</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#closeOp" class="tsd-kind-icon">close<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="XmlCanvas2D.html#compressed" class="tsd-kind-icon">compressed</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#converter" class="tsd-kind-icon">converter</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#curveOp" class="tsd-kind-icon">curve<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#lastX" class="tsd-kind-icon">lastX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#lastY" class="tsd-kind-icon">lastY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#lineOp" class="tsd-kind-icon">line<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#moveOp" class="tsd-kind-icon">move<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#path" class="tsd-kind-icon">path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#pointerEvents" class="tsd-kind-icon">pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#quadOp" class="tsd-kind-icon">quad<wbr/>Op</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="XmlCanvas2D.html#root" class="tsd-kind-icon">root</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#states" class="tsd-kind-icon">states</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="XmlCanvas2D.html#textEnabled" class="tsd-kind-icon">text<wbr/>Enabled</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#addOp" class="tsd-kind-icon">add<wbr/>Op</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#begin" class="tsd-kind-icon">begin</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#close" class="tsd-kind-icon">close</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="XmlCanvas2D.html#createElement" class="tsd-kind-icon">create<wbr/>Element</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#createState" class="tsd-kind-icon">create<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#createUrlConverter" class="tsd-kind-icon">create<wbr/>Url<wbr/>Converter</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#ellipse" class="tsd-kind-icon">ellipse</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#end" class="tsd-kind-icon">end</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#format" class="tsd-kind-icon">format</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#lineTo" class="tsd-kind-icon">line<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#moveTo" class="tsd-kind-icon">move<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#rect" class="tsd-kind-icon">rect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#reset" class="tsd-kind-icon">reset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#restore" class="tsd-kind-icon">restore</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#rotate" class="tsd-kind-icon">rotate</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.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="XmlCanvas2D.html#roundrect" class="tsd-kind-icon">roundrect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#save" class="tsd-kind-icon">save</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#scale" class="tsd-kind-icon">scale</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setAlpha" class="tsd-kind-icon">set<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setDashPattern" class="tsd-kind-icon">set<wbr/>Dash<wbr/>Pattern</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setDashed" class="tsd-kind-icon">set<wbr/>Dashed</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFillAlpha" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFillColor" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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-overwrite"><a href="XmlCanvas2D.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-overwrite"><a href="XmlCanvas2D.html#setFontColor" class="tsd-kind-icon">set<wbr/>Font<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFontFamily" class="tsd-kind-icon">set<wbr/>Font<wbr/>Family</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFontSize" class="tsd-kind-icon">set<wbr/>Font<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setFontStyle" class="tsd-kind-icon">set<wbr/>Font<wbr/>Style</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setGradient" class="tsd-kind-icon">set<wbr/>Gradient</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setLineCap" class="tsd-kind-icon">set<wbr/>Line<wbr/>Cap</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setLineJoin" class="tsd-kind-icon">set<wbr/>Line<wbr/>Join</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#setLink" class="tsd-kind-icon">set<wbr/>Link</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setMiterLimit" class="tsd-kind-icon">set<wbr/>Miter<wbr/>Limit</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadow" class="tsd-kind-icon">set<wbr/>Shadow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadowAlpha" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadowColor" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setShadowOffset" class="tsd-kind-icon">set<wbr/>Shadow<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setStrokeAlpha" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Alpha</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#setStrokeColor" class="tsd-kind-icon">set<wbr/>Stroke<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.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="XmlCanvas2D.html#stroke" class="tsd-kind-icon">stroke</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#text" class="tsd-kind-icon">text</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="XmlCanvas2D.html#translate" class="tsd-kind-icon">translate</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="XmlCanvas2D.html#updateText" class="tsd-kind-icon">update<wbr/>Text</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="XmlCanvas2D.html#writeDefaults" class="tsd-kind-icon">write<wbr/>Defaults</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> |