ShapeNode
a CompositionNode that holds a single Shape
Properties
Custom attributes to be applied to the Node in addition to the Style attributes.
the local Shape with the effectiveTransform applied to it
This CompositionNode's computed style. Where every style attribute is obtained by overwriting the Style in the following order:
Calculates the absolute transformation of the current node.
a map that stores user data
Functions
Filters a CompositionNode
and its hierarchy based on the provided filter function. The method recursively applies the filter to the node and its children, creating a new hierarchy that contains only the nodes for which the filter returns true. If the filter condition fails for the root node, null is returned.
Finds first CompositionNode to match the given predicate.
Finds all CompositionNode
instances in the current node hierarchy that satisfy the given filter. Traverses the hierarchy recursively, evaluating each node and its children.
find all descendant GroupNode nodes, including potentially this node
find all descendant ImageNode nodes, including potentially this node
find all descendant ShapeNode nodes, including potentially this node
Recursively finds all terminal nodes within the composition tree starting from the current node and applies the provided filter to determine which nodes to include in the result.
apply transforms of all ancestor nodes and return a new detached shape node with identity transform and transformed Shape
remove node from its parent CompositionNode
visit this CompositionNode and all descendant nodes and execute visitor