API / geotoolkit / welllog / Log2DVisual / Log2DVisual

Class: Log2DVisual

welllog.Log2DVisual.Log2DVisual

Defines a 2D log visual. Data is passed in an Log2DVisualData containing rows of Log2DDataRow. This visual is added to a log track to be displayed.
Log2DVisual visual can be used to display FMI logs (Acoustic/Optic borehole imaging) or density logs.
It requires to provide column base data for each depth. The provided data is organized as a table: a collection of rows and columns inside the row.
You can specify your values as in vertical or horizontal or both directions.

Please refer to tutorial Log2D Visual in Welllog.

Hierarchy

Implements

Table of contents

Constructors
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposeenableColumnDecimationenableEventPropagation
executefiltergetAlignment
getAnglesLimitsgetAnimationStylegetAutoAnglesLimits
getBaseNamegetBoundsgetClassName
getClipStylegetColorProvidergetContentsTransform
getCssgetCssClassgetCssClasses
getCssTransformgetDatagetDataLimits
getDecimationStrategygetDescriptiongetGapDistance
getGapDistanceUnitgetGapFillCutoffUnitgetGapFillCutoffValue
getGapUnitgetGapValuegetHeader
getHeadersgetIdgetInvalidateMethod
getLineStylegetLocalTransformgetMarginsStyle
getMaxDepthgetMicroPositionLeftgetMicroPositionRight
getMicroPositionTransformationgetMinDepthgetModelLimits
getNamegetOffsetsgetOpacity
getOpacityBlendModegetParentgetPlotType
getPropertiesgetPropertygetPropertyKeys
getRenderingFiltergetResponsiveStylegetRoot
getRowAlignmentgetRowsInterpolationgetScaleScrollStrategy
getSceneTransformgetTaggetTrack
getVisiblegetWebGLRenderinggetWorldTransform
getWrapInterpolationgetZIndexhasCssClass
hasEventListenerhitTestinvalidate
invalidateParentisAutoBoundsisColumnDecimationEnabled
isDisposedisEventPropagationEnabledisHorizontalFlip
isNotificationEnabledisSelectableisSilent
notifyoffon
onHeaderSetonMicroPositionChangedonParentChanged
onVisibilityChangedpostRenderingpreRendering
registerAnimationStyleremoveCssClassremoveInvalidateHandler
renderrenderAsyncrenderContent
requestDatarotatescale
setAlignmentsetAnglesLimitssetAnimationStyle
setAutoAnglesLimitssetAutoBoundssetBaseName
setBoundssetClipStylesetColorProvider
setCsssetCssClasssetCssTransform
setDatasetDecimationStrategysetDescription
setGapDistancesetGapDistanceUnitsetGapFillCutoffUnit
setGapFillCutoffValuesetGapUnitsetGapValue
setHeadersetHorizontalFlipsetId
setLineStylesetLocalTransformsetMarginsStyle
setMicroPositionsetNamesetNotification
setOffsetssetOpacitysetPlotType
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetRowAlignmentsetRowsInterpolation
setScaleScrollStrategysetSelectablesetSilent
setTagsetVisiblesetWebGLRendering
setWrapInterpolationsetZIndexshear
toStringtranslateunregisterAnimationStyle
updateSceneTransformationupdateStateupdateTimeStamp
enableSceneGraphNotificationfindParentgetClassName
isSceneGraphNotificationEnabled
Css Properties
Name Type Description
autoanglelimitsbooleanAuto angle model limits
autoboundsbooleanEnables or disables auto bounds
autoupdatebooleanFlag for automatic update from datasource
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 ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
colorproviderColorProviderColor provider
colorprovider-maxnumber
colorprovider-minnumber
colorprovider-scaleKnownScales
columnalignmentColumnAlignmentSpecify a type of interpolation alignment of column
columndecimationbooleanEnable column decimation if data has more columns than width of the visual in device
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
descriptionstringThe description
idstring | numberId of the node, its a unique identifier
linestylestringLinestyle
linestyleLineStyleLinestyle
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-fill-colorstringColor in CSS form
linestyle-fill-evenoddmodebooleanEven-odd fill mode
linestyle-fill-fillpatternPatternPattern
linestyle-fill-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
linestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
linestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
linestyle-fill-foregroundstringForeground color
linestyle-fill-patternPatternPattern
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
maxanglenumberMax angle
microposleftnumberLeft micro position
microposrightnumberRight micro position
minanglenumberMin angle
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
plotmodePlotTypesPlot mode
rowalignmentRowAlignmentSpecify a type of interpolation alignment of row
rowsinterpolationInterpolationTypeSpecify a type of interpolation between rows
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
viewcachebooleanTrue, if tiled cache is enabled for rendering
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
webglrenderingbooleanTrue, if webGL is needed for rendering
wrapinterpolationbooleanType of the wrap interpolation to specify how to process the edge values
z-indexnumberDefine node z-index

Contents

Constructors

new Log2DVisual(options, autoUpdate)

new Log2DVisual(options?, autoUpdate?)

Constructor

Throws

if the decimation strategy type is not based on the AbstractDecimationStrategy

Parameters

Name Type Description
Optional optionsArrayLogDataSource | Log2DVisualData | Optionsinstance of log2data or object containing log visual configuration
Optional autoUpdatebooleanautomatic update from data source

Overrides

LogAbstractVisual.constructor

Methods

addCssClass

addCssClass(cssclass): Log2DVisual

Adds new css class to node

Parameters

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

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): Log2DVisual

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): Log2DVisual

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

Log2DVisual

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(): Log2DVisual

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

Returns

Log2DVisual

clone

Overrides

LogAbstractVisual.clone


connectStyle

connectStyle(style, type, callback): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): Log2DVisual

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

Returns

Log2DVisual

this

Overrides

LogAbstractVisual.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): Log2DVisual

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

Log2DVisual

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


enableColumnDecimation

enableColumnDecimation(enable): Log2DVisual

Enable columns decimation

Parameters

Name Type Description
enablebooleanenable / disable decimation

Returns

Log2DVisual

this


enableEventPropagation

enableEventPropagation(enable): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.enableEventPropagation


execute

execute(delegate): Log2DVisual

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

Returns

Log2DVisual

The result if any or this

Inherited from

LogAbstractVisual.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: Log2DVisual) => 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


getAlignment

getAlignment(): ColumnAlignment

Return interpolation alignment

Returns

ColumnAlignment

wrapInterpolation


getAnglesLimits

getAnglesLimits(): Range

Returns angle limits

Returns

Range


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogAbstractVisual.getAnimationStyle


getAutoAnglesLimits

getAutoAnglesLimits(): boolean

Returns the status of the auto angle limits

Returns

boolean


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

Overrides

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


getColorProvider

getColorProvider(): ColorProvider

Gets color provider

Returns

ColorProvider

Implementation of

IColorProviderVisual.getColorProvider


getContentsTransform

getContentsTransform(): Transformation

Retrieves the world transformation of the spatial

Returns

Transformation

Overrides

LogAbstractVisual.getContentsTransform


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


getData

getData(): ArrayLogDataSource | Log2DVisualData

Returns data

Returns

ArrayLogDataSource | Log2DVisualData


getDataLimits

getDataLimits(fullLimits?): Rect

Parameters

Name Type Description
Optional fullLimitsbooleanflag to return a full depth limits or mining depth limits without null values

Returns

Rect

Overrides

LogAbstractVisual.getDataLimits


getDecimationStrategy

getDecimationStrategy(): AbstractDecimationStrategy

Get decimation strategy for dense areas

Returns

AbstractDecimationStrategy


getDescription

getDescription(): string

Gets the description

Returns

string

The description

Inherited from

LogAbstractVisual.getDescription


getGapDistance

getGapDistance(): number

Returns The maximum discontinuity distance to render discontinuity

Returns

number

gap distance


getGapDistanceUnit

getGapDistanceUnit(): AbstractUnit

Returns the unit of the gap distance

Returns

AbstractUnit

The gap distance unit


getGapFillCutoffUnit

getGapFillCutoffUnit(): AbstractUnit

Returns the unit of the cutoff used for removing NaN valued samples

Returns

AbstractUnit

The cutoff unit


getGapFillCutoffValue

getGapFillCutoffValue(): number

Returns the value of the cutoff used for removing NaN valued samples

Returns

number

The cutoff value


getGapUnit

getGapUnit(): AbstractUnit

Returns the unit of the gap

Returns

AbstractUnit

The cutoff unit


getGapValue

getGapValue(): number

Returns The maximum discontinuity allowed in depth or time

Returns

number

value


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


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>

Inherited from

LogAbstractVisual.getMarginsStyle


getMaxDepth

getMaxDepth(): number

Returns maximum depth of the data set

Returns

number


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


getMinDepth

getMinDepth(): number

Returns minimum depth of the data set

Returns

number


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


getOffsets

getOffsets(): number | number[]

Returns the offset of data

Returns

number | number[]

offset array of the same size as data set


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


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogAbstractVisual.getParent


getPlotType

getPlotType(): string

Gets plot type

Returns

string


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

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


getRowAlignment

getRowAlignment(): RowAlignment

Return interpolation alignment

Returns

RowAlignment

row alignment


getRowsInterpolation

getRowsInterpolation(): InterpolationType

Returns type of interpolation for rows values

Returns

InterpolationType

interpolation


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


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogAbstractVisual.getTag


getTrack

getTrack(): ITrack

Returns parent track if LogTrack

Returns

ITrack

Inherited from

LogAbstractVisual.getTrack


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

LogAbstractVisual.getVisible


getWebGLRendering

getWebGLRendering(): boolean

Gets webGL rendering

Returns

boolean

true, if webGL is used for rendering


getWorldTransform

getWorldTransform(): Transformation

Retrieves the world transformation of the node to transform model coordinates to the parent track

Returns

Transformation

Overrides

LogAbstractVisual.getWorldTransform


getWrapInterpolation

getWrapInterpolation(): boolean

Return wrap interpolation

Returns

boolean

wrapInterpolation


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?): Hits

Hit test in the device coordinates

Parameters

Name Type Description
areaPoint | Rectmodel area or position
Optional radiusnumberradius of selection

Returns

Hits

hit test result


invalidate

invalidate(bounds?, force?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.invalidate


invalidateParent

invalidateParent(bounds?, force?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.invalidateParent


isAutoBounds

isAutoBounds(): boolean

Returns auto bounds value

Returns

boolean

Inherited from

LogAbstractVisual.isAutoBounds


isColumnDecimationEnabled

isColumnDecimationEnabled(): boolean

Returns if column decimation is enabled

Returns

boolean

status if it is enabled


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

Overrides

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?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.notify


off

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

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

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.off


on

on<E>(type, callback): Log2DVisual

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

Returns

Log2DVisual

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(): Log2DVisual

calls when microPosition has been changed

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.onMicroPositionChanged


onParentChanged

Protected onParentChanged(node): Log2DVisual

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

Log2DVisual

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): Log2DVisual

Removes css class from node

Parameters

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

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): Log2DVisual

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

Log2DVisual

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


requestData

Protected requestData(range, scale, callback?): void

Parameters

Name Type
rangeRange
scalenumber
Optional callback() => void

Returns

void


rotate

rotate(theta, x, y): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.rotate


scale

scale(xx, yy): Log2DVisual

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.scale


setAlignment

setAlignment(alignment): Log2DVisual

Set interpolation alignment

Parameters

Name Type Description
alignmentColumnAlignmentalignment of column

Returns

Log2DVisual

this


setAnglesLimits

setAnglesLimits(left, right): Log2DVisual

Sets angles limits of the data. By default it is from 0 to 2*PI

Parameters

Name Type Description
leftnumberleft angle in radians
rightnumberright angle in radians

Returns

Log2DVisual


setAnimationStyle

setAnimationStyle(animationStyle): Log2DVisual

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

Log2DVisual

Inherited from

LogAbstractVisual.setAnimationStyle


setAutoAnglesLimits

setAutoAnglesLimits(enable): Log2DVisual

Enable / disable usage limits from data. By default automatic limit is disabled

Parameters

Name Type Description
enablebooleanenable or disable usage data limits

Returns

Log2DVisual


setAutoBounds

setAutoBounds(enable): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setAutoBounds


setBaseName

setBaseName(name): Log2DVisual

Sets base name of the visual

Parameters

Name Type Description
namestringThe base name

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setBaseName


setBounds

setBounds(bounds): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setBounds


setClipStyle

setClipStyle(style): Log2DVisual

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setClipStyle


setColorProvider

setColorProvider(colorProvider?): Log2DVisual

Sets color provider

Parameters

Name Type Description
Optional colorProviderColorProvider | { type?: string }the color provider

Returns

Log2DVisual


setCss

setCss(style, merge?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setCss


setCssClass

setCssClass(name): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setCssClass


setCssTransform

setCssTransform(transform): Log2DVisual

Set CSS transformation

Parameters

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

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setCssTransform


setData

setData(data, autoUpdate?): Log2DVisual

Sets data

Parameters

Name Type Description
dataDataInfoinstance of log2data
Optional autoUpdatebooleanautomatic update from data source

Returns

Log2DVisual

this


setDecimationStrategy

setDecimationStrategy(decimationStrategy): Log2DVisual

Set decimation strategy for dense areas

Throws

if the decimation strategy is null or its type is not based on the AbstractDecimationStrategy

Parameters

Name Type Description
decimationStrategyAbstractDecimationStrategynew decimation strategy

Returns

Log2DVisual


setDescription

setDescription(description): Log2DVisual

Sets the description

Parameters

Name Type Description
descriptionstringThe visual description

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setDescription


setGapDistance

setGapDistance(distance, merge?): Log2DVisual

Set the value of the gap distance. Discontinuity will be rendered in specified distance, use gap value if distance is not specified or NaN

Parameters

Name Type Description
distancenumberThe maximum distance to render discontinuity allowed in depth or time
Optional mergebooleantrue if you want to convert new value to existing unit

Returns

Log2DVisual

this


setGapDistanceUnit

setGapDistanceUnit(unit): Log2DVisual

Sets the unit of the gap distance to show discontinuity in sample when the cutoff value is non zero and the unit is convertible to the index unit. If unit is not specified then curve index unit is used. if a depth or time interval is less than specified cutoff value then interval is connected and NaN values between are removed.

Parameters

Name Type Description
unitstring | AbstractUnitThe unit

Returns

Log2DVisual

this


setGapFillCutoffUnit

setGapFillCutoffUnit(unit): Log2DVisual

Sets the unit of the cutoff used for removing NaN valued samples. Gaps will only be 'filled' when the cutoff value is non zero and the unit is convertible to the index unit. If unit is not specified then curve index unit is used. if a depth or time interval is less than specified cutoff value then interval is connected and NaN values between are removed.

Parameters

Name Type Description
unitstring | AbstractUnitThe unit or unit symbol to use for the gap fill cutoff

Returns

Log2DVisual

this


setGapFillCutoffValue

setGapFillCutoffValue(cutoff, merge?): Log2DVisual

Sets the value of the cutoff used for removing NaN valued samples. Gaps will only be 'filled' when the cutoff value is non zero and the unit is convertible to the index unit.

Parameters

Name Type Description
cutoffstring | numberThe cutoff value. When non zero and a matching unit is set
Optional mergebooleantrue if you want to convert new value to existing unit

Returns

Log2DVisual

this


setGapUnit

setGapUnit(unit): Log2DVisual

Sets the unit of the gap to show discontinuity in sample when the cutoff value is non zero and the unit is convertible to the index unit. If unit is not specified then curve index unit is used. if a depth or time interval is less than specified cutoff value then interval is connected and NaN values between are removed.

Parameters

Name Type Description
unitstring | AbstractUnitThe unit

Returns

Log2DVisual

this


setGapValue

setGapValue(value, merge?): Log2DVisual

Set the value of the gap. Value will be used to disconnect the sample if the distance between two samples in depth or time is more than specified value

Parameters

Name Type Description
valuestring | numberThe maximum discontinuity allowed in depth or time
Optional mergebooleantrue if you want to convert new value to existing unit

Returns

Log2DVisual

this


setHeader

setHeader(name, headerInstance, silent?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setHeader


setHorizontalFlip

setHorizontalFlip(enable): Log2DVisual

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

Log2DVisual

this


setId

setId(id): Log2DVisual

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setId


setLineStyle

setLineStyle(lineStyle, merge?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setMarginsStyle


setMicroPosition

setMicroPosition(left, right): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setMicroPosition


setName

setName(name): Log2DVisual

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setName


setNotification

setNotification(notify, force?): Log2DVisual

set notification state

Parameters

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

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setNotification


setOffsets

setOffsets(offsets): Log2DVisual

Sets the offset of data

Example

// following example shows how to use setOffsets() method to rotate Log2DVisual
let degreesToRadians = function(degrees){
return degrees * Math.PI / 180;
};

function createOffsets (data, offset) {
let offsets = [];
for (let i = 0; i < data.getRows().length; i++)
offsets.push(offset);
return offsets;
}

log2dVisual.setOffsets(createOffsets(log2d.getData(), degreesToRadians(val)));

Parameters

Name Type Description
offsetsnumber | number[]array of the same size as data set

Returns

Log2DVisual


setOpacity

setOpacity(opacity, blendMode?): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setOpacity


setPlotType

setPlotType(mode): Log2DVisual

Sets Plot type to specify linear o step interpolation of values in columns

In linear interpolation mode it interpolates value from the previous column to the end of the current column and the first column is ignored, which can be represented as end of the sector if consider each column as a sector. if it is necessary to start from beginning of the sector or in the middle then you can specify offset equal to the first column angle or the half the first column angle.

Parameters

Name Type Description
modestringplot types (step plot mode or linear plot mode) to be used for interpolation

Returns

Log2DVisual


setProperties

setProperties(properties?): Log2DVisual

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

Log2DVisual

Overrides

LogAbstractVisual.setProperties


setProperty

setProperty(name, value): Log2DVisual

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setProperty


setRenderingFilter

setRenderingFilter(filter): Log2DVisual

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): Log2DVisual

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setResponsiveStyle


setRowAlignment

setRowAlignment(alignment): Log2DVisual

Set interpolation alignment

Parameters

Name Type Description
alignmentRowAlignmentalignment of row

Returns

Log2DVisual

this


setRowsInterpolation

setRowsInterpolation(interpolation): Log2DVisual

Set type of interpolation for rows values

Parameters

Name Type Description
interpolationInterpolationTypespecify a type of interpolation between rows

Returns

Log2DVisual

this


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): Log2DVisual

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setScaleScrollStrategy


setSelectable

setSelectable(selectable): Log2DVisual

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

Log2DVisual

this

Inherited from

LogAbstractVisual.setSelectable


setSilent

setSilent(bool): Log2DVisual

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setSilent


setTag

setTag(tag): Log2DVisual

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

Parameters

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

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setTag


setVisible

setVisible(value): Log2DVisual

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setVisible


setWebGLRendering

setWebGLRendering(webglEnabled): Log2DVisual

Sets webGL rendering

Parameters

Name Type Description
webglEnabledbooleantrue, if webGL is needed for rendering

Returns

Log2DVisual

this


setWrapInterpolation

setWrapInterpolation(wrapInterpolation): Log2DVisual

Set wrap interpolation

Parameters

Name Type Description
wrapInterpolationbooleantype of the wrap interpolation to specify how to process the edge values

Returns

Log2DVisual

this


setZIndex

setZIndex(value): Log2DVisual

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.setZIndex


shear

shear(shx, shy): Log2DVisual

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

Log2DVisual

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): Log2DVisual

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

Log2DVisual

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(): Log2DVisual

Update scene transformation

Returns

Log2DVisual

this

Inherited from

LogAbstractVisual.updateSceneTransformation


updateState

updateState(regions?, changes?): Log2DVisual

Update state.

Parameters

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

Returns

Log2DVisual

this

Overrides

LogAbstractVisual.updateState


updateTimeStamp

Protected updateTimeStamp(): Log2DVisual

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

Returns

Log2DVisual

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