GroupNode
Represents a group node in a composition hierarchy. A GroupNode itself does not have explicit contents but serves as a container for managing child nodes. It allows grouping of multiple CompositionNode instances and provides functionalities like calculating the bounds for all its child elements and copying itself with overrides.
Inheritors
Properties
Custom attributes to be applied to the Node in addition to the Style attributes.
A mutable list of child nodes belonging to this group. Defaults to an empty list.
the target of the link that this node is in, like the href of the SVG a element it is in, null when it is in none
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.
True when this group is a text element, like an SVG text element: its text runs form one text, paints over the bounds of the text are mapped to the bounds of all its runs
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.
remove node from its parent CompositionNode
visit this CompositionNode and all descendant nodes and execute visitor