API / geotoolkit / welllog / LogLithology / LogLithology
welllog.LogLithology.LogLithology
Welllog Lithology is a visual that fills a pattern between a set of depth ranges and two reference lines defined by LogPointSet
Users can define their own patterns for lithology fills.
Example
// This example shows how to create discontinuous range in lithology
import {LogLithology} from '@int/geotoolkit/welllog/LogLithology';
import {TrackType} from '@int/geotoolkit/welllog/TrackType';
import {PatternFactory} from '@int/geotoolkit/attributes/PatternFactory';
import {FillStyle} from '@int/geotoolkit/attributes/FillStyle';
const linearTrack = widget.addTrack(TrackType.LinearTrack);
const depths = [128, 200, NaN, 320, 360];
const headerTitles = ['chert', 'lime'];
const fillStyles = [
new FillStyle('green', PatternFactory.getInstance().getPattern(headerTitles[0]), 'lightgreen'),
new FillStyle('yellow', PatternFactory.getInstance().getPattern(headerTitles[1]))
];
const lithology = new LogLithology({
'depths': depths,
'fillstyles': fillStyles,
'titles': headerTitles
});
linearTrack.addChild(lithology);↳
LogLithology
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
autobounds | boolean | Enables or disables auto bounds |
basename | string | The base name |
bordermode | BorderMode | Mode for how to draw border around lithology |
bounds | Rect | The rectangle specifying position of the visual in the track. If set, autobounds will be switched off |
bounds-height | number | Height |
bounds-readonly | boolean | Readonly |
bounds-width | number | Width |
bounds-x | number | Left |
bounds-y | number | Top |
clipstyle | ClipStyle | Clipping style |
clipstyle-evenodd | boolean | True if evenodd mode is on ('nonzero' mode otherwise) |
clipstyle-geometry | GraphicsPath | Clipping geometry |
clipstyle-geometry-bounds | Rect | Bounds |
clipstyle | GraphicsPath | Clipping style |
cssclass | string | The css class name of this node |
csscursor | string | CSS cursor associated with node |
cssstyle | string | CSS style to be applied to inserted elements |
curve1 | number | Left point set |
curve1 | LogCurve | Left point set |
curve1-autobounds | boolean | Enables or disables auto bounds |
curve1-autoupdate | boolean | Automatic update from datasource. If true, curve listens to data changes from source |
curve1-barlinestyle | string | Value-bar line style |
curve1-barlinestyle | LineStyle | Value-bar line style |
curve1-barlinestyle-color | string | Color in CSS form |
curve1-barlinestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
curve1-barlinestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
curve1-barlinestyle-fill-color | string | Color in CSS form |
curve1-barlinestyle-fill-evenoddmode | boolean | Even-odd fill mode |
curve1-barlinestyle-fill-fillpattern | Pattern | Pattern |
curve1-barlinestyle-fill-fillpattern-containername | string | An 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 |
curve1-barlinestyle-fill-fillpattern-patternname | string | Name of this pattern for indexing |
curve1-barlinestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
curve1-barlinestyle-fill-foreground | string | Foreground color |
curve1-barlinestyle-fill-pattern | Pattern | Pattern |
curve1-barlinestyle-linecap | CapStyle | The line cap style |
curve1-barlinestyle-linedashoffset | number | Line dash offset of dashed line |
curve1-barlinestyle-linejoin | JoinStyle | The line join style |
curve1-barlinestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
curve1-barlinestyle-scalable | boolean | True if width should depend on transformation |
curve1-barlinestyle-unit | string | Optional unit for the width |
curve1-barlinestyle-width | number | string | The line thickness |
curve1-basename | string | The base name |
curve1-bounds | Rect | The rectangle specifying position of the visual in the track. If set, autobounds will be switched off |
curve1-centeronzeroonnegativemin | boolean | Flag set to center the limits |
curve1-cliplimitsmax | number | Max clipping limits |
curve1-cliplimitsmin | number | Min clipping limits |
curve1-clipping | boolean | Flag to enable clipping |
curve1-clipstyle | ClipStyle | Clipping style |
curve1-clipstyle | GraphicsPath | Clipping style |
curve1-cssclass | string | The css class name of this node |
curve1-csscursor | string | CSS cursor associated with node |
curve1-cssstyle | string | CSS style to be applied to inserted elements |
curve1-description | string | The description |
curve1-displayunit | string | Display unit |
curve1-gradientlinestyle | LogGradientStyle | Gradient line style |
curve1-gradientlinestyle-color | string | Color in CSS form |
curve1-gradientlinestyle-colorprovider | string | Color provider |
curve1-gradientlinestyle-colorprovider | ColorProvider | Color provider |
curve1-gradientlinestyle-colorprovider-max | number | |
curve1-gradientlinestyle-colorprovider-min | number | |
curve1-gradientlinestyle-colorprovider-scale | KnownScales | |
curve1-gradientlinestyle-colorrange | Range | Color range (min and max value) |
curve1-gradientlinestyle-colorrange-high | number | Upper range boundary |
curve1-gradientlinestyle-colorrange-low | number | Lower range boundary |
curve1-gradientlinestyle-colorrange-max | number | |
curve1-gradientlinestyle-colorrange-min | number | |
curve1-gradientlinestyle-datasource | string | Log data id |
curve1-gradientlinestyle-evenoddmode | boolean | Even-odd fill mode |
curve1-gradientlinestyle-fillpattern | Pattern | Pattern |
curve1-gradientlinestyle-foreground | string | Foreground color |
curve1-gradientlinestyle-normalize | boolean | Normalize data value to color space, default true |
curve1-gradientlinestyle-pattern | Pattern | Pattern |
curve1-gradientlinestyle-renderbackground | boolean | Extra style parameter for background fill |
curve1-gradientlinestyle-renderforeground | boolean | Extra style parameter for foreground fill. Normally to render patterns |
curve1-gradientlinestyle-transparency | number | Value for alpha chanel |
curve1-hideoverlappedvalues | boolean | Hide overlapped value |
curve1-horizontalflip | boolean | Horizontal flip |
curve1-id | string | number | Id of the node, its a unique identifier |
curve1-interpolationedge | InterpolationEdge | Edge values interpolation type in case of properties.limitstype==LimitsType.Manual |
curve1-interpolationtype | InterpolationType | Interpolation type |
curve1-limitsmax | number | Max limits value in case of data.limitstype==LimitsType.Manual |
curve1-limitsmin | number | Min limits value in case of data.limitstype==LimitsType.Manual |
curve1-limitstype | LimitsType | Limits type |
curve1-linestyle | string | Linestyle |
curve1-linestyle | LineStyle | Linestyle |
curve1-localtransform | Transformation | Local transformation |
curve1-localtransform-dx | number | X axis translation |
curve1-localtransform-dy | number | Y axis translation |
curve1-localtransform-xx | number | X scale |
curve1-localtransform-xy | number | Xy skew |
curve1-localtransform-yx | number | Yx skew |
curve1-localtransform-yy | number | Y scale |
curve1-margins | number | string | It has properties for specifying the margins for each side |
curve1-maxwraps | number | Maximum count of wraps (by default 5) |
curve1-microposleft | number | Left micro position |
curve1-microposright | number | Right micro position |
curve1-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
curve1-nullvaluesymbol | SymbolShape | Null value symbol |
curve1-nullvaluesymbol-alignment | AnchorType | Alignment according to the anchor point |
curve1-nullvaluesymbol-alignment | AnchorType | Anchor type of symbol |
curve1-nullvaluesymbol-ax | number | Anchor x position |
curve1-nullvaluesymbol-ay | number | Anchor y position |
curve1-nullvaluesymbol-cache | boolean | Set it to true if you want to cache complex geometry to raster |
curve1-nullvaluesymbol-clipstyle | ClipStyle | Clipping style |
curve1-nullvaluesymbol-clipstyle | GraphicsPath | Clipping style |
curve1-nullvaluesymbol-cssclass | string | The css class name of this node |
curve1-nullvaluesymbol-csscursor | string | CSS cursor associated with node |
curve1-nullvaluesymbol-cssstyle | string | CSS style to be applied to inserted elements |
curve1-nullvaluesymbol-fillstyle | string | Style applied on fill |
curve1-nullvaluesymbol-fillstyle | FillStyle | Style applied on fill |
curve1-nullvaluesymbol-height | number | Shape height |
curve1-nullvaluesymbol-id | string | number | Id of the node, its a unique identifier |
curve1-nullvaluesymbol-ispointingup | boolean | Defines whether the shape is always pointing up |
curve1-nullvaluesymbol-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
curve1-nullvaluesymbol-layoutstyle-constraint | SizeConstraint | Layout constrains |
curve1-nullvaluesymbol-layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
curve1-nullvaluesymbol-layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
curve1-nullvaluesymbol-layoutstyle-float | string | Float position |
curve1-nullvaluesymbol-layoutstyle-position | string | Layout position |
curve1-nullvaluesymbol-layoutstyle-size | number | string | Layout size |
curve1-nullvaluesymbol-linestyle | string | Style applied on outline |
curve1-nullvaluesymbol-linestyle | LineStyle | Style applied on outline |
curve1-nullvaluesymbol-localtransform | Transformation | Local transformation |
curve1-nullvaluesymbol-margins | number | string | It has properties for specifying the margins for each side |
curve1-nullvaluesymbol-maxdimension | Dimension | Maximum size for rendering |
curve1-nullvaluesymbol-maxdimension-height | number | Height of dimension |
curve1-nullvaluesymbol-maxdimension-width | number | Width of dimension or properties |
curve1-nullvaluesymbol-mindimension | Dimension | Minimum size for rendering |
curve1-nullvaluesymbol-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
curve1-nullvaluesymbol-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
curve1-nullvaluesymbol-opacityblendmode | BlendMode | Node opacity mode to blend it |
curve1-nullvaluesymbol-painter | string | A function with has parameters: symbol, box, context |
curve1-nullvaluesymbol-painterproperties | any | Symbol's painter's properties |
curve1-nullvaluesymbol-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
curve1-nullvaluesymbol-preservereadingorientation | boolean | Preserve reading orientation for local transform |
curve1-nullvaluesymbol-preserverightangle | boolean | Preserve right angle for local transformation |
curve1-nullvaluesymbol-rotationangle | number | Rotation angle at anchor |
curve1-nullvaluesymbol-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
curve1-nullvaluesymbol-scalescrollstrategy-enabled | boolean | Enable flag |
curve1-nullvaluesymbol-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
curve1-nullvaluesymbol-sizeisindevicespace | boolean | Is coordinate in device space |
curve1-nullvaluesymbol-tag | any | Custom 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 |
curve1-nullvaluesymbol-transform | string | Additional CSS transformation applied to node or 'none' |
curve1-nullvaluesymbol-transform | Transformation | Additional CSS transformation applied to node or 'none' |
curve1-nullvaluesymbol-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
curve1-nullvaluesymbol-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
curve1-nullvaluesymbol-width | number | Shape width |
curve1-nullvaluesymbol-z-index | number | Define node z-index |
curve1-nullvaluesymbolvisible | boolean | Flag to change visibility of null value symbol |
curve1-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
curve1-opacityblendmode | BlendMode | Node opacity mode to blend it |
curve1-optimization | boolean | Optimization flags |
curve1-outofrangevalues | boolean | Outofrangevalues flag |
curve1-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
curve1-scaletype | ScaleType | Values scale type |
curve1-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
curve1-symbol | SymbolShape | Symbol to be used |
curve1-symboldecimationdistance | number | Symbol decimation distance |
curve1-symboldecimationstep | number | Symbol decimation step or level |
curve1-symbolgap | number | Symbol gap |
curve1-symbolgap | Dimension | Symbol gap |
curve1-tag | any | Custom 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 |
curve1-textautoalignment | boolean | Automatic text alignment for text values, which intersects border of the track |
curve1-textautoalignmentoffset | number | Text offset from anchor for automatic text alignment |
curve1-textautoalignmentoffset | Point | Text offset from anchor for automatic text alignment |
curve1-textautoalignmentoffset-x | number | X coordinate |
curve1-textautoalignmentoffset-y | number | Y coordinate |
curve1-textdecimationstep | number | Text decimation step |
curve1-textreference | TextReference | Type of the text to be put on the track |
curve1-textstyle | string | Text style |
curve1-textstyle | TextStyle | Text style |
curve1-textstyle-alignment | AlignmentStyle | Alignment |
curve1-textstyle-autosize | boolean | Auto font size on high definition display |
curve1-textstyle-background | string | Background style |
curve1-textstyle-background | FillStyle | Background style |
curve1-textstyle-baseline | BaseLineStyle | Base line |
curve1-textstyle-color | string | Color in CSS form |
curve1-textstyle-fill | FillStyle | Text fill style |
curve1-textstyle-font | string | Font see |
curve1-textstyle-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
curve1-textstyle-lineheight | string | number | Line height |
curve1-textstyle-multiline | boolean | Allow multi-line text |
curve1-textstyle-outline | string | Outline style |
curve1-textstyle-outline | LineStyle | Outline style |
curve1-textstyle-overflowwrap | OverflowWrapStyle | Overflow wrap |
curve1-textstyle-strikethrough | string | Strikethrough style |
curve1-textstyle-strikethrough | LineStyle | Strikethrough style |
curve1-textstyle-textoverflow | TextOverflowStyle | Text overflow |
curve1-textstyle-underline | string | Underline style |
curve1-textstyle-underline | LineStyle | Underline style |
curve1-textstyle-underlineoffset | string | number | Underline offset distance |
curve1-textstyle-whitespace | WhiteSpaceStyle | White space |
curve1-textstyle-wordbreak | WordBreakStyle | Word break |
curve1-transform | string | Additional CSS transformation applied to node or 'none' |
curve1-transform | Transformation | Additional CSS transformation applied to node or 'none' |
curve1-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
curve1-wrapping | boolean | Flag to enable wrapping based on if you want to see the clipped part of the track or not |
curve1-z-index | number | Define node z-index |
curve1 | LogReferenceLine | Left point set |
curve1-autobounds | boolean | Enables or disables auto bounds |
curve1-basename | string | The base name |
curve1-bounds | Rect | The rectangle specifying position of the visual in the track. If set, autobounds will be switched off |
curve1-clipstyle | ClipStyle | Clipping style |
curve1-clipstyle | GraphicsPath | Clipping style |
curve1-cssclass | string | The css class name of this node |
curve1-csscursor | string | CSS cursor associated with node |
curve1-cssstyle | string | CSS style to be applied to inserted elements |
curve1-curve | LogCurve | Reference curve |
curve1-description | string | The description |
curve1-id | string | number | Id of the node, its a unique identifier |
curve1-level | number | Current level of wrap interpolation |
curve1-linestyle | string | Linestyle |
curve1-linestyle | LineStyle | Linestyle |
curve1-localtransform | Transformation | Local transformation |
curve1-margins | number | string | It has properties for specifying the margins for each side |
curve1-microposleft | number | Left micro position |
curve1-microposright | number | Right micro position |
curve1-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
curve1-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
curve1-opacityblendmode | BlendMode | Node opacity mode to blend it |
curve1-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
curve1-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
curve1-tag | any | Custom 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 |
curve1-transform | string | Additional CSS transformation applied to node or 'none' |
curve1-transform | Transformation | Additional CSS transformation applied to node or 'none' |
curve1-type | ReferenceType | Reference model type |
curve1-value | number | Current value in track coordinates. by default from 0 to 1 |
curve1-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
curve1-z-index | number | Define node z-index |
curve2 | number | Right point set |
curve2 | LogCurve | Right point set |
curve2 | LogReferenceLine | Right point set |
description | string | The description |
fillstyle | string | Fillstyle |
fillstyle | FillStyle | Fillstyle |
filltype | FillType | Filltype |
id | string | number | Id of the node, its a unique identifier |
labelfillmode | LabelFillMode | Mode for how to back the name text |
labelfillstyle | string | Label fill style used if mode is set to SINGLECOLOR |
labelfillstyle | FillStyle | Label fill style used if mode is set to SINGLECOLOR |
left | number | Left points set or number between 0 and 1 |
left | LogCurve | Left points set or number between 0 and 1 |
left | LogReferenceLine | Left points set or number between 0 and 1 |
leftfillstyle | string | Fillstyle for left part |
leftfillstyle | FillStyle | Fillstyle for left part |
linestyle | string | Linestyle |
linestyle | LineStyle | Linestyle |
localtransform | Transformation | Local transformation |
margins | number | string | It has properties for specifying the margins for each side |
microposleft | number | Left micro position |
microposright | number | Right micro position |
minheightforlabel | number | Min height where display of label can be turned off |
name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
nameorientation | NameOrientation | Lithology name orientation |
namevisible | boolean | Names visibility flag |
negativefillstyle | string | Fill style to be used to fill negative areas |
negativefillstyle | FillStyle | Fill style to be used to fill negative areas |
opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
opacityblendmode | BlendMode | Node opacity mode to blend it |
positivefillstyle | string | Fill style to be used to positive areas |
positivefillstyle | FillStyle | Fill style to be used to positive areas |
right | number | Right point set or number between 0 and 1 |
right | LogCurve | Right point set or number between 0 and 1 |
right | LogReferenceLine | Right point set or number between 0 and 1 |
rightfillstyle | string | Fillstyle for right part |
rightfillstyle | FillStyle | Fillstyle for right part |
scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
tag | any | Custom 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 |
text | string | Name of the lithology |
textellipsis | boolean | Ellipsis flag |
textexpand | boolean | Auto expand lithology rect to fit text flag |
textposition | AnchorType | Define text anchor type inside the text area |
textsizemode | SizeMode | Enum of size modes |
textstyle | string | The text style |
textstyle | TextStyle | The text style |
transform | string | Additional CSS transformation applied to node or 'none' |
transform | Transformation | Additional CSS transformation applied to node or 'none' |
visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
z-index | number | Define node z-index |
Constructors
• new LogLithology(depths?, left?, right?, fillStyles?, names?, titles?, labelfillstyle?, labelfillmode?, nameorientation?)
Constructor
| Name | Type | Description |
|---|---|---|
Optional depths | number | number[] | LogPointSet | Options | an array of the depths or properties object |
Optional left | LogCurve | LogReferenceLine | left points set |
Optional right | LogCurve | LogReferenceLine | right point set |
Optional fillStyles | Type[] | fill styles |
Optional names | string[] | array of the names |
Optional titles | string[] | array for the header titles |
Optional labelfillstyle | Type | label fill style used if mode is set to SINGLECOLOR |
Optional labelfillmode | LabelFillMode | mode for how to back the name text |
Optional nameorientation | NameOrientation | lithology name orientation |
LogFill.constructor
Methods
▸ addCssClass(cssclass): LogLithology
Adds new css class to node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
▸ addInvalidateHandler(handler): LogLithology
Add invalidate handler
Deprecated
since 4.0, use Node.on instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
▸ Protected applyOpacity(context): LogLithology
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
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
this
▸ Protected applyResponsiveStyle(): void
Apply a responsive style rules it is exists
void
▸ checkCollision(context): boolean
Check culling. Returns true if object is inside of renderable area
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
▸ clone(): LogLithology
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ connectStyle(style, type, callback): LogLithology
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
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ Protected copyConstructor(src, deepCopy?): LogLithology
Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.
| Name | Type | Description |
|---|---|---|
src | LogLithology | Source to copy from |
Optional deepCopy | boolean | deep copy |
this
▸ disconnectStyle(style, type, callback): LogLithology
Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ 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.
void
▸ Protected drawBackground(context, index): Rect | GraphicsPath
| Name | Type |
|---|---|
context | RenderingContext |
index | number |
▸ Protected drawBackground(context, index, depthTop?, depthBottom?): Rect | GraphicsPath
| Name | Type |
|---|---|
context | RenderingContext |
index | number |
Optional depthTop | number |
Optional depthBottom | number |
▸ Protected drawBackground(context, index, depthTop, depthBottom, isTopOverlapped, isBottomOverlapped): Rect | GraphicsPath
| Name | Type |
|---|---|
context | RenderingContext |
index | number |
depthTop | number |
depthBottom | number |
isTopOverlapped | boolean |
isBottomOverlapped | boolean |
▸ enableEventPropagation(enable): LogLithology
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();| Name | Type | Description |
|---|---|---|
enable | boolean | enable |
this
LogFill.enableEventPropagation
▸ execute(delegate): LogLithology
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");
});| Name | Type | Description |
|---|---|---|
delegate | (this: LogLithology) => void | Function to execute |
The result if any or this
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: LogLithology) => T |
T
▸ Protected filter(context): boolean
Filter node
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
flag filter flag ("true" to render node; "false" otherwise)
▸ getAnimationStyle(): AnimationStyle
Return animation style
animationStyle current animation style
▸ getBaseName(): string
Returns the base name
string
The base name
▸ getBorderMode(): BorderMode
Returns current border mode
mode
▸ getBounds(): Rect
Gets bounds
▸ getClassName(): string
string
▸ getClipStyle(): ClipStyle
Gets the current clipping style
clipping style
▸ getContentsTransform(): Transformation
Retrieves the world transformation of the spatial
▸ getCss(): CssStyle
Return CSS style
▸ getCssClass(): string
Returns css class name to be used to apply CSS style
string
the css class name
▸ getCssClasses(): string[]
Gets list of css class names which applied to this node
string[]
▸ getCssTransform(): string
Returns CSS transformation
string
▸ getCurve1(): LogCurve | LogReferenceLine
Returns a point set to fill from
▸ getCurve2(): LogCurve | LogReferenceLine
Returns a point set to fill to
▸ getDataLimits(fullLimits?): Rect
return meaning data limits
| Name | Type | Description |
|---|---|---|
Optional fullLimits | boolean | default value is false |
▸ getDepths(): number[]
Returns depths
number[]
▸ getDescription(): string
Gets the description
string
The description
▸ getEllipsisOptions(): EllipsisOptions
Returns ellipsis options
ellipsis options
▸ getFillStyle(): FillStyle
Return fill style
▸ getFillStyles(): FillStyle[]
Returns array of fillstyles
▸ getFillType(): FillType
Gets the fill type
▸ getHeader(name): LogVisualHeader<Node>
Return the header registered by the name
| Name | Type | Description |
|---|---|---|
name | string | header name |
header
▸ getHeaders(): Record<string, LogVisualHeader<Node>>
Return an object that contains all headers registered with the visual
Record<string, LogVisualHeader<Node>>
headers
▸ getId(): string | number
Returns the associated identifier of the node
string | number
The node's id
▸ getIds(): (string | number)[]
Gets an array of range identifiers
(string | number)[]
▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>
Gets invalidate method
AttributeCallback<EventDispatcher>
method to invalidate this object
▸ getLabelFillMode(): LabelFillMode
Returns Label fill mode
▸ getLabelFillStyle(): FillStyle
Returns label fill style used if the mode is set to SINGLECOLOR
▸ getLeftFillStyle(): FillStyle
Returns fill style to be used to fill left (positive) areas
▸ getLineStyle(): LineStyle
Returns line style
▸ getLineStyles(): LineStyle[]
Returns array of linestyles
▸ getLineTypes(): LineType[]
Return Lithology Line Types
LineType[]
▸ getLocalTransform(): Transformation
Retrieves the transformation of bounds to parent
transform the local transform.
▸ getMarginsStyle(): SpaceStyle<string | number>
Return margins style
SpaceStyle<string | number>
▸ getMicroPositionLeft(): number
Returns micro position left
number
▸ getMicroPositionRight(): number
Returns micro position right
number
▸ Protected getMicroPositionTransformation(): Transformation
Returns micro position transformation
micro position transformation
LogFill.getMicroPositionTransformation
▸ getMinHeightForLabel(): number
Return minimum height for label
number
▸ getModelLimits(): Rect
Returns null
▸ getName(): string
Returns the node name
string
The node name
▸ getNameOrientation(): NameOrientation
Returns name orientation
▸ getNameVisible(): boolean
Returns name visibility flag
boolean
▸ getNames(): string[]
Returns lithology names
string[]
▸ getNegativeFillStyle(): FillStyle
Returns fill style to be used to fill negative areas
▸ getOpacity(): number
Returns current node opacity
number
opacity
▸ getOpacityBlendMode(): BlendMode
Returns current node opacity
opacity blend mode
▸ getParent(): Node
Return parent node
parent node
▸ getPositiveFillStyle(): FillStyle
Returns fill style to be used to fill positive areas
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
properties object
▸ getProperty(name): any
Gets dynamic property by name. These properties can be used as a property bags
| Name | Type | Description |
|---|---|---|
name | string | property name |
any
▸ getPropertyKeys(): string[]
Returns known properties keys
string[]
▸ getRenderingFilter(): IFilter
Return filter to be used for rendering and picking
current filter
▸ getResponsiveStyle(): ResponsiveStyle
Return responsive style
▸ getRightFillStyle(): FillStyle
Returns fill style to be used to fill right (negative) areas
▸ getRoot(): Node
Returns root node.
If node doesn't have parent then it returns itself.
the root node
▸ getScaleScrollStrategy(): Delegate
Gets scale scroll strategy
scale scroll strategy
LogFill.getScaleScrollStrategy
▸ getScaledData(): AbstractScaledData
Gets the visual's scaled data
(the implementation returns null).
▸ getSceneTransform(): Transformation
Returns transformation from node to root scene
a transformation from node to root scene
▸ getShowEllipsis(): boolean
Returns ellipsis flag
boolean
ellipsis flag
▸ getTag(): any
Returns the object associated with the node by user.
any
The node's user-object
▸ getText(): string
Returns text
string
text
▸ getTextExpand(): boolean
Returns true if text can expand lithology bounds
boolean
returns textExpand
▸ getTextPosition(): AnchorType
Returns text position inside the text area
returns anchor type
▸ getTextSizeMode(): SizeMode
Returns how the size is computed
returns textSizeMode
▸ getTextStyle(): TextStyle
Return text style
▸ getTextStyles(): TextStyle[]
Returns list of the text styles for the lithology
▸ getTitles(): string[]
Returns lithology titles
string[]
▸ getTrack(): ITrack
Returns parent track if LogTrack
▸ getVisible(): boolean
Return visibility of the node
boolean
true if node is visible
▸ getWorldTransform(): Transformation
Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.
▸ getZIndex(): number
Returns node z-index (null if not set)
number
▸ hasCssClass(cssClass): boolean
Check if node has specified css class
| Name | Type | Description |
|---|---|---|
cssClass | string | css class name |
boolean
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
▸ hitTest(area, radius?): Hits
Hit test in device coordinates
| Name | Type | Description |
|---|---|---|
area | Point | Rect | the device area or position |
Optional radius | number | the selection radius |
▸ invalidate(bounds?, force?): LogLithology
Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | bounds of the invalid rectangle in the inner node coordinates |
Optional force | boolean | true 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 |
this
▸ invalidateParent(bounds?, force?): LogLithology
Invalidate bounds
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | model bounds |
Optional force | boolean | force if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed |
this
▸ isAutoBounds(): boolean
Enable automatic bounds. If auto bounds is enabled then it equals to parent model limits
boolean
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isEventPropagationEnabled(): boolean
Return true if event propagation is enabled from child to parent
boolean
LogFill.isEventPropagationEnabled
▸ isHorizontalFlip(): boolean
Return true if the representation is flipped horizontally
boolean
horizontal flip
▸ isNotificationEnabled(): boolean
return state of notification
boolean
current notification state
▸ isSelectable(): boolean
Returns true if node can be picked/selected.
boolean
The selectable flag
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ notify<E>(type, source, args?): LogLithology
Notify listeners of the Node
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event |
source | LogAbstractVisual | source who called the event |
Optional args | EventMap[E] | event arguments |
this
▸ off<E>(type?, callback?): LogLithology
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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: LogLithology, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): LogLithology
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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: LogLithology, args: EventMap[E]) => void | to be called |
this
▸ Protected onHeaderSet(name, headerInstance, silent?): void
This method is called if header is set. Send event Events.HeaderSet
| Name | Type | Description |
|---|---|---|
name | string | of the container. The 'header' and 'footer' is used. |
headerInstance | LogVisualHeader<Node> | the header instance |
Optional silent | boolean | silent node to avoid sending events that header is created |
void
▸ Protected onMicroPositionChanged(): LogLithology
calls when microPosition has been changed
this
LogFill.onMicroPositionChanged
▸ Protected onParentChanged(node): LogLithology
This method is called when parent changes. Do not call it directly.
| Name | Type | Description |
|---|---|---|
node | Node | node to change parent |
this
▸ Protected onVisibilityChanged(): void
This method is called if visibility is changed. Send event Events.VisibilityChanged
void
▸ Protected postRendering(context): void
To be called after rendering. Call this method if you override method render
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
▸ Protected preRendering(context): void
Occurs before rendering this method sets clipping by default. Call this method if you override method render
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
▸ registerAnimationStyle(root): void
Register animation style.
| Name | Type | Description |
|---|---|---|
root | Node | root node for node |
void
LogFill.registerAnimationStyle
▸ removeCssClass(cssclass): LogLithology
Removes css class from node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
▸ removeInvalidateHandler(handler): LogLithology
Remove invalidate handler
Deprecated
since 4.0, use Node.off instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
LogFill.removeInvalidateHandler
▸ render(context): void
Renders node
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
void
▸ renderAsync(context, callback): void
Render node in asynchronous mode. Default implementation creates call method "render" inside
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function |
void
▸ Protected renderContent(context): void
Renders node content
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
void
▸ Protected renderDepthRange(context, fromDepth, toDepth, clipByDepth?, index?): void
Render depth range
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context |
fromDepth | number | from |
toDepth | number | to |
Optional clipByDepth | boolean | |
Optional index | number |
void
▸ Protected renderInternal(localContext): LogLithology
Render internal
| Name | Type | Description |
|---|---|---|
localContext | RenderingContext | local context |
this
▸ rotate(theta, x, y): LogLithology
Rotate bounds around a given coordinate
| Name | Type | Description |
|---|---|---|
theta | number | angle to rotate node, in radians |
x | number | x coordinate to rotate around |
y | number | y coordinate to rotate around |
this
▸ scale(xx, yy): LogLithology
Scale node
| Name | Type | Description |
|---|---|---|
xx | number | x scale factor |
yy | number | y scale factor |
this
▸ setAnimationStyle(animationStyle): LogLithology
Sets animation style
| Name | Type | Description |
|---|---|---|
animationStyle | Type | animation style |
▸ setAutoBounds(enable): LogLithology
Enable or disable auto bounds If auto bounds is enabled then it equals to parent model limits
| Name | Type | Description |
|---|---|---|
enable | boolean | Enable or disable auto bounds |
this
▸ setBaseName(name): LogLithology
Sets base name of the visual
| Name | Type | Description |
|---|---|---|
name | string | The base name |
this
▸ setBorderMode(mode): LogLithology
Set border mode
| Name | Type | Description |
|---|---|---|
mode | BorderMode | border mode |
this
▸ setBounds(bounds): LogLithology
Sets bounds of the point set in the parent coordinates false
| Name | Type | Description |
|---|---|---|
bounds | Rect | bounds of the point set |
this
▸ setClipStyle(style): LogLithology
Sets a new clipping style
| Name | Type | Description |
|---|---|---|
style | GraphicsPath | ClipStyle | Options | a new clipping style |
this
▸ setCss(style, merge?): LogLithology
Sets CSS style. This style will be applied for all inserted elements
| Name | Type | Description |
|---|---|---|
style | Type | CSS style to be applied to inserted elements |
Optional merge | boolean | merge flag |
this
▸ setCssClass(name): LogLithology
Sets css class name of the node to be used to apply CSS style
| Name | Type | Description |
|---|---|---|
name | string | css class name of the node |
this
▸ setCssTransform(transform): LogLithology
Set CSS transformation
| Name | Type | Description |
|---|---|---|
transform | string | Transformation | transformation css transformation instruction or Transformation instance |
this
▸ setCurve1(curve): LogLithology
Sets point set to fill from
| Name | Type | Description |
|---|---|---|
curve | number | LogCurve | LogReferenceLine | a point set or number to fill from |
this
▸ setCurve2(curve): LogLithology
Sets point set to fill to
| Name | Type | Description |
|---|---|---|
curve | number | LogCurve | LogReferenceLine | a point set or number to fill to |
this
▸ setDepths(depths): LogLithology
Sets depths intervals
| Name | Type | Description |
|---|---|---|
depths | number[] | depths intervals |
this
▸ setDescription(description): LogLithology
Sets the description
| Name | Type | Description |
|---|---|---|
description | string | The visual description |
this
▸ setEllipsisOptions(options): LogLithology
Set ellipsis options
| Name | Type | Description |
|---|---|---|
options | EllipsisOptions | ellipsis options |
this
▸ setFillStyle(fillStyle, merge?): LogLithology
Sets fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
▸ setFillStyles(fillStyles): LogLithology
Sets array of fillstyles
| Name | Type | Description |
|---|---|---|
fillStyles | Type[] | array of fillstyles |
this
▸ setFillType(fillType): LogLithology
Sets the fill type
| Name | Type | Description |
|---|---|---|
fillType | FillType | enum of filltype |
▸ setHeader(name, headerInstance, silent?): LogLithology
Sets header instance with specified name. This name usually defines header or footer.
Throws
if header name is null
| Name | Type | Description |
|---|---|---|
name | string | of the container. The 'header' and 'footer' is used. |
headerInstance | LogVisualHeader<Node> | the header instance |
Optional silent | boolean | silent node to avoid sending events that header is created |
this
▸ setId(id): LogLithology
Allows the user to associate any identifier
| Name | Type | Description |
|---|---|---|
id | string | number | object id |
this
▸ setIds(ids): LogLithology
Sets an array of range identifiers
| Name | Type |
|---|---|
ids | (string | number)[] |
▸ setLabelFillMode(mode): LogLithology
Sets text backing mode
| Name | Type | Description |
|---|---|---|
mode | LabelFillMode | Label fill mode |
this
▸ setLabelFillStyle(fillstyle): LogLithology
sets the label fill style used if the mode is set to SINGLECOLOR
| Name | Type | Description |
|---|---|---|
fillstyle | Type | label fill style |
this
▸ setLeftFillStyle(fillStyle, merge?): LogLithology
Sets left (positive) fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
▸ setLineStyle(lineStyle, merge?): LogLithology
Sets line style
| Name | Type | Description |
|---|---|---|
lineStyle | Type | The style in which the line is displayed object can be in format of constructor of LineStyle |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
this
▸ setLineStyles(lineStyles): LogLithology
Sets array of line styles
| Name | Type | Description |
|---|---|---|
lineStyles | Type[] | array of line styles |
this
▸ setLineTypes(lineTypes?): LogLithology
Sets lithology line types
| Name | Type | Description |
|---|---|---|
Optional lineTypes | LineType[] | array for the line type |
▸ setLocalTransform(localTransform, force?): LogLithology
Sets local transformation to be used to transform from local to parent coordinate
| Name | Type | Description |
|---|---|---|
localTransform | Transformation | local transformation for this node |
Optional force | boolean | boolean flag to force update event if transformations are equal, false by default |
this
▸ setMarginsStyle(margins, merge?): LogLithology
Sets margins style
| Name | Type | Description |
|---|---|---|
margins | Type<string | number> | margins style |
Optional merge | boolean | true if you want to merge marginsStyle with existing attribute, false by default |
this
▸ setMicroPosition(left, right): LogLithology
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);| Name | Type | Description |
|---|---|---|
left | number | left position |
right | number | right position |
this
▸ setMinHeightForLabel(min): LogLithology
Sets minimum height for label
| Name | Type | Description |
|---|---|---|
min | number | min height for label ( used to decide when to turn off display of label) |
this
▸ setName(name): LogLithology
Sets name of the node
| Name | Type | Description |
|---|---|---|
name | string | The node name |
this
▸ setNameOrientation(nameorientation): LogLithology
Set name orientation
| Name | Type | Description |
|---|---|---|
nameorientation | NameOrientation | name orientation |
▸ setNameVisible(namevisible): LogLithology
Set name visibility flag
| Name | Type | Description |
|---|---|---|
namevisible | boolean | name visibility flag |
▸ setNames(names): LogLithology
Sets lithology names
| Name | Type | Description |
|---|---|---|
names | string[] | lithology names |
this
▸ setNegativeFillStyle(fillStyle, merge?): LogLithology
Sets negative fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
▸ setNotification(notify, force?): LogLithology
set notification state
| Name | Type | Description |
|---|---|---|
notify | boolean | flag set to invalidate parent or not |
Optional force | boolean | true if parent should be invalidated immediately |
this
▸ setOpacity(opacity, blendMode?): LogLithology
Sets node opacity
| Name | Type | Description |
|---|---|---|
opacity | number | node opacity from 0 to 1 |
Optional blendMode | BlendMode | opacity blend mode. If it is normal, opacity will be replaced. |
this
▸ setPositiveFillStyle(fillStyle, merge?): LogLithology
Sets positive fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
▸ setProperties(properties?): LogLithology
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | An object containing the properties to set |
this
▸ setProperty(name, value): LogLithology
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
▸ setRenderingFilter(filter): LogLithology
Sets filter to be applied before rendering and picking
| Name | Type | Description |
|---|---|---|
filter | IFilter | filter to set |
this
▸ setResponsiveStyle(style): LogLithology
Sets responsive style.
| Name | Type | Description |
|---|---|---|
style | Options | ResponsiveStyle | responsive style |
this
▸ setRightFillStyle(fillStyle, merge?): LogLithology
Sets right (negative) fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
▸ setScaleScrollStrategy(strategy?): LogLithology
Sets scale scroll strategy
| Name | Type | Description |
|---|---|---|
Optional strategy | Delegate | scale scroll strategy |
this
LogFill.setScaleScrollStrategy
▸ setSelectable(selectable): LogLithology
Allows to select node. If node is not selectable then child node is not selectable.
| Name | Type | Description |
|---|---|---|
selectable | boolean | flag to allow node selection |
this
▸ setShowEllipsis(showTextEllipsis): LogLithology
Set show ellipsis
| Name | Type | Description |
|---|---|---|
showTextEllipsis | boolean | show ellipses |
this
▸ setSilent(bool): LogLithology
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setTag(tag): LogLithology
Allows the user to associate any arbitrary object with the node.
| Name | Type | Description |
|---|---|---|
tag | any | The object to be associated with the node. |
this
▸ setText(text): LogLithology
Sets text
| Name | Type | Description |
|---|---|---|
text | string | Sets text to be displayed |
this
▸ setTextExpand(textExpand): LogLithology
Sets text expand mode
| Name | Type | Description |
|---|---|---|
textExpand | boolean | text expand flag, true if text can expand lithology bounds |
this
▸ setTextPosition(anchorType): LogLithology
Specifies text position inside the text area
| Name | Type | Description |
|---|---|---|
anchorType | AnchorType | anchor type |
this
▸ setTextSizeMode(textSizeMode): LogLithology
Sets how text size is computed
| Name | Type | Description |
|---|---|---|
textSizeMode | SizeMode | Enum of size modes |
this
▸ setTextStyle(textStyle, merge?): LogLithology
Sets text style
| Name | Type | Description |
|---|---|---|
textStyle | Type | a new shape text style |
Optional merge | boolean | true if you want to merge textStyle with existing attribute, false by default |
this
▸ setTextStyles(textStyles): LogLithology
Sets text styles list for the text labels
| Name | Type | Description |
|---|---|---|
textStyles | Type[] | a new shape text style |
this
▸ setTitles(titles): LogLithology
Sets lithology titles
| Name | Type | Description |
|---|---|---|
titles | string[] | track header titles |
this
▸ setVisible(value): LogLithology
Sets visibility of the node. Send event Events.VisibilityChanged
| Name | Type | Description |
|---|---|---|
value | boolean | flag specifying visibility of the node |
this
▸ setZIndex(value): LogLithology
Sets z-index for node (set null for default)
| Name | Type | Description |
|---|---|---|
value | number | index determining node z-position |
this
▸ shear(shx, shy): LogLithology
Shear this node's bounds
| Name | Type | Description |
|---|---|---|
shx | number | x-axis shear |
shy | number | y-axis shear |
this
▸ toString(): string
Returns a string representation of this object (generally the classname)
string
A string representation
▸ translate(tx, ty): LogLithology
Translate bounds
| Name | Type | Description |
|---|---|---|
tx | number | x translation |
ty | number | y translation |
this
▸ unregisterAnimationStyle(root): void
Unregister animation style.
| Name | Type | Description |
|---|---|---|
root | Node | root node for node |
void
LogFill.unregisterAnimationStyle
▸ updateSceneTransformation(): LogLithology
Update scene transformation
this
LogFill.updateSceneTransformation
▸ updateState(regions?, changes?): LogLithology
Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph
| Name | Type | Description |
|---|---|---|
Optional regions | Rect[] | optional array to return invalid rectangles in the parent coordinates |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ Protected updateTimeStamp(): LogLithology
Update time stamp to indicate that Node or Children has been changed.
this
▸ Static enableSceneGraphNotification(enabled): void
Enable / disable all notifications
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets if this object sends notifications |
void
LogFill.enableSceneGraphNotification
▸ Static findParent<T>(node, classType, filter?): InstanceType<T>
Find root of the node with specified type
| Name | Type |
|---|---|
T | extends Constructor<any> |
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | T | type of the class to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
InstanceType<T>
▸ Static findParent(node, classType, filter?): Node
Find root of the node with specified type
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | string | interface name to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
▸ Static getClassName(): string
string
▸ Static getShortFillType(filltype): FillType
manipulator for filltype aliases
| Name | Type | Description |
|---|---|---|
filltype | string | filltype |
▸ Static isSceneGraphNotificationEnabled(): boolean
Return status of the global notification for all nodes.
boolean