API / geotoolkit / schematics / scene / FlippedComponentNode / FlippedComponentNode
scene.FlippedComponentNode.FlippedComponentNode
Most-common schematics component node extension. Derived component(s): "cement"
↳
FlippedComponentNode
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
automodellimitsmode | boolean | Auto model limits mode |
bounds | Rect | Define position of the group in the parent |
bounds-height | number | Height |
bounds-readonly | boolean | Readonly |
bounds-width | number | Width |
bounds-x | number | Left |
bounds-y | number | Top |
clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
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 |
contentorientation | Orientation | Content orientation |
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 |
description | string | Element description |
fillstyle | string | Fill style |
fillstyle | FillStyle | Fill style |
fillstyle-color | string | Color in CSS form |
fillstyle-evenoddmode | boolean | Even-odd fill mode |
fillstyle-fillpattern | Pattern | Pattern |
fillstyle-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 |
fillstyle-fillpattern-patternname | string | Name of this pattern for indexing |
fillstyle-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
fillstyle-foreground | string | Foreground color |
fillstyle-pattern | Pattern | Pattern |
horizontalflip | boolean | Horizontal axis goes from right to left |
id | string | number | Id of the node, its a unique identifier |
infinity | boolean | Mode to render outside the model limits |
isleft | boolean | IsLeft is "left" part of shape flag |
layoutstyle | LayoutStyle | Layout style to be used for parent layout |
layoutstyle-constraint | SizeConstraint | Layout constrains |
layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
layoutstyle-float | string | Float position |
layoutstyle-position | string | Layout position |
layoutstyle-size | number | string | Layout size |
linestyle | string | Line style |
linestyle | LineStyle | Line style |
linestyle-color | string | Color in CSS form |
linestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
linestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
linestyle-linecap | CapStyle | The line cap style |
linestyle-linedashoffset | number | Line dash offset of dashed line |
linestyle-linejoin | JoinStyle | The line join style |
linestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
linestyle-scalable | boolean | True if width should depend on transformation |
linestyle-unit | string | Optional unit for the width |
linestyle-width | number | string | The line thickness |
localtransform | Transformation | Local transformation |
localtransform-dx | number | X axis translation |
localtransform-dy | number | Y axis translation |
localtransform-xx | number | X scale |
localtransform-xy | number | Xy skew |
localtransform-yx | number | Yx skew |
localtransform-yy | number | Y scale |
margins | number | string | It has properties for specifying the margins for each side |
modellimits | Rect | Define inner model coordinates of the group |
name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
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 |
padding | number | string | It has properties for specifying the padding for each side |
parentproxy | ComponentNode | Parent proxy |
parentproxy-automodellimitsmode | boolean | Auto model limits mode |
parentproxy-bounds | Rect | Define position of the group in the parent |
parentproxy-clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
parentproxy-clipstyle | ClipStyle | Clipping style |
parentproxy-clipstyle | GraphicsPath | Clipping style |
parentproxy-contentorientation | Orientation | Content orientation |
parentproxy-cssclass | string | The css class name of this node |
parentproxy-csscursor | string | CSS cursor associated with node |
parentproxy-cssstyle | string | CSS style to be applied to inserted elements |
parentproxy-description | string | Element description |
parentproxy-fillstyle | string | Fill style |
parentproxy-fillstyle | FillStyle | Fill style |
parentproxy-horizontalflip | boolean | Horizontal axis goes from right to left |
parentproxy-id | string | number | Id of the node, its a unique identifier |
parentproxy-infinity | boolean | Mode to render outside the model limits |
parentproxy-layoutstyle | LayoutStyle | Layout style to be used for parent layout |
parentproxy-linestyle | string | Line style |
parentproxy-linestyle | LineStyle | Line style |
parentproxy-localtransform | Transformation | Local transformation |
parentproxy-margins | number | string | It has properties for specifying the margins for each side |
parentproxy-modellimits | Rect | Define inner model coordinates of the group |
parentproxy-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
parentproxy-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 |
parentproxy-opacityblendmode | BlendMode | Node opacity mode to blend it |
parentproxy-padding | number | string | It has properties for specifying the padding for each side |
parentproxy-pickingchildren | boolean | Enable picking children |
parentproxy-rectbounds | Rect | Geometry bounds |
parentproxy-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
parentproxy-scalescrollstrategy-enabled | boolean | Enable flag |
parentproxy-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
parentproxy-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 |
parentproxy-transform | string | Additional CSS transformation applied to node or 'none' |
parentproxy-transform | Transformation | Additional CSS transformation applied to node or 'none' |
parentproxy-verticalflip | boolean | Vertical axis goes from bottom to top |
parentproxy-viewcache | boolean | View cache to cache child nodes |
parentproxy-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
parentproxy-z-index | number | Define node z-index |
pickingchildren | boolean | Enable picking children |
rectbounds | Rect | Geometry bounds |
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 |
transform | string | Additional CSS transformation applied to node or 'none' |
transform | Transformation | Additional CSS transformation applied to node or 'none' |
verticalflip | boolean | Vertical axis goes from bottom to top |
viewcache | boolean | View cache to cache child nodes |
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
• Protected new FlippedComponentNode(options?)
| Name | Type |
|---|---|
Optional options | boolean | Options |
ReusableComponentNode.constructor
Methods
▸ addBaseLayer(baseLayer): FlippedComponentNode
Add baseLayer to container
this
ReusableComponentNode.addBaseLayer
▸ addChild(node): FlippedComponentNode
Add a child node
this
ReusableComponentNode.addChild
▸ addCssClass(cssclass): FlippedComponentNode
Adds new css class to node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
ReusableComponentNode.addCssClass
▸ addInvalidateHandler(handler): FlippedComponentNode
Add invalidate handler
Deprecated
since 4.0, use Node.on instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
ReusableComponentNode.addInvalidateHandler
▸ addOverlay(overlay): FlippedComponentNode
Add overlay to container
this
ReusableComponentNode.addOverlay
▸ adjustPosition(area?, vAlign?, hAlign?): FlippedComponentNode
Adjust position of node to specified area
| Name | Type | Description |
|---|---|---|
Optional area | Rect | specified area. Default to Parent Model Limits |
Optional vAlign | string | vertical alignment. It can be "top", "bottom", "center". Defaults to "top". |
Optional hAlign | string | horizontal alignment It can be "left", "right", "center". Defaults to "left". |
this
ReusableComponentNode.adjustPosition
▸ Protected applyOpacity(context): FlippedComponentNode
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
ReusableComponentNode.applyOpacity
▸ Protected applyResponsiveStyle(): void
Apply a responsive style rules it is exists
void
ReusableComponentNode.applyResponsiveStyle
▸ changeBaseLayerOrder(overlay, order, anchor?): FlippedComponentNode
Changes the z-order of the baseLayer.
| Name | Type | Description |
|---|---|---|
overlay | Node | |
order | NodeOrder | position to be added |
Optional anchor | Node | anchor node to specify changeOrder with respect to this node |
this
ReusableComponentNode.changeBaseLayerOrder
▸ changeChildOrder(node, order, anchor?): FlippedComponentNode
changes the z-order of the nodes being rendered.
| Name | Type | Description |
|---|---|---|
node | Node | any child added in the Composite node |
order | NodeOrder | position to be added |
Optional anchor | Node | anchor node to specify changeOrder with respect to this node |
this
ReusableComponentNode.changeChildOrder
▸ changeOverlayOrder(overlay, order, anchor?): FlippedComponentNode
Changes the z-order of the overlay.
| Name | Type | Description |
|---|---|---|
overlay | Node | child overlay |
order | NodeOrder | position to be added |
Optional anchor | Node | anchor node to specify changeOrder with respect to this node |
this
ReusableComponentNode.changeOverlayOrder
▸ checkCollision(context): boolean
Checks collision
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
true if object is inside of renderable area
ReusableComponentNode.checkCollision
▸ clearBaseLayers(disposeBaseLayers?): FlippedComponentNode
Remove all child baseLayers from group
| Name | Type | Description |
|---|---|---|
Optional disposeBaseLayers | boolean | automatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default |
this
ReusableComponentNode.clearBaseLayers
▸ clearCache(): FlippedComponentNode
Clear cache
this
ReusableComponentNode.clearCache
▸ clearChildren(disposeChildren?): FlippedComponentNode
Remove all child nodes from this composite group
| Name | Type | Description |
|---|---|---|
Optional disposeChildren | boolean | automatically dispose children. If it is true then method dispose is called for each child. |
this
ReusableComponentNode.clearChildren
▸ clearOverlays(disposeOverlays?): FlippedComponentNode
Remove all child overlays from group
| Name | Type | Description |
|---|---|---|
Optional disposeOverlays | boolean | automatically dispose overlays. If it is true then method dispose is called for each overlay, false by default |
this
ReusableComponentNode.clearOverlays
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ connectStyle(style, type, callback): FlippedComponentNode
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
ReusableComponentNode.connectStyle
▸ Protected copyConstructor(src, deepCopy?): FlippedComponentNode
Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.
this
ReusableComponentNode.copyConstructor
▸ disconnectStyle(style, type, callback): FlippedComponentNode
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
ReusableComponentNode.disconnectStyle
▸ dispose(): void
Dispose node. Clear all listeners and disconnect style to avoid memory leaks
void
▸ Protected drawBorder(localContext, bounds?): FlippedComponentNode
Draws a rectangle at the bounding box (in parent coordinates)
| Name | Type | Description |
|---|---|---|
localContext | RenderingContext | The local rendering context |
Optional bounds | Rect | group bounds |
this
ReusableComponentNode.drawBorder
▸ enableClipping(doClip): FlippedComponentNode
Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.
| Name | Type | Description |
|---|---|---|
doClip | boolean | enable clipping on this node |
this
ReusableComponentNode.enableClipping
▸ enableEventPropagation(enable): FlippedComponentNode
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
ReusableComponentNode.enableEventPropagation
▸ enablePickingChildren(enable): FlippedComponentNode
Enables or disables picking children
| Name | Type | Description |
|---|---|---|
enable | boolean | enable picking children |
this
ReusableComponentNode.enablePickingChildren
▸ enumerateNodes(callback, target?): void
Executes a provided function once for each child node
| Name | Type | Description |
|---|---|---|
callback | Callback<Node> | provided function |
Optional target | QueryBuilder<any> | target to pass to callback as a second parameter |
void
ReusableComponentNode.enumerateNodes
▸ execute(delegate): FlippedComponentNode
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: FlippedComponentNode) => void | Function to execute |
The result if any or this
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: FlippedComponentNode) => 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
ReusableComponentNode.getAnimationStyle
▸ 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
boolean
mode
ReusableComponentNode.getAutoModelLimitsMode
▸ getAutoModelLimitsStrategy(): ModelLimitsStrategy
Get Model Limits Logics Strategy
strategy
ReusableComponentNode.getAutoModelLimitsStrategy
▸ getBaseLayer(index): Node
Return baseLayer at specified index
| Name | Type | Description |
|---|---|---|
index | number | index at which to get the baseLayer for |
track
ReusableComponentNode.getBaseLayer
▸ getBaseLayers<S>(predicate, modify?): Iterator<Node>
Return iterator by baseLayers nodes
| Name | Type |
|---|---|
S | extends Node<S> |
| Name | Type | Description |
|---|---|---|
predicate | (value: Node) => value is S | a filter function |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
ReusableComponentNode.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);| Name | Type | Description |
|---|---|---|
Optional filter | (node: Node) => boolean | A filter function. Returns all overlays if null. |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
An iterator for child overlays.
ReusableComponentNode.getBaseLayers
▸ getBaseLayersCount(): number
Returns amount of baseLayers
number
ReusableComponentNode.getBaseLayersCount
▸ getBounds(): Rect
Get the node bounds.
component node bounds
ReusableComponentNode.getBounds
▸ getCache(): Cache
Return cache strategy to be used to cache children nodes
cache
ReusableComponentNode.getCache
▸ getChild(i): Node
Return node by index
| Name | Type | Description |
|---|---|---|
i | number | index of the node |
ReusableComponentNode.getChild
▸ getChildren<S>(predicate, modify?): Iterator<S>
Return iterator by child nodes
| Name | Type |
|---|---|
S | extends Node<S> |
| Name | Type | Description |
|---|---|---|
predicate | (value: Node) => value is S | a filter function |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
Iterator<S>
ReusableComponentNode.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);| Name | Type | Description |
|---|---|---|
Optional filter | (node: Node) => boolean | A filter function. Returns all nodes if null. |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
An iterator for child nodes.
ReusableComponentNode.getChildren
▸ getChildrenCount(): number
Return number of child nodes
number
ReusableComponentNode.getChildrenCount
▸ getClassName(): string
string
ReusableComponentNode.getClassName
▸ getClipStyle(): ClipStyle
Gets the current clipping style
clipping style
ReusableComponentNode.getClipStyle
▸ getContentOrientation(): Orientation
Return content orientation
content orientation
ReusableComponentNode.getContentOrientation
▸ getContentsArea(transformation?): Rect
Return area without paddings. Model limits are mapped to content area, where children are layout.
| Name | Type | Description |
|---|---|---|
Optional transformation | Transformation | scene transformation |
ReusableComponentNode.getContentsArea
▸ getContentsTransform(): Transformation
getContentsTransform() retrieves the world transformation of the node.
transformation from model coordinates to bounds of the group
ReusableComponentNode.getContentsTransform
▸ getCss(): CssStyle
Return CSS style
▸ getCssClass(): string
Returns css class name to be used to apply CSS style
string
the css class name
ReusableComponentNode.getCssClass
▸ getCssClasses(): string[]
Gets list of css class names which applied to this node
string[]
ReusableComponentNode.getCssClasses
▸ getCssTransform(): string
Returns CSS transformation
string
ReusableComponentNode.getCssTransform
▸ getData(deepCopy?): Options
Gets component data (see "setData" API for return object elements)
| Name | Type | Description |
|---|---|---|
Optional deepCopy | boolean | a flag indicating if the data should be fully copied before returning or not |
data
▸ getDescription(deepCopy?): Description
Gets description (Convenience method)
| Name | Type | Description |
|---|---|---|
Optional deepCopy | boolean | a flag indicating if the data should be fully copied before returning or not |
description
ReusableComponentNode.getDescription
▸ getDesiredHeight(): string | number
Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()
string | number
desired height ("undefined" by default)
ReusableComponentNode.getDesiredHeight
▸ getDesiredWidth(): string | number
Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()
string | number
desired width ("undefined" by default)
ReusableComponentNode.getDesiredWidth
▸ getDeviceLimits(): Rect
Return device limits
ReusableComponentNode.getDeviceLimits
▸ getFillStyle(): FillStyle
Return fill style
fillStyle current fill style
ReusableComponentNode.getFillStyle
▸ getGeometryBounds(): Rect
Gets model bounds
ReusableComponentNode.getGeometryBounds
▸ getGeometryData(deepCopy?): Entity
Gets geometric data to build the node on (Convenience method)
| Name | Type | Description |
|---|---|---|
Optional deepCopy | boolean | a flag indicating if the data should be fully copied before returning or not |
geometric data
ReusableComponentNode.getGeometryData
▸ getId(): string | number
Returns the associated identifier of the node
string | number
The node's id
▸ getInfiniteMode(): boolean
Return infinity mode flag
boolean
flag
ReusableComponentNode.getInfiniteMode
▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>
Gets invalidate method
AttributeCallback<EventDispatcher>
method to invalidate this object
ReusableComponentNode.getInvalidateMethod
▸ getLayout(): Layout
Returns layout associated with the group
layout
ReusableComponentNode.getLayout
▸ getLayoutStyle(): LayoutStyle<string | number>
return desired layout style
LayoutStyle<string | number>
ReusableComponentNode.getLayoutStyle
▸ getLineStyle(): LineStyle
Return border style
ReusableComponentNode.getLineStyle
▸ getLocalTransform(): Transformation
Retrieves the transformation of bounds to parent
transform the local transform.
ReusableComponentNode.getLocalTransform
▸ getMarginsStyle(): SpaceStyle<string | number>
Return margins style
SpaceStyle<string | number>
ReusableComponentNode.getMarginsStyle
▸ getModelLimits(): Rect
Gets model limits, the limits of this groups inside space
the current model limits
ReusableComponentNode.getModelLimits
▸ getName(): string
Returns the node name
string
The node name
▸ getOpacity(): number
Returns current node opacity
number
opacity
ReusableComponentNode.getOpacity
▸ getOpacityBlendMode(): BlendMode
Returns current node opacity
opacity blend mode
ReusableComponentNode.getOpacityBlendMode
▸ getOverlay(index): Node
Return overlay at specified index
| Name | Type | Description |
|---|---|---|
index | number | index at which to get the overlay for |
track
ReusableComponentNode.getOverlay
▸ getOverlayAt(index): Node
Return overlay at specified index
Deprecated
since 4.2 use getOverlay instead
| Name | Type | Description |
|---|---|---|
index | number | index at which to get the overlay for |
track
ReusableComponentNode.getOverlayAt
▸ getOverlays<S>(predicate, modify?): Iterator<Node>
Return iterator by overlays nodes
| Name | Type |
|---|---|
S | extends Node<S> |
| Name | Type | Description |
|---|---|---|
predicate | (value: Node) => value is S | a filter function |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
ReusableComponentNode.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);| Name | Type | Description |
|---|---|---|
Optional filter | (node: Node) => boolean | A filter function. Returns all overlays if null. |
Optional modify | boolean | An option to specify if the iterator supports adding/removing items from the collection. false by default. |
An iterator for child overlays.
ReusableComponentNode.getOverlays
▸ getOverlaysCount(): number
Returns amount of overlays
number
ReusableComponentNode.getOverlaysCount
▸ getPaddingStyle(): SpaceStyle<string | number>
Return padding style
SpaceStyle<string | number>
padding
ReusableComponentNode.getPaddingStyle
▸ getParent(): Node
Return parent node
parent node
ReusableComponentNode.getParent
▸ getPreferredSize(): Rect
Return preferred size to layout children
ReusableComponentNode.getPreferredSize
▸ getProperties(): OptionsOut
Returns all the properties pertaining to this object
An object containing the properties
ReusableComponentNode.getProperties
▸ 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
ReusableComponentNode.getProperty
▸ getPropertyKeys(): string[]
Returns known properties keys
string[]
ReusableComponentNode.getPropertyKeys
▸ getRenderingFilter(): IFilter
Return filter to be used for rendering and picking
current filter
ReusableComponentNode.getRenderingFilter
▸ getRenderingHints(deepCopy?): RenderingHintsBase | RenderingHints
Gets rendering hints
| Name | Type | Description |
|---|---|---|
Optional deepCopy | boolean | a flag indicating if the data should be fully copied before returning or not |
RenderingHintsBase | RenderingHints
rendering hints
ReusableComponentNode.getRenderingHints
▸ getResponsiveStyle(): ResponsiveStyle
Return responsive style
ReusableComponentNode.getResponsiveStyle
▸ 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
ReusableComponentNode.getScaleScrollStrategy
▸ getSceneTransform(): Transformation
Returns transformation from node to root scene
a transformation from node to root scene
ReusableComponentNode.getSceneTransform
▸ getSelected(): boolean
Gets selected state
boolean
ReusableComponentNode.getSelected
▸ getStyles(): { classname: string ; fillstyle: FillStyle ; linestyle: LineStyle }[]
Gets graphical styles associated with it.
{ classname: string ; fillstyle: FillStyle ; linestyle: LineStyle }[]
ReusableComponentNode.getStyles
▸ getTag(): any
Returns the object associated with the node by user.
any
The node's user-object
▸ Abstract getTemplateBounds(): Rect
Gets template bounds
ReusableComponentNode.getTemplateBounds
▸ Abstract getTemplateNode(): AbstractNode
Gets template node
ReusableComponentNode.getTemplateNode
▸ getVisible(): boolean
Return visibility of the node
boolean
true if node is visible
ReusableComponentNode.getVisible
▸ getVisibleDeviceLimits(ignoreModelLimits?): Rect
Return visible device limits
| Name | Type | Description |
|---|---|---|
Optional ignoreModelLimits | boolean | flag defines whether to ignore ModelLimits or not |
ReusableComponentNode.getVisibleDeviceLimits
▸ getVisibleModelLimits(ignoreModelLimits?): Rect
Return visible model limits
| Name | Type | Description |
|---|---|---|
Optional ignoreModelLimits | boolean | flag defines whether to ignore ModelLimits or not |
ReusableComponentNode.getVisibleModelLimits
▸ getWorldTransform(): Transformation
Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.
ReusableComponentNode.getWorldTransform
▸ getZIndex(): number
Returns node z-index (null if not set)
number
ReusableComponentNode.getZIndex
▸ hasCssClass(cssClass): boolean
Check if node has specified css class
| Name | Type | Description |
|---|---|---|
cssClass | string | css class name |
boolean
ReusableComponentNode.hasCssClass
▸ 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
ReusableComponentNode.hasEventListener
▸ indexOfBaseLayer(baseLayer): number
Return index of overlay ( index of the specified child or -1 if baseLayer is not found)
| Name | Type | Description |
|---|---|---|
baseLayer | Node | baseLayer to check index |
number
ReusableComponentNode.indexOfBaseLayer
▸ indexOfChild(node): number
Return index of child ( index of the specified child or -1 if node is not found)
| Name | Type | Description |
|---|---|---|
node | Node | node to check index |
number
ReusableComponentNode.indexOfChild
▸ indexOfOverlay(overlay): number
Return index of overlay ( index of the specified child or -1 if overlay is not found)
| Name | Type | Description |
|---|---|---|
overlay | Node | overlay to check index |
number
ReusableComponentNode.indexOfOverlay
▸ insertBaseLayer(index, baseLayer): FlippedComponentNode
Insert child baseLayer at specified index
| Name | Type | Description |
|---|---|---|
index | number | specified index |
baseLayer | Node | a baseLayer to add |
this
ReusableComponentNode.insertBaseLayer
▸ insertChild(index, node): FlippedComponentNode
Insert child node at specified index
| Name | Type | Description |
|---|---|---|
index | number | specified index |
node | Node | a child node to add |
this
ReusableComponentNode.insertChild
▸ insertOverlay(index, overlay): FlippedComponentNode
Insert child overlay at specified index
| Name | Type | Description |
|---|---|---|
index | number | specified index |
overlay | Node | a overlay to add |
this
ReusableComponentNode.insertOverlay
▸ invalidate(bounds?, force?): FlippedComponentNode
Invalidate node
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | optional rectangular area to be invalidated, or force flag if rectangle is empty |
Optional force | boolean | optional boolean parameter that can force invalidation |
this
ReusableComponentNode.invalidate
▸ invalidateLayout(propagate?): FlippedComponentNode
Notify that layout is invalidated. Send event Events.LayoutInvalidated
| Name | Type | Description |
|---|---|---|
Optional propagate | boolean | propagate invalidate layout to parent |
this
ReusableComponentNode.invalidateLayout
▸ invalidateParent(bounds?, force?): FlippedComponentNode
Invalidate parent area
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | area to invalidate |
Optional force | boolean | force |
this
ReusableComponentNode.invalidateParent
▸ isClippingEnabled(): boolean
Returns if clipping is enabled or not for this node.
boolean
ReusableComponentNode.isClippingEnabled
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
ReusableComponentNode.isDisposed
▸ isEventPropagationEnabled(): boolean
Return true if event propagation is enabled from child to parent
boolean
ReusableComponentNode.isEventPropagationEnabled
▸ isHorizontalFlip(): boolean
Return true if the representation is flipped horizontally
boolean
flip
ReusableComponentNode.isHorizontalFlip
▸ Protected isInitialized(): boolean
Return initialization state
boolean
ReusableComponentNode.isInitialized
▸ isLayoutInvalidated(): boolean
Return true if layout is invalid
boolean
ReusableComponentNode.isLayoutInvalidated
▸ isLeft(): boolean
Gets if the template is "left" one.
boolean
▸ isNotificationEnabled(): boolean
return state of notification
boolean
current notification state
ReusableComponentNode.isNotificationEnabled
▸ isPickingChildrenEnabled(): boolean
Returns if picking children is enabled or not for this node.
boolean
pickingChildren
ReusableComponentNode.isPickingChildrenEnabled
▸ isResourceBased(): boolean
Gets "resource-based" indicator. Inherited class should override the method to ensure WellBoreNode invalidation on the node's resource load.
boolean
false
ReusableComponentNode.isResourceBased
▸ isSelectable(): boolean
Returns true if node can be picked/selected.
boolean
The selectable flag
ReusableComponentNode.isSelectable
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
ReusableComponentNode.isSilent
▸ isVerticalFlip(): boolean
Return true if the representation is flipped vertically
boolean
flip
ReusableComponentNode.isVerticalFlip
▸ moveTo(area, vAlign?, hAlign?): FlippedComponentNode
MoveTo position of node to specified area
| Name | Type | Description |
|---|---|---|
area | Rect | specified area |
Optional vAlign | string | vertical alignment. It can be "top", "bottom", "center". |
Optional hAlign | string | horizontal alignment It can be "left", "right", "center". |
this
▸ notify<E>(type, source, args?): FlippedComponentNode
Notify listeners of the Node
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event |
source | Group<Node> | source who called the event |
Optional args | EventMap<Node>[E] | event arguments |
this
▸ Protected notifyRoot(event, source, args?): Node
Notify an even to root node
| Name | Type | Description |
|---|---|---|
event | string | type of event |
source | Node | source who called the event |
Optional args | any | event arguments |
this
ReusableComponentNode.notifyRoot
▸ off<E>(type?, callback?): FlippedComponentNode
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: FlippedComponentNode, args: EventMap<Node>[E]) => void | function to be called |
this
▸ on<E>(type, callback): FlippedComponentNode
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: FlippedComponentNode, args: EventMap<Node>[E]) => void | to be called |
this
▸ Protected onBoundsChanged(bounds): FlippedComponentNode
Occurs when bounds has been changed
| Name | Type | Description |
|---|---|---|
bounds | Rect | bound of the node in the parent coordinates |
this
ReusableComponentNode.onBoundsChanged
▸ Protected onChildAdded(child): void
This method is called it child or children are added
void
ReusableComponentNode.onChildAdded
▸ Protected onChildRemoved(child): void
This method is called it child or children are removed
| Name | Type | Description |
|---|---|---|
child | Node | removed child |
void
ReusableComponentNode.onChildRemoved
▸ Protected onInitialize(options?): void
OnInitialize - virtual method called from this.initialize(options) before this.setData(options)
| Name | Type | Description |
|---|---|---|
Optional options | Options | Data to set. |
void
ReusableComponentNode.onInitialize
▸ Protected onParentChanged(node): FlippedComponentNode
This method is called when parent changes. Do not call it directly.
| Name | Type | Description |
|---|---|---|
node | Node | node to change parent |
this
ReusableComponentNode.onParentChanged
▸ Protected onVisibilityChanged(): void
This method is called if visibility is changed. Send event Events.VisibilityChanged
void
ReusableComponentNode.onVisibilityChanged
▸ Protected postRendering(context, callback?): void
To be called after rendering, used for PDF output
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
Optional callback | () => void | callback to be called after rendering |
void
ReusableComponentNode.postRendering
▸ Protected preRendering(context, callback?): void
Occurs before child rendering
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
Optional callback | () => void | callback to be called after rendering of geometry |
void
ReusableComponentNode.preRendering
▸ rebuild(force?, changes?): FlippedComponentNode
Rebuild node. This method resets state, cache, and invalidate node.
| Name | Type | Description |
|---|---|---|
Optional force | boolean | optional boolean parameter that can force invalidation |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ registerAnimationStyle(root): void
Register animation style.
| Name | Type | Description |
|---|---|---|
root | Node | root node for node |
void
ReusableComponentNode.registerAnimationStyle
▸ removeBaseLayer(baseLayer): FlippedComponentNode
Remove child baseLayer
this
ReusableComponentNode.removeBaseLayer
▸ removeChild(node, disposeChildren?): FlippedComponentNode
Remove child node
| Name | Type | Description |
|---|---|---|
node | Node | Node[] | node or array of nodes to be removed |
Optional disposeChildren | boolean | automatically dispose children. If it is true then method dispose is called for each child. |
this
ReusableComponentNode.removeChild
▸ removeCssClass(cssclass): FlippedComponentNode
Removes css class from node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
ReusableComponentNode.removeCssClass
▸ removeInvalidateHandler(handler): FlippedComponentNode
Remove invalidate handler
Deprecated
since 4.0, use Node.off instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
ReusableComponentNode.removeInvalidateHandler
▸ removeOverlay(overlay): FlippedComponentNode
Remove child overlay
this
ReusableComponentNode.removeOverlay
▸ render(context): void
Render group
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render group |
void
▸ renderAsync(context, callback): void
Render node in asynchronous mode. This implementation doesn't support cache for now.
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function |
void
ReusableComponentNode.renderAsync
▸ Protected renderBackground(context, bounds): FlippedComponentNode
Render background
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render background |
bounds | Rect | group bounds |
this
ReusableComponentNode.renderBackground
▸ Protected renderBaseLayers(context): FlippedComponentNode
Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render baseLayers |
this
ReusableComponentNode.renderBaseLayers
▸ Protected renderBaseLayersAsync(context, callback): void
Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render overlays |
callback | () => void | callback function |
void
ReusableComponentNode.renderBaseLayersAsync
▸ Protected renderChildren(context): void
Render children
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
ReusableComponentNode.renderChildren
▸ Protected renderChildrenAsync(context, callback): void
Render children async
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
callback | () => void | callback function to be called then all children are rendered |
void
ReusableComponentNode.renderChildrenAsync
▸ Protected renderContent(context): void
render to specified context. This method calls preRendering, renderChildren, postRendering
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
ReusableComponentNode.renderContent
▸ Protected renderContentAsync(context, callback): void
Render children in asynchronous mode
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function to be called then all children are rendered |
void
ReusableComponentNode.renderContentAsync
▸ Protected renderOverlays(context): FlippedComponentNode
Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render overlays |
this
ReusableComponentNode.renderOverlays
▸ Protected renderOverlaysAsync(context, callback): void
Render overlays on top of cache in asynchronous mode. This method calls renderOverlays
| Name | Type | Description |
|---|---|---|
context | RenderingContext | context to render overlays |
callback | () => void | callback function |
void
ReusableComponentNode.renderOverlaysAsync
▸ resumeUpdate(rebuild?, changes?): FlippedComponentNode
Resume auto update
| Name | Type | Description |
|---|---|---|
Optional rebuild | boolean | force rebuild |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
ReusableComponentNode.resumeUpdate
▸ rotate(theta, x, y): FlippedComponentNode
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): FlippedComponentNode
Scale node
| Name | Type | Description |
|---|---|---|
xx | number | x scale factor |
yy | number | y scale factor |
this
▸ setAnimationStyle(animationStyle): FlippedComponentNode
Sets animation style
| Name | Type | Description |
|---|---|---|
animationStyle | Type | animation style |
ReusableComponentNode.setAnimationStyle
▸ setAutoModelLimitsMode(mode): FlippedComponentNode
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
| Name | Type | Description |
|---|---|---|
mode | boolean | Model Limits Logics to be used |
this
ReusableComponentNode.setAutoModelLimitsMode
▸ setAutoModelLimitsStrategy(strategy): FlippedComponentNode
Set Model Limits Logics Strategy
| Name | Type | Description |
|---|---|---|
strategy | ModelLimitsStrategy | Model Limits logic strategy to use |
this
ReusableComponentNode.setAutoModelLimitsStrategy
▸ setBounds(bounds): FlippedComponentNode
Sets bounds of the node in the parent coordinates
| Name | Type | Description |
|---|---|---|
bounds | Type | bound of the node in the parent coordinates |
this
ReusableComponentNode.setBounds
▸ setCache(cache, rebuild?): FlippedComponentNode
Sets cache to be used to cache
| Name | Type | Description |
|---|---|---|
cache | Cache | cache to be used |
Optional rebuild | boolean | rebuild cache |
this
ReusableComponentNode.setCache
▸ setChild(index, node): FlippedComponentNode
Replace child node by index
| Name | Type | Description |
|---|---|---|
index | number | index of the node |
node | Node | node |
this
ReusableComponentNode.setChild
▸ setClipStyle(style): FlippedComponentNode
Sets a new clipping style
| Name | Type | Description |
|---|---|---|
style | GraphicsPath | ClipStyle | Options | a new clipping style |
this
ReusableComponentNode.setClipStyle
▸ setContentOrientation(orientation): FlippedComponentNode
Set content orientation
| Name | Type | Description |
|---|---|---|
orientation | Orientation | content orientation |
this
ReusableComponentNode.setContentOrientation
▸ setCss(style, merge?): FlippedComponentNode
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): FlippedComponentNode
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
ReusableComponentNode.setCssClass
▸ setCssTransform(transform): FlippedComponentNode
Set CSS transformation
| Name | Type | Description |
|---|---|---|
transform | string | Transformation | transformation css transformation instruction or Transformation instance |
this
ReusableComponentNode.setCssTransform
▸ setData(data, deepCopy?): FlippedComponentNode
Sets component data
| Name | Type | Description |
|---|---|---|
data | Options | data to set |
Optional deepCopy | boolean | deep copy flag |
this
▸ setDescription(description, deepCopy?): FlippedComponentNode
Sets description (Convenience method)
| Name | Type | Description |
|---|---|---|
description | Description | element description |
Optional deepCopy | boolean | a flag indicating if the data should be fully copied before setting or not |
this
ReusableComponentNode.setDescription
▸ setDesiredHeight(value, silent?): FlippedComponentNode
Sets desired height of the group as a layoutable object
| Name | Type | Description |
|---|---|---|
value | string | number | desired height to set, use 'auto' for automatic desired height |
Optional silent | boolean | silent setting |
this
ReusableComponentNode.setDesiredHeight
▸ setDesiredWidth(value, silent?): FlippedComponentNode
Sets desired width of the group as a layoutable object
| Name | Type | Description |
|---|---|---|
value | string | number | desired width to set |
Optional silent | boolean | silent setting |
this
ReusableComponentNode.setDesiredWidth
▸ setFillStyle(fillStyle, merge?): FlippedComponentNode
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 |
this
ReusableComponentNode.setFillStyle
▸ Protected setGeometryBounds(rectBounds): FlippedComponentNode
Sets model bounds
| Name | Type | Description |
|---|---|---|
rectBounds | Rect | geometry bounds to set |
ReusableComponentNode.setGeometryBounds
▸ setGeometryData(geometryData): FlippedComponentNode
Sets geometry
| Name | Type | Description |
|---|---|---|
geometryData | Entity | Geometry data for the node |
ReusableComponentNode.setGeometryData
▸ setHorizontalFlip(enable): FlippedComponentNode
Set horizontal flip of the representation
| Name | Type | Description |
|---|---|---|
enable | boolean | enable flip |
this
ReusableComponentNode.setHorizontalFlip
▸ setId(id): FlippedComponentNode
Allows the user to associate any identifier
| Name | Type | Description |
|---|---|---|
id | string | number | object id |
this
▸ setInfiniteMode(infinityMode): FlippedComponentNode
Set infinity mode flag to draw composite without collision check
| Name | Type | Description |
|---|---|---|
infinityMode | boolean | infinity mode flag |
this
ReusableComponentNode.setInfiniteMode
▸ setLayout(layout): FlippedComponentNode
Associate layout with a group.
| Name | Type | Description |
|---|---|---|
layout | Record<string, any> | Layout | layout instance to be set or layout properties to apply |
this
ReusableComponentNode.setLayout
▸ Protected setLayoutInvalidated(invalidated): void
Set invalidation status
| Name | Type | Description |
|---|---|---|
invalidated | boolean | invalidated layout |
void
ReusableComponentNode.setLayoutInvalidated
▸ setLayoutStyle(layoutStyle, silent?, merge?): FlippedComponentNode
specify desired layout style
| Name | Type | Description |
|---|---|---|
layoutStyle | LayoutStyle<string | number> | Options<string | number> | desired layout style |
Optional silent | boolean | silent setting |
Optional merge | boolean | true if you want to merge layoutStyle with existing attribute, false by default |
this
ReusableComponentNode.setLayoutStyle
▸ setLeft(left): FlippedComponentNode
Sets the template's "left" flag
| Name | Type | Description |
|---|---|---|
left | boolean | left flag |
▸ setLineStyle(lineStyle, merge?): FlippedComponentNode
Sets border color Returns this
| Name | Type | Description |
|---|---|---|
lineStyle | Type | line style or options |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
this
ReusableComponentNode.setLineStyle
▸ setLocalTransform(localTransform, force?): FlippedComponentNode
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
ReusableComponentNode.setLocalTransform
▸ setMarginsStyle(margins, merge?): FlippedComponentNode
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
ReusableComponentNode.setMarginsStyle
▸ setModelLimits(limits): FlippedComponentNode
Sets inner model limits
| Name | Type | Description |
|---|---|---|
limits | Type | inner limits |
this
ReusableComponentNode.setModelLimits
▸ setName(name): FlippedComponentNode
Sets name of the node
| Name | Type | Description |
|---|---|---|
name | string | The node name |
this
▸ setNotification(notify, force?): FlippedComponentNode
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
ReusableComponentNode.setNotification
▸ setOpacity(opacity, blendMode?): FlippedComponentNode
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
ReusableComponentNode.setOpacity
▸ setPaddingStyle(paddingStyle, merge?): FlippedComponentNode
Sets padding style
| Name | Type | Description |
|---|---|---|
paddingStyle | Type<string | number> | padding style |
Optional merge | boolean | true if you want to merge paddingStyle with existing attribute, false by default |
this
ReusableComponentNode.setPaddingStyle
▸ setProperties(properties?): FlippedComponentNode
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | An object containing the properties to set |
this
ReusableComponentNode.setProperties
▸ setProperty(name, value): FlippedComponentNode
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
ReusableComponentNode.setProperty
▸ setRenderingFilter(filter): FlippedComponentNode
Sets filter to be applied before rendering and picking
| Name | Type | Description |
|---|---|---|
filter | IFilter | filter to set |
this
ReusableComponentNode.setRenderingFilter
▸ setRenderingHints(hints, deepCopy?): FlippedComponentNode
Sets rendering hints.
When overriding the method FlippedComponentNode's inheritants must call for "FlippedComponentNode.prototype.setRenderingHints" AT THE VERY END of the method's body
| Name | Type | Description |
|---|---|---|
hints | RenderingHintsBase | RenderingHints | rendering hints |
Optional deepCopy | boolean | a flag indicating if the data should be fully copied before returning or not |
this
ReusableComponentNode.setRenderingHints
▸ setResponsiveStyle(style): FlippedComponentNode
Sets responsive style.
| Name | Type | Description |
|---|---|---|
style | Options | ResponsiveStyle | responsive style |
this
ReusableComponentNode.setResponsiveStyle
▸ setScaleScrollStrategy(strategy?): FlippedComponentNode
Sets scale scroll strategy
| Name | Type | Description |
|---|---|---|
Optional strategy | Delegate | scale scroll strategy |
this
ReusableComponentNode.setScaleScrollStrategy
▸ setSelectable(selectable): FlippedComponentNode
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
ReusableComponentNode.setSelectable
▸ setSelected(selected): FlippedComponentNode
Sets selected state
| Name | Type | Description |
|---|---|---|
selected | boolean | selected state |
this
ReusableComponentNode.setSelected
▸ setSilent(bool): FlippedComponentNode
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
ReusableComponentNode.setSilent
▸ setTag(tag): FlippedComponentNode
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
▸ setVerticalFlip(flip): FlippedComponentNode
Set vertical flip of the representation
| Name | Type | Description |
|---|---|---|
flip | boolean | flag to set the vertical flip of the representation |
this
ReusableComponentNode.setVerticalFlip
▸ setVisible(value): FlippedComponentNode
Sets visibility of the node. Send event Events.VisibilityChanged
| Name | Type | Description |
|---|---|---|
value | boolean | flag specifying visibility of the node |
this
ReusableComponentNode.setVisible
▸ setVisibleModelLimits(visibleModelBounds, deviceBounds?): FlippedComponentNode
Set visible model limits
| Name | Type | Description |
|---|---|---|
visibleModelBounds | Rect | visible model limits or bounds |
Optional deviceBounds | Rect | device bounds |
this
ReusableComponentNode.setVisibleModelLimits
▸ setZIndex(value): FlippedComponentNode
Sets z-index for node (set null for default)
| Name | Type | Description |
|---|---|---|
value | number | index determining node z-position |
this
ReusableComponentNode.setZIndex
▸ shear(shx, shy): FlippedComponentNode
Shear this node's bounds
| Name | Type | Description |
|---|---|---|
shx | number | x-axis shear |
shy | number | y-axis shear |
this
▸ suspendUpdate(): FlippedComponentNode
Suspend auto update
this
ReusableComponentNode.suspendUpdate
▸ toString(): string
Gets component's textual description.
The returned string contains description (if available, name otherwise), plus geometry information: 'depth' ('from' and 'to'), as well as 'diameter' ('outer' and 'inner')
string
ReusableComponentNode.toString
▸ translate(tx, ty): FlippedComponentNode
Translate bounds
| Name | Type | Description |
|---|---|---|
tx | number | x translation |
ty | number | y translation |
this
ReusableComponentNode.translate
▸ unregisterAnimationStyle(root): void
Unregister animation style.
| Name | Type | Description |
|---|---|---|
root | AnimatedNode | root node for node |
void
ReusableComponentNode.unregisterAnimationStyle
▸ updateLayout(targets?): FlippedComponentNode
Updates layout(s)
Fires
| Name | Type | Description |
|---|---|---|
Optional targets | ILayoutable[] | optional parameter about which element to layout |
this
ReusableComponentNode.updateLayout
▸ updateSceneTransformation(): FlippedComponentNode
Update scene transformation
this
ReusableComponentNode.updateSceneTransformation
▸ updateShapeGeometry(context): void
Updates (if needed) shape geometry depending on rendering context state. The implementation does nothing
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
ReusableComponentNode.updateShapeGeometry
▸ updateState(regions?, changes?): FlippedComponentNode
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
ReusableComponentNode.updateState
▸ updateSuspended(): boolean
Return state of suspend state
boolean
state of update
ReusableComponentNode.updateSuspended
▸ Protected updateTimeStamp(): FlippedComponentNode
Update time stamp to indicate that Node or Children has been changed.
this
ReusableComponentNode.updateTimeStamp
▸ validGeometryData(geometryData): boolean
Validates geometry data.
| Name | Type | Description |
|---|---|---|
geometryData | Entity | Geometry data |
boolean
ReusableComponentNode.validGeometryData
▸ Static enableSceneGraphNotification(enabled): void
Enable / disable all notifications
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets if this object sends notifications |
void
ReusableComponentNode.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>
ReusableComponentNode.findParent
▸ 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 |
ReusableComponentNode.findParent
▸ Static getClassName(): string
string
ReusableComponentNode.getClassName
▸ Static isSceneGraphNotificationEnabled(): boolean
Return status of the global notification for all nodes.
boolean