170 lines
163 KiB
HTML
170 lines
163 KiB
HTML
|
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ArrowConnectorShape | @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="ArrowConnectorShape.html">ArrowConnectorShape</a></li></ul><h1>Class ArrowConnectorShape</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 an new rounded arrow shape with support for waypoints and double arrows. The
|
||
|
shape is used to represent edges, not vertices.</p>
|
||
|
</div><div><p>This shape is registered under {@link mxConstants.SHAPE_ARROW_CONNECTOR} in {@link mxCellRenderer}.</p>
|
||
|
</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">ArrowConnectorShape</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="ArrowConnectorShape.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#antiAlias" class="tsd-kind-icon">anti<wbr/>Alias</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="ArrowConnectorShape.html#arrowSpacing" class="tsd-kind-icon">arrow<wbr/>Spacing</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="ArrowConnectorShape.html#arrowWidth" class="tsd-kind-icon">arrow<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#cursor" class="tsd-kind-icon">cursor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#dialect" class="tsd-kind-icon">dialect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#direction" class="tsd-kind-icon">direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.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="ArrowConnectorShape.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.html#flipH" class="tsd-kind-icon">flipH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#flipV" class="tsd-kind-icon">flipV</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#glass" class="tsd-kind-icon">glass</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#gradient" class="tsd-kind-icon">gradient</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.html#indicator" class="tsd-kind-icon">indicator</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowCo
|
||
|
<p>Rendering hint for configuring the canvas.</p>
|
||
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="arrowSpacing" class="tsd-anchor"></a><h3>arrow<wbr/>Spacing</h3><div class="tsd-signature tsd-kind-icon">arrow<wbr/>Spacing<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L44">view/geometry/edge/ArrowConnectorShape.ts:44</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="arrowWidth" class="tsd-anchor"></a><h3>arrow<wbr/>Width</h3><div class="tsd-signature tsd-kind-icon">arrow<wbr/>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L43">view/geometry/edge/ArrowConnectorShape.ts:43</a></li></ul></aside></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"> = ''</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"> = 'all'</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-overwrite"><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>Overrides <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/edge/ArrowConnectorShape.ts#L50">view/geometry/edge/ArrowConnectorShape.ts:50</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Allows to use the SVG bounding box in SVG.</p>
|
||
|
</div><dl class="tsd-comment-tags"><dt>defaultvalue</dt><dd><p><code>false</code> for performance reasons.</p>
|
||
|
</dd></dl></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-overwrite"><a id="apply" class="tsd-anchor"></a><h3>apply</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><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>Overrides <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/edge/ArrowConnectorShape.ts#L70">view/geometry/edge/ArrowConnectorShape.ts:70</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Overrides apply to get smooth transition from default start- and endsize.</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></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="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-overwrite"><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>Overrides <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/edge/ArrowConnectorShape.ts#L82">view/geometry/edge/ArrowConnectorShape.ts:82</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Augments the bounding box with the edge width and markers.</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"><a id="getEdgeWidth" class="tsd-anchor"></a><h3>get<wbr/>Edge<wbr/>Width</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Edge<wbr/>Width<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L456">view/geometry/edge/ArrowConnectorShape.ts:456</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>the width of the body of the edge</p>
|
||
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getEndArrowWidth" class="tsd-anchor"></a><h3>get<wbr/>End<wbr/>Arrow<wbr/>Width</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>End<wbr/>Arrow<wbr/>Width<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L449">view/geometry/edge/ArrowConnectorShape.ts:449</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>the width of the end arrow</p>
|
||
|
</div></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-inherited"><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-inherited"><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>Inherited from <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/Shape.ts#L379">view/geometry/Shape.ts:379</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Returns the <a href="Rectangle.html">Rectangle</a> for the label bounds of this shape, based on the
|
||
|
given scaled and translated bounds of the shape. This method should not
|
||
|
change the rectangle in-place. This implementation returns the given rect.</p>
|
||
|
</div></div><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></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"><a id="getStartArrowWidth" class="tsd-anchor"></a><h3>get<wbr/>Start<wbr/>Arrow<wbr/>Width</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Start<wbr/>Arrow<wbr/>Width<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L442">view/geometry/edge/ArrowConnectorShape.ts:442</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>the width of the start arrow</p>
|
||
|
</div></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"><a id="isArrowRounded" class="tsd-anchor"></a><h3>is<wbr/>Arrow<wbr/>Rounded</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Arrow<wbr/>Rounded<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L435">view/geometry/edge/ArrowConnectorShape.ts:435</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><div><p>whether the arrow is rounded</p>
|
||
|
</div></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"><a id="isMarkerEnd" class="tsd-anchor"></a><h3>is<wbr/>Marker<wbr/>End</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Marker<wbr/>End<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L477">view/geometry/edge/ArrowConnectorShape.ts:477</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><div><p>whether the end marker is drawn</p>
|
||
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isMarkerStart" class="tsd-anchor"></a><h3>is<wbr/>Marker<wbr/>Start</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Marker<wbr/>Start<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L470">view/geometry/edge/ArrowConnectorShape.ts:470</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><div><p>whether the start marker is drawn</p>
|
||
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isOpenEnded" class="tsd-anchor"></a><h3>is<wbr/>Open<wbr/>Ended</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Open<wbr/>Ended<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L463">view/geometry/edge/ArrowConnectorShape.ts:463</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><div><p>whether the ends of the shape are drawn</p>
|
||
|
</div></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-overwrite"><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-overwrite"><li class="tsd-signature tsd-kind-icon">is<wbr/>Roundable<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>Overrides <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/edge/ArrowConnectorShape.ts#L55">view/geometry/edge/ArrowConnectorShape.ts:55</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Hook for subclassers.</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="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-inherited"><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-inherited"><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>Inherited from <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/Shape.ts#L730">view/geometry/Shape.ts:730</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>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="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-overwrite"><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>Overrides <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/edge/ArrowConnectorShape.ts#L101">view/geometry/edge/ArrowConnectorShape.ts:101</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>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-inherited"><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-inherited"><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>Inherited from <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/Shape.ts#L735">view/geometry/Shape.ts:735</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>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"><a id="paintMarker" class="tsd-anchor"></a><h3>paint<wbr/>Marker</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Marker<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>, ptX<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, ptY<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, nx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, ny<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, arrowWidth<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, edgeWidth<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, spacing<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts#L395">view/geometry/edge/ArrowConnectorShape.ts:395</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Paints the marker.</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>ptX: <span class="tsd-signature-type">number</span></h5></li><li><h5>ptY: <span class="tsd-signature-type">number</span></h5></li><li><h5>nx: <span class="tsd-signature-type">number</span></h5></li><li><h5>ny: <span class="tsd-signature-type">number</span></h5></li><li><h5>size: <span class="tsd-signature-type">number</span></h5></li><li><h5>arrowWidth: <span class="tsd-signature-type">number</span></h5></li><li><h5>edgeWidth: <span class="tsd-signature-type">number</span></h5></li><li><h5>spacing: <span class="tsd-signature-type">number</span></h5></li><li><h5>initialMove: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="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-overwrite"><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-overwrite"><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>Overrides <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/edge/ArrowConnectorShape.ts#L62">view/geometry/edge/ArrowConnectorShape.ts:62</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
||
|
<p>Overrides mxShape to reset spacing.</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="ArrowConnectorShape.html" class="tsd-kind-icon">Arrow<wbr/>Connector<wbr/>Shape</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="ArrowConnectorShape.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#antiAlias" class="tsd-kind-icon">anti<wbr/>Alias</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="ArrowConnectorShape.html#arrowSpacing" class="tsd-kind-icon">arrow<wbr/>Spacing</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="ArrowConnectorShape.html#arrowWidth" class="tsd-kind-icon">arrow<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#cursor" class="tsd-kind-icon">cursor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#dialect" class="tsd-kind-icon">dialect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.html#direction" class="tsd-kind-icon">direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.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="ArrowConnectorShape.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="ArrowConnectorShape.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="ArrowConnectorShape.html#flipH" class="tsd-kind-icon">fl
|