Last updated

API / geotoolkit / welllog / StackedTrack / StackedTrack

Class: StackedTrack

welllog.StackedTrack.StackedTrack

The StackedTrack serves as a container for all kinds of tracks and visuals like curves, fill etc.

Hierarchy

Table of contents

Constructors
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddOverlayaddTrack
adjustPositionapplyOpacityapplyResponsiveStyle
asNodecalculateDataLimitschangeBaseLayerOrder
changeChildOrderchangeOverlayOrderchangeTrackOrder
checkCollisionclearBaseLayersclearChildren
clearOverlaysclearTracksclone
connectStylecopyConstructordisconnectStyle
disposeenableClippingenableEventPropagation
enumerateNodesexecutefillHighlight
filtergetAnimationStylegetBaseLayer
getBaseLayersgetBaseLayersCountgetBlock
getBordergetBordersgetBounds
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentsArea
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetDataLimits
getDepthLimitsgetDeviceLimitsgetFillStyle
getFootergetHeadergetId
getInfiniteModegetInvalidateMethodgetLayout
getLayoutStylegetLineStylegetLocalTransform
getMarginsStylegetModelLimitsgetName
getOpacitygetOpacityBlendModegetOverlay
getOverlayAtgetOverlaysgetOverlaysCount
getParentgetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetSceneTransform
getTaggetTrackgetTrackAt
getTrackContainergetTrackIndexgetTracks
getTracksCountgetUnitInfogetVisible
getVisibleDepthLimitsgetVisibleDeviceLimitsgetVisibleModelLimits
getWidthgetWorldTransformgetZIndex
hasCssClasshasEventListenerindexOfBaseLayer
indexOfChildindexOfOverlayindexOfTrack
insertBaseLayerinsertChildinsertOverlay
insertTrackinvalidateinvalidateLayout
invalidateParentisClippingEnabledisDisposed
isEventPropagationEnabledisHorizontalFlipisLayoutInvalidated
isNotificationEnabledisSelectableisSilent
isVerticalFlipmoveTonotify
notifyRootoffon
onChildAddedonChildRemovedonParentChanged
onVisibilityChangedpostRenderingpreRendering
registerAnimationStyleremoveBaseLayerremoveChild
removeCssClassremoveInvalidateHandlerremoveOverlay
removeTrackrenderrenderAsync
renderBaseLayersrenderBaseLayersAsyncrenderChildren
renderChildrenAsyncrenderContentrenderContentAsync
renderHighlightrenderOverlaysrenderOverlaysAsync
rotatescalesetAnimationStyle
setBorderssetBoundssetChild
setClipStylesetCsssetCssClass
setCssTransformsetDepthLimitssetFillStyle
setHorizontalFlipsetIdsetInfiniteMode
setLayoutsetLayoutInvalidatedsetLayoutStyle
setLineStylesetLocalTransformsetMarginsStyle
setNamesetNotificationsetOpacity
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetScaleScrollStrategysetSelectable
setSilentsetTagsetUnitInfo
setVisiblesetVisibleModelLimitssetWidth
setZIndexshearstrokeHighlight
toStringtranslateunregisterAnimationStyle
updateContentsTransformupdateSceneTransformationupdateState
updateTimeStampcreateLogOverlayenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
backgroundcolorstringBackground color fill style
backgroundcolorFillStyleBackground color fill style
backgroundcolor-colorstringColor in CSS form
backgroundcolor-evenoddmodebooleanEven-odd fill mode
backgroundcolor-fillpatternPatternPattern
backgroundcolor-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
backgroundcolor-fillpattern-patternnamestringName of this pattern for indexing
backgroundcolor-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
backgroundcolor-foregroundstringForeground color
backgroundcolor-patternPatternPattern
borderBorderOutline of the track
border-bordersVisibleStyle applied on borders, by default is
border-borders-bottombooleanVisibility of bottom part
border-borders-leftbooleanVisibility of left part
border-borders-rightbooleanVisibility of right part
border-borders-topbooleanVisibility of top part
border-borderstyleBorderStyleStyle applied on borders
border-clipstyleClipStyleClipping style
border-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
border-clipstyle-geometryGraphicsPathClipping geometry
border-clipstyle-geometry-boundsRectBounds
border-clipstyle-geometry-bounds-heightnumberHeight
border-clipstyle-geometry-bounds-readonlybooleanReadonly
border-clipstyle-geometry-bounds-widthnumberWidth
border-clipstyle-geometry-bounds-xnumberLeft
border-clipstyle-geometry-bounds-ynumberTop
border-clipstyleGraphicsPathClipping style
border-cssclassstringThe css class name of this node
border-csscursorstringCSS cursor associated with node
border-cssstylestringCSS style to be applied to inserted elements
border-fillstylestringStyle applied on fill
border-fillstyleFillStyleStyle applied on fill
border-idstring | numberId of the node, its a unique identifier
border-linestylestringStyle applied on outline
border-linestyleLineStyleStyle applied on outline
border-linestyle-colorstringColor in CSS form
border-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
border-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
border-linestyle-linecapCapStyleThe line cap style
border-linestyle-linedashoffsetnumberLine dash offset of dashed line
border-linestyle-linejoinJoinStyleThe line join style
border-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
border-linestyle-scalablebooleanTrue if width should depend on transformation
border-linestyle-unitstringOptional unit for the width
border-linestyle-widthnumber | stringThe line thickness
border-linestylesStylesObject with line styles
border-linestyles-bottomstringBottom border style
border-linestyles-bottomLineStyleBottom border style
border-linestyles-leftstringLeft border style
border-linestyles-leftLineStyleLeft border style
border-linestyles-rightstringRight border style
border-linestyles-rightLineStyleRight border style
border-linestyles-topstringTop border style
border-linestyles-topLineStyleTop border style
border-localtransformTransformationLocal transformation
border-localtransform-dxnumberX axis translation
border-localtransform-dynumberY axis translation
border-localtransform-xxnumberX scale
border-localtransform-xynumberXy skew
border-localtransform-yxnumberYx skew
border-localtransform-yynumberY scale
border-marginsnumber | stringIt has properties for specifying the margins for each side
border-namestringName of the node. It is often used for debugging purposes or to simplify queries
border-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
border-opacityblendmodeBlendModeNode opacity mode to blend it
border-scalescrollstrategyScaleScrollStrategyScale scroll strategy
border-scalescrollstrategy-enabledbooleanEnable flag
border-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
border-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
border-transformstringAdditional CSS transformation applied to node or 'none'
border-transformTransformationAdditional CSS transformation applied to node or 'none'
border-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
border-z-indexnumberDefine node z-index
borderstrategyBorderStrategyStrategy on how to display the border of the track
boundsRectBounds of the visual
clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
clipstyleClipStyleClipping style
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
fillstylestringBackground color fill style (alias for backgroundcolor)
fillstyleFillStyleBackground color fill style (alias for backgroundcolor)
highlightBorderHighlight outline of the track
highlightstrategyTrackHighlightStrategyTrack highlight strategy
idstring | numberId of the node, its a unique identifier
infinitybooleanMode to render outside the model limits
limitsRectModel limits
linestylestringLine style or options
linestyleLineStyleLine style or options
localtransformTransformationLocal transformation
logblockLogBlockLog block
logblock-autoboundsbooleanEnables or disables auto bounds
logblock-basenamestringThe base name
logblock-boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
logblock-clipstyleClipStyleClipping style
logblock-clipstyleGraphicsPathClipping style
logblock-cssclassstringThe css class name of this node
logblock-csscursorstringCSS cursor associated with node
logblock-cssstylestringCSS style to be applied to inserted elements
logblock-descriptionstringThe description
logblock-fillstylestringThe fill style
logblock-fillstyleFillStyleThe fill style
logblock-idstring | numberId of the node, its a unique identifier
logblock-linestylestringLinestyle
logblock-linestyleLineStyleLinestyle
logblock-localtransformTransformationLocal transformation
logblock-marginsnumber | stringIt has properties for specifying the margins for each side
logblock-microposleftnumberLeft micro position
logblock-microposrightnumberRight micro position
logblock-namestringName of the node. It is often used for debugging purposes or to simplify queries
logblock-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
logblock-opacityblendmodeBlendModeNode opacity mode to blend it
logblock-positionPositionPosition (left or right or both)
logblock-scalescrollstrategyScaleScrollStrategyScale scroll strategy
logblock-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
logblock-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
logblock-transformstringAdditional CSS transformation applied to node or 'none'
logblock-transformTransformationAdditional CSS transformation applied to node or 'none'
logblock-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
logblock-z-indexnumberDefine node z-index
marginsnumber | stringIt has properties for specifying the margins for each side
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
scalescrollstrategyScaleScrollStrategyScale scroll strategy
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'
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new StackedTrack(options)

new StackedTrack(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

LogTrack.constructor

Methods

addBaseLayer

addBaseLayer(baseLayer): StackedTrack

Add baseLayer to container

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.addBaseLayer


addChild

addChild(node): StackedTrack

Add a child node

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.addChild


addCssClass

addCssClass(cssclass): StackedTrack

Adds new css class to node

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): StackedTrack

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

StackedTrack

this

Inherited from

LogTrack.addInvalidateHandler


addOverlay

addOverlay(overlay): StackedTrack

Add overlay to container

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.addOverlay


addTrack

addTrack(track): LogTrack | LogTrack[]

Add a track

Throws

Will throw an error if the track is not specified

Parameters

Name Type Description
trackLogTrack | LogTrack[]track to insert

Returns

LogTrack | LogTrack[]


adjustPosition

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

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

StackedTrack

this

Inherited from

LogTrack.adjustPosition


applyOpacity

Protected applyOpacity(context): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

LogTrack.applyResponsiveStyle


asNode

asNode(): Node

Return track as Node instance

Returns

Node

Inherited from

LogTrack.asNode


calculateDataLimits

Protected calculateDataLimits(fullLimits?): Range

Return meaning data limits

Parameters

Name Type Description
Optional fullLimitsbooleandefault value is false

Returns

Range

Overrides

LogTrack.calculateDataLimits


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.changeOverlayOrder


changeTrackOrder

changeTrackOrder(track, order, anchor?): StackedTrack

changes the layout order of the tracks being rendered.

Parameters

Name Type Description
trackLogTrackchild track in the LogTrackContainer
orderNodeOrderposition to be added
Optional anchorLogTrackanchor track to specify changeOrder with respect to this track

Returns

StackedTrack

this


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

LogTrack.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.clearBaseLayers


clearChildren

clearChildren(disposeChildren?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.clearOverlays


clearTracks

clearTracks(disposeTracks?): StackedTrack

Remove all tracks from this widget

Parameters

Name Type Description
Optional disposeTracksbooleanautomatically dispose tracks. If it is true then method dispose is called for each track.

Returns

StackedTrack

this


clone

clone(): StackedTrack

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

Returns

StackedTrack

clone

Overrides

LogTrack.clone


connectStyle

connectStyle(style, type, callback): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): StackedTrack

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
srcStackedTrackSource to copy from
Optional deepCopybooleandeep copy

Returns

StackedTrack

this

Overrides

LogTrack.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

LogTrack.dispose


enableClipping

enableClipping(doClip): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.enableClipping


enableEventPropagation

enableEventPropagation(enable): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.enableEventPropagation


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

LogTrack.enumerateNodes


execute

execute(delegate): StackedTrack

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

Returns

StackedTrack

The result if any or this

Inherited from

LogTrack.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: StackedTrack) => T

Returns

T

Inherited from

LogTrack.execute


fillHighlight

Protected fillHighlight(context, callback?): StackedTrack

Render highlight background

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.fillHighlight


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

LogTrack.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogTrack.getAnimationStyle


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

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

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

LogTrack.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

LogTrack.getBaseLayersCount


getBlock

getBlock(): LogBlock

Return log block

Returns

LogBlock

Inherited from

LogTrack.getBlock


getBorder

getBorder(): Border

return border visual

Returns

Border

border

Inherited from

LogTrack.getBorder


getBorders

getBorders(): Visible

Return an object where it is possible to specify the visibility of each border

Returns

Visible

Inherited from

LogTrack.getBorders


getBounds

getBounds(): Rect

Gets bounds in the parent coordinates

Returns

Rect

Inherited from

LogTrack.getBounds


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

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

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

LogTrack.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

LogTrack.getChildrenCount


getClassName

getClassName(): string

Returns

string

Inherited from

LogTrack.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

LogTrack.getClipStyle


getContentsArea

getContentsArea(transformation?): Rect

Return area of content. By default it is equal to bounds.

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

LogTrack.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

Transformation of inner contents to content area

Returns

Transformation

Inherited from

LogTrack.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

LogTrack.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

LogTrack.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

LogTrack.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

LogTrack.getCssTransform


getDataLimits

getDataLimits(fullLimits?): Range

Return data limits

Parameters

Name Type Description
Optional fullLimitsbooleandefault value is false, true if you want to get full limits including trail NaN values

Returns

Range

Inherited from

LogTrack.getDataLimits


getDepthLimits

getDepthLimits(): Range

Returns depth range

Returns

Range

Inherited from

LogTrack.getDepthLimits


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

LogTrack.getDeviceLimits


getFillStyle

getFillStyle(): FillStyle

Return background color

Returns

FillStyle

Inherited from

LogTrack.getFillStyle


getFooter

getFooter(): LogTrackHeader

Returns the track footer if it exists

Returns

LogTrackHeader

Inherited from

LogTrack.getFooter


getHeader

getHeader(): LogTrackHeader

Returns the track header if it exists

Returns

LogTrackHeader

Inherited from

LogTrack.getHeader


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

LogTrack.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

LogTrack.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

LogTrack.getInvalidateMethod


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

Return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

LogTrack.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

LogTrack.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

LogTrack.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

LogTrack.getMarginsStyle


getModelLimits

getModelLimits(): Rect

Returns model limits

Returns

Rect

Inherited from

LogTrack.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

LogTrack.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

LogTrack.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

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

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

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

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

LogTrack.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

LogTrack.getOverlaysCount


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogTrack.getParent


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties to set

Inherited from

LogTrack.getProperties

getProperties(context): DeserializationOptionsOut

Parameters

Name Type
contextISerializationContext

Returns

DeserializationOptionsOut

Inherited from

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

LogTrack.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

LogTrack.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

LogTrack.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

LogTrack.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

LogTrack.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

LogTrack.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

LogTrack.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogTrack.getTag


getTrack

getTrack(index): LogTrack

Returns LogTrack at specified index

Parameters

Name Type Description
indexnumberindex to return track at

Returns

LogTrack


getTrackAt

getTrackAt(index): LogTrack

Returns LogTrack at specified index

Deprecated

since 4.2 use getTrack instead

Parameters

Name Type Description
indexnumberindex to return track at

Returns

LogTrack


getTrackContainer

getTrackContainer(): TrackContainer

Return parent track container or null

Returns

TrackContainer

Inherited from

LogTrack.getTrackContainer


getTrackIndex

getTrackIndex(track): number

Return index of track

Deprecated

since 4.2 use indexOfTrack instead

Parameters

Name Type Description
trackLogTrackto get index

Returns

number

index of the track


getTracks

getTracks(filter?, modify?): Iterator<LogTrack>

Return iterator by child tracks

Parameters

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

Returns

Iterator<LogTrack>


getTracksCount

getTracksCount(): number

Returns amount of tracks

Returns

number

amount of tracks


getUnitInfo

getUnitInfo(): IUnitInfo

Returns an object that has getDeviceUnit and getScaleUnit functions

Returns

IUnitInfo

Inherited from

LogTrack.getUnitInfo


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

LogTrack.getVisible


getVisibleDepthLimits

getVisibleDepthLimits(): Range

Returns visible depth range

Returns

Range

Inherited from

LogTrack.getVisibleDepthLimits


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

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

LogTrack.getVisibleModelLimits


getWidth

getWidth(): number

Returns track width

Returns

number

Inherited from

LogTrack.getWidth


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

LogTrack.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

LogTrack.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

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

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

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

LogTrack.indexOfOverlay


indexOfTrack

indexOfTrack(track): number

Return index of track

Parameters

Name Type Description
trackLogTrackto get index

Returns

number

index of the track


insertBaseLayer

insertBaseLayer(index, baseLayer): StackedTrack

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

StackedTrack

this

Inherited from

LogTrack.insertBaseLayer


insertChild

insertChild(index, node): StackedTrack

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

StackedTrack

this

Inherited from

LogTrack.insertChild


insertOverlay

insertOverlay(index, overlay): StackedTrack

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

StackedTrack

this

Inherited from

LogTrack.insertOverlay


insertTrack

insertTrack(index, track, trackWidth?): LogTrack

Insert track to the container at specified index

Throws

Will throw an error if the track is not specified

Example

widget.insertTrack(0, track);

Parameters

Name Type Description
indexnumber | LogTrackindex of the track
tracknumber | LogTracktrack to insert
Optional trackWidthnumberoptional track width

Returns

LogTrack


invalidate

invalidate(bounds?, force?): StackedTrack

Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleantrue if parent should be invalidated immediately if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

StackedTrack

this

Inherited from

LogTrack.invalidate


invalidateLayout

invalidateLayout(propagate?): StackedTrack

Invalidate layout

Parameters

Name Type Description
Optional propagatebooleanpropagate

Returns

StackedTrack

this

Inherited from

LogTrack.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): StackedTrack

Invalidate bounds

Parameters

Name Type Description
Optional boundsRectif null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed
Optional forcebooleanforce invalidation

Returns

StackedTrack

this

Inherited from

LogTrack.invalidateParent


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

LogTrack.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

LogTrack.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

LogTrack.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

horizontal flip

Inherited from

LogTrack.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

LogTrack.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

LogTrack.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

LogTrack.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

LogTrack.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

Inherited from

LogTrack.isVerticalFlip


moveTo

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

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

StackedTrack

this

Inherited from

LogTrack.moveTo


notify

notify<E>(event, source, args?): StackedTrack

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
eventEtype of event
sourceCompositeNode<Node>source who called the event
Optional argsEventMap[E]event arguments

Returns

StackedTrack

this

Overrides

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

LogTrack.notifyRoot


off

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

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

Returns

StackedTrack

this

Inherited from

LogTrack.off


on

on<E>(type, callback): StackedTrack

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

Returns

StackedTrack

this

Inherited from

LogTrack.on


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

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

LogTrack.onChildRemoved


onParentChanged

Protected onParentChanged(node): StackedTrack

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

StackedTrack

this

Inherited from

LogTrack.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

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

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

LogTrack.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogTrack.registerAnimationStyle


removeBaseLayer

removeBaseLayer(baseLayer): StackedTrack

Remove child baseLayer

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.removeChild


removeCssClass

removeCssClass(cssclass): StackedTrack

Removes css class from node

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): StackedTrack

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

StackedTrack

this

Inherited from

LogTrack.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): StackedTrack

Remove child overlay

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.removeOverlay


removeTrack

removeTrack(track): StackedTrack

Remove the track

Throws

Will throw an error if the track is not specified

Parameters

Name Type Description
trackLogTracktrack to remove

Returns

StackedTrack

this


render

render(context): void

Render composite node and children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

LogTrack.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode

Parameters

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

Returns

void

Inherited from

LogTrack.renderAsync


renderBaseLayers

Protected renderBaseLayers(context): StackedTrack

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

StackedTrack

this

Inherited from

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

LogTrack.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

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

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

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

LogTrack.renderContentAsync


renderHighlight

Protected renderHighlight(context, callback?): StackedTrack

Render highlight shape

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.renderHighlight


renderOverlays

Protected renderOverlays(context): StackedTrack

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

StackedTrack

this

Inherited from

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

LogTrack.renderOverlaysAsync


rotate

rotate(theta, x, y): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.rotate


scale

scale(xx, yy): StackedTrack

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

StackedTrack

this

Inherited from

LogTrack.scale


setAnimationStyle

setAnimationStyle(animationStyle): StackedTrack

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

StackedTrack

Inherited from

LogTrack.setAnimationStyle


setBorders

setBorders(borders): StackedTrack

set borders state

Parameters

Name Type Description
bordersVisibleborders

Returns

StackedTrack

Inherited from

LogTrack.setBorders


setBounds

setBounds(bounds): StackedTrack

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

StackedTrack

this

Inherited from

LogTrack.setBounds


setChild

setChild(index, node): StackedTrack

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

StackedTrack

this

Inherited from

LogTrack.setChild


setClipStyle

setClipStyle(style): StackedTrack

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

StackedTrack

this

Inherited from

LogTrack.setClipStyle


setCss

setCss(style, merge?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.setCss


setCssClass

setCssClass(name): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.setCssClass


setCssTransform

setCssTransform(transform): StackedTrack

Set CSS transformation

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.setCssTransform


setDepthLimits

setDepthLimits(range): StackedTrack

Sets model depth range

Parameters

Name Type Description
rangeRangea new depth range

Returns

StackedTrack

this

Overrides

LogTrack.setDepthLimits

setDepthLimits(minDepth, maxDepth): StackedTrack

Sets model minimum and maximum depth

Parameters

Name Type Description
minDepthnumberminimum depth
maxDepthnumbermaximum depth

Returns

StackedTrack

this

Overrides

LogTrack.setDepthLimits


setFillStyle

setFillStyle(fillStyle, merge?): StackedTrack

Sets background fill style Returns this track

Parameters

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

Returns

StackedTrack

Inherited from

LogTrack.setFillStyle


setHorizontalFlip

setHorizontalFlip(enable): StackedTrack

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

StackedTrack

this

Inherited from

LogTrack.setHorizontalFlip


setId

setId(id): StackedTrack

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

StackedTrack

this

Inherited from

LogTrack.setId


setInfiniteMode

setInfiniteMode(infinityMode): StackedTrack

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

StackedTrack

this

Inherited from

LogTrack.setInfiniteMode


setLayout

setLayout(layout): StackedTrack

Associate layout with a track to layout children tracks

Parameters

Name Type Description
layoutLayoutlayout to be set

Returns

StackedTrack

this


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

LogTrack.setLayoutInvalidated


setLayoutStyle

setLayoutStyle(layoutStyle, merge?): StackedTrack

Specify desired layout style

Parameters

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

Returns

StackedTrack

Inherited from

LogTrack.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): StackedTrack

Sets border color Returns this track

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.setMarginsStyle


setName

setName(name): StackedTrack

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

StackedTrack

this

Inherited from

LogTrack.setName


setNotification

setNotification(notify, force?): StackedTrack

set notification state

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.setNotification


setOpacity

setOpacity(opacity, blendMode?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.setOpacity


setProperties

setProperties(properties?): StackedTrack

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

StackedTrack

this

Inherited from

LogTrack.setProperties


setProperty

setProperty(name, value): StackedTrack

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

StackedTrack

this

Inherited from

LogTrack.setProperty


setRenderingFilter

setRenderingFilter(filter): StackedTrack

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

StackedTrack

this

Inherited from

LogTrack.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): StackedTrack

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

StackedTrack

this

Inherited from

LogTrack.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): StackedTrack

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

StackedTrack

this

Inherited from

LogTrack.setScaleScrollStrategy


setSelectable

setSelectable(selectable): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.setSelectable


setSilent

setSilent(bool): StackedTrack

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

StackedTrack

this

Inherited from

LogTrack.setSilent


setTag

setTag(tag): StackedTrack

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

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.setTag


setUnitInfo

setUnitInfo(unitInfo): StackedTrack

Sets the track's unit info object, which holds getDeviceUnit and getScaleUnit functions

Parameters

Name Type Description
unitInfoIUnitInfotrack's unit info - device unit and the scaled unit

Returns

StackedTrack

this

Inherited from

LogTrack.setUnitInfo


setVisible

setVisible(value): StackedTrack

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

StackedTrack

this

Inherited from

LogTrack.setVisible


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): StackedTrack

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

StackedTrack

this

Inherited from

LogTrack.setVisibleModelLimits


setWidth

setWidth(width): StackedTrack

Set track width and layout remains tracks

Parameters

Name Type Description
widthnumbera new track width

Returns

StackedTrack

this

Inherited from

LogTrack.setWidth


setZIndex

setZIndex(value): StackedTrack

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

StackedTrack

this

Inherited from

LogTrack.setZIndex


shear

shear(shx, shy): StackedTrack

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

StackedTrack

this

Inherited from

LogTrack.shear


strokeHighlight

Protected strokeHighlight(context, callback?): StackedTrack

Render highlight border

Parameters

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

Returns

StackedTrack

this

Inherited from

LogTrack.strokeHighlight


toString

toString(): string

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

Returns

string

A string representation

Inherited from

LogTrack.toString


translate

translate(tx, ty): StackedTrack

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

StackedTrack

this

Inherited from

LogTrack.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

LogTrack.unregisterAnimationStyle


updateContentsTransform

updateContentsTransform(): void

Returns

void

Inherited from

LogTrack.updateContentsTransform


updateSceneTransformation

updateSceneTransformation(): StackedTrack

Update scene transformation

Returns

StackedTrack

this

Inherited from

LogTrack.updateSceneTransformation


updateState

updateState(regions?, changes?): StackedTrack

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

StackedTrack

this

Inherited from

LogTrack.updateState


updateTimeStamp

Protected updateTimeStamp(): StackedTrack

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

Returns

StackedTrack

this

Inherited from

LogTrack.updateTimeStamp


createLogOverlay

Static createLogOverlay(name, type?): Layer<Node>

Create a new layer, which always has coordinates from 0 to 1 in horizontal direction by default

Parameters

Name Type Description
namestringname of the layer
Optional typeLayerTypelayer type

Returns

Layer<Node>

overlay

Inherited from

LogTrack.createLogOverlay


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

LogTrack.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

LogTrack.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

LogTrack.isSceneGraphNotificationEnabled