API / geotoolkit / welllog / LogMudLogSection / LogMudLogSection

Class: LogMudLogSection<T>

welllog.LogMudLogSection.LogMudLogSection

Define visual to represent comment section intervals.

Visual can render symbols, text, and callouts. In text mode, it renders text intervals from the start depth to the next specified depth. If the size of an interval is too small, it can display ellipses. The size of the last interval can be smaller because it doesn't have a next depth. An interval with empty text can be used to control the last interval size.

Type parameters

NameType
Tstring

Hierarchy

Table of contents

Constructors
[new LogMudLogSection&lt;T&amp;gt;(depths, values, fillstyles)](/solutions/geotoolkit/apis/classes/geotoolkit.welllog.logmudlogsection.logmudlogsection.md#new logmudlogsection&lt;t&gt;(depths, values, fillstyles))[new LogMudLogSection&lt;T&amp;gt;(params)](/solutions/geotoolkit/apis/classes/geotoolkit.welllog.logmudlogsection.logmudlogsection.md#new logmudlogsection&lt;t&gt;(params))
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposeenableEventPropagationexecute
filtergetAggregationgetAnimationStyle
getBaseNamegetBoundsgetClassName
getClipStylegetContentsTransformgetCornerRadius
getCssgetCssClassgetCssClasses
getCssTransformgetDataLimitsgetDepths
getDescriptiongetEllipsisStringgetEvenFillStyle
getEvenLineStylegetEvenSymbolgetEvenTextStyle
getFillModegetFillStylesgetHeader
getHeadersgetIdgetInvalidateMethod
getLineStylegetLineStylesgetLocalTransform
getMarginsStylegetMicroPositionLeftgetMicroPositionRight
getMicroPositionTransformationgetModelLimitsgetName
getOddFillStylegetOddLineStylegetOddSymbol
getOddTextStylegetOpacitygetOpacityBlendMode
getPaddingStylegetParentgetProperties
getPropertygetPropertyKeysgetRenderingFilter
getResponsiveStylegetRootgetScaleScrollStrategy
getSceneTransformgetSelectedFillStylegetSelectedIndices
getSelectedLineStylegetSelectedSymbolgetSelectedTextStyle
getSymbolMarginsStylegetSymbolPositiongetSymbols
getTaggetTextAligngetTextOrientation
getTextStylegetTextStylesgetTrack
getValueAtDepthgetValueAtIndexgetValues
getVisiblegetWorldTransformgetWrapMode
getZIndexhasCssClasshasEventListener
hitTestinvalidateinvalidateParent
isAutoBoundsisDisposedisEventPropagationEnabled
isHorizontalFlipisNotificationEnabledisSelectable
isSilentnotifyoff
ononHeaderSetonMicroPositionChanged
onParentChangedonVisibilityChangedpostRendering
preRenderingregisterAnimationStyleremoveCssClass
removeInvalidateHandlerrenderrenderAsync
renderContentrotatescale
setAggregationsetAnimationStylesetAutoBounds
setBaseNamesetBoundssetClipStyle
setCornerRadiussetCsssetCssClass
setCssTransformsetDepthsAndValuessetDescription
setEllipsisStringsetEvenFillStylesetEvenLineStyle
setEvenSymbolsetEvenTextStylesetFillMode
setFillStylessetHeadersetId
setLineStylesetLineStylessetLocalTransform
setMarginsStylesetMicroPositionsetName
setNotificationsetOddFillStylesetOddLineStyle
setOddSymbolsetOddTextStylesetOpacity
setPaddingStylesetPropertiessetProperty
setRenderingFiltersetResponsiveStylesetScaleScrollStrategy
setSelectablesetSelectedFillStylesetSelectedIndices
setSelectedLineStylesetSelectedSymbolsetSelectedTextStyle
setSilentsetSymbolMarginsStylesetSymbolPosition
setSymbolssetTagsetTextAlign
setTextOrientationsetTextStylesetTextStyles
setVisiblesetWrapModesetZIndex
sheartoStringtranslate
unregisterAnimationStyleupdateSceneTransformationupdateState
updateTimeStampenableSceneGraphNotificationfindParent
getClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
autoboundsbooleanEnables or disables auto bounds
basenamestringThe base name
boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on (&#x27;nonzero&#x27; mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
descriptionstringThe description
ellipsisstringstringEllipsis text to string (must be under 15 characters)
evenfillstylestringEven fill style
evenfillstyleFillStyleEven fill style
evenfillstyle-colorstringColor in CSS form
evenfillstyle-evenoddmodebooleanEven-odd fill mode
evenfillstyle-fillpatternPatternPattern
evenfillstyle-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
evenfillstyle-fillpattern-patternnamestringName of this pattern for indexing
evenfillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
evenfillstyle-foregroundstringForeground color
evenfillstyle-patternPatternPattern
evenlinestylestringEvenLineStyle
evenlinestyleLineStyleEvenLineStyle
evenlinestyle-colorstringColor in CSS form
evenlinestyle-fillstringOptional fill style to be used to fill lines generated with this style
evenlinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
evenlinestyle-linecapCapStyleThe line cap style
evenlinestyle-linedashoffsetnumberLine dash offset of dashed line
evenlinestyle-linejoinJoinStyleThe line join style
evenlinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
evenlinestyle-scalablebooleanTrue if width should depend on transformation
evenlinestyle-unitstringOptional unit for the width
evenlinestyle-widthnumber | stringThe line thickness
evensymbolSymbolShapeEvenSymbol
evensymbol-alignmentAnchorTypeAlignment according to the anchor point
evensymbol-alignmentAnchorTypeAnchor type of symbol
evensymbol-axnumberAnchor x position
evensymbol-aynumberAnchor y position
evensymbol-cachebooleanSet it to true if you want to cache complex geometry to raster
evensymbol-clipstyleClipStyleClipping style
evensymbol-clipstyleGraphicsPathClipping style
evensymbol-cssclassstringThe css class name of this node
evensymbol-csscursorstringCSS cursor associated with node
evensymbol-cssstylestringCSS style to be applied to inserted elements
evensymbol-fillstylestringStyle applied on fill
evensymbol-fillstyleFillStyleStyle applied on fill
evensymbol-heightnumberShape height
evensymbol-idstring | numberId of the node, its a unique identifier
evensymbol-ispointingupbooleanDefines whether the shape is always pointing up
evensymbol-layoutstyleLayoutStyleLayout style to specify how to lay out shape
evensymbol-layoutstyle-constraintSizeConstraintLayout constrains
evensymbol-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
evensymbol-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
evensymbol-layoutstyle-floatstringFloat position
evensymbol-layoutstyle-positionstringLayout position
evensymbol-layoutstyle-sizenumber | stringLayout size
evensymbol-linestylestringStyle applied on outline
evensymbol-linestyleLineStyleStyle applied on outline
evensymbol-localtransformTransformationLocal transformation
evensymbol-localtransform-dxnumberX axis translation
evensymbol-localtransform-dynumberY axis translation
evensymbol-localtransform-xxnumberX scale
evensymbol-localtransform-xynumberXy skew
evensymbol-localtransform-yxnumberYx skew
evensymbol-localtransform-yynumberY scale
evensymbol-marginsnumber | stringIt has properties for specifying the margins for each side
evensymbol-maxdimensionDimensionMaximum size for rendering
evensymbol-maxdimension-heightnumberHeight of dimension
evensymbol-maxdimension-widthnumberWidth of dimension or properties
evensymbol-mindimensionDimensionMinimum size for rendering
evensymbol-namestringName of the node. It is often used for debugging purposes or to simplify queries
evensymbol-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
evensymbol-opacityblendmodeBlendModeNode opacity mode to blend it
evensymbol-painterstringA function with has parameters: symbol, box, context
evensymbol-painterpropertiesanySymbol&#x27;s painter&#x27;s properties
evensymbol-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
evensymbol-preservereadingorientationbooleanPreserve reading orientation for local transform
evensymbol-preserverightanglebooleanPreserve right angle for local transformation
evensymbol-rotationanglenumberRotation angle at anchor
evensymbol-scalescrollstrategyScaleScrollStrategyScale scroll strategy
evensymbol-scalescrollstrategy-enabledbooleanEnable flag
evensymbol-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
evensymbol-sizeisindevicespacebooleanIs coordinate in device space
evensymbol-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
evensymbol-transformstringAdditional CSS transformation applied to node or &#x27;none&#x27;
evensymbol-transformTransformationAdditional CSS transformation applied to node or &#x27;none&#x27;
evensymbol-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
evensymbol-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
evensymbol-widthnumberShape width
evensymbol-z-indexnumberDefine node z-index
eventextstylestringEvenTextStyle
eventextstyleTextStyleEvenTextStyle
eventextstyle-alignmentAlignmentStyleAlignment
eventextstyle-autosizebooleanAuto font size on high definition display
eventextstyle-backgroundstringBackground style
eventextstyle-backgroundFillStyleBackground style
eventextstyle-baselineBaseLineStyleBase line
eventextstyle-colorstringColor in CSS form
eventextstyle-fillFillStyleText fill style
eventextstyle-fontstringFont see
eventextstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
eventextstyle-lineheightstring | numberLine height
eventextstyle-multilinebooleanAllow multi-line text
eventextstyle-outlinestringOutline style
eventextstyle-outlineLineStyleOutline style
eventextstyle-overflowwrapOverflowWrapStyleOverflow wrap
eventextstyle-strikethroughstringStrikethrough style
eventextstyle-strikethroughLineStyleStrikethrough style
eventextstyle-textoverflowTextOverflowStyleText overflow
eventextstyle-underlinestringUnderline style
eventextstyle-underlineLineStyleUnderline style
eventextstyle-underlineoffsetstring | numberUnderline offset distance
eventextstyle-whitespaceWhiteSpaceStyleWhite space
eventextstyle-wordbreakWordBreakStyleWord break
fillmodeFillModeMode for how to display the values
idstring | numberId of the node, its a unique identifier
linestylestringLinestyle
linestyleLineStyleLinestyle
localtransformTransformationLocal transformation
marginsnumber | stringIt has properties for specifying the margins for each side
marginsnumber | stringProperties for specifying the margins for each comment section
microposleftnumberLeft micro position
microposrightnumberRight micro position
namestringName of the node. It is often used for debugging purposes or to simplify queries
oddfillstylestringOdd fill style
oddfillstyleFillStyleOdd fill style
oddlinestylestringOddLineStyle
oddlinestyleLineStyleOddLineStyle
oddsymbolSymbolShapeOddSymbol
oddtextstylestringOddTextStyle
oddtextstyleTextStyleOddTextStyle
opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
opacityblendmodeBlendModeNode opacity mode to blend it
paddingnumber | stringProperties for specifying the padding for each comment section
radiusnumberProperties for specifying the corner radius
scalescrollstrategyScaleScrollStrategyScale scroll strategy
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
selectedsymbolSymbolShapeSymbol for selected segment
symbolmarginsnumber | stringProperties for specifying the margins for symbols
symbolpositionSymbolPositionSymbol position
symbolsSymbolShapeSymbols
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
textalignTextAlignVertical text alignment
textorientationTextOrientationText orientation
textstylestringText style of the displayed values
textstyleTextStyleText style of the displayed values
transformstringAdditional CSS transformation applied to node or &#x27;none&#x27;
transformTransformationAdditional CSS transformation applied to node or &#x27;none&#x27;
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LogMudLogSection&lt;T&amp;gt;(depths, values, fillstyles)

new LogMudLogSection<T>(depths?, values?, fillstyles?)

Constructor

Type parameters

NameType
Tstring

Parameters

Name Type Description
Optional depthsnumber[]an array of the depths
Optional valuesstring[] | ValueCallback<T>array of the corresponding values or callback function
Optional fillstylesFillStyle[] | FillStylesCallback<T>comments fill styles array to use one by one or a callback function to define each style manually

Overrides

LogAbstractVisual.constructor


new LogMudLogSection&lt;T&amp;gt;(params)

new LogMudLogSection<T>(params?)

Constructor

Type parameters

NameType
Tstring

Parameters

Name Type Description
Optional paramsOptions<T>properties object

Overrides

LogAbstractVisual.constructor

Methods

addCssClass

addCssClass(cssclass): LogMudLogSection<T>

Adds new css class to node

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogMudLogSection<T>

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

LogAbstractVisual.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

Check culling. Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

Inherited from

LogAbstractVisual.checkCollision


clone

clone(): LogMudLogSection<T>

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

Returns

LogMudLogSection<T>

clone

Overrides

LogAbstractVisual.clone


connectStyle

connectStyle(style, type, callback): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogMudLogSection<T>

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
srcLogMudLogSection<T>Source to copy from
Optional deepCopybooleandeep copy

Returns

LogMudLogSection<T>

this

Overrides

LogAbstractVisual.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.disconnectStyle


dispose

dispose(): void

Disposes this node, once disposes a node should not be used anymore.
Clear all listeners, and disconnect styles to avoid memory leaks.
Also aggressively 'cleanup' this node by setting some of its members to null.

Returns

void

Inherited from

LogAbstractVisual.dispose


enableEventPropagation

enableEventPropagation(enable): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.enableEventPropagation


execute

execute(delegate): LogMudLogSection<T>

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

Returns

LogMudLogSection<T>

The result if any or this

Inherited from

LogAbstractVisual.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogMudLogSection<T>) => T

Returns

T

Inherited from

LogAbstractVisual.execute


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

LogAbstractVisual.filter


getAggregation

getAggregation(): Aggregation

Returns symbols aggregation

Returns

Aggregation

object containing aggregation properties


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogAbstractVisual.getAnimationStyle


getBaseName

getBaseName(): string

Returns the base name

Returns

string

The base name

Inherited from

LogAbstractVisual.getBaseName


getBounds

getBounds(): Rect

Returns bounds in the parent coordinates

Returns

Rect

Inherited from

LogAbstractVisual.getBounds


getClassName

getClassName(): string

Returns

string

Inherited from

LogAbstractVisual.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

LogAbstractVisual.getClipStyle


getContentsTransform

getContentsTransform(): Transformation

Retrieves the world transformation of the spatial

Returns

Transformation

Inherited from

LogAbstractVisual.getContentsTransform


getCornerRadius

getCornerRadius(): number

return corner radius

Returns

number

radius


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

LogAbstractVisual.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

LogAbstractVisual.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

LogAbstractVisual.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

LogAbstractVisual.getCssTransform


getDataLimits

getDataLimits(fullLimits?): Rect

Return meaning data limits

Parameters

Name Type Description
Optional fullLimitsbooleandefault value is false

Returns

Rect

Inherited from

LogAbstractVisual.getDataLimits


getDepths

getDepths(): number[]

Returns array of depths

Returns

number[]


getDescription

getDescription(): string

Gets the description

Returns

string

The description

Inherited from

LogAbstractVisual.getDescription


getEllipsisString

getEllipsisString(): string

Get ellipsis text to string

Returns

string


getEvenFillStyle

getEvenFillStyle(): FillStyle

Returns even fill style

Returns

FillStyle


getEvenLineStyle

getEvenLineStyle(): LineStyle

Returns even line style

Returns

LineStyle


getEvenSymbol

getEvenSymbol(): SymbolShape

Returns even symbol shape

Returns

SymbolShape


getEvenTextStyle

getEvenTextStyle(): TextStyle

Returns even text style

Returns

TextStyle


getFillMode

getFillMode(): FillMode

Returns fill mode

Returns

FillMode


getFillStyles

getFillStyles(): FillStyle[] | FillStylesCallback<T>

Returns array of fill styles or a fill style callback

Returns

FillStyle[] | FillStylesCallback<T>


getHeader

getHeader(name): LogVisualHeader<Node>

Return the header registered by the name

Parameters

Name Type Description
namestringheader name

Returns

LogVisualHeader<Node>

header

Inherited from

LogAbstractVisual.getHeader


getHeaders

getHeaders(): Record<string, LogVisualHeader<Node>>

Return an object that contains all headers registered with the visual

Returns

Record<string, LogVisualHeader<Node>>

headers

Inherited from

LogAbstractVisual.getHeaders


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

LogAbstractVisual.getId


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

LogAbstractVisual.getInvalidateMethod


getLineStyle

getLineStyle(): LineStyle

Returns line style

Returns

LineStyle

Inherited from

LogAbstractVisual.getLineStyle


getLineStyles

getLineStyles(): LineStyle[] | LineStylesCallback<T>

Returns array of line styles or a line style callback

Returns

LineStyle[] | LineStylesCallback<T>


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

LogAbstractVisual.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

margins

Overrides

LogAbstractVisual.getMarginsStyle


getMicroPositionLeft

getMicroPositionLeft(): number

Returns micro position left

Returns

number

Inherited from

LogAbstractVisual.getMicroPositionLeft


getMicroPositionRight

getMicroPositionRight(): number

Returns micro position right

Returns

number

Inherited from

LogAbstractVisual.getMicroPositionRight


getMicroPositionTransformation

Protected getMicroPositionTransformation(): Transformation

Returns micro position transformation

Returns

Transformation

micro position transformation

Inherited from

LogAbstractVisual.getMicroPositionTransformation


getModelLimits

getModelLimits(): Rect

Returns parent model limits

Returns

Rect

Inherited from

LogAbstractVisual.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

LogAbstractVisual.getName


getOddFillStyle

getOddFillStyle(): FillStyle

Returns odd fill style

Returns

FillStyle


getOddLineStyle

getOddLineStyle(): LineStyle

Returns odd line style

Returns

LineStyle


getOddSymbol

getOddSymbol(): SymbolShape

Returns odd symbol shape

Returns

SymbolShape


getOddTextStyle

getOddTextStyle(): TextStyle

Returns odd text style

Returns

TextStyle


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

LogAbstractVisual.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

LogAbstractVisual.getOpacityBlendMode


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Returns padding style

Returns

SpaceStyle<string | number>

padding


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogAbstractVisual.getParent


getProperties

getProperties(): OptionsOut<T>

Gets all the properties pertaining to this object

Returns

OptionsOut<T>

properties

Overrides

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

LogAbstractVisual.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

LogAbstractVisual.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

LogAbstractVisual.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

LogAbstractVisual.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

LogAbstractVisual.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

LogAbstractVisual.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

LogAbstractVisual.getSceneTransform


getSelectedFillStyle

getSelectedFillStyle(): FillStyle | SelectedFillStylesCallback<T>

Returns selected segment fill style

Returns

FillStyle | SelectedFillStylesCallback<T>

fill style


getSelectedIndices

getSelectedIndices(): number[]

Return selected indices

Returns

number[]

selected indices


getSelectedLineStyle

getSelectedLineStyle(): LineStyle | SelectedLineStylesCallback<T>

Returns selected segment line style

Returns

LineStyle | SelectedLineStylesCallback<T>

line style


getSelectedSymbol

getSelectedSymbol(): SymbolShape | SelectedSymbolStylesCallback<T>

Return selected segment symbol

Returns

SymbolShape | SelectedSymbolStylesCallback<T>

symbol


getSelectedTextStyle

getSelectedTextStyle(): TextStyle | SelectedTextStylesCallback<T>

Returns selected segment text style

Returns

TextStyle | SelectedTextStylesCallback<T>

text style


getSymbolMarginsStyle

getSymbolMarginsStyle(): SpaceStyle<string | number>

Return symbols margins style

Returns

SpaceStyle<string | number>

margins


getSymbolPosition

getSymbolPosition(): SymbolPosition

Returns symbols position

Returns

SymbolPosition


getSymbols

getSymbols(): SymbolShape | SymbolShape[] | SymbolStylesCallback<T>

Returns array of symbol shapes or a symbol shape callback

Returns

SymbolShape | SymbolShape[] | SymbolStylesCallback<T>


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogAbstractVisual.getTag


getTextAlign

getTextAlign(): TextAlign

Returns text alignment

Returns

TextAlign


getTextOrientation

getTextOrientation(): TextOrientation

Returns text orientation

Returns

TextOrientation


getTextStyle

getTextStyle(): TextStyle

Returns a text style

Returns

TextStyle


getTextStyles

getTextStyles(): TextStyle[] | TextStylesCallback<T>

Returns array of text styles or a text style callback

Returns

TextStyle[] | TextStylesCallback<T>


getTrack

getTrack(): ITrack

Returns parent track if LogTrack

Returns

ITrack

Inherited from

LogAbstractVisual.getTrack


getValueAtDepth

getValueAtDepth(depth): Object

Returns value closest to specified depth

Parameters

Name Type Description
depthnumbervalue at depth of current section

Returns

Object

value properties, null if no section found

NameType
indexnumber
rangeRange
section{ ellipsis: Rect }
section.ellipsisRect
valueT

getValueAtIndex

getValueAtIndex(index, depth?): Object

Returns value at specified index

Parameters

Name Type Description
indexnumbersection index
Optional depthnumbersection depth

Returns

Object

value properties, null if no section found

NameType
indexnumber
rangeRange
section{ ellipsis: Rect }
section.ellipsisRect
valueT

getValues

getValues(): ValueCallback<T> | T[]

Returns array of values

Returns

ValueCallback<T> | T[]


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

LogAbstractVisual.getVisible


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

LogAbstractVisual.getWorldTransform


getWrapMode

getWrapMode(): WrapMode

Return text wrapping mode

Returns

WrapMode


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

LogAbstractVisual.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

LogAbstractVisual.hasEventListener


hitTest

hitTest(area, radius?): SectionInfo[]

Hit test in the device coordinate. This method checks if any point is intersects <html>node inside text

Parameters

Name Type Description
areaHitTestAreamodel area or position
Optional radiusnumberradius of selection

Returns

SectionInfo[]

selected indices


invalidate

invalidate(bounds?, force?): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.invalidate


invalidateParent

invalidateParent(bounds?, force?): LogMudLogSection<T>

Invalidate bounds

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.invalidateParent


isAutoBounds

isAutoBounds(): boolean

Returns auto bounds value

Returns

boolean

Inherited from

LogAbstractVisual.isAutoBounds


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

LogAbstractVisual.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

LogAbstractVisual.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

horizontal flip

Inherited from

LogAbstractVisual.isHorizontalFlip


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

LogAbstractVisual.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

LogAbstractVisual.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

LogAbstractVisual.isSilent


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.notify


off

off<E>(type?, callback?): LogMudLogSection<T>

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.off


on

on<E>(type, callback): LogMudLogSection<T>

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.on


onHeaderSet

Protected onHeaderSet(name, headerInstance, silent?): void

This method is called if header is set. Send event Events.HeaderSet

Parameters

Name Type Description
namestringof the container. The 'header' and 'footer' is used.
headerInstanceLogVisualHeader<Node>the header instance
Optional silentbooleansilent node to avoid sending events that header is created

Returns

void

Inherited from

LogAbstractVisual.onHeaderSet


onMicroPositionChanged

Protected onMicroPositionChanged(): LogMudLogSection<T>

calls when microPosition has been changed

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.onMicroPositionChanged


onParentChanged

Protected onParentChanged(node): LogMudLogSection<T>

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

LogAbstractVisual.onVisibilityChanged


postRendering

Protected postRendering(context): void

To be called after rendering. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

LogAbstractVisual.postRendering


preRendering

Protected preRendering(context): void

Occurs before rendering this method sets clipping by default. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

LogAbstractVisual.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogAbstractVisual.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): LogMudLogSection<T>

Removes css class from node

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogMudLogSection<T>

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.removeInvalidateHandler


render

render(context): void

Renders node

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node

Returns

void

Inherited from

LogAbstractVisual.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. Default implementation creates call method "render" inside

Parameters

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

Returns

void

Inherited from

LogAbstractVisual.renderAsync


renderContent

Protected renderContent(context): void

Renders node content

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node

Returns

void

Inherited from

LogAbstractVisual.renderContent


rotate

rotate(theta, x, y): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.rotate


scale

scale(xx, yy): LogMudLogSection<T>

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.scale


setAggregation

setAggregation(aggregation): LogMudLogSection<T>

Set symbols aggregation

Parameters

Name Type Description
aggregationAggregationsymbols aggregation

Returns

LogMudLogSection<T>

this


setAnimationStyle

setAnimationStyle(animationStyle): LogMudLogSection<T>

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogMudLogSection<T>

Inherited from

LogAbstractVisual.setAnimationStyle


setAutoBounds

setAutoBounds(enable): LogMudLogSection<T>

Enables or disables auto bounds. If auto bounds is enabled then it equals to parent model limits

Parameters

Name Type Description
enablebooleanEnables or disables auto bounds

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setAutoBounds


setBaseName

setBaseName(name): LogMudLogSection<T>

Sets base name of the visual

Parameters

Name Type Description
namestringThe base name

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setBaseName


setBounds

setBounds(bounds): LogMudLogSection<T>

Sets bounds of the visual in the parent coordinates and sets up auto bounds to false

Parameters

Name Type Description
boundsRectthe rectangle specifying position of the visual in the track.

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setBounds


setClipStyle

setClipStyle(style): LogMudLogSection<T>

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setClipStyle


setCornerRadius

setCornerRadius(radius): LogMudLogSection<T>

Set border radius in device coordinates.

Parameters

Name Type Description
radiusnumberborder radius in device coordinates

Returns

LogMudLogSection<T>

this


setCss

setCss(style, merge?): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setCss


setCssClass

setCssClass(name): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setCssClass


setCssTransform

setCssTransform(transform): LogMudLogSection<T>

Set CSS transformation

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setCssTransform


setDepthsAndValues

setDepthsAndValues(depths, values): LogMudLogSection<T>

Sets array of depths and array of corresponding values

Parameters

Name Type Description
depthsnumber[]array of depths
valuesValueCallback<T> | T[]array of corresponding values along the depth or callback function

Returns

LogMudLogSection<T>

this


setDescription

setDescription(description): LogMudLogSection<T>

Sets the description

Parameters

Name Type Description
descriptionstringThe visual description

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setDescription


setEllipsisString

setEllipsisString(str): LogMudLogSection<T>

Sets ellipsis text to string under 15 characters

Parameters

Name Type Description
strstringvalue in the current section

Returns

LogMudLogSection<T>

this


setEvenFillStyle

setEvenFillStyle(fillStyle, merge?): LogMudLogSection<T>

Sets even 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

LogMudLogSection<T>

this


setEvenLineStyle

setEvenLineStyle(lineStyle, merge?): LogMudLogSection<T>

Sets even line style

Parameters

Name Type Description
lineStyleTypea new line style
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setEvenSymbol

setEvenSymbol(symbol): LogMudLogSection<T>

Sets even symbol shape

Parameters

Name Type Description
symbolSymbolShapea new symbol shape

Returns

LogMudLogSection<T>

this


setEvenTextStyle

setEvenTextStyle(textStyle, merge?): LogMudLogSection<T>

Sets even text style

Parameters

Name Type Description
textStyleTypea new text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setFillMode

setFillMode(fillMode): LogMudLogSection<T>

Sets fill mode

Parameters

Name Type Description
fillModeFillModeThe fill mode

Returns

LogMudLogSection<T>

this


setFillStyles

setFillStyles(fillStyles): LogMudLogSection<T>

Sets array of fill Styles

Parameters

Name Type Description
fillStylesType[] | FillStylesCallback<T>fill styles array to use one by one or a callback function to define each style manually

Returns

LogMudLogSection<T>

this


setHeader

setHeader(name, headerInstance, silent?): LogMudLogSection<T>

Sets header instance with specified name. This name usually defines header or footer.

Throws

if header name is null

Parameters

Name Type Description
namestringof the container. The 'header' and 'footer' is used.
headerInstanceLogVisualHeader<Node>the header instance
Optional silentbooleansilent node to avoid sending events that header is created

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setHeader


setId

setId(id): LogMudLogSection<T>

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setId


setLineStyle

setLineStyle(lineStyle, merge?): LogMudLogSection<T>

Sets line style

Parameters

Name Type Description
lineStyleTypeThe style in which the line is displayed object can be in format of constructor of LineStyle
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setLineStyle


setLineStyles

setLineStyles(lineStyles): LogMudLogSection<T>

Sets array of line Styles

Parameters

Name Type Description
lineStylesType[] | LineStylesCallback<T>line styles array to use one by one or a callback function to define each style manually

Returns

LogMudLogSection<T>

this


setLocalTransform

setLocalTransform(localTransform, force?): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Overrides

LogAbstractVisual.setMarginsStyle


setMicroPosition

setMicroPosition(left, right): LogMudLogSection<T>

Sets micro position (0 - 1). It allows application code to display the visual in a subarea of the track.
By default log visuals uses all space of the trace in the horizontal direction, but micro position allows to place log visual in the specified position of the track in horizontal direction. See example below

Example

// The following code places curve 20% from left and 20% from right.
curve.setMicroPosition(0.2,0.8);

Parameters

Name Type Description
leftnumberleft position
rightnumberright position

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setMicroPosition


setName

setName(name): LogMudLogSection<T>

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setName


setNotification

setNotification(notify, force?): LogMudLogSection<T>

set notification state

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setNotification


setOddFillStyle

setOddFillStyle(fillStyle, merge?): LogMudLogSection<T>

Sets odd 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

LogMudLogSection<T>

this


setOddLineStyle

setOddLineStyle(lineStyle, merge?): LogMudLogSection<T>

Sets odd line style

Parameters

Name Type Description
lineStyleTypea new line style
Optional mergebooleantrue if you want to merge LineStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setOddSymbol

setOddSymbol(symbol): LogMudLogSection<T>

Sets odd symbol shape

Parameters

Name Type Description
symbolSymbolShapea new symbol shape

Returns

LogMudLogSection<T>

this


setOddTextStyle

setOddTextStyle(textStyle, merge?): LogMudLogSection<T>

Sets odd text style

Parameters

Name Type Description
textStyleTypea new text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setOpacity

setOpacity(opacity, blendMode?): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setOpacity


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): LogMudLogSection<T>

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

LogMudLogSection<T>

this


setProperties

setProperties(properties?): LogMudLogSection<T>

Sets all the properties pertaining to this object

Parameters

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

Returns

LogMudLogSection<T>

this

Overrides

LogAbstractVisual.setProperties


setProperty

setProperty(name, value): LogMudLogSection<T>

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setProperty


setRenderingFilter

setRenderingFilter(filter): LogMudLogSection<T>

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogMudLogSection<T>

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogMudLogSection<T>

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setSelectable


setSelectedFillStyle

setSelectedFillStyle(fillStyle, merge?): LogMudLogSection<T>

Sets fill style for selected segment

Parameters

Name Type Description
fillStyleType | SelectedFillStylesCallback<T>a new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setSelectedIndices

setSelectedIndices(indices): LogMudLogSection<T>

Set selected indices

Parameters

Name Type Description
indicesnumber[]selected indices

Returns

LogMudLogSection<T>

this


setSelectedLineStyle

setSelectedLineStyle(lineStyle, merge?): LogMudLogSection<T>

Sets line style for selected segment

Parameters

Name Type Description
lineStyleType | SelectedLineStylesCallback<T>a new line style
Optional mergebooleantrue if you want to merge LineStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setSelectedSymbol

setSelectedSymbol(symbol): LogMudLogSection<T>

Set symbol for selected segment

Parameters

Name Type Description
symbolSymbolShape | SelectedSymbolStylesCallback<T>symbol for selected segments

Returns

LogMudLogSection<T>

this


setSelectedTextStyle

setSelectedTextStyle(textStyle, merge?): LogMudLogSection<T>

Sets text style for selected segment

Parameters

Name Type Description
textStyleType | SelectedTextStylesCallback<T>a new text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setSilent

setSilent(bool): LogMudLogSection<T>

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setSilent


setSymbolMarginsStyle

setSymbolMarginsStyle(margins, merge?): LogMudLogSection<T>

Sets symbols 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

LogMudLogSection<T>

this


setSymbolPosition

setSymbolPosition(position): LogMudLogSection<T>

Set symbols position

Parameters

Name Type Description
positionSymbolPositionsymbol position

Returns

LogMudLogSection<T>

this


setSymbols

setSymbols(symbols): LogMudLogSection<T>

Set array of symbol shapes or a symbol shape callback

Parameters

Name Type Description
symbolsSymbolShape | SymbolShape[] | SymbolStylesCallback<T>symbols

Returns

LogMudLogSection<T>

this


setTag

setTag(tag): LogMudLogSection<T>

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

Parameters

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setTag


setTextAlign

setTextAlign(textAlign): LogMudLogSection<T>

Sets text alignment

Parameters

Name Type Description
textAlignTextAligntext alignment

Returns

LogMudLogSection<T>

this


setTextOrientation

setTextOrientation(textOrientation): LogMudLogSection<T>

Sets text orientation

Parameters

Name Type Description
textOrientationTextOrientationtext orientation

Returns

LogMudLogSection<T>

this


setTextStyle

setTextStyle(textStyle, merge?): LogMudLogSection<T>

Sets text style

Parameters

Name Type Description
textStyleTypea new shape text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogMudLogSection<T>

this


setTextStyles

setTextStyles(textStyles): LogMudLogSection<T>

Sets array of text Styles

Parameters

Name Type Description
textStylesType[] | TextStylesCallback<T>text styles array to use one by one or a callback function to define each style manually

Returns

LogMudLogSection<T>

this


setVisible

setVisible(value): LogMudLogSection<T>

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setVisible


setWrapMode

setWrapMode(wrapMode): LogMudLogSection<T>

Set text wrapping mode

Parameters

Name Type Description
wrapModeWrapModetext wrapping mode

Returns

LogMudLogSection<T>


setZIndex

setZIndex(value): LogMudLogSection<T>

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.setZIndex


shear

shear(shx, shy): LogMudLogSection<T>

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

LogAbstractVisual.toString


translate

translate(tx, ty): LogMudLogSection<T>

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogAbstractVisual.unregisterAnimationStyle


updateSceneTransformation

updateSceneTransformation(): LogMudLogSection<T>

Update scene transformation

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.updateSceneTransformation


updateState

updateState(regions?, changes?): LogMudLogSection<T>

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

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.updateState


updateTimeStamp

Protected updateTimeStamp(): LogMudLogSection<T>

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

Returns

LogMudLogSection<T>

this

Inherited from

LogAbstractVisual.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

LogAbstractVisual.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

LogAbstractVisual.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

LogAbstractVisual.isSceneGraphNotificationEnabled