Composition
class Composition(val root: CompositionNode, var bounds: CompositionDimensions = defaultCompositionDimensions)(source)
A vector composition.
Parameters
root
the root node of the composition
bounds
the dimensions of the composition
Properties
Functions
Link copied to clipboard
Calculates effective viewport transformation using viewBox and preserveAspectRatio. As per the SVG 2.0 spec.
Link copied to clipboard
fun Composition.draw(cursor: GroupNode? = this.root as? GroupNode, drawFunction: CompositionDrawer.() -> Unit)
Draws content into an existing composition using the provided drawing function.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard