maxGraph/docs/api/classes/DoubleEllipseShape.html

188 lines
154 KiB
HTML
Raw Normal View History

Finish converting core to ts, JSDoc conversion, consistency+convention changes, example bugfixes (#70) * reorganised directories; removed mx prefix * reduced directory hierarchies; removed mx prefix; type fixes * convert remaining javascript to ts * fix/add types * add type defs * type updates; moved codecs to where they're used * reorganise constants into enums+type additions * removed "Function:" and "Variable:" prefixes from comments, as they aren't needed in JSDoc * removed "Function:", "Variable:" and "Class:" prefixes from comments, as they aren't needed in JSDoc * removed "Function:" prefixes from comments, as they aren't needed in JSDoc * minor changes * convert code example blocks to markdown * module casing updates * converted parameter function documentation to JSDoc * documentation+type updates * removed react subdir (for now) * reorganised various `utils` functions into different files * type updates/bugfixes/workarounds * rename Rubberband and CellEditor to be *Handler to match the other plugins * move codec classes to where they're used to reduce cyclic dependencies * move codec classes to where they're used to reduce cyclic dependencies * type updates/reorganize layout file structure * renamed various files for consistency * import fixes * renamed GraphHandler SelectionHander and various fixes * convert EventObject parameters to objects * add basic better-docs config * update better-docs config * bugfix for shared variables in Graph persisting across instances * fixed accessing handlers in examples; renamed Model to GraphModel * fixed accessing handlers in examples; renamed Model to GraphModel * restored selection model * bugfix * renamed getModel to getDataModel * changed to use graph.batchUpdate() to reduce lines of code * changed to use graph.batchUpdate() to reduce lines of code * finished annotations+added TypeDoc * convert remaining Cell[] instances to CellArray * convert NaturalDocs links to JSDoc
2022-01-08 01:49:35 +00:00
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DoubleEllipseShape | @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="DoubleEllipseShape.html">DoubleEllipseShape</a></li></ul><h1>Class DoubleEllipseShape</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Extends <a href="Shape.html">Shape</a> to implement a double ellipse shape.</p>
</div><div><p>This shape is registered under {@link mxConstants.SHAPE_DOUBLE_ELLIPSE} in <a href="Graph.html#cellRenderer">cellRenderer</a>.</p>
<p>Use the following override to only fill the inner ellipse in this shape:</p>
<pre><code class="language-javascript"><span class="hl-10">mxDoubleEllipse</span><span class="hl-1">.</span><span class="hl-0">prototype</span><span class="hl-1">.</span><span class="hl-2">paintVertexShape</span><span class="hl-1"> = </span><span class="hl-3">function</span><span class="hl-1">(</span><span class="hl-0">c</span><span class="hl-1">, </span><span class="hl-0">x</span><span class="hl-1">, </span><span class="hl-0">y</span><span class="hl-1">, </span><span class="hl-0">w</span><span class="hl-1">, </span><span class="hl-0">h</span><span class="hl-1">)</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-0">c</span><span class="hl-1">.</span><span class="hl-2">ellipse</span><span class="hl-1">(</span><span class="hl-0">x</span><span class="hl-1">, </span><span class="hl-0">y</span><span class="hl-1">, </span><span class="hl-0">w</span><span class="hl-1">, </span><span class="hl-0">h</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">c</span><span class="hl-1">.</span><span class="hl-2">stroke</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">inset</span><span class="hl-1"> = </span><span class="hl-0">mxUtils</span><span class="hl-1">.</span><span class="hl-2">getValue</span><span class="hl-1">(</span><span class="hl-3">this</span><span class="hl-1">.</span><span class="hl-0">style</span><span class="hl-1">, </span><span class="hl-6">&#39;margin&#39;</span><span class="hl-1">, </span><span class="hl-10">Math</span><span class="hl-1">.</span><span class="hl-2">min</span><span class="hl-1">(</span><span class="hl-8">3</span><span class="hl-1"> + </span><span class="hl-3">this</span><span class="hl-1">.</span><span class="hl-0">strokewidth</span><span class="hl-1">, </span><span class="hl-10">Math</span><span class="hl-1">.</span><span class="hl-2">min</span><span class="hl-1">(</span><span class="hl-0">w</span><span class="hl-1"> / </span><span class="hl-8">5</span><span class="hl-1">, </span><span class="hl-0">h</span><span class="hl-1"> / </span><span class="hl-8">5</span><span class="hl-1">)));</span><br/><span class="hl-1"> </span><span class="hl-0">x</span><span class="hl-1"> += </span><span class="hl-0">inset</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-0">y</span><span class="hl-1"> += </span><span class="hl-0">inset</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-0">w</span><span class="hl-1"> -= </span><span class="hl-8">2</span><span class="hl-1"> * </span><span class="hl-0">inset</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-0">h</span><span class="hl-1"> -= </span><span class="hl-8">2</span><span class="hl-1"> * </span><span class="hl-0">inset</span><span class="hl-1">;</span><br/><br/><span class="hl-1"> </span><span class="hl-5">if</span><span class="hl-1"> (</span><span class="hl-0">w</span><span class="hl-1"> &gt; </span><span class="hl-8">0</span><span class="hl-1"> &amp;&amp; </span><span class="hl-0">h</span><span class="hl-1"> &gt; </span><span class="hl-8">0</span><span class="hl-1">)</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">c</span><span class="hl-1">.</span><span class="hl-2">ellipse</span><span class="hl-1">(</span><span class="hl-0">x</span><span class="hl-1">, </span><span class="hl-0">y</span><span class="hl-1">, </span><span class="hl-0">w</span><span class="hl-1">, </span><span class="hl-0">h</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><br/><span class="hl-1"> </span><span class="hl-0">c</span><span class="hl-1">.</span><span class="hl-2">fillAndStroke</span><span class="hl-1">();</span><br/><span class="hl-1">};</span>
</code></pre>
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a><ul class="tsd-hierarchy"><li><span class="target">DoubleEllipseShape</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="DoubleEllipseShape.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section tsd-is-inherited"><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#antiAlias" class="tsd-kind-icon">anti<wbr/>Alias</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#boundingBox" class="tsd-kind-icon">bounding<wbr/>Box</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#cursor" class="tsd-kind-icon">cursor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#dialect" class="tsd-kind-icon">dialect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#direction" class="tsd-kind-icon">direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#endArrow" class="tsd-kind-icon">end<wbr/>Arrow</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#endSize" class="tsd-kind-icon">end<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#fillOpacity" class="tsd-kind-icon">fill<wbr/>Opacity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#flipH" class="tsd-kind-icon">flipH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#flipV" class="tsd-kind-icon">flipV</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#glass" class="tsd-kind-icon">glass</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#gradient" class="tsd-kind-icon">gradient</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#gradientDirection" class="tsd-kind-icon">gradient<wbr/>Direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#imageSrc" class="tsd-kind-icon">image<wbr/>Src</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#indicator" class="tsd-kind-icon">indicator</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#indicatorColor" class="tsd-kind-icon">indicator<wbr/>Color</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#indicatorDirection" class="tsd-kind-icon">indicator<wbr/>Direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#indicatorGradientColor" class="tsd-kind-icon">indicator<wbr/>Gradient<wbr/>Color</a></li><li class="tsd-k
<p>Rendering hint for configuring the canvas.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="boundingBox" class="tsd-anchor"></a><h3>bounding<wbr/>Box</h3><div class="tsd-signature tsd-kind-icon">bounding<wbr/>Box<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#boundingBox">boundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L185">view/geometry/Shape.ts:185</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Contains the bounding box of the shape, that is, the smallest rectangle
that includes all pixels of the shape.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="bounds" class="tsd-anchor"></a><h3>bounds</h3><div class="tsd-signature tsd-kind-icon">bounds<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#bounds">bounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L159">view/geometry/Shape.ts:159</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the <a href="Rectangle.html">Rectangle</a> that specifies the bounds of this shape.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="cursor" class="tsd-anchor"></a><h3>cursor</h3><div class="tsd-signature tsd-kind-icon">cursor<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#cursor">cursor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L127">view/geometry/Shape.ts:127</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="dialect" class="tsd-anchor"></a><h3>dialect</h3><div class="tsd-signature tsd-kind-icon">dialect<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="Shape.html">Shape</a>.<a href="Shape.html#dialect">dialect</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L139">view/geometry/Shape.ts:139</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the dialect in which the shape is to be painted.
This can be one of the DIALECT constants in {@link Constants}.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="direction" class="tsd-anchor"></a><h3>direction</h3><div class="tsd-signature tsd-kind-icon">direction<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DirectionValue</span><span class="tsd-signature-symbol"> = DIRECTION.EAST</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#direction">direction</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L115">view/geometry/Shape.ts:115</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="endArrow" class="tsd-anchor"></a><h3>end<wbr/>Arrow</h3><div class="tsd-signature tsd-kind-icon">end<wbr/>Arrow<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ArrowType</span><span class="tsd-signature-symbol"> = NONE</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#endArrow">endArrow</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L113">view/geometry/Shape.ts:113</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="endSize" class="tsd-anchor"></a><h3>end<wbr/>Size</h3><div class="tsd-signature tsd-kind-icon">end<wbr/>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#endSize">endSize</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L109">view/geometry/Shape.ts:109</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="fill" class="tsd-anchor"></a><h3>fill</h3><div class="tsd-signature tsd-kind-icon">fill<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = NONE</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#fill">fill</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L91">view/geometry/Shape.ts:91</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="fillOpacity" class="tsd-anchor"></a><h3>fill<wbr/>Opacity</h3><div class="tsd-signature tsd-kind-icon">fill<wbr/>Opacity<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 100</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#fillOpacity">fillOpacity</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L97">view/geometry/Shape.ts:97</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="flipH" class="tsd-anchor"></a><h3>flipH</h3><div class="tsd-signature tsd-kind-icon">flipH<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="Shape.html">Shape</a>.<a href="Shape.html#flipH">flipH</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L117">view/geometry/Shape.ts:117</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="flipV" class="tsd-anch
<p>Minimum stroke width for SVG output.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="node" class="tsd-anchor"></a><h3>node</h3><div class="tsd-signature tsd-kind-icon">node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">SVGGElement</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#node">node</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L169">view/geometry/Shape.ts:169</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the outermost DOM node that represents this shape.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="oldGradients" class="tsd-anchor"></a><h3>old<wbr/>Gradients</h3><div class="tsd-signature tsd-kind-icon">old<wbr/>Gradients<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">GradientMap</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#oldGradients">oldGradients</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L131">view/geometry/Shape.ts:131</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="opacity" class="tsd-anchor"></a><h3>opacity</h3><div class="tsd-signature tsd-kind-icon">opacity<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 100</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#opacity">opacity</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L88">view/geometry/Shape.ts:88</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="originalPointerEvents" class="tsd-anchor"></a><h3>original<wbr/>Pointer<wbr/>Events</h3><div class="tsd-signature tsd-kind-icon">original<wbr/>Pointer<wbr/>Events<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><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#originalPointerEvents">originalPointerEvents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L203">view/geometry/Shape.ts:203</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="outline" class="tsd-anchor"></a><h3>outline</h3><div class="tsd-signature tsd-kind-icon">outline<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="Shape.html">Shape</a>.<a href="Shape.html#outline">outline</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L228">view/geometry/Shape.ts:228</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if the shape should be drawn as an outline. This disables all
fill colors and can be used to disable other drawing states that should
not be painted for outlines. Default is false. This should be set before
calling <apply>.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="overlay" class="tsd-anchor"></a><h3>overlay</h3><div class="tsd-signature tsd-kind-icon">overlay<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellOverlay.html" class="tsd-signature-type" data-tsd-kind="Class">CellOverlay</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#overlay">overlay</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L83">view/geometry/Shape.ts:83</a></li></ul></aside></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"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#pointerEvents">pointerEvents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L201">view/geometry/Shape.ts:201</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if pointer events should be handled. Default is true.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="points" class="tsd-anchor"></a><h3>points</h3><div class="tsd-signature tsd-kind-icon">points<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><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="Shape.html">Shape</a>.<a href="Shape.html#points">points</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L164">view/geometry/Shape.ts:164</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the array of <Point> that specify the points of this shape.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="preserveImageAspect" class="tsd-anchor"></a><h3>preserve<wbr/>Image<wbr/>Aspect</h3><div class="tsd-signature tsd-kind-icon">preserve<wbr/>Image<wbr/>Aspect<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="Shape.html">Shape</a>.<a href="Shape.html#preserveImageAspect">preserveImageAspect</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L82">view/geometry/Shape.ts:82</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="rotation" class="tsd-anchor"></a><h3>rotation</h3><div class="tsd-signature tsd-kind-icon">rotation<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="Shape.html">Shape</a>.<a href="Shape.html#rotation">rotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L125">view/geometry/Shape.ts:125</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="scale" class="tsd-anchor"></a><h3>scale</h3><div class="tsd-signature tsd-kind-icon">scale<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#scale">scale</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L144">view/geometry/Shape.ts:144</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the scale in which the shape is being painted.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="shapePointerEvents" class="tsd-anchor"></a><h3>shape<wbr/>Pointer<wbr/>Events</h3><div class="tsd-signature tsd-kind-icon">shape<wbr/>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="Shape.html">Shape</a>.<a href="Shape.html#shapePointerEvents">shapePointerEvents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L214">view/geometry/Shape.ts:214</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if pointer events outside of shape 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="spacing" class="tsd-anchor"></a><h3>spacing</h3><div class="tsd-signature tsd-kind-icon">spacing<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="Shape.html">Shape</a>.<a href="Shape.html#spacing">spacing</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L105">view/geometry/Shape.ts:105</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="startArrow" class="tsd-anchor"></a><h3>start<wbr/>Arrow</h3><div class="tsd-signature tsd-kind-icon">start<wbr/>Arrow<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ArrowType</span><span class="tsd-signature-symbol"> = NONE</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#startArrow">startArrow</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L111">view/geometry/Shape.ts:111</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="startSize" class="tsd-anchor"></a><h3>start<wbr/>Size</h3><div class="tsd-signature tsd-kind-icon">start<wbr/>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#startSize">startSize</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L107">view/geometry/Shape.ts:107</a></li></ul></aside></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">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#state">state</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L174">view/geometry/Shape.ts:174</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Optional reference to the corresponding <CellState>.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="stencil" class="tsd-anchor"></a><h3>stencil</h3><div class="tsd-signature tsd-kind-icon">stencil<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="StencilShape.html" class="tsd-signature-type" data-tsd-kind="Class">StencilShape</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#stencil">stencil</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L190">view/geometry/Shape.ts:190</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the {@link Stencil} that defines the shape.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="stencilPointerEvents" class="tsd-anchor"></a><h3>stencil<wbr/>Pointer<wbr/>Events</h3><div class="tsd-signature tsd-kind-icon">stencil<wbr/>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="Shape.html">Shape</a>.<a href="Shape.html#stencilPointerEvents">stencilPointerEvents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L220">view/geometry/Shape.ts:220</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if pointer events outside of stencils should be handled. Default
is false. Set this to true for backwards compatibility with the 1.x branch.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="stroke" class="tsd-anchor"></a><h3>stroke</h3><div class="tsd-signature tsd-kind-icon">stroke<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = NONE</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#stroke">stroke</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L101">view/geometry/Shape.ts:101</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="strokeOpacity" class="tsd-anchor"></a><h3>stroke<wbr/>Opacity</h3><div class="tsd-signature tsd-kind-icon">stroke<wbr/>Opacity<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 100</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#strokeOpacity">strokeOpacity</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L99">view/geometry/Shape.ts:99</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="strokeWidth" class="tsd-anchor"></a><h3>stroke<wbr/>Width</h3><div class="tsd-signature tsd-kind-icon">stroke<wbr/>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#strokeWidth">strokeWidth</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L103">view/geometry/Shape.ts:103</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="style" class="tsd-anchor"></a><h3>style</h3><div class="tsd-signature tsd-kind-icon">style<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">CellStateStyles</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#style">style</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L179">view/geometry/Shape.ts:179</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Optional reference to the style of the corresponding <CellState>.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="svgPointerEvents" class="tsd-anchor"></a><h3>svg<wbr/>Pointer<wbr/>Events</h3><div class="tsd-signature tsd-kind-icon">svg<wbr/>Pointer<wbr/>Events<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;all&#39;</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#svgPointerEvents">svgPointerEvents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L208">view/geometry/Shape.ts:208</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if pointer events should be handled. Default is true.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="svgStrokeTolerance" class="tsd-anchor"></a><h3>svg<wbr/>Stroke<wbr/>Tolerance</h3><div class="tsd-signature tsd-kind-icon">svg<wbr/>Stroke<wbr/>Tolerance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 8</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#svgStrokeTolerance">svgStrokeTolerance</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L196">view/geometry/Shape.ts:196</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Event-tolerance for SVG strokes (in px). Default is 8. This is only passed
to the canvas in <createSvgCanvas> if <pointerEvents> is true.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="useSvgBoundingBox" class="tsd-anchor"></a><h3>use<wbr/>Svg<wbr/>Bounding<wbr/>Box</h3><div class="tsd-signature tsd-kind-icon">use<wbr/>Svg<wbr/>Bounding<wbr/>Box<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="Shape.html">Shape</a>.<a href="Shape.html#useSvgBoundingBox">useSvgBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L239">view/geometry/Shape.ts:239</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Allows to use the SVG bounding box in SVG. Default is false for performance
reasons.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="verticalTextRotation" class="tsd-anchor"></a><h3>vertical<wbr/>Text<wbr/>Rotation</h3><div class="tsd-signature tsd-kind-icon">vertical<wbr/>Text<wbr/>Rotation<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="Shape.html">Shape</a>.<a href="Shape.html#verticalTextRotation">verticalTextRotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L129">view/geometry/Shape.ts:129</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="visible" class="tsd-anchor"></a><h3>visible</h3><div class="tsd-signature tsd-kind-icon">visible<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="Shape.html">Shape</a>.<a href="Shape.html#visible">visible</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L233">view/geometry/Shape.ts:233</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if the shape is visible. Default is true.</p>
</div></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="addPoints" class="tsd-anchor"></a><h3>add<wbr/>Points</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">add<wbr/>Points<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, pts<span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span>, rounded<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, arcSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, close<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, exclude<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span>, initialMove<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#addPoints">addPoints</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L796">view/geometry/Shape.ts:796</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the given points with rounded corners.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>pts: <a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>rounded: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li><li><h5>arcSize: <span class="tsd-signature-type">number</span></h5></li><li><h5>close: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li><li><h5>exclude: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5></li><li><h5>initialMove: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</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="afterPaint" class="tsd-anchor"></a><h3>after<wbr/>Paint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">after<wbr/>Paint<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><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="Shape.html">Shape</a>.<a href="Shape.html#afterPaint">afterPaint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L553">view/geometry/Shape.ts:553</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Invokes after paint was called.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></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="apply" class="tsd-anchor"></a><h3>apply</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">apply<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a><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="Shape.html">Shape</a>.<a href="Shape.html#apply">apply</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L941">view/geometry/Shape.ts:941</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Applies the style of the given <CellState> to the shape. This
implementation assigns the following styles to local fields:</p>
</div><div><ul>
<li>&lt;&#39;fillColor&#39;&gt; =&gt; fill</li>
<li>&lt;&#39;gradientColor&#39;&gt; =&gt; gradient</li>
<li>&lt;&#39;gradientDirection&#39;&gt; =&gt; gradientDirection</li>
<li>&lt;&#39;opacity&#39;&gt; =&gt; opacity</li>
<li>{@link Constants#STYLE_FILL_OPACITY} =&gt; fillOpacity</li>
<li>{@link Constants#STYLE_STROKE_OPACITY} =&gt; strokeOpacity</li>
<li>&lt;&#39;strokeColor&#39;&gt; =&gt; stroke</li>
<li>&lt;&#39;strokeWidth&#39;&gt; =&gt; strokewidth</li>
<li>&lt;&#39;shadow&#39;&gt; =&gt; isShadow</li>
<li>&lt;&#39;dashed&#39;&gt; =&gt; isDashed</li>
<li>&lt;&#39;spacing&#39;&gt; =&gt; spacing</li>
<li>&lt;&#39;startSize&#39;&gt; =&gt; startSize</li>
<li>&lt;&#39;endSize&#39;&gt; =&gt; endSize</li>
<li>&lt;&#39;rounded&#39;&gt; =&gt; isRounded</li>
<li>&lt;&#39;startArrow&#39;&gt; =&gt; startArrow</li>
<li>&lt;&#39;endArrow&#39;&gt; =&gt; endArrow</li>
<li>&lt;&#39;rotation&#39;&gt; =&gt; rotation</li>
<li>&lt;&#39;direction&#39;&gt; =&gt; direction</li>
<li>&lt;&#39;glass&#39;&gt; =&gt; glass</li>
</ul>
<p>This keeps a reference to the <style>. If you need to keep a reference to
the cell, you can override this method and store a local reference to
state.cell or the <CellState> itself. If <outline> should be true, make
sure to set it before calling this method.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>state: <a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><CellState> of the corresponding cell.</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="augmentBoundingBox" class="tsd-anchor"></a><h3>augment<wbr/>Bounding<wbr/>Box</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">augment<wbr/>Bounding<wbr/>Box<span class="tsd-signature-symbol">(</span>bbox<span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><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="Shape.html">Shape</a>.<a href="Shape.html#augmentBoundingBox">augmentBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1063">view/geometry/Shape.ts:1063</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Augments the bounding box with the strokewidth and shadow offsets.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bbox: <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></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="beforePaint" class="tsd-anchor"></a><h3>before<wbr/>Paint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">before<wbr/>Paint<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><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="Shape.html">Shape</a>.<a href="Shape.html#beforePaint">beforePaint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L548">view/geometry/Shape.ts:548</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Invoked before paint is called.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></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="checkBounds" class="tsd-anchor"></a><h3>check<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">check<wbr/>Bounds<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#checkBounds">checkBounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L431">view/geometry/Shape.ts:431</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the bounds are not null and all of its variables are numeric.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="clear" class="tsd-anchor"></a><h3>clear</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">clear<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="Shape.html">Shape</a>.<a href="Shape.html#clear">clear</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L351">view/geometry/Shape.ts:351</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Removes all child nodes and resets all CSS.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="configureCanvas" class="tsd-anchor"></a><h3>configure<wbr/>Canvas</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">configure<wbr/>Canvas<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#configureCanvas">configureCanvas</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L654">view/geometry/Shape.ts:654</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the state of the canvas for drawing the shape.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></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="create" class="tsd-anchor"></a><h3>create</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGGElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#create">create</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L319">view/geometry/Shape.ts:319</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates and returns the DOM node(s) for the shape in
the given container. This implementation invokes
<createSvg>, <createHtml> or <createVml> depending
on the <dialect> and style settings.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGGElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createBoundingBox" class="tsd-anchor"></a><h3>create<wbr/>Bounding<wbr/>Box</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Bounding<wbr/>Box<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#createBoundingBox">createBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1045">view/geometry/Shape.ts:1045</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns a new rectangle that represents the bounding box of the bare shape
with no shadows or strokewidths.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createCanvas" class="tsd-anchor"></a><h3>create<wbr/>Canvas</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Canvas<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="SvgCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">SvgCanvas2D</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#createCanvas">createCanvas</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L472">view/geometry/Shape.ts:472</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates a new canvas for drawing this shape. May return null.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="SvgCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">SvgCanvas2D</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createSvgCanvas" class="tsd-anchor"></a><h3>create<wbr/>Svg<wbr/>Canvas</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Svg<wbr/>Canvas<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="SvgCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">SvgCanvas2D</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#createSvgCanvas">createSvgCanvas</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L497">view/geometry/Shape.ts:497</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates and returns an <mxSvgCanvas2D> for rendering this shape.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="SvgCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">SvgCanvas2D</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createTransparentSvgRectangle" class="tsd-anchor"></a><h3>create<wbr/>Transparent<wbr/>Svg<wbr/>Rectangle</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Transparent<wbr/>Svg<wbr/>Rectangle<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">SVGRectElement</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#createTransparentSvgRectangle">createTransparentSvgRectangle</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1124">view/geometry/Shape.ts:1124</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Adds a transparent rectangle that catches all events.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SVGRectElement</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="destroy" class="tsd-anchor"></a><h3>destroy</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">destroy<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="Shape.html">Shape</a>.<a href="Shape.html#destroy">destroy</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1168">view/geometry/Shape.ts:1168</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Destroys the shape by removing it from the DOM and releasing the DOM
node associated with the shape using {@link Event#release}.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="destroyCanvas" class="tsd-anchor"></a><h3>destroy<wbr/>Canvas</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">destroy<wbr/>Canvas<span class="tsd-signature-symbol">(</span>canvas<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><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="Shape.html">Shape</a>.<a href="Shape.html#destroyCanvas">destroyCanvas</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L528">view/geometry/Shape.ts:528</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Destroys the given canvas which was used for drawing. This implementation
increments the reference counts on all shared gradients used in the canvas.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>canvas: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></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="getArcSize" class="tsd-anchor"></a><h3>get<wbr/>Arc<wbr/>Size</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Arc<wbr/>Size<span class="tsd-signature-symbol">(</span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><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>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getArcSize">getArcSize</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L745">view/geometry/Shape.ts:745</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the arc size for the given dimension.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></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-inherited"><a id="getCursor" class="tsd-anchor"></a><h3>get<wbr/>Cursor</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Cursor<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getCursor">getCursor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L990">view/geometry/Shape.ts:990</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the current cursor.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getGradientBounds" class="tsd-anchor"></a><h3>get<wbr/>Gradient<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Gradient<wbr/>Bounds<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getGradientBounds">getGradientBounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L700">view/geometry/Shape.ts:700</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the bounding box for the gradient box for this shape.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="getLabelBounds" class="tsd-anchor"></a><h3>get<wbr/>Label<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">get<wbr/>Label<wbr/>Bounds<span class="tsd-signature-symbol">(</span>rect<span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="Shape.html">Shape</a>.<a href="Shape.html#getLabelBounds">getLabelBounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/DoubleEllipseShape.ts#L81">view/geometry/node/DoubleEllipseShape.ts:81</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>rect: <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4><div><p>the bounds for the label.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getLabelMargins" class="tsd-anchor"></a><h3>get<wbr/>Label<wbr/>Margins</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Label<wbr/>Margins<span class="tsd-signature-symbol">(</span>rect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getLabelMargins">getLabelMargins</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L424">view/geometry/Shape.ts:424</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the scaled top, left, bottom and right margin to be used for
computing the label bounds as an <a href="Rectangle.html">Rectangle</a>, where the bottom and right
margin are defined in the width and height of the rectangle, respectively.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>rect: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getRotation" class="tsd-anchor"></a><h3>get<wbr/>Rotation</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Rotation<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getRotation">getRotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1087">view/geometry/Shape.ts:1087</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the rotation from the style.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getShapeRotation" class="tsd-anchor"></a><h3>get<wbr/>Shape<wbr/>Rotation</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Shape<wbr/>Rotation<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getShapeRotation">getShapeRotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1107">view/geometry/Shape.ts:1107</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the actual rotation of the shape.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getSvgScreenOffset" class="tsd-anchor"></a><h3>get<wbr/>Svg<wbr/>Screen<wbr/>Offset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Svg<wbr/>Screen<wbr/>Offset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getSvgScreenOffset">getSvgScreenOffset</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L302">view/geometry/Shape.ts:302</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns 0, or 0.5 if <strokewidth> % 2 == 1.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getTextRotation" class="tsd-anchor"></a><h3>get<wbr/>Text<wbr/>Rotation</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Text<wbr/>Rotation<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getTextRotation">getTextRotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1094">view/geometry/Shape.ts:1094</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the rotation for the text label.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="init" class="tsd-anchor"></a><h3>init</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">init<span class="tsd-signature-symbol">(</span>container<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span><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="Shape.html">Shape</a>.<a href="Shape.html#init">init</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L272">view/geometry/Shape.ts:272</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Initializes the shape by creaing the DOM node using <create>
and adding it into the given container.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>container: <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>DOM node that will contain the shape.</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="initStyles" class="tsd-anchor"></a><h3>init<wbr/>Styles</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">init<wbr/>Styles<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="Shape.html">Shape</a>.<a href="Shape.html#initStyles">initStyles</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L281">view/geometry/Shape.ts:281</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the styles to their default values.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isHtmlAllowed" class="tsd-anchor"></a><h3>is<wbr/>Html<wbr/>Allowed</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Html<wbr/>Allowed<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#isHtmlAllowed">isHtmlAllowed</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L295">view/geometry/Shape.ts:295</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if HTML is allowed for this shape. This implementation always
returns false.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isPaintBoundsInverted" class="tsd-anchor"></a><h3>is<wbr/>Paint<wbr/>Bounds<wbr/>Inverted</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Paint<wbr/>Bounds<wbr/>Inverted<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#isPaintBoundsInverted">isPaintBoundsInverted</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1076">view/geometry/Shape.ts:1076</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the bounds should be inverted.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isRoundable" class="tsd-anchor"></a><h3>is<wbr/>Roundable</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Roundable<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#isRoundable">isRoundable</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L997">view/geometry/Shape.ts:997</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Hook for subclassers.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="paint" class="tsd-anchor"></a><h3>paint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">paint<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><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="Shape.html">Shape</a>.<a href="Shape.html#paint">paint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L558">view/geometry/Shape.ts:558</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Generic rendering code.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></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="paintBackground" class="tsd-anchor"></a><h3>paint<wbr/>Background</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Background<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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="Shape.html">Shape</a>.<a href="Shape.html#paintBackground">paintBackground</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/DoubleEllipseShape.ts#L51">view/geometry/node/DoubleEllipseShape.ts:51</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the background.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></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="paintEdgeShape" class="tsd-anchor"></a><h3>paint<wbr/>Edge<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Edge<wbr/>Shape<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, pts<span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><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="Shape.html">Shape</a>.<a href="Shape.html#paintEdgeShape">paintEdgeShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L740">view/geometry/Shape.ts:740</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Hook for subclassers. This implementation is empty.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>pts: <a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><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-overwrite"><a id="paintForeground" class="tsd-anchor"></a><h3>paint<wbr/>Foreground</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Foreground<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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="Shape.html">Shape</a>.<a href="Shape.html#paintForeground">paintForeground</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/DoubleEllipseShape.ts#L59">view/geometry/node/DoubleEllipseShape.ts:59</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the foreground.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></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="paintGlassEffect" class="tsd-anchor"></a><h3>paint<wbr/>Glass<wbr/>Effect</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Glass<wbr/>Effect<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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>, arc<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="Shape.html">Shape</a>.<a href="Shape.html#paintGlassEffect">paintGlassEffect</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L760">view/geometry/Shape.ts:760</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the glass gradient effect.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>arc: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="paintVertexShape" class="tsd-anchor"></a><h3>paint<wbr/>Vertex<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Vertex<wbr/>Shape<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#paintVertexShape">paintVertexShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L718">view/geometry/Shape.ts:718</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the vertex shape.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></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="reconfigure" class="tsd-anchor"></a><h3>reconfigure</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reconfigure<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="Shape.html">Shape</a>.<a href="Shape.html#reconfigure">reconfigure</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L327">view/geometry/Shape.ts:327</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Reconfigures this shape. This will update the colors etc in
addition to the bounds or points.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="redraw" class="tsd-anchor"></a><h3>redraw</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">redraw<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="Shape.html">Shape</a>.<a href="Shape.html#redraw">redraw</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L334">view/geometry/Shape.ts:334</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Creates and returns the SVG node(s) to represent this shape.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="redrawHtmlShape" class="tsd-anchor"></a><h3>redraw<wbr/>Html<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">redraw<wbr/>Html<wbr/>Shape<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="Shape.html">Shape</a>.<a href="Shape.html#redrawHtmlShape">redrawHtmlShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1136">view/geometry/Shape.ts:1136</a></li></ul></aside><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="redrawShape" class="tsd-anchor"></a><h3>redraw<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">redraw<wbr/>Shape<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="Shape.html">Shape</a>.<a href="Shape.html#redrawShape">redrawShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L449">view/geometry/Shape.ts:449</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates the SVG or VML shape.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="releaseSvgGradients" class="tsd-anchor"></a><h3>release<wbr/>Svg<wbr/>Gradients</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">release<wbr/>Svg<wbr/>Gradients<span class="tsd-signature-symbol">(</span>grads<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">GradientMap</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="Shape.html">Shape</a>.<a href="Shape.html#releaseSvgGradients">releaseSvgGradients</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1150">view/geometry/Shape.ts:1150</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Paints the line shape.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>grads: <span class="tsd-signature-type">GradientMap</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="resetStyles" class="tsd-anchor"></a><h3>reset<wbr/>Styles</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reset<wbr/>Styles<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="Shape.html">Shape</a>.<a href="Shape.html#resetStyles">resetStyles</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L889">view/geometry/Shape.ts:889</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Resets all styles.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setCursor" class="tsd-anchor"></a><h3>set<wbr/>Cursor</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Cursor<span class="tsd-signature-symbol">(</span>cursor<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="Shape.html">Shape</a>.<a href="Shape.html#setCursor">setCursor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L982">view/geometry/Shape.ts:982</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the cursor on the given shape.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cursor: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>The cursor to be used.</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="setTransparentBackgroundImage" class="tsd-anchor"></a><h3>set<wbr/>Transparent<wbr/>Background<wbr/>Image</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Transparent<wbr/>Background<wbr/>Image<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#setTransparentBackgroundImage">setTransparentBackgroundImage</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1143">view/geometry/Shape.ts:1143</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets a transparent background CSS style to catch all events.</p>
</div><div><p>Paints the line shape.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="updateBoundingBox" class="tsd-anchor"></a><h3>update<wbr/>Bounding<wbr/>Box</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">update<wbr/>Bounding<wbr/>Box<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="Shape.html">Shape</a>.<a href="Shape.html#updateBoundingBox">updateBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1005">view/geometry/Shape.ts:1005</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates the <boundingBox> for this shape using <createBoundingBox> and
<augmentBoundingBox> and stores the result in <boundingBox>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="updateBoundsFromPoints" class="tsd-anchor"></a><h3>update<wbr/>Bounds<wbr/>From<wbr/>Points</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">update<wbr/>Bounds<wbr/>From<wbr/>Points<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="Shape.html">Shape</a>.<a href="Shape.html#updateBoundsFromPoints">updateBoundsFromPoints</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L360">view/geometry/Shape.ts:360</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Updates the bounds based on the points.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="updateTransform" class="tsd-anchor"></a><h3>update<wbr/>Transform</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">update<wbr/>Transform<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, 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>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#updateTransform">updateTransform</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L707">view/geometry/Shape.ts:707</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the scale and rotation on the given canvas.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/DomHelpers.html">Dom<wbr/>Helpers</a></li><li class=" tsd-kind-namespace"><a href="../modules/cloneUtils.html">clone<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/constants.html">constants</a></li><li class=" tsd-kind-namespace"><a href="../modules/domUtils.html">dom<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/eventUtils.html">event<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/gestureUtils.html">gesture<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/mathUtils.html">math<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/stringUtils.html">string<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/styleUtils.html">style<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/xmlUtils.html">xml<wbr/>Utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="DoubleEllipseShape.html" class="tsd-kind-icon">Double<wbr/>Ellipse<wbr/>Shape</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="DoubleEllipseShape.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#antiAlias" class="tsd-kind-icon">anti<wbr/>Alias</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#boundingBox" class="tsd-kind-icon">bounding<wbr/>Box</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#cursor" class="tsd-kind-icon">cursor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#dialect" class="tsd-kind-icon">dialect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#direction" class="tsd-kind-icon">direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#endArrow" class="tsd-kind-icon">end<wbr/>Arrow</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#endSize" class="tsd-kind-icon">end<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#fillOpacity" class="tsd-kind-icon">fill<wbr/>Opacity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#flipH" class="tsd-kind-icon">flipH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#flipV" class="tsd-kind-icon">flipV</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="DoubleEllipseShape.html#glass" class="tsd-kind-icon">glass</a></li><li cl