Artboards
Artboard
Represents a Rive artboard instance, providing drawing, advancing,
interaction handling, and access to named nodes and data.
Draws the artboard using the provided renderer.
Use this method to call drawCanvas on instances that
are created dynamically. This must only be called during an active
canvas drawing phase, such as from within a drawCanvas callback.
Advances the artboard by the given time in seconds. Returns true if the
artboard should continue receiving advance calls.
Creates a new instance of the artboard with independent state.
Creates an animation instance linked to the artboard instance
Returns the bounding box of the artboard as two Vector values: the
minimum point and the maximum point.
Returns the node with the given name, or nil if no such node exists.
Pointer event down handler. Returns a hit-test result (0 = no hit).
Only returns a non-zero value if a hit-testable object inside the nested
artboard is hit.
Pointer event up handler. Returns a hit-test result (0 = no hit).
Only returns a non-zero value if a hit-testable object inside the nested
artboard is hit.
Pointer event move handler. Returns a hit-test result (0 = no hit).
Only returns a non-zero value if a hit-testable object inside the nested
artboard is hit.
Pointer event exit handler. Returns a hit-test result (0 = no hit).
Only returns a non-zero value if a hit-testable object inside the nested
artboard is hit.
Adds the artboard’s geometry to the given path, optionally transformed
by the provided matrix.
For a complete working example, see the Add to Path demo.