240 lines
179 KiB
HTML
240 lines
179 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>StencilShape | @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="StencilShape.html">StencilShape</a></li></ul><h1>Class StencilShape</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>Implements a generic shape which is based on a XML node as a description.</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">StencilShape</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="StencilShape.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="StencilShape.html#antiAlias" class="tsd-kind-icon">anti<wbr/>Alias</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#aspect" class="tsd-kind-icon">aspect</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#bgNode" class="tsd-kind-icon">bg<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#constraints" class="tsd-kind-icon">constraints</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#cursor" class="tsd-kind-icon">cursor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#desc" class="tsd-kind-icon">desc</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#dialect" class="tsd-kind-icon">dialect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#direction" class="tsd-kind-icon">direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#endSize" class="tsd-kind-icon">end<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#fgNode" class="tsd-kind-icon">fg<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#flipH" class="tsd-kind-icon">flipH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#flipV" class="tsd-kind-icon">flipV</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#glass" class="tsd-kind-icon">glass</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#gradient" class="tsd-kind-icon">gradient</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#gradientDirection" class="tsd-kind-icon">gradient<wbr/>Direction</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#h0" class="tsd-kind-icon">h0</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#indicator" class="tsd-kind-icon">indicator</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#indicatorDirection" class="tsd-kind-icon">indicator<wbr/>Direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorGradientColor" class="tsd-kind-icon">indicator<wbr/>Gradient<wbr/>Color</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorImageSrc" class="tsd-kind-icon">indicator<wbr/>Image<wbr/>Src</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorShape" class="tsd-kind-icon">indicator<wbr/>Shape</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorStrokeColor" class="tsd-kind-icon">indicator<wbr/>Stroke<wbr/>Color</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isDashed" class="tsd-kind-icon">is<wbr/>Dashed</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isRounded" class="tsd-kind-icon">is<wbr/>Rounded</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isShadow" class="tsd-kind-icon">is<wbr/>Shadow</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#minSvgStrokeWidth" class="tsd-kind-icon">min<wbr/>Svg<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#node" class="tsd-kind-icon">node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#oldGradients" class="tsd-kind-icon">old<wbr/>Gradients</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#opacity" class="tsd-kind-icon">opacity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#originalPointerEvents" class="tsd-kind-icon">original<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#outline" class="tsd-kind-icon">outline</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#overlay" class="tsd-kind-icon">overlay</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#pointerEvents" class="tsd-kind-icon">pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#points" class="tsd-kind-icon">points</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#preserveImageAspect" class="tsd-kind-icon">preserve<wbr/>Image<wbr/>Aspect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#rotation" class="tsd-kind-icon">rotation</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#scale" class="tsd-kind-icon">scale</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#shapePointerEvents" class="tsd-kind-icon">shape<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#spacing" class="tsd-kind-icon">spacing</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#startArrow" class="tsd-kind-icon">start<wbr/>Arrow</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#startSize" class="tsd-kind-icon">start<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#stencil" class="tsd-kind-icon">stencil</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#stencilPointerEvents" class="tsd-kind-icon">stencil<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#stroke" class="tsd-kind-icon">stroke</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#strokeOpacity" class="tsd-kind-icon">stroke<wbr/>Opacity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#strokeWidth" class="tsd-kind-icon">stroke<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#strokeWidthValue" class="tsd-kind-icon">stroke<wbr/>Width<wbr/>Value</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#style" class="tsd-kind-icon">style</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#svgPointerEvents" class="tsd-kind-icon">svg<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#svgStrokeTolerance" class="tsd-kind-icon">svg<wbr/>Stroke<wbr/>Tolerance</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#useSvgBoundingBox" class="tsd-kind-icon">use<wbr/>Svg<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#verticalTextRotation" class="tsd-kind-icon">vertical<wbr/>Text<wbr/>Rotation</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#visible" class="tsd-kind-icon">visible</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#w0" class="tsd-kind-icon">w0</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="StencilShape.html#allowEval" class="tsd-kind-icon">allow<wbr/>Eval</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="StencilShape.html#defaultLocalized" class="tsd-kind-icon">default<wbr/>Localized</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#addPoints" class="tsd-kind-icon">add<wbr/>Points</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#afterPaint" class="tsd-kind-icon">after<wbr/>Paint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#apply" class="tsd-kind-icon">apply</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#augmentBoundingBox" class="tsd-kind-icon">augment<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#beforePaint" class="tsd-kind-icon">before<wbr/>Paint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#checkBounds" class="tsd-kind-icon">check<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#clear" class="tsd-kind-icon">clear</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#computeAspect" class="tsd-kind-icon">compute<wbr/>Aspect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#configureCanvas" class="tsd-kind-icon">configure<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#create" class="tsd-kind-icon">create</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createBoundingBox" class="tsd-kind-icon">create<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createCanvas" class="tsd-kind-icon">create<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createSvgCanvas" class="tsd-kind-icon">create<wbr/>Svg<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createTransparentSvgRectangle" class="tsd-kind-icon">create<wbr/>Transparent<wbr/>Svg<wbr/>Rectangle</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#destroy" class="tsd-kind-icon">destroy</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#destroyCanvas" class="tsd-kind-icon">destroy<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#drawChildren" class="tsd-kind-icon">draw<wbr/>Children</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#drawNode" class="tsd-kind-icon">draw<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#drawShape" class="tsd-kind-icon">draw<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#evaluateAttribute" class="tsd-kind-icon">evaluate<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#evaluateTextAttribute" class="tsd-kind-icon">evaluate<wbr/>Text<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getArcSize" class="tsd-kind-icon">get<wbr/>Arc<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getCursor" class="tsd-kind-icon">get<wbr/>Cursor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getGradientBounds" class="tsd-kind-icon">get<wbr/>Gradient<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getLabelBounds" class="tsd-kind-icon">get<wbr/>Label<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getLabelMargins" class="tsd-kind-icon">get<wbr/>Label<wbr/>Margins</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getRotation" class="tsd-kind-icon">get<wbr/>Rotation</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getShapeRotation" class="tsd-kind-icon">get<wbr/>Shape<wbr/>Rotation</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getSvgScreenOffset" class="tsd-kind-icon">get<wbr/>Svg<wbr/>Screen<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getTextRotation" class="tsd-kind-icon">get<wbr/>Text<wbr/>Rotation</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#init" class="tsd-kind-icon">init</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#initStyles" class="tsd-kind-icon">init<wbr/>Styles</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isHtmlAllowed" class="tsd-kind-icon">is<wbr/>Html<wbr/>Allowed</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isPaintBoundsInverted" class="tsd-kind-icon">is<wbr/>Paint<wbr/>Bounds<wbr/>Inverted</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isRoundable" class="tsd-kind-icon">is<wbr/>Roundable</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paint" class="tsd-kind-icon">paint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintBackground" class="tsd-kind-icon">paint<wbr/>Background</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintEdgeShape" class="tsd-kind-icon">paint<wbr/>Edge<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintForeground" class="tsd-kind-icon">paint<wbr/>Foreground</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintGlassEffect" class="tsd-kind-icon">paint<wbr/>Glass<wbr/>Effect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintVertexShape" class="tsd-kind-icon">paint<wbr/>Vertex<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#parseConstraint" class="tsd-kind-icon">parse<wbr/>Constraint</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#parseConstraints" class="tsd-kind-icon">parse<wbr/>Constraints</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#parseDescription" class="tsd-kind-icon">parse<wbr/>Description</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#reconfigure" class="tsd-kind-icon">reconfigure</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#redraw" class="tsd-kind-icon">redraw</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#redrawHtmlShape" class="tsd-kind-icon">redraw<wbr/>Html<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#redrawShape" class="tsd-kind-icon">redraw<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#releaseSvgGradients" class="tsd-kind-icon">release<wbr/>Svg<wbr/>Gradients</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#resetStyles" class="tsd-kind-icon">reset<wbr/>Styles</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#setCursor" class="tsd-kind-icon">set<wbr/>Cursor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#setTransparentBackgroundImage" class="tsd-kind-icon">set<wbr/>Transparent<wbr/>Background<wbr/>Image</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#updateBoundingBox" class="tsd-kind-icon">update<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#updateBoundsFromPoints" class="tsd-kind-icon">update<wbr/>Bounds<wbr/>From<wbr/>Points</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#updateTransform" class="tsd-kind-icon">update<wbr/>Transform</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Stencil<wbr/>Shape<span class="tsd-signature-symbol">(</span>desc<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="StencilShape.html" class="tsd-signature-type" data-tsd-kind="Class">StencilShape</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="Shape.html">Shape</a>.<a href="Shape.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L34">view/geometry/node/StencilShape.ts:34</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>desc: <span class="tsd-signature-type">Element</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="StencilShape.html" class="tsd-signature-type" data-tsd-kind="Class">StencilShape</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="antiAlias" class="tsd-anchor"></a><h3>anti<wbr/>Alias</h3><div class="tsd-signature tsd-kind-icon">anti<wbr/>Alias<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#antiAlias">antiAlias</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L149">view/geometry/Shape.ts:149</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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="aspect" class="tsd-anchor"></a><h3>aspect</h3><div class="tsd-signature tsd-kind-icon">aspect<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'auto'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L67">view/geometry/node/StencilShape.ts:67</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the aspect of the shape. Default is 'auto'.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="bgNode" class="tsd-anchor"></a><h3>bg<wbr/>Node</h3><div class="tsd-signature tsd-kind-icon">bg<wbr/>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L83">view/geometry/node/StencilShape.ts:83</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the XML node with the stencil description.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="boundingBox" class="tsd-anchor"></a><h3>bounding<wbr/>Box</h3><div class="tsd-signature tsd-kind-icon">bounding<wbr/>Box<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#boundingBox">boundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L185">view/geometry/Shape.ts:185</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Contains the bounding box of the shape, that is, the smallest rectangle
|
|
that includes all pixels of the shape.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="bounds" class="tsd-anchor"></a><h3>bounds</h3><div class="tsd-signature tsd-kind-icon">bounds<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#bounds">bounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L159">view/geometry/Shape.ts:159</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the <a href="Rectangle.html">Rectangle</a> that specifies the bounds of this shape.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="constraints" class="tsd-anchor"></a><h3>constraints</h3><div class="tsd-signature tsd-kind-icon">constraints<span class="tsd-signature-symbol">:</span> <a href="ConnectionConstraint.html" class="tsd-signature-type" data-tsd-kind="Class">ConnectionConstraint</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L62">view/geometry/node/StencilShape.ts:62</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds an array of {@link ConnectionConstraints} as defined in the 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"><a id="desc" class="tsd-anchor"></a><h3>desc</h3><div class="tsd-signature tsd-kind-icon">desc<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Element</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L57">view/geometry/node/StencilShape.ts:57</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the XML node with the stencil description.</p>
|
|
</div></div></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"><a id="fgNode" class="tsd-anchor"></a><h3>fg<wbr/>Node</h3><div class="tsd-signature tsd-kind-icon">fg<wbr/>Node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L88">view/geometry/node/StencilShape.ts:88</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the XML node with the stencil description.</p>
|
|
</div></div></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-anchor"></a><h3>flipV</h3><div class="tsd-signature tsd-kind-icon">flipV<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#flipV">flipV</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L119">view/geometry/Shape.ts:119</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="glass" class="tsd-anchor"></a><h3>glass</h3><div class="tsd-signature tsd-kind-icon">glass<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#glass">glass</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L133">view/geometry/Shape.ts:133</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="gradient" class="tsd-anchor"></a><h3>gradient</h3><div class="tsd-signature tsd-kind-icon">gradient<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#gradient">gradient</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L93">view/geometry/Shape.ts:93</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="gradientDirection" class="tsd-anchor"></a><h3>gradient<wbr/>Direction</h3><div class="tsd-signature tsd-kind-icon">gradient<wbr/>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#gradientDirection">gradientDirection</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L95">view/geometry/Shape.ts:95</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="h0" class="tsd-anchor"></a><h3>h0</h3><div class="tsd-signature tsd-kind-icon">h0<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L77">view/geometry/node/StencilShape.ts:77</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the height of the shape. Default is 100.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="image" class="tsd-anchor"></a><h3>image</h3><div class="tsd-signature tsd-kind-icon">image<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="ImageBox.html" class="tsd-signature-type" data-tsd-kind="Class">ImageBox</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#image">image</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L241">view/geometry/Shape.ts:241</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="imageSrc" class="tsd-anchor"></a><h3>image<wbr/>Src</h3><div class="tsd-signature tsd-kind-icon">image<wbr/>Src<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#imageSrc">imageSrc</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L243">view/geometry/Shape.ts:243</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicator" class="tsd-anchor"></a><h3>indicator</h3><div class="tsd-signature tsd-kind-icon">indicator<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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#indicator">indicator</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L84">view/geometry/Shape.ts:84</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicatorColor" class="tsd-anchor"></a><h3>indicator<wbr/>Color</h3><div class="tsd-signature tsd-kind-icon">indicator<wbr/>Color<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#indicatorColor">indicatorColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L245">view/geometry/Shape.ts:245</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicatorDirection" class="tsd-anchor"></a><h3>indicator<wbr/>Direction</h3><div class="tsd-signature tsd-kind-icon">indicator<wbr/>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#indicatorDirection">indicatorDirection</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L251">view/geometry/Shape.ts:251</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicatorGradientColor" class="tsd-anchor"></a><h3>indicator<wbr/>Gradient<wbr/>Color</h3><div class="tsd-signature tsd-kind-icon">indicator<wbr/>Gradient<wbr/>Color<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#indicatorGradientColor">indicatorGradientColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L249">view/geometry/Shape.ts:249</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicatorImageSrc" class="tsd-anchor"></a><h3>indicator<wbr/>Image<wbr/>Src</h3><div class="tsd-signature tsd-kind-icon">indicator<wbr/>Image<wbr/>Src<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#indicatorImageSrc">indicatorImageSrc</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L253">view/geometry/Shape.ts:253</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicatorShape" class="tsd-anchor"></a><h3>indicator<wbr/>Shape</h3><div class="tsd-signature tsd-kind-icon">indicator<wbr/>Shape<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">typeof </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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#indicatorShape">indicatorShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L85">view/geometry/Shape.ts:85</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="indicatorStrokeColor" class="tsd-anchor"></a><h3>indicator<wbr/>Stroke<wbr/>Color</h3><div class="tsd-signature tsd-kind-icon">indicator<wbr/>Stroke<wbr/>Color<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#indicatorStrokeColor">indicatorStrokeColor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L247">view/geometry/Shape.ts:247</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="isDashed" class="tsd-anchor"></a><h3>is<wbr/>Dashed</h3><div class="tsd-signature tsd-kind-icon">is<wbr/>Dashed<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#isDashed">isDashed</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L89">view/geometry/Shape.ts:89</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="isRounded" class="tsd-anchor"></a><h3>is<wbr/>Rounded</h3><div class="tsd-signature tsd-kind-icon">is<wbr/>Rounded<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#isRounded">isRounded</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L123">view/geometry/Shape.ts:123</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="isShadow" class="tsd-anchor"></a><h3>is<wbr/>Shadow</h3><div class="tsd-signature tsd-kind-icon">is<wbr/>Shadow<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#isShadow">isShadow</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L121">view/geometry/Shape.ts:121</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="minSvgStrokeWidth" class="tsd-anchor"></a><h3>min<wbr/>Svg<wbr/>Stroke<wbr/>Width</h3><div class="tsd-signature tsd-kind-icon">min<wbr/>Svg<wbr/>Stroke<wbr/>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#minSvgStrokeWidth">minSvgStrokeWidth</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L154">view/geometry/Shape.ts:154</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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"><a id="strokeWidthValue" class="tsd-anchor"></a><h3>stroke<wbr/>Width<wbr/>Value</h3><div class="tsd-signature tsd-kind-icon">stroke<wbr/>Width<wbr/>Value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L93">view/geometry/node/StencilShape.ts:93</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the strokewidth direction from the description.</p>
|
|
</div></div></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-inherited"><a id="useSvgBoundingBox" class="tsd-anchor"></a><h3>use<wbr/>Svg<wbr/>Bounding<wbr/>Box</h3><div class="tsd-signature tsd-kind-icon">use<wbr/>Svg<wbr/>Bounding<wbr/>Box<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#useSvgBoundingBox">useSvgBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L239">view/geometry/Shape.ts:239</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Allows to use the SVG bounding box in SVG. Default is false for performance
|
|
reasons.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="verticalTextRotation" class="tsd-anchor"></a><h3>vertical<wbr/>Text<wbr/>Rotation</h3><div class="tsd-signature tsd-kind-icon">vertical<wbr/>Text<wbr/>Rotation<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#verticalTextRotation">verticalTextRotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L129">view/geometry/Shape.ts:129</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="visible" class="tsd-anchor"></a><h3>visible</h3><div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#visible">visible</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L233">view/geometry/Shape.ts:233</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if the shape is visible. Default is true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="w0" class="tsd-anchor"></a><h3>w0</h3><div class="tsd-signature tsd-kind-icon">w0<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L72">view/geometry/node/StencilShape.ts:72</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the width of the shape. Default is 100.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="allowEval" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> allow<wbr/>Eval</h3><div class="tsd-signature tsd-kind-icon">allow<wbr/>Eval<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L52">view/geometry/node/StencilShape.ts:52</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Static global switch that specifies if the use of eval is allowed for
|
|
evaluating text content and images. Default is false. Set this to true
|
|
if stencils can not contain user input.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="defaultLocalized" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> default<wbr/>Localized</h3><div class="tsd-signature tsd-kind-icon">default<wbr/>Localized<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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L45">view/geometry/node/StencilShape.ts:45</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Static global variable that specifies the default value for the localized
|
|
attribute of the text element. Default is false.</p>
|
|
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="addPoints" class="tsd-anchor"></a><h3>add<wbr/>Points</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">add<wbr/>Points<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, pts<span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span>, rounded<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, arcSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, close<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, exclude<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span>, initialMove<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#addPoints">addPoints</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L796">view/geometry/Shape.ts:796</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Paints the given points with rounded corners.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>pts: <a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>rounded: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li><li><h5>arcSize: <span class="tsd-signature-type">number</span></h5></li><li><h5>close: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li><li><h5>exclude: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5></li><li><h5>initialMove: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="afterPaint" class="tsd-anchor"></a><h3>after<wbr/>Paint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">after<wbr/>Paint<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#afterPaint">afterPaint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L553">view/geometry/Shape.ts:553</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Invokes after paint was called.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="apply" class="tsd-anchor"></a><h3>apply</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">apply<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#apply">apply</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L941">view/geometry/Shape.ts:941</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Applies the style of the given <CellState> to the shape. This
|
|
implementation assigns the following styles to local fields:</p>
|
|
</div><div><ul>
|
|
<li><'fillColor'> => fill</li>
|
|
<li><'gradientColor'> => gradient</li>
|
|
<li><'gradientDirection'> => gradientDirection</li>
|
|
<li><'opacity'> => opacity</li>
|
|
<li>{@link Constants#STYLE_FILL_OPACITY} => fillOpacity</li>
|
|
<li>{@link Constants#STYLE_STROKE_OPACITY} => strokeOpacity</li>
|
|
<li><'strokeColor'> => stroke</li>
|
|
<li><'strokeWidth'> => strokewidth</li>
|
|
<li><'shadow'> => isShadow</li>
|
|
<li><'dashed'> => isDashed</li>
|
|
<li><'spacing'> => spacing</li>
|
|
<li><'startSize'> => startSize</li>
|
|
<li><'endSize'> => endSize</li>
|
|
<li><'rounded'> => isRounded</li>
|
|
<li><'startArrow'> => startArrow</li>
|
|
<li><'endArrow'> => endArrow</li>
|
|
<li><'rotation'> => rotation</li>
|
|
<li><'direction'> => direction</li>
|
|
<li><'glass'> => glass</li>
|
|
</ul>
|
|
<p>This keeps a reference to the <style>. If you need to keep a reference to
|
|
the cell, you can override this method and store a local reference to
|
|
state.cell or the <CellState> itself. If <outline> should be true, make
|
|
sure to set it before calling this method.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>state: <a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p><CellState> of the corresponding cell.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="augmentBoundingBox" class="tsd-anchor"></a><h3>augment<wbr/>Bounding<wbr/>Box</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">augment<wbr/>Bounding<wbr/>Box<span class="tsd-signature-symbol">(</span>bbox<span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#augmentBoundingBox">augmentBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1063">view/geometry/Shape.ts:1063</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Augments the bounding box with the strokewidth and shadow offsets.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bbox: <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="beforePaint" class="tsd-anchor"></a><h3>before<wbr/>Paint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">before<wbr/>Paint<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#beforePaint">beforePaint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L548">view/geometry/Shape.ts:548</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Invoked before paint is called.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="checkBounds" class="tsd-anchor"></a><h3>check<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">check<wbr/>Bounds<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#checkBounds">checkBounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L431">view/geometry/Shape.ts:431</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the bounds are not null and all of its variables are numeric.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="clear" class="tsd-anchor"></a><h3>clear</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">clear<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#clear">clear</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L351">view/geometry/Shape.ts:351</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Removes all child nodes and resets all CSS.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="computeAspect" class="tsd-anchor"></a><h3>compute<wbr/>Aspect</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">compute<wbr/>Aspect<span class="tsd-signature-symbol">(</span>shape<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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>, direction<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><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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L284">view/geometry/node/StencilShape.ts:284</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns a rectangle that contains the offset in x and y and the horizontal
|
|
and vertical scale in width and height used to draw this shape inside the
|
|
given <a href="Rectangle.html">Rectangle</a>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>shape: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p><a href="Shape.html">Shape</a> to be drawn.</p>
|
|
</div></div></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><span class="tsd-flag ts-flagOptional">Optional</span> direction: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional direction of the shape to be darwn.</p>
|
|
</div></div></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="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"><a id="drawChildren" class="tsd-anchor"></a><h3>draw<wbr/>Children</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">draw<wbr/>Children<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>, shape<span class="tsd-signature-symbol">: </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span>, aspect<span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a>, disableShadow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, paint<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/node/StencilShape.ts#L250">view/geometry/node/StencilShape.ts:250</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Draws this stencil inside the given bounds.</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><li><h5>shape: <a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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>node: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span></h5></li><li><h5>aspect: <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h5></li><li><h5>disableShadow: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>paint: <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"><a id="drawNode" class="tsd-anchor"></a><h3>draw<wbr/>Node</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">draw<wbr/>Node<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>, shape<span class="tsd-signature-symbol">: </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, aspect<span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a>, disableShadow<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, paint<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/node/StencilShape.ts#L329">view/geometry/node/StencilShape.ts:329</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Draws this stencil inside the given bounds.</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><li><h5>shape: <a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a></h5></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5></li><li><h5>aspect: <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h5></li><li><h5>disableShadow: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>paint: <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"><a id="drawShape" class="tsd-anchor"></a><h3>draw<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">draw<wbr/>Shape<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>, shape<span class="tsd-signature-symbol">: </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L192">view/geometry/node/StencilShape.ts:192</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Draws this stencil inside the given bounds.</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><li><h5>shape: <a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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"><a id="evaluateAttribute" class="tsd-anchor"></a><h3>evaluate<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">evaluate<wbr/>Attribute<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, attribute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, shape<span class="tsd-signature-symbol">: </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L172">view/geometry/node/StencilShape.ts:172</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets the attribute for the given name from the given node. If the attribute
|
|
does not exist then the text content of the node is evaluated and if it is
|
|
a function it is invoked with <shape> as the only argument and the return
|
|
value is used as the attribute value to be returned.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">Element</span></h5></li><li><h5>attribute: <span class="tsd-signature-type">string</span></h5></li><li><h5>shape: <a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="evaluateTextAttribute" class="tsd-anchor"></a><h3>evaluate<wbr/>Text<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">evaluate<wbr/>Text<wbr/>Attribute<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, attribute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, shape<span class="tsd-signature-symbol">: </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</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><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L156">view/geometry/node/StencilShape.ts:156</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Gets the given attribute as a text. The return value from <evaluateAttribute>
|
|
is used as a key to {@link Resources#get} if the localized attribute in the text
|
|
node is 1 or if <defaultLocalized> is true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">Element</span></h5></li><li><h5>attribute: <span class="tsd-signature-type">string</span></h5></li><li><h5>shape: <a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getArcSize" class="tsd-anchor"></a><h3>get<wbr/>Arc<wbr/>Size</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Arc<wbr/>Size<span class="tsd-signature-symbol">(</span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getArcSize">getArcSize</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L745">view/geometry/Shape.ts:745</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the arc size for the given dimension.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getCursor" class="tsd-anchor"></a><h3>get<wbr/>Cursor</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Cursor<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getCursor">getCursor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L990">view/geometry/Shape.ts:990</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the current cursor.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getGradientBounds" class="tsd-anchor"></a><h3>get<wbr/>Gradient<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Gradient<wbr/>Bounds<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getGradientBounds">getGradientBounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L700">view/geometry/Shape.ts:700</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the bounding box for the gradient box for this shape.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-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 tsd-is-inherited"><a id="getSvgScreenOffset" class="tsd-anchor"></a><h3>get<wbr/>Svg<wbr/>Screen<wbr/>Offset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Svg<wbr/>Screen<wbr/>Offset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getSvgScreenOffset">getSvgScreenOffset</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L302">view/geometry/Shape.ts:302</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns 0, or 0.5 if <strokewidth> % 2 == 1.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getTextRotation" class="tsd-anchor"></a><h3>get<wbr/>Text<wbr/>Rotation</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Text<wbr/>Rotation<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#getTextRotation">getTextRotation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1094">view/geometry/Shape.ts:1094</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the rotation for the text label.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="init" class="tsd-anchor"></a><h3>init</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">init<span class="tsd-signature-symbol">(</span>container<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#init">init</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L272">view/geometry/Shape.ts:272</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Initializes the shape by creaing the DOM node using <create>
|
|
and adding it into the given container.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>container: <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SVGElement</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>DOM node that will contain the shape.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="initStyles" class="tsd-anchor"></a><h3>init<wbr/>Styles</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">init<wbr/>Styles<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#initStyles">initStyles</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L281">view/geometry/Shape.ts:281</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the styles to their default values.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isHtmlAllowed" class="tsd-anchor"></a><h3>is<wbr/>Html<wbr/>Allowed</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Html<wbr/>Allowed<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#isHtmlAllowed">isHtmlAllowed</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L295">view/geometry/Shape.ts:295</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if HTML is allowed for this shape. This implementation always
|
|
returns false.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isPaintBoundsInverted" class="tsd-anchor"></a><h3>is<wbr/>Paint<wbr/>Bounds<wbr/>Inverted</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Paint<wbr/>Bounds<wbr/>Inverted<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#isPaintBoundsInverted">isPaintBoundsInverted</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1076">view/geometry/Shape.ts:1076</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the bounds should be inverted.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isRoundable" class="tsd-anchor"></a><h3>is<wbr/>Roundable</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Roundable<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#isRoundable">isRoundable</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L997">view/geometry/Shape.ts:997</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hook for subclassers.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="paint" class="tsd-anchor"></a><h3>paint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">paint<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#paint">paint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L558">view/geometry/Shape.ts:558</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Generic rendering code.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-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-inherited"><a id="paintEdgeShape" class="tsd-anchor"></a><h3>paint<wbr/>Edge<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">paint<wbr/>Edge<wbr/>Shape<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, pts<span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#paintEdgeShape">paintEdgeShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L740">view/geometry/Shape.ts:740</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Hook for subclassers. This implementation is empty.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>pts: <a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-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 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"><a id="parseConstraint" class="tsd-anchor"></a><h3>parse<wbr/>Constraint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">parse<wbr/>Constraint<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ConnectionConstraint.html" class="tsd-signature-type" data-tsd-kind="Class">ConnectionConstraint</a></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/node/StencilShape.ts#L142">view/geometry/node/StencilShape.ts:142</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Parses the given XML node and returns its <a href="ConnectionConstraint.html">ConnectionConstraint</a>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">Element</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="ConnectionConstraint.html" class="tsd-signature-type" data-tsd-kind="Class">ConnectionConstraint</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="parseConstraints" class="tsd-anchor"></a><h3>parse<wbr/>Constraints</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">parse<wbr/>Constraints<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L123">view/geometry/node/StencilShape.ts:123</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Reads the constraints from <desc> into <constraints> using
|
|
<parseConstraint>.</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="parseDescription" class="tsd-anchor"></a><h3>parse<wbr/>Description</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">parse<wbr/>Description<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/node/StencilShape.ts#L98">view/geometry/node/StencilShape.ts:98</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Reads <w0>, <h0>, <aspect>, <bgNodes> and <fgNodes> from <desc>.</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="reconfigure" class="tsd-anchor"></a><h3>reconfigure</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reconfigure<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#reconfigure">reconfigure</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L327">view/geometry/Shape.ts:327</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Reconfigures this shape. This will update the colors etc in
|
|
addition to the bounds or points.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="redraw" class="tsd-anchor"></a><h3>redraw</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">redraw<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#redraw">redraw</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L334">view/geometry/Shape.ts:334</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Creates and returns the SVG node(s) to represent this shape.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="redrawHtmlShape" class="tsd-anchor"></a><h3>redraw<wbr/>Html<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">redraw<wbr/>Html<wbr/>Shape<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#redrawHtmlShape">redrawHtmlShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1136">view/geometry/Shape.ts:1136</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="redrawShape" class="tsd-anchor"></a><h3>redraw<wbr/>Shape</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">redraw<wbr/>Shape<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#redrawShape">redrawShape</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L449">view/geometry/Shape.ts:449</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Updates the SVG or VML shape.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="releaseSvgGradients" class="tsd-anchor"></a><h3>release<wbr/>Svg<wbr/>Gradients</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">release<wbr/>Svg<wbr/>Gradients<span class="tsd-signature-symbol">(</span>grads<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">GradientMap</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#releaseSvgGradients">releaseSvgGradients</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1150">view/geometry/Shape.ts:1150</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Paints the line shape.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>grads: <span class="tsd-signature-type">GradientMap</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="resetStyles" class="tsd-anchor"></a><h3>reset<wbr/>Styles</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">reset<wbr/>Styles<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#resetStyles">resetStyles</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L889">view/geometry/Shape.ts:889</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Resets all styles.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setCursor" class="tsd-anchor"></a><h3>set<wbr/>Cursor</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Cursor<span class="tsd-signature-symbol">(</span>cursor<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#setCursor">setCursor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L982">view/geometry/Shape.ts:982</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the cursor on the given shape.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cursor: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The cursor to be used.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setTransparentBackgroundImage" class="tsd-anchor"></a><h3>set<wbr/>Transparent<wbr/>Background<wbr/>Image</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Transparent<wbr/>Background<wbr/>Image<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SVGElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#setTransparentBackgroundImage">setTransparentBackgroundImage</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1143">view/geometry/Shape.ts:1143</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets a transparent background CSS style to catch all events.</p>
|
|
</div><div><p>Paints the line shape.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">SVGElement</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="updateBoundingBox" class="tsd-anchor"></a><h3>update<wbr/>Bounding<wbr/>Box</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">update<wbr/>Bounding<wbr/>Box<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#updateBoundingBox">updateBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L1005">view/geometry/Shape.ts:1005</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Updates the <boundingBox> for this shape using <createBoundingBox> and
|
|
<augmentBoundingBox> and stores the result in <boundingBox>.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="updateBoundsFromPoints" class="tsd-anchor"></a><h3>update<wbr/>Bounds<wbr/>From<wbr/>Points</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">update<wbr/>Bounds<wbr/>From<wbr/>Points<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#updateBoundsFromPoints">updateBoundsFromPoints</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L360">view/geometry/Shape.ts:360</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Updates the bounds based on the points.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="updateTransform" class="tsd-anchor"></a><h3>update<wbr/>Transform</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">update<wbr/>Transform<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="Shape.html">Shape</a>.<a href="Shape.html#updateTransform">updateTransform</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/geometry/Shape.ts#L707">view/geometry/Shape.ts:707</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the scale and rotation on the given canvas.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>c: <a href="AbstractCanvas2D.html" class="tsd-signature-type" data-tsd-kind="Class">AbstractCanvas2D</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/DomHelpers.html">Dom<wbr/>Helpers</a></li><li class=" tsd-kind-namespace"><a href="../modules/cloneUtils.html">clone<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/constants.html">constants</a></li><li class=" tsd-kind-namespace"><a href="../modules/domUtils.html">dom<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/eventUtils.html">event<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/gestureUtils.html">gesture<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/mathUtils.html">math<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/stringUtils.html">string<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/styleUtils.html">style<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/xmlUtils.html">xml<wbr/>Utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="StencilShape.html" class="tsd-kind-icon">Stencil<wbr/>Shape</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="StencilShape.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#antiAlias" class="tsd-kind-icon">anti<wbr/>Alias</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#aspect" class="tsd-kind-icon">aspect</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#bgNode" class="tsd-kind-icon">bg<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#constraints" class="tsd-kind-icon">constraints</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#cursor" class="tsd-kind-icon">cursor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#desc" class="tsd-kind-icon">desc</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#dialect" class="tsd-kind-icon">dialect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#direction" class="tsd-kind-icon">direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#endSize" class="tsd-kind-icon">end<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#fgNode" class="tsd-kind-icon">fg<wbr/>Node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#fill" class="tsd-kind-icon">fill</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#flipH" class="tsd-kind-icon">flipH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#flipV" class="tsd-kind-icon">flipV</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#glass" class="tsd-kind-icon">glass</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#gradient" class="tsd-kind-icon">gradient</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#gradientDirection" class="tsd-kind-icon">gradient<wbr/>Direction</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#h0" class="tsd-kind-icon">h0</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#image" class="tsd-kind-icon">image</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#indicator" class="tsd-kind-icon">indicator</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.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="StencilShape.html#indicatorDirection" class="tsd-kind-icon">indicator<wbr/>Direction</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorGradientColor" class="tsd-kind-icon">indicator<wbr/>Gradient<wbr/>Color</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorImageSrc" class="tsd-kind-icon">indicator<wbr/>Image<wbr/>Src</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorShape" class="tsd-kind-icon">indicator<wbr/>Shape</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#indicatorStrokeColor" class="tsd-kind-icon">indicator<wbr/>Stroke<wbr/>Color</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isDashed" class="tsd-kind-icon">is<wbr/>Dashed</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isRounded" class="tsd-kind-icon">is<wbr/>Rounded</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isShadow" class="tsd-kind-icon">is<wbr/>Shadow</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#minSvgStrokeWidth" class="tsd-kind-icon">min<wbr/>Svg<wbr/>Stroke<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#node" class="tsd-kind-icon">node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#oldGradients" class="tsd-kind-icon">old<wbr/>Gradients</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#opacity" class="tsd-kind-icon">opacity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#originalPointerEvents" class="tsd-kind-icon">original<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#outline" class="tsd-kind-icon">outline</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#overlay" class="tsd-kind-icon">overlay</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#pointerEvents" class="tsd-kind-icon">pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#points" class="tsd-kind-icon">points</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#preserveImageAspect" class="tsd-kind-icon">preserve<wbr/>Image<wbr/>Aspect</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#rotation" class="tsd-kind-icon">rotation</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#scale" class="tsd-kind-icon">scale</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#shapePointerEvents" class="tsd-kind-icon">shape<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#spacing" class="tsd-kind-icon">spacing</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#startArrow" class="tsd-kind-icon">start<wbr/>Arrow</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#startSize" class="tsd-kind-icon">start<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#stencil" class="tsd-kind-icon">stencil</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#stencilPointerEvents" class="tsd-kind-icon">stencil<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#stroke" class="tsd-kind-icon">stroke</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#strokeOpacity" class="tsd-kind-icon">stroke<wbr/>Opacity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#strokeWidth" class="tsd-kind-icon">stroke<wbr/>Width</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#strokeWidthValue" class="tsd-kind-icon">stroke<wbr/>Width<wbr/>Value</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#style" class="tsd-kind-icon">style</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#svgPointerEvents" class="tsd-kind-icon">svg<wbr/>Pointer<wbr/>Events</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#svgStrokeTolerance" class="tsd-kind-icon">svg<wbr/>Stroke<wbr/>Tolerance</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#useSvgBoundingBox" class="tsd-kind-icon">use<wbr/>Svg<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#verticalTextRotation" class="tsd-kind-icon">vertical<wbr/>Text<wbr/>Rotation</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#visible" class="tsd-kind-icon">visible</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="StencilShape.html#w0" class="tsd-kind-icon">w0</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="StencilShape.html#allowEval" class="tsd-kind-icon">allow<wbr/>Eval</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="StencilShape.html#defaultLocalized" class="tsd-kind-icon">default<wbr/>Localized</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#addPoints" class="tsd-kind-icon">add<wbr/>Points</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#afterPaint" class="tsd-kind-icon">after<wbr/>Paint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#apply" class="tsd-kind-icon">apply</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#augmentBoundingBox" class="tsd-kind-icon">augment<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#beforePaint" class="tsd-kind-icon">before<wbr/>Paint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#checkBounds" class="tsd-kind-icon">check<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#clear" class="tsd-kind-icon">clear</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#computeAspect" class="tsd-kind-icon">compute<wbr/>Aspect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#configureCanvas" class="tsd-kind-icon">configure<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#create" class="tsd-kind-icon">create</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createBoundingBox" class="tsd-kind-icon">create<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createCanvas" class="tsd-kind-icon">create<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createSvgCanvas" class="tsd-kind-icon">create<wbr/>Svg<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#createTransparentSvgRectangle" class="tsd-kind-icon">create<wbr/>Transparent<wbr/>Svg<wbr/>Rectangle</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#destroy" class="tsd-kind-icon">destroy</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#destroyCanvas" class="tsd-kind-icon">destroy<wbr/>Canvas</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#drawChildren" class="tsd-kind-icon">draw<wbr/>Children</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#drawNode" class="tsd-kind-icon">draw<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#drawShape" class="tsd-kind-icon">draw<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#evaluateAttribute" class="tsd-kind-icon">evaluate<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#evaluateTextAttribute" class="tsd-kind-icon">evaluate<wbr/>Text<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getArcSize" class="tsd-kind-icon">get<wbr/>Arc<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getCursor" class="tsd-kind-icon">get<wbr/>Cursor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getGradientBounds" class="tsd-kind-icon">get<wbr/>Gradient<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getLabelBounds" class="tsd-kind-icon">get<wbr/>Label<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getLabelMargins" class="tsd-kind-icon">get<wbr/>Label<wbr/>Margins</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getRotation" class="tsd-kind-icon">get<wbr/>Rotation</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getShapeRotation" class="tsd-kind-icon">get<wbr/>Shape<wbr/>Rotation</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getSvgScreenOffset" class="tsd-kind-icon">get<wbr/>Svg<wbr/>Screen<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#getTextRotation" class="tsd-kind-icon">get<wbr/>Text<wbr/>Rotation</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#init" class="tsd-kind-icon">init</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#initStyles" class="tsd-kind-icon">init<wbr/>Styles</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isHtmlAllowed" class="tsd-kind-icon">is<wbr/>Html<wbr/>Allowed</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isPaintBoundsInverted" class="tsd-kind-icon">is<wbr/>Paint<wbr/>Bounds<wbr/>Inverted</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#isRoundable" class="tsd-kind-icon">is<wbr/>Roundable</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paint" class="tsd-kind-icon">paint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintBackground" class="tsd-kind-icon">paint<wbr/>Background</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintEdgeShape" class="tsd-kind-icon">paint<wbr/>Edge<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintForeground" class="tsd-kind-icon">paint<wbr/>Foreground</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintGlassEffect" class="tsd-kind-icon">paint<wbr/>Glass<wbr/>Effect</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#paintVertexShape" class="tsd-kind-icon">paint<wbr/>Vertex<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#parseConstraint" class="tsd-kind-icon">parse<wbr/>Constraint</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#parseConstraints" class="tsd-kind-icon">parse<wbr/>Constraints</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StencilShape.html#parseDescription" class="tsd-kind-icon">parse<wbr/>Description</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#reconfigure" class="tsd-kind-icon">reconfigure</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#redraw" class="tsd-kind-icon">redraw</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#redrawHtmlShape" class="tsd-kind-icon">redraw<wbr/>Html<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#redrawShape" class="tsd-kind-icon">redraw<wbr/>Shape</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#releaseSvgGradients" class="tsd-kind-icon">release<wbr/>Svg<wbr/>Gradients</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#resetStyles" class="tsd-kind-icon">reset<wbr/>Styles</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#setCursor" class="tsd-kind-icon">set<wbr/>Cursor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#setTransparentBackgroundImage" class="tsd-kind-icon">set<wbr/>Transparent<wbr/>Background<wbr/>Image</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#updateBoundingBox" class="tsd-kind-icon">update<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#updateBoundsFromPoints" class="tsd-kind-icon">update<wbr/>Bounds<wbr/>From<wbr/>Points</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StencilShape.html#updateTransform" class="tsd-kind-icon">update<wbr/>Transform</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html> |