Last updated

API / geotoolkit / widgets / AnnotatedWidget / AnnotatedWidget

Class: AnnotatedWidget

widgets.AnnotatedWidget.AnnotatedWidget

The AnnotatedWidget widget extends the BaseWidget using an AnnotatedNode. It has a center model Group and a set of eight annotations on each side to display axes, titles, or legends. It has settings to specify sizes of the annotations and create axis. It also provides scrollbars and capabilities to zoom for the center element.

A connect function is used to synchronize the object with a model. It propagates limits and scroll position, so while scrolling the connect function synchronizes scale coefficients.

The main way to configure and customize the widget is to use the setOptions() function that provides a comprehensible way of changing the default look and feel of the widget.
The constructor calls the functions .initializeLayout() and .initializeTools().

See AnnotatedNode for more details on the annotation layout and features.

It also includes some default tools:

  • cross-hair [CrossHair](../classes/geotoolkit.controls.tools.crosshair.crosshair.md)
  • panning [Panning](../classes/geotoolkit.controls.tools.panning.panning.md)
  • zoom [Zoom](../classes/geotoolkit.controls.tools.zoom.zoom.md)
  • pick [Selection](../classes/geotoolkit.controls.tools.selection.selection.md)
  • rubberband [RubberBand](../classes/geotoolkit.controls.tools.rubberband.rubberband.md)
  • horizontalscroll [HorizontalScroll](../classes/geotoolkit.controls.tools.scroll.horizontalscroll.horizontalscroll.md)
  • verticalscroll [VerticalScroll](../classes/geotoolkit.controls.tools.scroll.verticalscroll.verticalscroll.md)
The widget also provides built-in export to PDF, please refer to the example below

Example

import {AnnotatedWidget} from '@int/geotoolkit/widgets/AnnotatedWidget';
import {AnnotationLocation} from '@int/geotoolkit/layout/AnnotationLocation';
import {Axis} from '@int/geotoolkit/axis/Axis';
import {TickPosition, LabelPosition} from '@int/geotoolkit/axis/TickInfo';
import {Orientation} from '@int/geotoolkit/util/Orientation';
import {AnchorType} from '@int/geotoolkit/util/AnchorType';
import {AdaptiveTickGenerator} from '@int/geotoolkit/axis/AdaptiveTickGenerator';

new AnnotatedWidget({
'model': model, // instance of @int/geotoolkit/scene/Group
'annotationssizes': {
'north': 5, 'south': 60, 'east': 12, 'west': 80
},
'north': [],
'south': [new Axis({
'tickposition': TickPosition.Top,
'orientation': Orientation.Horizontal,
'labelposition': LabelPosition.Top,
'title': {
'text': 'Day',
'visible': true,
'textstyle': {
'color': '#757575'
},
'alignment': AnchorType.Center
},
'tickgenerator': new AdaptiveTickGenerator()
})],
'west': [new Axis({
'tickposition': TickPosition.Right,
'labelposition': LabelPosition.Right,
'orientation': Orientation.Vertical,
'title': {
'text': 'Volume (gal)',
'visible': true,
'textstyle': {
'color': '#757575'
},
'alignment': AnchorType.Center
},
'tickgenerator': new AdaptiveTickGenerator()
})],
'east': [],
'tools': {
'horizontalscroll': {
'visible': false
},
'verticalscroll': {
'visible': false
}
}
});

Example

// Exporting to a PDF with virtual model limits. This will print the canvas in its entirety,
// regardless of the zoom state. Please refer to the Export tutorials for more export options.
import {ScalingOptions} from '@int/geotoolkit/scene/exports/ScalingOptions'
...
const pdfOptions = {
'printsettings': {'scaling': ScalingOptions.FitWidth},
'modellimits': widget.getModel().getModelLimits()
};
widget.exportToPdf(pdfOptions);

Example

// AnnotatedWidget has an optional border and accepts color or line style json
import {Group} from '@int/geotoolkit/scene/Group';
new AnnotatedWidget({
'model': new Group(),
'border': {
'color': 'red'
}
});

Example

// This example shows how to attach a listener to the axis, and listen to hover events
// pertaining to the axis object. This can help if you want to zoom only x-axis or only y-axis
import {PointerMode} from '@int/geotoolkit/controls/tools/PointerMode';
const widget = new AnnotatedWidget({
...
'south': [axisSouth],
...
});

axisSouth.on(PointerMode.Hover, (type, node, args) => {
// fired when mouse hovers over axisSouth
});

Hierarchy

Implements

Table of contents

Constructors
Methods
addAxisaddBaseLayeraddChild
addCssClassaddInvalidateHandleraddLegend
addLegendInteraladdOverlayaddTitle
adjustPositionapplyOpacityapplyResponsiveStyle
beginExportchangeBaseLayerOrderchangeChildOrder
changeOverlayOrdercheckCollisionclearBaseLayers
clearCacheclearChildrenclearOverlays
cloneconnectconnectStyle
connectToolcopyConstructordisconnect
disconnectStyledisconnectTooldispose
drawBorderenableClippingenableEventPropagation
enablePickingChildrenendExportenumerateNodes
executeexportToPdffilter
fitToBoundsgetAnimationStylegetAnnotation
getAnnotationSizegetAutoModelLimitsModegetAutoModelLimitsStrategy
getBaseLayergetBaseLayersgetBaseLayersCount
getBoundsgetCachegetCenterModelLimits
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentOrientation
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDatagetDesiredHeightgetDesiredWidth
getDeviceLimitsgetExportElementgetExportLimits
getExportScalegetExportStategetFillStyle
getIdgetInfiniteModegetInvalidateMethod
getLayoutgetLayoutStylegetLegendLayer
getLineStylegetLocalTransformgetManipulatorLayer
getMarginsStylegetModelgetModelLimits
getNamegetOpacitygetOpacityBlendMode
getOverlaygetOverlayAtgetOverlayLayer
getOverlaysgetOverlaysCountgetPaddingStyle
getParentgetPreferredSizegetProperties
getPropertygetPropertyKeysgetRenderingFilter
getResponsiveStylegetRootgetScaleScrollStrategy
getSceneTransformgetTaggetTool
getToolByNamegetToolByTypegetToolsOptions
getVisiblegetVisibleCenterModelLimitsgetVisibleDeviceLimits
getVisibleModelLimitsgetWorldTransformgetZIndex
hasCssClasshasEventListenerindexOfBaseLayer
indexOfChildindexOfOverlayinitializeFloatingAnnotationTool
initializeLayoutinitializeToolsinsertAxis
insertBaseLayerinsertChildinsertOverlay
invalidateinvalidateLayoutinvalidateParent
isClippingEnabledisDisposedisEventPropagationEnabled
isHorizontalFlipisLayoutInvalidatedisNotificationEnabled
isPickingChildrenEnabledisSelectableisSilent
isVerticalFliplistToolsNamesloadTemplate
moveTonotifynotifyRoot
offononBoundsChanged
onChildAddedonChildRemovedonParentChanged
onVisibilityChangedpanpanModelTo
postRenderingpreRenderingrebuild
refreshLayoutregisterAnimationStyleremoveAxis
removeBaseLayerremoveChildremoveCssClass
removeInvalidateHandlerremoveLegendremoveOverlay
removeTitlerenderrenderAsync
renderBackgroundrenderBaseLayersrenderBaseLayersAsync
renderChildrenrenderChildrenAsyncrenderContent
renderContentAsyncrenderOverlaysrenderOverlaysAsync
restoreToolStateresumeUpdaterotate
saveTemplatesaveToolsStatescale
scaleModelsetAnimationStylesetAnnotationSize
setAnnotationsOptionssetAutoModelLimitsModesetAutoModelLimitsStrategy
setBoundssetCachesetCenterModelLimits
setChildsetClipStylesetContentOrientation
setCsssetCssClasssetCssTransform
setDesiredHeightsetDesiredWidthsetExportLimits
setExportScalesetFillStylesetHorizontalFlip
setIdsetInfiniteModesetLayout
setLayoutInvalidatedsetLayoutStylesetLineStyle
setLocalTransformsetMarginsStylesetModelLimits
setModelTransformationsetNamesetNotification
setOpacitysetPaddingStylesetProperties
setPropertysetRenderingFiltersetResponsiveStyle
setScaleScrollStrategysetSelectablesetSilent
setTagsetTitleOptionssetTool
setToolsOptionssetVerticalFlipsetVisible
setVisibleCenterModelLimitssetVisibleModelLimitssetZIndex
shearsuspendUpdatesynchronizeViewLimits
toStringtranslatetranslateModel
unregisterAnimationStyleupdateLayoutupdateSceneTransformation
updateStateupdateSuspendedupdateTimeStamp
zoomInzoomOutzoomToRect
enableSceneGraphNotificationfindParentgetClassName
isSceneGraphNotificationEnabled

Contents

Constructors

new AnnotatedWidget(options)

new AnnotatedWidget(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

BaseWidget.constructor

Methods

addAxis

addAxis(axis, location, connectedObject?): Object

add new axis and connect with object

Parameters

Name Type Description
axisAxis | AxisOptionsnew axis instance or options
locationAnnotationLocationlocation of annotation for adding new axis
Optional connectedObjectGroup<Node>connected object of axis

Returns

Object

NameType
axisAxis
groupGroup<Node>

addBaseLayer

addBaseLayer(baseLayer): AnnotatedWidget

Add baseLayer to container

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.addBaseLayer


addChild

addChild(node): AnnotatedWidget

Add a child node

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.addChild


addCssClass

addCssClass(cssclass): AnnotatedWidget

Adds new css class to node

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): AnnotatedWidget

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.addInvalidateHandler


addLegend

addLegend(options): LegendPanel

Creates legend, scrollable panel and interactive tools for the options provided. If legend already exists, does nothing.

Example

widget.addLegend({
// use known types to create legend items automatically (from charts)
// use custom string item for user setup
'alignment': AnchorType.LeftTop,
'offset': new Point(60, 40)
});

Parameters

Name Type Description
optionsLegendOptions | LegendPanellegend options

Returns

LegendPanel


addLegendInteral

Protected addLegendInteral(options): LegendPanel

Parameters

Name Type
optionsLegendOptions | LegendPanel

Returns

LegendPanel


addOverlay

addOverlay(overlay): AnnotatedWidget

Add overlay to container

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.addOverlay


addTitle

addTitle(location, options): void

Add title to annotation

Parameters

Name Type Description
locationAnnotationLocationof the title
optionsTitleOptionstitle options

Returns

void


adjustPosition

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

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

AnnotatedWidget

this

Inherited from

BaseWidget.adjustPosition


applyOpacity

Protected applyOpacity(context): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

BaseWidget.applyResponsiveStyle


beginExport

beginExport(): AnnotatedWidget

Prepares object before exporting and saving state

Returns

AnnotatedWidget

Implementation of

IExportable.beginExport


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.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

BaseWidget.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.clearBaseLayers


clearCache

clearCache(): AnnotatedWidget

Clear cache

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.clearCache


clearChildren

clearChildren(disposeChildren?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.clearOverlays


clone

clone(): Group<Node>

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

Returns

Group<Node>

clone

Inherited from

BaseWidget.clone


connect

connect(object, model, orientation?, autoSize?): AnnotatedWidget

Synchronizes object with a model

Parameters

Name Type Description
objectAxis | Group<Node>object to be synchronized
modelGroup<Node>source model
Optional orientationOrientationhorizontal or vertical
Optional autoSizebooleantrue if object and model share the same device size in the orientation, true by default if not specified

Returns

AnnotatedWidget

this


connectStyle

connectStyle(style, type, callback): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.connectStyle


connectTool

connectTool(tool): AnnotatedWidget

Connect a new tool with a toolname to the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool associated with the widget

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.connectTool


copyConstructor

Protected copyConstructor(src, deepCopy?): AnnotatedWidget

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
srcGroup<Node>Source to copy from
Optional deepCopybooleandeep copy

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.copyConstructor


disconnect

disconnect(object): AnnotatedWidget

Disconnect an object from its source model

Parameters

Name Type Description
objectAxis | Group<Node>object to disconnect

Returns

AnnotatedWidget

this


disconnectStyle

disconnectStyle(style, type, callback): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.disconnectStyle


disconnectTool

disconnectTool(tool): AnnotatedWidget

Disconnect the tool from the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool to disconnect

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.disconnectTool


dispose

dispose(): void

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

Returns

void

Inherited from

BaseWidget.dispose


drawBorder

Protected drawBorder(localContext, bounds?): AnnotatedWidget

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

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.drawBorder


enableClipping

enableClipping(doClip): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.enableClipping


enableEventPropagation

enableEventPropagation(enable): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): AnnotatedWidget

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.enablePickingChildren


endExport

endExport(): void

Restores object's state after exporting

Returns

void

Implementation of

IExportable.endExport


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

BaseWidget.enumerateNodes


execute

execute(delegate): AnnotatedWidget

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: AnnotatedWidget) => voidFunction to execute

Returns

AnnotatedWidget

The result if any or this

Inherited from

BaseWidget.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: AnnotatedWidget) => T

Returns

T

Inherited from

BaseWidget.execute


exportToPdf

exportToPdf(options?): Promise<IWritable>

Export a part of the container to PDF

This method sets automatically export scale and limits based on input parameters and current model scale and limits

Parameters

Name Type Description
Optional optionsExportToPdfOptionsoption to specify paper parameters and header and footer

Returns

Promise<IWritable>

promise with output stream


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

BaseWidget.filter


fitToBounds

fitToBounds(): AnnotatedWidget

fit bounds to model limits

Fires

Events.ModelVisibleLimitsChanged

Returns

AnnotatedWidget

this


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

BaseWidget.getAnimationStyle


getAnnotation

getAnnotation(location): Group<Node>

return the node at the specific annotation

Parameters

Name Type Description
locationAnnotationLocationposition to return the node for

Returns

Group<Node>


getAnnotationSize

getAnnotationSize(): Required<AnnotationSize>

Return sizes of all annotations or the exact one

Returns

Required<AnnotationSize>

contains size of all annotations

getAnnotationSize(loc): string | number

Parameters

Name Type
locAnnotationLocation

Returns

string | number


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

BaseWidget.getAutoModelLimitsMode


getAutoModelLimitsStrategy

getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.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

BaseWidget.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

BaseWidget.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

BaseWidget.getBounds


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

BaseWidget.getCache


getCenterModelLimits

getCenterModelLimits(): Rect

Return model limits

Returns

Rect

annotated model limits


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

BaseWidget.getChildrenCount


getClassName

getClassName(): string

Returns

string

Implementation of

IExportable.getClassName

Inherited from

BaseWidget.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

BaseWidget.getClipStyle


getContentOrientation

getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

BaseWidget.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

BaseWidget.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

BaseWidget.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

BaseWidget.getCssTransform


getData

getData(data?): object

get options

Parameters

Name Type Description
Optional dataunknownhow to extract data, null by default

Returns

object

Inherited from

BaseWidget.getData


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

BaseWidget.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

BaseWidget.getDesiredWidth


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

BaseWidget.getDeviceLimits


getExportElement

getExportElement(options?): CompositeDocumentElement

Returns exportable element

Parameters

Name Type Description
Optional optionsExportElementOptionsoptions

Returns

CompositeDocumentElement

return exportable element

Implementation of

IExportable.getExportElement


getExportLimits

getExportLimits(): Rect

Return export limits

Returns

Rect


getExportScale

getExportScale(): Object

Gets export scale. By default scale is not set and equal to screen scale

Returns

Object

scale

NameTypeDescription
xnumberscale by x form model to device
ynumberscale by y form model to device

getExportState

Protected getExportState(): Record<string, any>

Returns export state

Returns

Record<string, any>

export state


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

BaseWidget.getFillStyle


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

BaseWidget.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

BaseWidget.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

BaseWidget.getInvalidateMethod


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

BaseWidget.getLayout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

BaseWidget.getLayoutStyle


getLegendLayer

getLegendLayer(): Group<Node>

Returns layer to keep legend on top of widget

Returns

Group<Node>


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

BaseWidget.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

BaseWidget.getLocalTransform


getManipulatorLayer

getManipulatorLayer(): CompositeNode<Node>

return manipulator layer

Returns

CompositeNode<Node>


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

BaseWidget.getMarginsStyle


getModel

getModel(): Group<Node>

get model node

Returns

Group<Node>


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

BaseWidget.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

BaseWidget.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

BaseWidget.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.getOverlayAt


getOverlayLayer

getOverlayLayer(): Layer<Node>

Returns manipulator overlay to draw shapes that should move with the model

Returns

Layer<Node>

Inherited from

BaseWidget.getOverlayLayer


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

BaseWidget.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

BaseWidget.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

BaseWidget.getOverlaysCount


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

BaseWidget.getPaddingStyle


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

BaseWidget.getParent


getPreferredSize

getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

BaseWidget.getPreferredSize


getProperties

getProperties(context?): OptionsOut

Gets all the properties pertaining to this object

Parameters

Name Type Description
Optional contextISerializationContextserialization context

Returns

OptionsOut

properties object

Overrides

BaseWidget.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

BaseWidget.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

BaseWidget.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

BaseWidget.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

BaseWidget.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

BaseWidget.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets ScaleScrollStrategy ("undefined" by default)

Returns

Delegate

ScaleScrollStrategy (see "setScaleScrollStrategy" description for more info)

Overrides

BaseWidget.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

BaseWidget.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

BaseWidget.getTag


getTool

getTool(): CompositeTool

Returns root tool associated to this widget

Returns

CompositeTool

Inherited from

BaseWidget.getTool


getToolByName

getToolByName<T>(toolName): Tools[T]

Returns the tool matching the given name.
This function also accepts tool 'path' instead of absolute name.
For example:
getToolByName("compositeTool.panningTools.trackPanning.TrackPanning")
Would return the same tool as
getToolByName("TrackPanning")
As long as there is only one tool named "TrackPanning" in this composite
See listToolsNames()

Type parameters

NameType
Textends string

Parameters

Name Type Description
toolNameTThe tool name or path

Returns

Tools[T]

Overrides

BaseWidget.getToolByName


getToolByType

getToolByType(toolType): AbstractTool

Returns the tool matching the given type. or null if nothing is matching the tool type
For example:
getToolByType(geotoolkit.controls.tools.Selection)
Would return the same tool as
getToolByName("pick")

Parameters

Name Type Description
toolTypeClassType<any>toolType of the tool

Returns

AbstractTool

Inherited from

BaseWidget.getToolByType


getToolsOptions

getToolsOptions(): ToolsOptionsOut

Gets Tools Options

Returns

ToolsOptionsOut

JSON which defines tools options


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

BaseWidget.getVisible


getVisibleCenterModelLimits

getVisibleCenterModelLimits(ignoreModelLimits?): Rect

Returns visible model limits of the center model

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore model limits or not. By default this option is false and visible limits will be intersected with center model limits

Returns

Rect


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

BaseWidget.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

BaseWidget.getVisibleModelLimits


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

BaseWidget.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

BaseWidget.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

BaseWidget.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

BaseWidget.hasEventListener


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

BaseWidget.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

BaseWidget.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

BaseWidget.indexOfOverlay


initializeFloatingAnnotationTool

Protected initializeFloatingAnnotationTool(): FloatingAnnotationTool

Returns

FloatingAnnotationTool


initializeLayout

initializeLayout(settings): Group<Node>

Parameters

Name Type
settingsOptions

Returns

Group<Node>


initializeTools

Protected initializeTools(options?): AnnotatedWidget

function call in the constructor to initialize tools in the widget
This widget contains by default :

Parameters

Name Type Description
Optional optionsOptionstools options

Returns

AnnotatedWidget

this

Overrides

BaseWidget.initializeTools


insertAxis

insertAxis(axisIndex, axis, location, connectedObject?): Object

Insert new axis and connect with object

Parameters

Name Type Description
axisIndexnumberdesired axis index
axisAxis | AxisOptionsnew axis instance or options
locationAnnotationLocationlocation of annotation for adding new axis
Optional connectedObjectGroup<Node>connected object of axis

Returns

Object

NameType
axisAxis
groupGroup<Node>

insertBaseLayer

insertBaseLayer(index, baseLayer): AnnotatedWidget

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.insertBaseLayer


insertChild

insertChild(index, node): AnnotatedWidget

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.insertChild


insertOverlay

insertOverlay(index, overlay): AnnotatedWidget

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.insertOverlay


invalidate

invalidate(bounds?, force?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.invalidate


invalidateLayout

invalidateLayout(propagate?): AnnotatedWidget

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): AnnotatedWidget

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.invalidateParent


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

BaseWidget.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

BaseWidget.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

BaseWidget.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

BaseWidget.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

BaseWidget.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

BaseWidget.isNotificationEnabled


isPickingChildrenEnabled

isPickingChildrenEnabled(): boolean

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

Returns

boolean

pickingChildren

Inherited from

BaseWidget.isPickingChildrenEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

BaseWidget.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

BaseWidget.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

BaseWidget.isVerticalFlip


listToolsNames

listToolsNames(): string[]

List all the tools contained in this composite. Prepend their parent tools parent using a '.'.

Returns

string[]

Inherited from

BaseWidget.listToolsNames


loadTemplate

loadTemplate(template, registry?): void

Load template loads the saved visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
templatestringtemplate to be applied to current widget
Optional registryRegistryregistry

Returns

void

Inherited from

BaseWidget.loadTemplate


moveTo

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

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

AnnotatedWidget

this

Inherited from

BaseWidget.moveTo


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

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

Returns

AnnotatedWidget

this

Overrides

BaseWidget.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

BaseWidget.notifyRoot


off

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

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: AnnotatedWidget, args: EventMap[E]) => voidfunction to be called

Returns

AnnotatedWidget

this

Overrides

BaseWidget.off


on

on<E>(type, callback): AnnotatedWidget

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: AnnotatedWidget, args: EventMap[E]) => voidto be called

Returns

AnnotatedWidget

this

Overrides

BaseWidget.on


onBoundsChanged

Protected onBoundsChanged(bounds): AnnotatedWidget

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.onChildRemoved


onParentChanged

Protected onParentChanged(node): AnnotatedWidget

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

BaseWidget.onVisibilityChanged


pan

pan(dx, dy): AnnotatedWidget

attempts to translate the model using the specific x, y translation

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
dxnumberrelative horizontal change
dynumberrelative vertical change

Returns

AnnotatedWidget

this


panModelTo

panModelTo(target, animationOptions?): AnnotatedWidget

Pans the content to the point.

Parameters

Name Type Description
targetPointPoint where to pan in model space
Optional animationOptionsPanAnimationOptionsAnimation options

Returns

AnnotatedWidget


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

BaseWidget.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

BaseWidget.preRendering


rebuild

rebuild(force?, changes?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.rebuild


refreshLayout

refreshLayout(): AnnotatedWidget

Refresh layout of inner components of the widget

Returns

AnnotatedWidget


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

BaseWidget.registerAnimationStyle


removeAxis

removeAxis(axis): void

remove axis

Parameters

Name Type Description
axisAxisaxis to be removed

Returns

void


removeBaseLayer

removeBaseLayer(baseLayer): AnnotatedWidget

Remove child baseLayer

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.removeChild


removeCssClass

removeCssClass(cssclass): AnnotatedWidget

Removes css class from node

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): AnnotatedWidget

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.removeInvalidateHandler


removeLegend

removeLegend(legendPanel): AnnotatedWidget

remove legend

Parameters

Name Type
legendPanelLegendPanel

Returns

AnnotatedWidget


removeOverlay

removeOverlay(overlay): AnnotatedWidget

Remove child overlay

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.removeOverlay


removeTitle

removeTitle(location): void

remove title in the location

Parameters

Name Type Description
locationAnnotationLocationof the title

Returns

void


render

render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

BaseWidget.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

BaseWidget.renderAsync


renderBackground

Protected renderBackground(context, bounds): AnnotatedWidget

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.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

BaseWidget.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.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

BaseWidget.renderContentAsync


renderOverlays

Protected renderOverlays(context): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.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

BaseWidget.renderOverlaysAsync


restoreToolState

restoreToolState(): AnnotatedWidget

Restore tools state

Returns

AnnotatedWidget

this


resumeUpdate

resumeUpdate(rebuild?, changes?): AnnotatedWidget

Resume auto update

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.resumeUpdate


rotate

rotate(theta, x, y): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.rotate


saveTemplate

saveTemplate(registry?): string

Save template saves visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
Optional registryRegistryregistry

Returns

string

Inherited from

BaseWidget.saveTemplate


saveToolsState

saveToolsState(): AnnotatedWidget

Saves tools state

Returns

AnnotatedWidget

this


scale

scale(xx, yy): AnnotatedWidget

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.scale


scaleModel

scaleModel(xx, yy, posX?, posY?): AnnotatedWidget

Scale node's contents.

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor
Optional posXnumberx position to scale from (in pxl)
Optional posYnumbery position to scale from (in pxl)

Returns

AnnotatedWidget


setAnimationStyle

setAnimationStyle(animationStyle): AnnotatedWidget

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

AnnotatedWidget

Inherited from

BaseWidget.setAnimationStyle


setAnnotationSize

setAnnotationSize(annotationSize?): AnnotatedWidget

apply size (width or height) to annotation (convenience method)

Example

{
*   west : 50,
*   east : '10%',
*   south: 'auto'
* }

Parameters

Name Type Description
Optional annotationSizeAnnotationSizeJSON to hold (width or height) of the annotation

Returns

AnnotatedWidget

this


setAnnotationsOptions

setAnnotationsOptions(options): AnnotatedWidget

Sets annotations' options. currently setAnnotationOptions can only modify existing annotation, while the constructor for the widget can create new ones.

Parameters

Name Type Description
optionsAnnotationOptionsJSON to hold annotations' options

Returns

AnnotatedWidget

this


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): AnnotatedWidget

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setAutoModelLimitsStrategy


setBounds

setBounds(bounds): AnnotatedWidget

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsRect | Optionsbound of the node in the parent coordinates

Returns

AnnotatedWidget

this

Overrides

BaseWidget.setBounds


setCache

setCache(cache, rebuild?): AnnotatedWidget

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setCache


setCenterModelLimits

setCenterModelLimits(modellimits): AnnotatedWidget

Set the model limits of center model

Fires

Events.ModelVisibleLimitsChanged

Example

//artificially expand the widget model limits
import {Rect} from '@int/geotoolkit/util/Rect';
const newLimits = new Rect(0,0,10,10);
widget.setCenterModelLimits(newLimits);

Parameters

Name Type Description
modellimitsRectmodel limits

Returns

AnnotatedWidget


setChild

setChild(index, node): AnnotatedWidget

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setChild


setClipStyle

setClipStyle(style): AnnotatedWidget

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setClipStyle


setContentOrientation

setContentOrientation(orientation): AnnotatedWidget

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setContentOrientation


setCss

setCss(style, merge?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setCss


setCssClass

setCssClass(name): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setCssClass


setCssTransform

setCssTransform(transform): AnnotatedWidget

Set CSS transformation

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setCssTransform


setDesiredHeight

setDesiredHeight(value, silent?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): AnnotatedWidget

Sets desired width of the group as a layoutable object

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setDesiredWidth


setExportLimits

setExportLimits(limits): AnnotatedWidget

Sets export limits

Parameters

Name Type Description
limitsRectexport limits

Returns

AnnotatedWidget


setExportScale

setExportScale(scale): AnnotatedWidget

Sets export scale.

Parameters

Name Type Description
scaleObjectscale
scale.xnumberscale by x form model to device
scale.ynumberscale by y form model to device

Returns

AnnotatedWidget


setFillStyle

setFillStyle(fillStyle, merge?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setFillStyle


setHorizontalFlip

setHorizontalFlip(enable): AnnotatedWidget

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setHorizontalFlip


setId

setId(id): AnnotatedWidget

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setId


setInfiniteMode

setInfiniteMode(infinityMode): AnnotatedWidget

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setInfiniteMode


setLayout

setLayout(layout): AnnotatedWidget

Associate layout with a group.

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setLayout


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

BaseWidget.setLayoutInvalidated


setLayoutStyle

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

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

AnnotatedWidget

this

Inherited from

BaseWidget.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setMarginsStyle


setModelLimits

setModelLimits(limits): AnnotatedWidget

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setModelLimits


setModelTransformation

setModelTransformation(transformation): AnnotatedWidget

Attempts to set local transformation for the model. NOTE: the local transformation set may not be equal to transformation passed - it depends on current ScaleScrollStrategy set on the node.

Parameters

Name Type Description
transformationTransformationtransformation to set

Returns

AnnotatedWidget


setName

setName(name): AnnotatedWidget

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setName


setNotification

setNotification(notify, force?): AnnotatedWidget

set notification state

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setNotification


setOpacity

setOpacity(opacity, blendMode?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setOpacity


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setPaddingStyle


setProperties

setProperties(properties?): AnnotatedWidget

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOmit<Options, "model">properties

Returns

AnnotatedWidget

this

Overrides

BaseWidget.setProperties


setProperty

setProperty(name, value): AnnotatedWidget

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setProperty


setRenderingFilter

setRenderingFilter(filter): AnnotatedWidget

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): AnnotatedWidget

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(delegate): AnnotatedWidget

set the scale scroll strategy to apply to the widget

Parameters

Name Type Description
delegateDelegatescaleScrollStrategy to set

Returns

AnnotatedWidget

this

Overrides

BaseWidget.setScaleScrollStrategy


setSelectable

setSelectable(selectable): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.setSelectable


setSilent

setSilent(bool): AnnotatedWidget

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setSilent


setTag

setTag(tag): AnnotatedWidget

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

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setTag


setTitleOptions

setTitleOptions(location, options): AnnotatedWidget

set options for title

Parameters

Name Type Description
locationAnnotationLocationof the title
optionsOmit<TitleOptions, "location">title options

Returns

AnnotatedWidget


setTool

Protected setTool(tool): AnnotatedWidget

Set root tool associated to this widget

Parameters

Name Type Description
toolCompositeTooltool to be set

Returns

AnnotatedWidget

Inherited from

BaseWidget.setTool


setToolsOptions

setToolsOptions(options?): AnnotatedWidget

Set Tools Options

Example

//To prevent the selection tool from deselecting the previously selected points, for example  user can do the following:
annotatedWidget.setToolsOptions({
'selection': {
'resetselection': false
}
});

Parameters

Name Type Description
Optional optionsToolsOptionsJSON which defines tools options

Returns

AnnotatedWidget

this


setVerticalFlip

setVerticalFlip(flip): AnnotatedWidget

Set vertical flip of the representation

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setVerticalFlip


setVisible

setVisible(value): AnnotatedWidget

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setVisible


setVisibleCenterModelLimits

setVisibleCenterModelLimits(newVisibleModelLimits): AnnotatedWidget

Attempts to set model's visible limits to specified limits. NOTE: the limits set may not be equal to the limit passed - it depends on current ScaleScrollStrategy set on the node.

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
newVisibleModelLimitsRectlimits to set

Returns

AnnotatedWidget


setVisibleModelLimits

setVisibleModelLimits(newVisibleModelLimits): AnnotatedWidget

Attempts to set model's visible limits to specified limits. NOTE: the limits set may not be equal to the limit passed - it depends on current ScaleScrollStrategy set on the node.

Parameters

Name Type Description
newVisibleModelLimitsRectlimits to set

Returns

AnnotatedWidget

Overrides

BaseWidget.setVisibleModelLimits


setZIndex

setZIndex(value): AnnotatedWidget

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.setZIndex


shear

shear(shx, shy): AnnotatedWidget

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.shear


suspendUpdate

suspendUpdate(): AnnotatedWidget

Suspend auto update

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.suspendUpdate


synchronizeViewLimits

Protected synchronizeViewLimits(): AnnotatedWidget

Returns

AnnotatedWidget


toString

toString(): string

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

Returns

string

A string representation

Inherited from

BaseWidget.toString


translate

translate(tx, ty): AnnotatedWidget

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.translate


translateModel

translateModel(tx, ty): AnnotatedWidget

Translates widget's contents.

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

AnnotatedWidget


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

BaseWidget.unregisterAnimationStyle


updateLayout

updateLayout(targets?): AnnotatedWidget

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.updateLayout


updateSceneTransformation

updateSceneTransformation(): AnnotatedWidget

Update scene transformation

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.updateSceneTransformation


updateState

updateState(regions?, changes?): AnnotatedWidget

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

AnnotatedWidget

this

Inherited from

BaseWidget.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

BaseWidget.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): AnnotatedWidget

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

Returns

AnnotatedWidget

this

Inherited from

BaseWidget.updateTimeStamp


zoomIn

zoomIn(): AnnotatedWidget

zoom in, with default factor = 5/4

Returns

AnnotatedWidget

this


zoomOut

zoomOut(): AnnotatedWidget

zoom out, with default factor = 5/4

Returns

AnnotatedWidget

this


zoomToRect

zoomToRect(limits?): void

Sets visible model limits

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
Optional limitsRectthe visible model limits

Returns

void


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

BaseWidget.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

BaseWidget.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

BaseWidget.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

BaseWidget.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

BaseWidget.isSceneGraphNotificationEnabled