Last updated

API / geotoolkit / schematics / scene / LShapedWellBoreNode / LShapedWellBoreNode

Class: LShapedWellBoreNode

scene.LShapedWellBoreNode.LShapedWellBoreNode

L-shaped WellBoreNode extension.

Example

// how to create and add data to L-Shaped Schematic
import {LShapedWellBoreNode} from '@int/geotoolkit/schematics/scene/LShapedWellBoreNode';
...
const wellBoreNode = new LShapedWellBoreNode({
'data': wellBoreData,
'trackWidth': 250,
// Setup the deviation point (compare to the "tubing" depth range above)
'deviationDepth': 8000,
'LShapeAccuracy': 16
})

Hierarchy

Table of contents

Constructors
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddOverlayadjustPosition
applyOpacityapplyResponsiveStylechangeBaseLayerOrder
changeChildOrderchangeOverlayOrdercheckCollision
clearBaseLayersclearCacheclearChildren
clearComponentsclearOverlaysclone
connectStylecopyConstructordisconnectStyle
disposedrawBorderenableClipping
enableEventPropagationenablePickingChildrenenumerateNodes
executefiltergetAnimationStyle
getAutoModelLimitsModegetAutoModelLimitsStrategygetBaseLayer
getBaseLayersgetBaseLayersCountgetBounds
getBuildergetCachegetChild
getChildrengetChildrenCountgetClassName
getClipStylegetComponentNodeProxygetComponents
getComponentsVisibilitygetContentOrientationgetContentsArea
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetDepthUnit
getDesiredHeightgetDesiredWidthgetDeviationDepth
getDeviceLimitsgetFactoryRegistrygetFillStyle
getForceOpenHolegetHighlightBoundsCalculatorgetHighlightLayersIterator
getHighlightShapesgetIdgetInfiniteMode
getInvalidateMethodgetLayoutgetLayoutStyle
getLineStylegetLocalTransformgetMarginsStyle
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetOverlaygetOverlayAt
getOverlaysgetOverlaysCountgetPaddingStyle
getParentgetPreferredSizegetProperties
getPropertygetPropertyKeysgetRenderingFilter
getRenderingHintsgetResponsiveStylegetRoot
getScaleScrollStrategygetSceneTransformgetSelectedComponentNodes
getTaggetUnitsOptionsgetValueUnit
getValueViewModegetViewModegetVisible
getVisibleDeviceLimitsgetVisibleModelLimitsgetWellBoreData
getWorldTransformgetZIndexhasCssClass
hasEventListenerhighlightComponentNodeindexOfBaseLayer
indexOfChildindexOfOverlayinsertBaseLayer
insertChildinsertOverlayinvalidate
invalidateLayoutinvalidateParentisClippingEnabled
isDisposedisEventPropagationEnabledisHorizontalFlip
isLayoutInvalidatedisNotificationEnabledisPickingChildrenEnabled
isSelectableisSilentisVerticalFlip
moveTonotifynotifyRoot
offononBoundsChanged
onChildAddedonChildRemovedonParentChanged
onVisibilityChangedpostRenderingpreRendering
rebuildregisterAnimationStyleremoveBaseLayer
removeChildremoveCssClassremoveInvalidateHandler
removeOverlayrenderrenderAsync
renderBackgroundrenderBaseLayersrenderBaseLayersAsync
renderChildrenrenderChildrenAsyncrenderContent
renderContentAsyncrenderOverlaysrenderOverlaysAsync
replaceComponentresumeUpdaterotate
scalesetAnimationStylesetAutoModelLimitsMode
setAutoModelLimitsStrategysetBoundssetBuilder
setCachesetChildsetClipStyle
setComponentsVisibilitysetContentOrientationsetCss
setCssClasssetCssTransformsetDesiredHeight
setDesiredWidthsetDeviationDepthsetFactoryRegistry
setFillStylesetForceOpenHolesetHorizontalFlip
setIdsetInfiniteModesetLayout
setLayoutInvalidatedsetLayoutStylesetLineStyle
setLocalTransformsetMarginsStylesetModelLimits
setNamesetNotificationsetOpacity
setPaddingStylesetPropertiessetProperty
setRenderingFiltersetRenderingHintssetResponsiveStyle
setScaleScrollStrategysetSelectablesetSelectedComponentNodes
setSilentsetTagsetUnitsOptions
setValueViewModesetVerticalFlipsetViewMode
setVisiblesetVisibleModelLimitssetWellBoreData
setZIndexshearsuspendUpdate
toStringtranslateunregisterAnimationStyle
updateLayoutupdateSceneTransformationupdateState
updateSuspendedupdateTimeStampenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
automodellimitsmodebooleanAuto model limits mode
boundsRectDefine position of the group in the parent
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
contentorientationOrientationContent orientation
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
dataWellBoreDataWell bore data
data-unitsUnitsOptionsUnits options
data-units-depthstringDepth units
data-units-valuestringValue units
deviationdepthnumberDeviation depth (if "null" then it's calculated based on the data)
fillstylestringFill style
fillstyleFillStyleFill style
fillstyle-colorstringColor in CSS form
fillstyle-evenoddmodebooleanEven-odd fill mode
fillstyle-fillpatternPatternPattern
fillstyle-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
fillstyle-fillpattern-patternnamestringName of this pattern for indexing
fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
fillstyle-foregroundstringForeground color
fillstyle-patternPatternPattern
forceopenholebooleanForce showing open hole (even if it's not in the data)
highlightHighlightComponent highlight options
highlight-boundscalculationstringImplementation (or its type) to calculate component's area to highlight
highlight-cssclassstringDefine component highlight class name
highlight-fillstylestringDefine fill style attribute for component highlight
highlight-fillstyleFillStyleDefine fill style attribute for component highlight
highlight-linestylestringDefine line style attribute for component highlight
highlight-linestyleLineStyleDefine line style attribute for component highlight
highlight-linestyle-colorstringColor in CSS form
highlight-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
highlight-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
highlight-linestyle-linecapCapStyleThe line cap style
highlight-linestyle-linedashoffsetnumberLine dash offset of dashed line
highlight-linestyle-linejoinJoinStyleThe line join style
highlight-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
highlight-linestyle-scalablebooleanTrue if width should depend on transformation
highlight-linestyle-unitstringOptional unit for the width
highlight-linestyle-widthnumber | stringThe line thickness
horizontalflipbooleanHorizontal axis goes from right to left
idstring | numberId of the node, its a unique identifier
infinitybooleanMode to render outside the model limits
layoutstyleLayoutStyleLayout style to be used for parent layout
layoutstyle-constraintSizeConstraintLayout constrains
layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
layoutstyle-floatstringFloat position
layoutstyle-positionstringLayout position
layoutstyle-sizenumber | stringLayout size
linestylestringLine style
linestyleLineStyleLine style
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
lshapeaccuracynumberAccuracy (bigger number means smoother L-shape)
marginsnumber | stringIt has properties for specifying the margins for each side
modellimitsRectDefine inner model coordinates of the group
namestringName of the node. It is often used for debugging purposes or to simplify queries
opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
opacityblendmodeBlendModeNode opacity mode to blend it
paddingnumber | stringIt has properties for specifying the padding for each side
pickingchildrenbooleanEnable picking children
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
trackwidthnumberTrack width
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
unitsUnitsOptions
valueviewmodeValueViewModeValue view mode
verticalflipbooleanVertical axis goes from bottom to top
viewcachebooleanView cache to cache child nodes
viewmodeViewModeView mode type or an object containing view mode type and options
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LShapedWellBoreNode(options)

new LShapedWellBoreNode(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

WellBoreNode.constructor

Methods

addBaseLayer

addBaseLayer(baseLayer): LShapedWellBoreNode

Add baseLayer to container

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.addBaseLayer


addChild

addChild(node): LShapedWellBoreNode

Add a child node

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.addChild


addCssClass

addCssClass(cssclass): LShapedWellBoreNode

Adds new css class to node

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LShapedWellBoreNode

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.addInvalidateHandler


addOverlay

addOverlay(overlay): LShapedWellBoreNode

Add overlay to container

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.addOverlay


adjustPosition

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

Adjust position of node to specified area

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.adjustPosition


applyOpacity

Protected applyOpacity(context): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

WellBoreNode.applyResponsiveStyle


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): LShapedWellBoreNode

Changes the z-order of the baseLayer.

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): LShapedWellBoreNode

changes the z-order of the nodes being rendered.

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): LShapedWellBoreNode

Changes the z-order of the overlay.

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.changeOverlayOrder


checkCollision

checkCollision(context): boolean

Check culling Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if node is collided

Inherited from

WellBoreNode.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): LShapedWellBoreNode

Remove all child baseLayers from group

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.clearBaseLayers


clearCache

clearCache(): LShapedWellBoreNode

Clear cache

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.clearCache


clearChildren

clearChildren(disposeChildren?): LShapedWellBoreNode

Remove all child nodes from this composite group

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.clearChildren


clearComponents

Protected clearComponents(disposeComponents?): void

Parameters

Name Type Description
Optional disposeComponentsbooleanautomatically dispose components

Returns

void

Overrides

WellBoreNode.clearComponents


clearOverlays

clearOverlays(disposeOverlays?): LShapedWellBoreNode

Remove all child overlays from group

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.clearOverlays


clone

clone(): Group<Node>

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

Returns

Group<Node>

clone

Inherited from

WellBoreNode.clone


connectStyle

connectStyle(style, type, callback): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LShapedWellBoreNode

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

Parameters

Name Type Description
srcGroup<Node>Source to copy from
Optional deepCopybooleandeep copy

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

WellBoreNode.dispose


drawBorder

Protected drawBorder(localContext, bounds?): LShapedWellBoreNode

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

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.drawBorder


enableClipping

enableClipping(doClip): LShapedWellBoreNode

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

Parameters

Name Type Description
doClipbooleanenable clipping on this node

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.enableClipping


enableEventPropagation

enableEventPropagation(enable): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): LShapedWellBoreNode

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.enablePickingChildren


enumerateNodes

enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

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

Returns

void

Inherited from

WellBoreNode.enumerateNodes


execute

execute(delegate): LShapedWellBoreNode

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

Returns

LShapedWellBoreNode

The result if any or this

Inherited from

WellBoreNode.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LShapedWellBoreNode) => T

Returns

T

Inherited from

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

WellBoreNode.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

WellBoreNode.getAnimationStyle


getAutoModelLimitsMode

getAutoModelLimitsMode(): boolean

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

Returns

boolean

mode

Inherited from

WellBoreNode.getAutoModelLimitsMode


getAutoModelLimitsStrategy

getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

WellBoreNode.getAutoModelLimitsStrategy


getBaseLayer

getBaseLayer(index): Node

Return baseLayer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the baseLayer for

Returns

Node

track

Inherited from

WellBoreNode.getBaseLayer


getBaseLayers

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

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S>

Parameters

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

Returns

Iterator<Node>

Inherited from

WellBoreNode.getBaseLayers

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

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

Example

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

Parameters

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

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

WellBoreNode.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

WellBoreNode.getBaseLayersCount


getBounds

getBounds(): Rect

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

Returns

Rect

current bounds

Inherited from

WellBoreNode.getBounds


getBuilder

getBuilder(viewMode): IViewModeBuilder

Gets the view mode's builder

Parameters

Name Type Description
viewModeViewModeview mode

Returns

IViewModeBuilder

the mode builder if found

Inherited from

WellBoreNode.getBuilder


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

WellBoreNode.getCache


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

WellBoreNode.getChild


getChildren

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

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S>

Parameters

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

Returns

Iterator<S>

Inherited from

WellBoreNode.getChildren

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

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

Example

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

Parameters

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

Returns

Iterator<Node>

An iterator for child nodes.

Inherited from

WellBoreNode.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

WellBoreNode.getChildrenCount


getClassName

getClassName(): string

Returns

string

Inherited from

WellBoreNode.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

WellBoreNode.getClipStyle


getComponentNodeProxy

getComponentNodeProxy(componentNode): ComponentNodeProxy

Parameters

Name Type Description
componentNodeComponentNodecomponent node

Returns

ComponentNodeProxy

Inherited from

WellBoreNode.getComponentNodeProxy


getComponents

getComponents(filter?): Iterator<ComponentNode>

Gets iterator over its ComponentNode components

Parameters

Name Type Description
Optional filter(node: Node) => booleana filter function

Returns

Iterator<ComponentNode>

Inherited from

WellBoreNode.getComponents


getComponentsVisibility

getComponentsVisibility(): ComponentsVisibility

Gets visibility settings (see "setComponentsVisibility" for detailed format)

Returns

ComponentsVisibility

Inherited from

WellBoreNode.getComponentsVisibility


getContentOrientation

getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

WellBoreNode.getContentOrientation


getContentsArea

getContentsArea(transformation?): Rect

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

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

WellBoreNode.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

getContentsTransform() retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

WellBoreNode.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

WellBoreNode.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

WellBoreNode.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

WellBoreNode.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

WellBoreNode.getCssTransform


getDepthUnit

getDepthUnit(): AbstractUnit

Gets depth unit

Deprecated

since 4.0

Returns

AbstractUnit

Inherited from

WellBoreNode.getDepthUnit


getDesiredHeight

getDesiredHeight(): string | number

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

Returns

string | number

desired height ("undefined" by default)

Inherited from

WellBoreNode.getDesiredHeight


getDesiredWidth

getDesiredWidth(): string | number

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

Returns

string | number

desired width ("undefined" by default)

Inherited from

WellBoreNode.getDesiredWidth


getDeviationDepth

getDeviationDepth(type?): number

Gets deviation depth value (or object if 'KOP' and 'EOC' values set before)

Parameters

Name Type Description
Optional type"kop" | "eoc"deviation depth type ('KOP' or 'EOC')

Returns

number

value or structure

getDeviationDepth(): Object

Returns

Object

NameType
eocnumber
kopnumber

getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

WellBoreNode.getDeviceLimits


getFactoryRegistry

getFactoryRegistry(): ComponentNodeFactoryRegistry

Gets factory registry associated with the node.

Returns

ComponentNodeFactoryRegistry

registry

Inherited from

WellBoreNode.getFactoryRegistry


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

WellBoreNode.getFillStyle


getForceOpenHole

getForceOpenHole(): boolean

Gets forced open hole state

Returns

boolean

Inherited from

WellBoreNode.getForceOpenHole


getHighlightBoundsCalculator

Protected getHighlightBoundsCalculator(): BoundsCalculation

Returns

BoundsCalculation

Inherited from

WellBoreNode.getHighlightBoundsCalculator


getHighlightLayersIterator

Protected getHighlightLayersIterator(func?): Iterator<Layer<Path>>

Parameters

Name Type
Optional func(item: Node) => boolean

Returns

Iterator<Layer<Path>>

Overrides

WellBoreNode.getHighlightLayersIterator


getHighlightShapes

Protected getHighlightShapes(nodeId, type): Path[]

Parameters

Name Type
nodeIdstring
type"selection" | "highlight"

Returns

Path[]

Overrides

WellBoreNode.getHighlightShapes


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

WellBoreNode.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

WellBoreNode.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

WellBoreNode.getInvalidateMethod


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

WellBoreNode.getLayout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

WellBoreNode.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

WellBoreNode.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

WellBoreNode.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

WellBoreNode.getMarginsStyle


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

WellBoreNode.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

WellBoreNode.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

WellBoreNode.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

WellBoreNode.getOpacityBlendMode


getOverlay

getOverlay(index): Node

Return overlay at specified index

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

WellBoreNode.getOverlay


getOverlayAt

getOverlayAt(index): Node

Return overlay at specified index

Deprecated

since 4.2 use getOverlay instead

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

WellBoreNode.getOverlayAt


getOverlays

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

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S>

Parameters

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

Returns

Iterator<Node>

Inherited from

WellBoreNode.getOverlays

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

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

Example

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

Parameters

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

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

WellBoreNode.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

WellBoreNode.getOverlaysCount


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

WellBoreNode.getPaddingStyle


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

WellBoreNode.getParent


getPreferredSize

getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

WellBoreNode.getPreferredSize


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties to set

Overrides

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

WellBoreNode.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

WellBoreNode.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

WellBoreNode.getRenderingFilter


getRenderingHints

getRenderingHints(): RenderingHints

Gets rendering hints for various component types (if any)

Returns

RenderingHints

rendering hints

Inherited from

WellBoreNode.getRenderingHints


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

WellBoreNode.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

WellBoreNode.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

WellBoreNode.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

WellBoreNode.getSceneTransform


getSelectedComponentNodes

getSelectedComponentNodes(): ComponentNode[]

Gets selected component nodes

Returns

ComponentNode[]

Inherited from

WellBoreNode.getSelectedComponentNodes


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

WellBoreNode.getTag


getUnitsOptions

getUnitsOptions(): UnitsOptions

Gets units options (see "setUnitsOptions" API for the options format)

Deprecated

since 4.0

Returns

UnitsOptions

object containing units options

Inherited from

WellBoreNode.getUnitsOptions


getValueUnit

getValueUnit(): AbstractUnit

Gets value unit

Deprecated

since 4.0

Returns

AbstractUnit

Inherited from

WellBoreNode.getValueUnit


getValueViewMode

getValueViewMode(): ValueViewMode

Gets well bore value view mode

Returns

ValueViewMode

Inherited from

WellBoreNode.getValueViewMode


getViewMode

getViewMode(): ViewMode

Gets well bore view mode.

Returns

ViewMode

Overrides

WellBoreNode.getViewMode


getVisible

getVisible(componentName?): boolean

Gets visibility (convenience method)

Parameters

Name Type Description
Optional componentNamestringcomponent name

Returns

boolean

Inherited from

WellBoreNode.getVisible


getVisibleDeviceLimits

getVisibleDeviceLimits(ignoreModelLimits?): Rect

Return visible device limits

Parameters

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

Returns

Rect

Inherited from

WellBoreNode.getVisibleDeviceLimits


getVisibleModelLimits

getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

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

Returns

Rect

Inherited from

WellBoreNode.getVisibleModelLimits


getWellBoreData

getWellBoreData(): WellBoreData

Gets well bore data the node is built on.

Returns

WellBoreData

data

Inherited from

WellBoreNode.getWellBoreData


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

WellBoreNode.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

WellBoreNode.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

WellBoreNode.hasEventListener


highlightComponentNode

highlightComponentNode(node, on): void

Draws specified component node as highlighted or non-highlighted

Parameters

Name Type Description
nodeComponentNodenode to highlight
onbooleanhighlight flag

Returns

void

Inherited from

WellBoreNode.highlightComponentNode


indexOfBaseLayer

indexOfBaseLayer(baseLayer): number

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

Parameters

Name Type Description
baseLayerNodebaseLayer to check index

Returns

number

Inherited from

WellBoreNode.indexOfBaseLayer


indexOfChild

indexOfChild(node): number

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

Parameters

Name Type Description
nodeNodenode to check index

Returns

number

Inherited from

WellBoreNode.indexOfChild


indexOfOverlay

indexOfOverlay(overlay): number

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

Parameters

Name Type Description
overlayNodeoverlay to check index

Returns

number

Inherited from

WellBoreNode.indexOfOverlay


insertBaseLayer

insertBaseLayer(index, baseLayer): LShapedWellBoreNode

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.insertBaseLayer


insertChild

insertChild(index, node): LShapedWellBoreNode

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.insertChild


insertOverlay

insertOverlay(index, overlay): LShapedWellBoreNode

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.insertOverlay


invalidate

invalidate(bounds?, force?): LShapedWellBoreNode

Invalidate node

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.invalidate


invalidateLayout

invalidateLayout(propagate?): LShapedWellBoreNode

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): LShapedWellBoreNode

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.invalidateParent


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

WellBoreNode.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

WellBoreNode.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

WellBoreNode.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

WellBoreNode.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

WellBoreNode.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

WellBoreNode.isNotificationEnabled


isPickingChildrenEnabled

isPickingChildrenEnabled(): boolean

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

Returns

boolean

pickingChildren

Inherited from

WellBoreNode.isPickingChildrenEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

WellBoreNode.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

WellBoreNode.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

WellBoreNode.isVerticalFlip


moveTo

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

MoveTo position of node to specified area

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.moveTo


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.notify


notifyRoot

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

Notify an even to root node

Parameters

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

Returns

Node

this

Inherited from

WellBoreNode.notifyRoot


off

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

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.off


on

on<E>(type, callback): LShapedWellBoreNode

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.on


onBoundsChanged

Protected onBoundsChanged(bounds): LShapedWellBoreNode

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.onBoundsChanged


onChildAdded

Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node>added child

Returns

void

Inherited from

WellBoreNode.onChildAdded


onChildRemoved

Protected onChildRemoved(child): void

This method is called it child or children are removed

Parameters

Name Type Description
childNoderemoved child

Returns

void

Inherited from

WellBoreNode.onChildRemoved


onParentChanged

Protected onParentChanged(node): LShapedWellBoreNode

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

WellBoreNode.onVisibilityChanged


postRendering

Protected postRendering(context, callback?): void

To be called after rendering, used for PDF output

Parameters

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

Returns

void

Inherited from

WellBoreNode.postRendering


preRendering

Protected preRendering(context, callback?): void

Occurs before child rendering

Parameters

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

Returns

void

Inherited from

WellBoreNode.preRendering


rebuild

rebuild(force?, changes?): LShapedWellBoreNode

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

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.rebuild


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

WellBoreNode.registerAnimationStyle


removeBaseLayer

removeBaseLayer(baseLayer): LShapedWellBoreNode

Remove child baseLayer

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): LShapedWellBoreNode

Remove child node

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.removeChild


removeCssClass

removeCssClass(cssclass): LShapedWellBoreNode

Removes css class from node

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LShapedWellBoreNode

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): LShapedWellBoreNode

Remove child overlay

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.removeOverlay


render

render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

WellBoreNode.render


renderAsync

renderAsync(context, callback): void

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

Parameters

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

Returns

void

Inherited from

WellBoreNode.renderAsync


renderBackground

Protected renderBackground(context, bounds): LShapedWellBoreNode

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): LShapedWellBoreNode

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

Parameters

Name Type Description
contextRenderingContextcontext to render baseLayers

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.renderBaseLayers


renderBaseLayersAsync

Protected renderBaseLayersAsync(context, callback): void

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

Parameters

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

Returns

void

Inherited from

WellBoreNode.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

WellBoreNode.renderChildren


renderChildrenAsync

Protected renderChildrenAsync(context, callback): void

Render children async

Parameters

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

Returns

void

Inherited from

WellBoreNode.renderChildrenAsync


renderContent

Protected renderContent(context): void

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

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

WellBoreNode.renderContent


renderContentAsync

Protected renderContentAsync(context, callback): void

Render children in asynchronous mode

Parameters

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

Returns

void

Inherited from

WellBoreNode.renderContentAsync


renderOverlays

Protected renderOverlays(context): LShapedWellBoreNode

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

Parameters

Name Type Description
contextRenderingContextcontext to render overlays

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.renderOverlays


renderOverlaysAsync

Protected renderOverlaysAsync(context, callback): void

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

Parameters

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

Returns

void

Inherited from

WellBoreNode.renderOverlaysAsync


replaceComponent

replaceComponent(componentName): LShapedWellBoreNode

Rebuilds all components with a given "componentName"

Throws

when the node is not in sync with its WellBoreData.

Parameters

Name Type Description
componentNamestringcomponent name

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.replaceComponent


resumeUpdate

resumeUpdate(rebuild?, changes?): LShapedWellBoreNode

Resume auto update

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.resumeUpdate


rotate

rotate(theta, x, y): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.rotate


scale

scale(xx, yy): LShapedWellBoreNode

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.scale


setAnimationStyle

setAnimationStyle(animationStyle): LShapedWellBoreNode

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LShapedWellBoreNode

Inherited from

WellBoreNode.setAnimationStyle


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): LShapedWellBoreNode

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

Parameters

Name Type Description
modebooleanModel Limits Logics to be used

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): LShapedWellBoreNode

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setAutoModelLimitsStrategy


setBounds

setBounds(bounds): LShapedWellBoreNode

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsTypebound of the node in the parent coordinates

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setBounds


setBuilder

setBuilder(builder, builderViewMode): LShapedWellBoreNode

Sets builder for the view mode passed

Parameters

Name Type Description
builderIViewModeBuilderthe mode builder to set
builderViewModeViewModeview mode

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setBuilder


setCache

setCache(cache, rebuild?): LShapedWellBoreNode

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setCache


setChild

setChild(index, node): LShapedWellBoreNode

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setChild


setClipStyle

setClipStyle(style): LShapedWellBoreNode

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setClipStyle


setComponentsVisibility

setComponentsVisibility(parameter): LShapedWellBoreNode

Sets component visibility according to the component names/ID-s passed (convenience method).

Parameters

Name Type Description
parameterComponentsVisibilityvisibility options

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setComponentsVisibility


setContentOrientation

setContentOrientation(orientation): LShapedWellBoreNode

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setContentOrientation


setCss

setCss(style, merge?): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setCss


setCssClass

setCssClass(name): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setCssClass


setCssTransform

setCssTransform(transform): LShapedWellBoreNode

Set CSS transformation

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setCssTransform


setDesiredHeight

setDesiredHeight(value, silent?): LShapedWellBoreNode

Sets desired height of the group as a layoutable object

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): LShapedWellBoreNode

Sets desired width of the group as a layoutable object

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setDesiredWidth


setDeviationDepth

setDeviationDepth(deviationDepth): LShapedWellBoreNode

Sets deviation depth value

Parameters

Name Type Description
deviationDepthnumber | { eoc: number ; kop: number }deviation depth value

Returns

LShapedWellBoreNode

this


setFactoryRegistry

setFactoryRegistry(factoryRegistry): LShapedWellBoreNode

Associates the factory registry with the node.

Parameters

Name Type Description
factoryRegistryComponentNodeFactoryRegistryfactory registry to be associated with the node

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setFactoryRegistry


setFillStyle

setFillStyle(fillStyle, merge?): LShapedWellBoreNode

Sets fill style

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setFillStyle


setForceOpenHole

setForceOpenHole(force): LShapedWellBoreNode

Sets forced open hole mode

Parameters

Name Type Description
forcebooleanmode state

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setForceOpenHole


setHorizontalFlip

setHorizontalFlip(enable): LShapedWellBoreNode

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setHorizontalFlip


setId

setId(id): LShapedWellBoreNode

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setId


setInfiniteMode

setInfiniteMode(infinityMode): LShapedWellBoreNode

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setInfiniteMode


setLayout

setLayout(layout): LShapedWellBoreNode

Associate layout with a group.

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setLayout


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

WellBoreNode.setLayoutInvalidated


setLayoutStyle

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

specify desired layout style

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): LShapedWellBoreNode

Sets border color Returns this

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setMarginsStyle


setModelLimits

setModelLimits(limits): LShapedWellBoreNode

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setModelLimits


setName

setName(name): LShapedWellBoreNode

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setName


setNotification

setNotification(notify, force?): LShapedWellBoreNode

set notification state

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setNotification


setOpacity

setOpacity(opacity, blendMode?): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setOpacity


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setPaddingStyle


setProperties

setProperties(properties?): LShapedWellBoreNode

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LShapedWellBoreNode

this

Overrides

WellBoreNode.setProperties


setProperty

setProperty(name, value): LShapedWellBoreNode

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setProperty


setRenderingFilter

setRenderingFilter(filter): LShapedWellBoreNode

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setRenderingFilter


setRenderingHints

setRenderingHints(hints): LShapedWellBoreNode

Sets rendering hints for various component types (if any)

Example

// Customizing 'fluid' component's subsets:
const renderingHints = {
'fluid': {
'Mud': { 'fillstyle': { 'color': 'rgb(191,127,127)' } },
'Spacer Fluid': { 'fillstyle': { 'color': 'rgb(113,244,151)' } },
'Head Slurry': { 'fillstyle': { 'color': 'rgb(127,127,127)' } },
'Tail Slurry': { 'fillstyle': { 'color': 'rgb(80,80,80)' } }
}
};
// The call tells wellbore node to render fluid's subsets: 'Mud', 'Spacer Fluid', 'Head Slurry' and 'Tail Slurry'
// with their corresponding fill colors:
wellBoreNode.setRenderingHints(renderingHints);

Example

// Customizing casing shoe painter, proportions and styles:
import {FillStyle} from '@int/geotoolkit/attributes/FillStyle';
import {LineStyle} from '@int/geotoolkit/attributes/LineStyle';
const renderingHints = {
'casing': {
'shoe': {
'painter': (symbol, bbox, context) => { // Replace default shoe painter
const x = [bbox.x, bbox.x + bbox.width, bbox.x + bbox.width, bbox.x + bbox.width, bbox.x];
const y = [bbox.y, bbox.y, bbox.y + bbox.height / 2, bbox.y + bbox.height, bbox.y + bbox.height];

context.drawPolygon(x, y);
},
'height': 10,
'width': 10,
'linestyle': new LineStyle('red'),
'fillstyle': new FillStyle('blue')
}
}
};
wellBoreNode.setRenderingHints(renderingHints);

Example

// Add a color gradient
import {Point} from '@int/geotoolkit/util/Point';
import {LinearGradientStyle} from '@int/geotoolkit/attributes/LinearGradientStyle';
const gradStyleMud = new LinearGradientStyle( {
'startPoint': new Point(0, 0), 'endPoint': new Point(1, 1), 'startColor': 'red', 'endColor': 'blue'
});
const renderingHints = {
'casing':
{'shoe': {'fillstyle': gradStyleMud}}
};
wellBoreNode.setRenderingHints(renderingHints);

Parameters

Name Type Description
hintsRenderingHintsrendering hints

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setRenderingHints


setResponsiveStyle

setResponsiveStyle(style): LShapedWellBoreNode

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LShapedWellBoreNode

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setSelectable


setSelectedComponentNodes

setSelectedComponentNodes(selectedComponentNodes): LShapedWellBoreNode

Sets selected component nodes

Parameters

Name Type Description
selectedComponentNodesComponentNode[]selected component nodes

Returns

LShapedWellBoreNode

this

Overrides

WellBoreNode.setSelectedComponentNodes


setSilent

setSilent(bool): LShapedWellBoreNode

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setSilent


setTag

setTag(tag): LShapedWellBoreNode

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

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setTag


setUnitsOptions

setUnitsOptions(unitOptions): LShapedWellBoreNode

Sets units options

Deprecated

since 4.0

Throws

TypeError

Parameters

Name Type Description
unitOptionsUnitsOptionsAn object containing the properties to set

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setUnitsOptions


setValueViewMode

setValueViewMode(mode?): LShapedWellBoreNode

Sets well bore value view mode

Parameters

Name Type Description
Optional modeValueViewModevalue view mode

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setValueViewMode


setVerticalFlip

setVerticalFlip(flip): LShapedWellBoreNode

Set vertical flip of the representation

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setVerticalFlip


setViewMode

setViewMode(viewMode?): Object

Sets well bore view mode.

Parameters

Name Type Description
Optional viewModeViewMode | ViewModeInfoview mode type or an object containing view mode type and options

Returns

Object

"model limits to bounds" depths mapping

NameTypeDescription
boundsdepthsnumber[]bounds depths
modellimitsdepthsnumber[]model limits depths

Overrides

WellBoreNode.setViewMode


setVisible

setVisible(visible, value?): LShapedWellBoreNode

Sets visibility for all components, or just the components with specified name or ID

Parameters

Name Type Description
visiblebooleanvisibility state
Optional valuestringcomponent name or ID

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setVisible


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): LShapedWellBoreNode

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setVisibleModelLimits


setWellBoreData

setWellBoreData(wellBoreData): LShapedWellBoreNode

Sets well bore data to build the node on.

Parameters

Name Type Description
wellBoreDataWellBoreDatawell bore data the node is built on

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setWellBoreData


setZIndex

setZIndex(value): LShapedWellBoreNode

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.setZIndex


shear

shear(shx, shy): LShapedWellBoreNode

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.shear


suspendUpdate

suspendUpdate(): LShapedWellBoreNode

Suspend auto update

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.suspendUpdate


toString

toString(): string

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

Returns

string

A string representation

Inherited from

WellBoreNode.toString


translate

translate(tx, ty): LShapedWellBoreNode

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

WellBoreNode.unregisterAnimationStyle


updateLayout

updateLayout(targets?): LShapedWellBoreNode

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.updateLayout


updateSceneTransformation

updateSceneTransformation(): LShapedWellBoreNode

Update scene transformation

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.updateSceneTransformation


updateState

updateState(regions?, changes?): LShapedWellBoreNode

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

LShapedWellBoreNode

this

Inherited from

WellBoreNode.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

WellBoreNode.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): LShapedWellBoreNode

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

Returns

LShapedWellBoreNode

this

Inherited from

WellBoreNode.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

WellBoreNode.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

WellBoreNode.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

WellBoreNode.isSceneGraphNotificationEnabled