Last updated

API / geotoolkit / schematics / widgets / reports / SchematicsWidgetElement / SchematicsWidgetElement

Class: SchematicsWidgetElement

reports.SchematicsWidgetElement.SchematicsWidgetElement

Define representation of DOM element

Hierarchy

Table of contents

Constructors
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddOverlayadjustPosition
applyOpacityapplyResponsiveStylecalculatePreferredSize
changeBaseLayerOrderchangeChildOrderchangeOverlayOrder
checkCollisionclearBaseLayersclearCache
clearChildrenclearOverlaysclone
connectStylecopyConstructordisconnectStyle
disposedrawBorderdropCache
enableClippingenableEventPropagationenablePickingChildren
enumerateNodesexecuteexportToImage
filtergetActiveElementgetAnimationStyle
getAutoModelLimitsModegetAutoModelLimitsStrategygetBaseLayer
getBaseLayersgetBaseLayersCountgetBounds
getCachegetChildgetChildren
getChildrenCountgetClassNamegetClipStyle
getContentElementgetContentOrientationgetContentsArea
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetDesiredHeight
getDesiredWidthgetDeviceLimitsgetDomElement
getElementStylegetElementTransformationsgetFillStyle
getIdgetInfiniteModegetInvalidateMethod
getLayoutgetLayoutStylegetLineStyle
getLocalTransformgetMarginsStylegetModelLimits
getNamegetOpacitygetOpacityBlendMode
getOverlaygetOverlayAtgetOverlays
getOverlaysCountgetPaddingStylegetParent
getPreferredElementBoundsgetPreferredSizegetProperties
getPropertygetPropertyKeysgetRenderingFilter
getResponsiveStylegetRootgetScaleScrollStrategy
getSceneTransformgetTaggetTool
getVisiblegetVisibleDeviceLimitsgetVisibleModelLimits
getWidgetElementgetWireModegetWorldTransform
getZIndexhasCssClasshasEventListener
hitTestindexOfBaseLayerindexOfChild
indexOfOverlayinitializeinsertBaseLayer
insertChildinsertOverlayinvalidate
invalidateLayoutinvalidateParentisClippingEnabled
isDesignTimeisDisposedisEventPropagationEnabled
isHorizontalFlipisLayoutInvalidatedisNotificationEnabled
isPickingChildrenEnabledisSelectableisSilent
isVerticalFlipmoveTonotify
notifyRootoffon
onBoundsChangedonChildAddedonChildRemoved
onConnectToSiteonDisconnectFromSiteonDomElementChanged
onKeyDownonParentChangedonVisibilityChanged
postRenderingpreRenderingrebuild
rebuildDomLayoutregisterAnimationStyleremoveBaseLayer
removeChildremoveCssClassremoveInvalidateHandler
removeOverlayrenderrenderAsync
renderBackgroundrenderBaseLayersrenderBaseLayersAsync
renderChildrenrenderChildrenAsyncrenderContent
renderContentAsyncrenderOverlaysrenderOverlaysAsync
resumeUpdaterotatescale
setActiveElementsetAnimationStylesetAutoModelLimitsMode
setAutoModelLimitsStrategysetBoundssetCache
setChildsetClipStylesetContentOrientation
setCsssetCssClasssetCssTransform
setDesiredHeightsetDesiredWidthsetDomElement
setElementStylesetFillStylesetHorizontalFlip
setIdsetInfiniteModesetLayout
setLayoutInvalidatedsetLayoutStylesetLineStyle
setLocalTransformsetMarginsStylesetModelLimits
setNamesetNotificationsetOpacity
setPaddingStylesetPropertiessetProperty
setRenderingFiltersetResponsiveStylesetScaleScrollStrategy
setSelectablesetSilentsetTag
setVerticalFlipsetVisiblesetVisibleModelLimits
setWireModesetZIndexshear
suspendUpdatetoStringtranslate
unregisterAnimationStyleupdateLayoutupdateSceneTransformation
updateStateupdateSuspendedupdateTimeStamp
enableSceneGraphNotificationfindParentgetClassName
isSceneGraphNotificationEnabledrebuildDomLayout
Css Properties
Name Type Description
automodellimitsmodebooleanAuto model limits mode
boundsRectDefine position of the group in the parent
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
contentorientationOrientationContent orientation
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
fillstylestringFill style
fillstyleFillStyleFill style
fillstyle-colorstringColor in CSS form
fillstyle-evenoddmodebooleanEven-odd fill mode
fillstyle-fillpatternPatternPattern
fillstyle-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
fillstyle-fillpattern-patternnamestringName of this pattern for indexing
fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
fillstyle-foregroundstringForeground color
fillstyle-patternPatternPattern
horizontalflipbooleanHorizontal axis goes from right to left
idstring | numberId of the node, its a unique identifier
infinitybooleanMode to render outside the model limits
layoutstyleLayoutStyleLayout style to be used for parent layout
layoutstyle-constraintSizeConstraintLayout constrains
layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
layoutstyle-floatstringFloat position
layoutstyle-positionstringLayout position
layoutstyle-sizenumber | stringLayout size
linestylestringLine style
linestyleLineStyleLine style
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
modellimitsRectDefine inner model coordinates of the group
namestringName of the node. It is often used for debugging purposes or to simplify queries
opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
opacityblendmodeBlendModeNode opacity mode to blend it
paddingnumber | stringIt has properties for specifying the padding for each side
pickingchildrenbooleanEnable picking children
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
verticalflipbooleanVertical axis goes from bottom to top
viewcachebooleanView cache to cache child nodes
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new SchematicsWidgetElement(options)

new SchematicsWidgetElement(options?)

Parameters

Name Type
Optional options{ alignment?: Alignment ; animationstyle?: Type ; annotationitemswrap?: boolean ; annotationssizes?: AnnotationSize ; applicationid?: string ; automodellimitsmode?: boolean ; automodellimitsstrategy?: ModelLimitsStrategy ; baselayers?: Node[] ; border?: Type ; bounds?: Type ; boundscalculation?: string ; center: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; children?: Node | Node[] ; clipping?: boolean ; clipstyle?: GraphicsPath | ClipStyle | Options ; contentorientation?: Orientation ; cssclass?: string ; csscursor?: string ; cssstyle?: string | CssStyle | Options ; data?: { elements?: Elements[] | WellBoreData ; trajectory?: Trajectory2d } | Data ; deviation?: DeviationOptions & { datamodellimits?: Type } ; dynamicproperties?: Record<string, any> ; east: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; fillstyle?: Type ; gap?: Partial<Record<"top" | "right" | "left" | "bottom", { fillstyle?: Type ; linestyle?: Type ; resizable?: boolean ; size?: string | number ; visible?: boolean }>> ; horizontalflip?: boolean ; id?: string | number ; infinity?: boolean ; isdatamodel?: boolean ; keepvisiblelimits?: boolean ; labeling?: { connectorshape?: ConnectorShape ; defaultlocation?: LocationType ; gap?: number ; labelsfilter?: LabelsFilter ; labelshape?: LabelShape | Options ; legendmode?: boolean ; locationmap?: { component: string[] ; id?: string | string[] ; location: LocationType }[] ; mode?: Mode } ; labelingstrategy?: LabelingStrategyBase ; layout?: Layout ; layoutstyle?: LayoutStyle<string | number> | Options<string | number> ; legend?: Omit<Options, keyof OptionsBase> & OptionsBase & { alignment?: AnchorType ; autosize?: boolean ; direction?: Direction ; fillstyle?: Type ; legenditem?: { gettext?: AbstractLegendItemInfoProvider | (componentNode: ComponentNode) => string ; symbol?: Options ; textstyle?: TextStyle | Options } ; linestyle?: Type ; offset?: { x: number ; y: number } ; options?: Options ; padding?: SpaceStyle<string | number> | Options<string | number> ; sizeisindevicespace?: boolean ; visible?: boolean } ; legendalignmentarea?: AnnotationLocation ; linestyle?: Type ; localtransform?: Transformation ; margins?: Type<string | number> ; model?: Group<Node> ; modellimits?: "auto" | Rect ; multidiameterselectionmode?: MultiDiameterSelectionMode ; name?: string ; none: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; north: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; northeast: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; northwest: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; opacity?: number ; opacityblendmode?: BlendMode ; overlays?: Node[] ; padding?: Type<string | number> ; pickingchildren?: boolean ; renderingfilter?: IFilter ; responsivestyle?: Options | ResponsiveStyle ; scalescrollstrategy?: Delegate ; scalesratio?: number ; scalesratiomode?: ScalesRatioMode ; sealevel?: Options & { animationstyle?: Type } & { clipstyle?: GraphicsPath | ClipStyle | Options ; csscursor?: string ; cssstyle?: string | CssStyle | Options ; localtransform?: Transformation ; margins?: Type<string | number> ; opacity?: number ; opacityblendmode?: BlendMode ; renderingfilter?: IFilter ; responsivestyle?: Options | ResponsiveStyle ; scalescrollstrategy?: Delegate ; transform?: string | Transformation } & { fillstyle?: Type ; linestyle?: Type } & { depth?: number ; symbol?: SymbolShape } ; selectable?: boolean ; south: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; southeast: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; southwest: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; tag?: any ; tools?: ToolsOptions & { rubberbandzoom?: Options & { mode?: RubberBandRenderMode } & { acceptemptyrect?: boolean ; autodisabled?: boolean ; fillstyle?: Type ; linestyle?: Type ; restrictionarea?: Rect } & { mode?: RubberBandRenderMode } ; tooltip?: Options } ; tooltip?: { autoflip?: boolean ; divelement?: HTMLElement ; gettext?: (componentNodes: ComponentNode[], options: { depthunit: string | AbstractUnit ; diameterunit: string | AbstractUnit ; point: Point }) => string } ; tooltipregistry?: ComponentNodeToolTipRegistry ; trackwidthstrategy?: TrackWidthStrategy ; trajectory?: { lines?: { linestyle?: Type ; visible?: boolean } ; stations?: { symbol?: Options ; visible?: boolean } } ; transform?: string | Transformation ; units?: UnitsOptions ; verticalflip?: boolean ; viewcache?: boolean | ViewCache ; visible?: boolean ; webglrendering?: boolean ; wellborenode?: Options & { animationstyle?: Type } & { clipstyle?: GraphicsPath | ClipStyle | Options ; csscursor?: string ; cssstyle?: string | CssStyle | Options ; localtransform?: Transformation ; margins?: Type<string | number> ; opacity?: number ; opacityblendmode?: BlendMode ; renderingfilter?: IFilter ; responsivestyle?: Options | ResponsiveStyle ; scalescrollstrategy?: Delegate ; transform?: string | Transformation } & { children?: Node | Node[] ; clipping?: boolean ; infinity?: boolean } & { baselayers?: Node[] ; overlays?: Node[] } & { automodellimitsmode?: boolean ; automodellimitsstrategy?: ModelLimitsStrategy ; bounds?: Type ; contentorientation?: Orientation ; fillstyle?: Type ; horizontalflip?: boolean ; layout?: Layout ; layoutstyle?: LayoutStyle<string | number> | Options<string | number> ; linestyle?: Type ; modellimits?: "auto" | Rect ; padding?: Type<string | number> ; pickingchildren?: boolean ; verticalflip?: boolean ; viewcache?: boolean | ViewCache } & { builder?: { compressed?: IViewModeBuilder ; keepaspectratio?: IViewModeBuilder ; regular?: IViewModeBuilder } ; data?: WellBoreData ; forceopenhole?: boolean ; highlight?: Highlight ; registry?: ComponentNodeFactoryRegistry ; renderinghints?: RenderingHints ; selection?: { cssclass?: string ; fillstyle?: Type ; linestyle?: Type } ; sortcomponents?: SortComponents ; units?: UnitsOptions ; valueviewmode?: ValueViewMode ; viewmode?: ViewMode | ViewModeInfo } & { componentsvisibility?: ComponentsVisibility ; factory?: (opts?: Options) => WellBoreNode } ; west: Node | Node[] | { size?: string | number | (number & Omit<number, "toString" | "toLocaleString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf">); title?: { name?: string; visible?: boolean; ... 47 more ...; size?: number & Omit<...>; } & Omit<...>; axis?: { ...; } & Omit<...>; } & Omit<{ axis?: { type?: DepthAxisType; } & Omit<Options & { animationstyle?: Type; } & { localtransform?: Transformation; transform?: string | Transformation; ... 8 more ...; csscursor?: string; } & { ...; } & OptionsBase & { ...; }, "type">; } & Omit<AnnotationOption, "axis">, keyof AnnotationOption> ; z-index?: number } & Omit<AnnotationOptions, "data" | "legend" | "opacity" | "transform" | "children" | "fillstyle" | "linestyle" | "bounds" | "model" | "alignment" | "animationstyle" | "modellimits" | "layoutstyle" | "infinity" | AnnotationLocation | "tooltip" | keyof Options | "localtransform" | "clipstyle" | "responsivestyle" | "cssstyle" | "csscursor" | "margins" | "renderingfilter" | "scalescrollstrategy" | "opacityblendmode" | "padding" | "verticalflip" | "horizontalflip" | "clipping" | "baselayers" | "overlays" | "contentorientation" | "pickingchildren" | "layout" | "automodellimitsmode" | "automodellimitsstrategy" | "viewcache" | "annotationitemswrap" | "border" | "annotationssizes" | "keepvisiblelimits" | "isdatamodel" | "applicationid" | "tools" | "wellborenode" | "labelingstrategy" | "gap" | "webglrendering" | "trajectory" | "trackwidthstrategy" | "units" | "labeling" | "deviation" | "boundscalculation" | "scalesratio" | "scalesratiomode" | "tooltipregistry" | "legendalignmentarea" | "sealevel" | "multidiameterselectionmode">

Overrides

WidgetElement.constructor

Methods

addBaseLayer

addBaseLayer(baseLayer): SchematicsWidgetElement

Add baseLayer to container

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer to be added

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.addBaseLayer


addChild

addChild(node): SchematicsWidgetElement

Add a child node

Parameters

Name Type Description
nodeNode | Iterator<Node> | Node[]the child node to be added

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.addChild


addCssClass

addCssClass(cssclass): SchematicsWidgetElement

Adds new css class to node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): SchematicsWidgetElement

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.addInvalidateHandler


addOverlay

addOverlay(overlay): SchematicsWidgetElement

Add overlay to container

Parameters

Name Type Description
overlayNode | Node[]overlay to be added

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.addOverlay


adjustPosition

adjustPosition(area?, vAlign?, hAlign?): SchematicsWidgetElement

Adjust position of node to specified area

Parameters

Name Type Description
Optional areaRectspecified area. Default to Parent Model Limits
Optional vAlignstringvertical alignment. It can be "top", "bottom", "center". Defaults to "top".
Optional hAlignstringhorizontal alignment It can be "left", "right", "center". Defaults to "left".

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.adjustPosition


applyOpacity

Protected applyOpacity(context): SchematicsWidgetElement

This method is called to apply opacity if it is specified on the rendering context. The default implementation sets global alpha on the rendering context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

WidgetElement.applyResponsiveStyle


calculatePreferredSize

Protected calculatePreferredSize(bounds, isDesignTime): Dimension

Should calculate and return preferred size

Parameters

Name Type Description
boundsRect
isDesignTimebooleanboolean flag

Returns

Dimension

Inherited from

WidgetElement.calculatePreferredSize


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): SchematicsWidgetElement

Changes the z-order of the baseLayer.

Parameters

Name Type Description
overlayNode
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): SchematicsWidgetElement

changes the z-order of the nodes being rendered.

Parameters

Name Type Description
nodeNodeany child added in the Composite node
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): SchematicsWidgetElement

Changes the z-order of the overlay.

Parameters

Name Type Description
overlayNodechild overlay
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.changeOverlayOrder


checkCollision

checkCollision(context): boolean

Check culling Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if node is collided

Inherited from

WidgetElement.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): SchematicsWidgetElement

Remove all child baseLayers from group

Parameters

Name Type Description
Optional disposeBaseLayersbooleanautomatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.clearBaseLayers


clearCache

clearCache(): SchematicsWidgetElement

Clear cache

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.clearCache


clearChildren

clearChildren(disposeChildren?): SchematicsWidgetElement

Remove all child nodes from this composite group

Parameters

Name Type Description
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): SchematicsWidgetElement

Remove all child overlays from group

Parameters

Name Type Description
Optional disposeOverlaysbooleanautomatically dispose overlays. If it is true then method dispose is called for each overlay, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.clearOverlays


clone

clone(): Element

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

Element

clone

Inherited from

WidgetElement.clone


connectStyle

connectStyle(style, type, callback): SchematicsWidgetElement

Connects style.

This convenience method subscribes a listener to given style for the specified type.
And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): SchematicsWidgetElement

Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.

Parameters

Name Type Description
srcElementSource to copy from
Optional deepCopybooleandeep copy

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): SchematicsWidgetElement

Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.disconnectStyle


dispose

dispose(): void

Dispose node. Clear all listeners and disconnect style to avoid memory leaks

Returns

void

Inherited from

WidgetElement.dispose


drawBorder

Protected drawBorder(localContext, bounds?): SchematicsWidgetElement

Draws a rectangle at the bounding box (in parent coordinates)

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.drawBorder


dropCache

dropCache(): SchematicsWidgetElement

Rebuild layout

Returns

SchematicsWidgetElement

Inherited from

WidgetElement.dropCache


enableClipping

enableClipping(doClip): SchematicsWidgetElement

Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.

Parameters

Name Type Description
doClipbooleanenable clipping on this node

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.enableClipping


enableEventPropagation

enableEventPropagation(enable): SchematicsWidgetElement

Enable event propagation from the node hierarchy from bottom to top

This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance.

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) => {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): SchematicsWidgetElement

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.enablePickingChildren


enumerateNodes

enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

Name Type Description
callbackCallback<Node>provided function
Optional targetQueryBuilder<any>target to pass to callback as a second parameter

Returns

void

Inherited from

WidgetElement.enumerateNodes


execute

execute(delegate): SchematicsWidgetElement

Executes delegate and return the result. It allows us to keep all initialization calls in one place,
and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: SchematicsWidgetElement) => voidFunction to execute

Returns

SchematicsWidgetElement

The result if any or this

Inherited from

WidgetElement.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: SchematicsWidgetElement) => T

Returns

T

Inherited from

WidgetElement.execute


exportToImage

exportToImage(showWireBorder?): Image

Export element to image (without rotation)

Parameters

Name Type Description
Optional showWireBorderbooleanshow wire border

Returns

Image

image

Inherited from

WidgetElement.exportToImage


filter

Protected filter(context): boolean

Filter node

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

flag filter flag ("true" to render node; "false" otherwise)

Inherited from

WidgetElement.filter


getActiveElement

getActiveElement(): Element | Element

Get active element

Returns

Element | Element

Inherited from

WidgetElement.getActiveElement


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

WidgetElement.getAnimationStyle


getAutoModelLimitsMode

getAutoModelLimitsMode(): boolean

Get Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds

Returns

boolean

mode

Inherited from

WidgetElement.getAutoModelLimitsMode


getAutoModelLimitsStrategy

getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

WidgetElement.getAutoModelLimitsStrategy


getBaseLayer

getBaseLayer(index): Node

Return baseLayer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the baseLayer for

Returns

Node

track

Inherited from

WidgetElement.getBaseLayer


getBaseLayers

getBaseLayers<S>(predicate, modify?): Iterator<Node>

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

Inherited from

WidgetElement.getBaseLayers

getBaseLayers(filter?, modify?): Iterator<Node>

Returns an iterator for child baseLayers. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

WidgetElement.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

WidgetElement.getBaseLayersCount


getBounds

getBounds(): Rect

Get the bounds in the parents model space. If bounds are not set, then parent model limits are used.

Returns

Rect

current bounds

Inherited from

WidgetElement.getBounds


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

WidgetElement.getCache


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

WidgetElement.getChild


getChildren

getChildren<S>(predicate, modify?): Iterator<S>

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<S>

Inherited from

WidgetElement.getChildren

getChildren(filter?, modify?): Iterator<Node>

Returns an iterator for child nodes. The iterator does not support adding or deleting items from children by default. If it is necessary to modify a collection of children, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getChildren(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all nodes if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child nodes.

Inherited from

WidgetElement.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

WidgetElement.getChildrenCount


getClassName

getClassName(): string

Returns

string

Inherited from

WidgetElement.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

WidgetElement.getClipStyle


getContentElement

getContentElement(): ElementContent

Return inner content element

Returns

ElementContent

Inherited from

WidgetElement.getContentElement


getContentOrientation

getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

WidgetElement.getContentOrientation


getContentsArea

getContentsArea(transformation?): Rect

Return area without paddings. Model limits are mapped to content area, where children are layout.

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

WidgetElement.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

getContentsTransform() retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

WidgetElement.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

WidgetElement.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

WidgetElement.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

WidgetElement.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

WidgetElement.getCssTransform


getDesiredHeight

getDesiredHeight(): string | number

Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired height ("undefined" by default)

Inherited from

WidgetElement.getDesiredHeight


getDesiredWidth

getDesiredWidth(): string | number

Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired width ("undefined" by default)

Inherited from

WidgetElement.getDesiredWidth


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

WidgetElement.getDeviceLimits


getDomElement

getDomElement(): AbstractElement

Returns DOM element

Returns

AbstractElement

return DOM element

Inherited from

WidgetElement.getDomElement


getElementStyle

getElementStyle(): ElementStyle

Returns element style

Returns

ElementStyle

return element style

Inherited from

WidgetElement.getElementStyle

getElementStyle(elementStyle): any

Parameters

Name Type
elementStylestring

Returns

any

Inherited from

WidgetElement.getElementStyle


getElementTransformations

getElementTransformations(bounds?): Transformation[]

Return array of transformations

Parameters

Name Type Description
Optional boundsRectelement bounds

Returns

Transformation[]

array of transformations

Inherited from

WidgetElement.getElementTransformations


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

WidgetElement.getFillStyle


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

WidgetElement.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

WidgetElement.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

WidgetElement.getInvalidateMethod


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

WidgetElement.getLayout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

WidgetElement.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

WidgetElement.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

WidgetElement.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

WidgetElement.getMarginsStyle


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

WidgetElement.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

WidgetElement.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

WidgetElement.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

WidgetElement.getOpacityBlendMode


getOverlay

getOverlay(index): Node

Return overlay at specified index

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

WidgetElement.getOverlay


getOverlayAt

getOverlayAt(index): Node

Return overlay at specified index

Deprecated

since 4.2 use getOverlay instead

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

WidgetElement.getOverlayAt


getOverlays

getOverlays<S>(predicate, modify?): Iterator<Node>

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

Inherited from

WidgetElement.getOverlays

getOverlays(filter?, modify?): Iterator<Node>

Returns an iterator for child overlays. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

WidgetElement.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

WidgetElement.getOverlaysCount


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

WidgetElement.getPaddingStyle


getParent

getParent(): ElementContent

Return parent node

Returns

ElementContent

parent node

Inherited from

WidgetElement.getParent


getPreferredElementBounds

getPreferredElementBounds(limits, cssLayout): Rect

Calculate layout bounds

Parameters

Name Type Description
limitsRectcontainer limits
cssLayoutLayoutStyle<string | number>element layout

Returns

Rect

preferred bounds

Inherited from

WidgetElement.getPreferredElementBounds


getPreferredSize

getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

WidgetElement.getPreferredSize


getProperties

getProperties(context?): OptionsOut<Node>

Gets all the properties pertaining to this object

Parameters

Name Type Description
Optional contextISerializationContextserialization context

Returns

OptionsOut<Node>

properties object

Inherited from

WidgetElement.getProperties


getProperty

getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

WidgetElement.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

WidgetElement.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

WidgetElement.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

WidgetElement.getResponsiveStyle


getRoot

getRoot(): CompositeNode<Node>

Returns root node.
If node doesn't have parent then it returns itself.

Returns

CompositeNode<Node>

the root node

Inherited from

WidgetElement.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

WidgetElement.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

WidgetElement.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

WidgetElement.getTag


getTool

getTool(): CompositeTool

Returns root tool associated to this element

Returns

CompositeTool

Inherited from

WidgetElement.getTool


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

WidgetElement.getVisible


getVisibleDeviceLimits

getVisibleDeviceLimits(ignoreModelLimits?): Rect

Return visible device limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

WidgetElement.getVisibleDeviceLimits


getVisibleModelLimits

getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

WidgetElement.getVisibleModelLimits


getWidgetElement

getWidgetElement(): CompositeSchematicsWidget

Returns

CompositeSchematicsWidget

Overrides

WidgetElement.getWidgetElement


getWireMode

getWireMode(): boolean

Returns Wire mode

Returns

boolean

return wire mode

Inherited from

WidgetElement.getWireMode


getWorldTransform

getWorldTransform(): Transformation

Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.

Returns

Transformation

Inherited from

WidgetElement.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

WidgetElement.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

WidgetElement.hasCssClass


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

WidgetElement.hasEventListener


hitTest

hitTest(eventArgs): Element

Return Dom element

Parameters

Name Type Description
eventArgsEventArgsevent args

Returns

Element

return selected object if any

Inherited from

WidgetElement.hitTest


indexOfBaseLayer

indexOfBaseLayer(baseLayer): number

Return index of overlay ( index of the specified child or -1 if baseLayer is not found)

Parameters

Name Type Description
baseLayerNodebaseLayer to check index

Returns

number

Inherited from

WidgetElement.indexOfBaseLayer


indexOfChild

indexOfChild(node): number

Return index of child ( index of the specified child or -1 if node is not found)

Parameters

Name Type Description
nodeNodenode to check index

Returns

number

Inherited from

WidgetElement.indexOfChild


indexOfOverlay

indexOfOverlay(overlay): number

Return index of overlay ( index of the specified child or -1 if overlay is not found)

Parameters

Name Type Description
overlayNodeoverlay to check index

Returns

number

Inherited from

WidgetElement.indexOfOverlay


initialize

initialize(json?, context?): SchematicsWidgetElement

Initialize widget element

Parameters

Name Type Description
Optional jsonobjectobject with data to initialize
Optional contextParserContextparser context

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.initialize


insertBaseLayer

insertBaseLayer(index, baseLayer): SchematicsWidgetElement

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.insertBaseLayer


insertChild

insertChild(index, node): SchematicsWidgetElement

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.insertChild


insertOverlay

insertOverlay(index, overlay): SchematicsWidgetElement

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.insertOverlay


invalidate

invalidate(bounds?, force?): SchematicsWidgetElement

Invalidate node

Parameters

Name Type Description
Optional boundsRectoptional rectangular area to be invalidated, or force flag if rectangle is empty
Optional forcebooleanoptional boolean parameter that can force invalidation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.invalidate


invalidateLayout

invalidateLayout(propagate?): SchematicsWidgetElement

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): SchematicsWidgetElement

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.invalidateParent


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

WidgetElement.isClippingEnabled


isDesignTime

Protected isDesignTime(): boolean

Return Design time state

Returns

boolean

Inherited from

WidgetElement.isDesignTime


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

WidgetElement.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

WidgetElement.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

WidgetElement.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

WidgetElement.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

WidgetElement.isNotificationEnabled


isPickingChildrenEnabled

isPickingChildrenEnabled(): boolean

Returns if picking children is enabled or not for this node.

Returns

boolean

pickingChildren

Inherited from

WidgetElement.isPickingChildrenEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

WidgetElement.isSelectable


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

WidgetElement.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

WidgetElement.isVerticalFlip


moveTo

moveTo(area, vAlign?, hAlign?): SchematicsWidgetElement

MoveTo position of node to specified area

Parameters

Name Type Description
areaRectspecified area
Optional vAlignstringvertical alignment. It can be "top", "bottom", "center".
Optional hAlignstringhorizontal alignment It can be "left", "right", "center".

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.moveTo


notify

notify<E>(type, source, args?): SchematicsWidgetElement

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceWidgetElementsource who called the event
Optional argsEventMap[E]event arguments

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.notify


notifyRoot

Protected notifyRoot(event, source, args?): Node

Notify an even to root node

Parameters

Name Type Description
eventstringtype of event
sourceNodesource who called the event
Optional argsanyevent arguments

Returns

Node

this

Inherited from

WidgetElement.notifyRoot


off

off<E>(type?, callback?): SchematicsWidgetElement

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: SchematicsWidgetElement, args: EventMap[E]) => voidfunction to be called

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.off


on

on<E>(type, callback): SchematicsWidgetElement

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: SchematicsWidgetElement, args: EventMap[E]) => voidto be called

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.on


onBoundsChanged

Protected onBoundsChanged(bounds): SchematicsWidgetElement

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.onBoundsChanged


onChildAdded

Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node>added child

Returns

void

Inherited from

WidgetElement.onChildAdded


onChildRemoved

Protected onChildRemoved(child): void

This method is called it child or children are removed

Parameters

Name Type Description
childNoderemoved child

Returns

void

Inherited from

WidgetElement.onChildRemoved


onConnectToSite

Protected onConnectToSite(site): SchematicsWidgetElement

On de-initialize design time (happens only once)

Parameters

Name Type Description
siteISiteElementsite element

Returns

SchematicsWidgetElement

Inherited from

WidgetElement.onConnectToSite


onDisconnectFromSite

Protected onDisconnectFromSite(site): SchematicsWidgetElement

On initialize design time (happens only once)

Parameters

Name Type Description
siteISiteElementsite element

Returns

SchematicsWidgetElement

Inherited from

WidgetElement.onDisconnectFromSite


onDomElementChanged

Protected onDomElementChanged(eventType, sender, eventArgs): SchematicsWidgetElement

Update element from domElement

Parameters

Name Type Description
eventTypestringevent type
senderElement
eventArgsNodeEventArgsargument args

Returns

SchematicsWidgetElement

Inherited from

WidgetElement.onDomElementChanged


onKeyDown

onKeyDown(nativeEventArgs): boolean

Process native keyboard event

Parameters

Name Type Description
nativeEventArgsEventarguments of the DOM event

Returns

boolean

Inherited from

WidgetElement.onKeyDown


onParentChanged

Protected onParentChanged(node): SchematicsWidgetElement

This method is called when parent changes. Do not call it directly.

Parameters

Name Type Description
nodeNodenode to change parent

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

This method is called if visibility is changed. Send event Events.VisibilityChanged

Returns

void

Inherited from

WidgetElement.onVisibilityChanged


postRendering

Protected postRendering(context, callback?): void

To be called after rendering, used for PDF output

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering

Returns

void

Inherited from

WidgetElement.postRendering


preRendering

Protected preRendering(context, callback?): void

Occurs before child rendering

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering of geometry

Returns

void

Inherited from

WidgetElement.preRendering


rebuild

rebuild(force?, changes?): SchematicsWidgetElement

Rebuild node. This method resets state, cache, and invalidate node.

Parameters

Name Type Description
Optional forcebooleanoptional boolean parameter that can force invalidation
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.rebuild


rebuildDomLayout

rebuildDomLayout(): SchematicsWidgetElement

Rebuild element DOM layout

Returns

SchematicsWidgetElement

Inherited from

WidgetElement.rebuildDomLayout


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

WidgetElement.registerAnimationStyle


removeBaseLayer

removeBaseLayer(baseLayer): SchematicsWidgetElement

Remove child baseLayer

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer or array of nodes to be removed

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): SchematicsWidgetElement

Remove child node

Parameters

Name Type Description
nodeNode | Node[]node or array of nodes to be removed
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.removeChild


removeCssClass

removeCssClass(cssclass): SchematicsWidgetElement

Removes css class from node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): SchematicsWidgetElement

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): SchematicsWidgetElement

Remove child overlay

Parameters

Name Type Description
overlayNode | Node[]overlay or array of nodes to be removed

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.removeOverlay


render

render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

WidgetElement.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. This implementation doesn't support cache for now.

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function

Returns

void

Inherited from

WidgetElement.renderAsync


renderBackground

Protected renderBackground(context, bounds): SchematicsWidgetElement

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): SchematicsWidgetElement

Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render baseLayers

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.renderBaseLayers


renderBaseLayersAsync

Protected renderBaseLayersAsync(context, callback): void

Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

WidgetElement.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

WidgetElement.renderChildren


renderChildrenAsync

Protected renderChildrenAsync(context, callback): void

Render children async

Parameters

Name Type Description
contextRenderingContextRendering Context
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

WidgetElement.renderChildrenAsync


renderContent

Protected renderContent(context): void

render to specified context. This method calls preRendering, renderChildren, postRendering

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

WidgetElement.renderContent


renderContentAsync

Protected renderContentAsync(context, callback): void

Render children in asynchronous mode

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

WidgetElement.renderContentAsync


renderOverlays

Protected renderOverlays(context): SchematicsWidgetElement

Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render overlays

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.renderOverlays


renderOverlaysAsync

Protected renderOverlaysAsync(context, callback): void

Render overlays on top of cache in asynchronous mode. This method calls renderOverlays

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

WidgetElement.renderOverlaysAsync


resumeUpdate

resumeUpdate(rebuild?, changes?): SchematicsWidgetElement

Resume auto update

Parameters

Name Type Description
Optional rebuildbooleanforce rebuild
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.resumeUpdate


rotate

rotate(theta, x, y): SchematicsWidgetElement

Rotate bounds around a given coordinate

Parameters

Name Type Description
thetanumberangle to rotate node, in radians
xnumberx coordinate to rotate around
ynumbery coordinate to rotate around

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.rotate


scale

scale(xx, yy): SchematicsWidgetElement

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.scale


setActiveElement

setActiveElement(activeElement): SchematicsWidgetElement

Set active element

Parameters

Name Type Description
activeElementElement | Elementactive element

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setActiveElement


setAnimationStyle

setAnimationStyle(animationStyle): SchematicsWidgetElement

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

SchematicsWidgetElement

Inherited from

WidgetElement.setAnimationStyle


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): SchematicsWidgetElement

Set Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds. This is convenient method. It creates AutoModelLimitsStrategy

Parameters

Name Type Description
modebooleanModel Limits Logics to be used

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): SchematicsWidgetElement

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setAutoModelLimitsStrategy


setBounds

setBounds(bounds): SchematicsWidgetElement

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsTypebound of the node in the parent coordinates

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setBounds


setCache

setCache(cache, rebuild?): SchematicsWidgetElement

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setCache


setChild

setChild(index, node): SchematicsWidgetElement

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setChild


setClipStyle

setClipStyle(style): SchematicsWidgetElement

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setClipStyle


setContentOrientation

setContentOrientation(orientation): SchematicsWidgetElement

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setContentOrientation


setCss

setCss(style, merge?): SchematicsWidgetElement

Sets CSS style. This style will be applied for all inserted elements

Parameters

Name Type Description
styleTypeCSS style to be applied to inserted elements
Optional mergebooleanmerge flag

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setCss


setCssClass

setCssClass(name): SchematicsWidgetElement

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setCssClass


setCssTransform

setCssTransform(transform): SchematicsWidgetElement

Set CSS transformation

Parameters

Name Type Description
transformstring | Transformationtransformation css transformation instruction or Transformation instance

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setCssTransform


setDesiredHeight

setDesiredHeight(value, silent?): SchematicsWidgetElement

Sets desired height of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired height to set, use 'auto' for automatic desired height
Optional silentbooleansilent setting

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): SchematicsWidgetElement

Sets desired width of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired width to set
Optional silentbooleansilent setting

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setDesiredWidth


setDomElement

setDomElement(domElement): SchematicsWidgetElement

Set DOM element

Parameters

Name Type Description
domElementElementDOM element

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setDomElement


setElementStyle

setElementStyle(elementStyle, styleValue?): SchematicsWidgetElement

Set element style

Parameters

Name Type Description
elementStylestring | Record<string, any> | ElementStyleelement style
Optional styleValueanyobject of value for element style

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setElementStyle


setFillStyle

setFillStyle(fillStyle, merge?): SchematicsWidgetElement

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setFillStyle


setHorizontalFlip

setHorizontalFlip(enable): SchematicsWidgetElement

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setHorizontalFlip


setId

setId(id): SchematicsWidgetElement

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setId


setInfiniteMode

setInfiniteMode(infinityMode): SchematicsWidgetElement

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setInfiniteMode


setLayout

setLayout(layout): SchematicsWidgetElement

Associate layout with a group.

Parameters

Name Type Description
layoutRecord<string, any> | Layoutlayout instance to be set or layout properties to apply

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setLayout


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

WidgetElement.setLayoutInvalidated


setLayoutStyle

setLayoutStyle(layoutStyle, silent?, merge?): SchematicsWidgetElement

specify desired layout style

Parameters

Name Type Description
layoutStyleLayoutStyle<string | number> | Options<string | number>desired layout style
Optional silentbooleansilent setting
Optional mergebooleantrue if you want to merge layoutStyle with existing attribute, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): SchematicsWidgetElement

Sets border color Returns this

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): SchematicsWidgetElement

Sets local transformation to be used to transform from local to parent coordinate

Parameters

Name Type Description
localTransformTransformationlocal transformation for this node
Optional forcebooleanboolean flag to force update event if transformations are equal, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): SchematicsWidgetElement

Sets margins style

Parameters

Name Type Description
marginsType<string | number>margins style
Optional mergebooleantrue if you want to merge marginsStyle with existing attribute, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setMarginsStyle


setModelLimits

setModelLimits(limits): SchematicsWidgetElement

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setModelLimits


setName

setName(name): SchematicsWidgetElement

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setName


setNotification

setNotification(notify, force?): SchematicsWidgetElement

set notification state

Parameters

Name Type Description
notifybooleanflag set to invalidate parent or not
Optional forcebooleantrue if parent should be invalidated immediately

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setNotification


setOpacity

setOpacity(opacity, blendMode?): SchematicsWidgetElement

Sets node opacity

Parameters

Name Type Description
opacitynumbernode opacity from 0 to 1
Optional blendModeBlendModeopacity blend mode. If it is normal, opacity will be replaced.

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setOpacity


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): SchematicsWidgetElement

Sets padding style

Parameters

Name Type Description
paddingStyleType<string | number>padding style
Optional mergebooleantrue if you want to merge paddingStyle with existing attribute, false by default

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setPaddingStyle


setProperties

setProperties(properties?): SchematicsWidgetElement

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptions<Node>An object containing the properties to set

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setProperties


setProperty

setProperty(name, value): SchematicsWidgetElement

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setProperty


setRenderingFilter

setRenderingFilter(filter): SchematicsWidgetElement

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): SchematicsWidgetElement

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): SchematicsWidgetElement

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setScaleScrollStrategy


setSelectable

setSelectable(selectable): SchematicsWidgetElement

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setSelectable


setSilent

setSilent(bool): SchematicsWidgetElement

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setSilent


setTag

setTag(tag): SchematicsWidgetElement

Allows the user to associate any arbitrary object with the node.

Parameters

Name Type Description
taganyThe object to be associated with the node.

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setTag


setVerticalFlip

setVerticalFlip(flip): SchematicsWidgetElement

Set vertical flip of the representation

Parameters

Name Type Description
flipbooleanflag to set the vertical flip of the representation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setVerticalFlip


setVisible

setVisible(value): SchematicsWidgetElement

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setVisible


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): SchematicsWidgetElement

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setVisibleModelLimits


setWireMode

setWireMode(enabled): SchematicsWidgetElement

Set Wire mode

Parameters

Name Type Description
enabledbooleanwire mode

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setWireMode


setZIndex

setZIndex(value): SchematicsWidgetElement

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.setZIndex


shear

shear(shx, shy): SchematicsWidgetElement

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.shear


suspendUpdate

suspendUpdate(): SchematicsWidgetElement

Suspend auto update

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.suspendUpdate


toString

toString(): string

Returns a string representation of this object (generally the classname)

Returns

string

A string representation

Inherited from

WidgetElement.toString


translate

translate(tx, ty): SchematicsWidgetElement

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

WidgetElement.unregisterAnimationStyle


updateLayout

updateLayout(targets?): SchematicsWidgetElement

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

Name Type Description
Optional targetsILayoutable[]optional parameter about which element to layout

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.updateLayout


updateSceneTransformation

updateSceneTransformation(): SchematicsWidgetElement

Update scene transformation

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.updateSceneTransformation


updateState

updateState(regions?, changes?): SchematicsWidgetElement

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles in the parent coordinates
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

WidgetElement.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): SchematicsWidgetElement

Update time stamp to indicate that Node or Children has been changed.

Returns

SchematicsWidgetElement

this

Inherited from

WidgetElement.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

WidgetElement.enableSceneGraphNotification


findParent

Static findParent<T>(node, classType, filter?): InstanceType<T>

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T>

Inherited from

WidgetElement.findParent

Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

WidgetElement.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

WidgetElement.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

WidgetElement.isSceneGraphNotificationEnabled


rebuildDomLayout

Static rebuildDomLayout(element): IElement & Node

Rebuild DOM layout

Parameters

Name Type Description
elementIElement & Nodeelement

Returns

IElement & Node

Inherited from

WidgetElement.rebuildDomLayout