Package-level declarations
Types
Specifies in which way to combine Shapes to form a Composition
A vector composition.
A Drawer-like interface for the creation of Compositions This should be easier than creating Compositions manually
Describes a node in a composition
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.
Represents a specialized type of GroupNode
in a composition hierarchy, serving as a container for child nodes.
a CompositionNode that holds a single image ColorBuffer
a CompositionNode that holds a single Shape
Data structure containing intersection information.
Data structure containing information about a point in a ShapeContour closest to some other 2D point.
a CompositionNode that holds a single text
Specifies if transformations should be kept separate or applied to the clipped object and reset to identity.
Properties
Functions
Renders a vector Composition
onto the Drawer
. This method applies transformations, styles, and renders the hierarchy of nodes from the given Composition
object.
Draws content into an existing composition using the provided drawing function.
Draws a vector composition by applying a provided drawing function.
Draws a composition within the specified document bounds or an existing composition. This function utilizes a customizable draw function to define the drawing behavior.
Draws a composition using the specified document bounds and drawing logic. Optionally, an existing composition and cursor can be passed to update or build upon them.
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.
Merges two lists of ShapeNodeIntersection removing duplicates under the given threshold. Used internally by intersections.
remove node from its parent CompositionNode
visit this CompositionNode and all descendant nodes and execute visitor