resize Artboard
Resizes this artboard to match the dimensions of the given surface, divided by the scale factor.
ℹ️ This is required when drawing with a fit type of Fit.Layout, where the artboard is expected to match the dimensions of the surface it is drawn to and layout its children within those bounds.
⚠️ In order for this to take effect, the state machine associated to this artboard must be advanced, even if just by 0.
Parameters
surface
The surface whose width and height will be used to resize the artboard.
scale Factor
The scale factor to apply when resizing. The artboard will be resized to surface dimensions divided by this factor. Defaults to 1f.
Throws
If the Rive worker has been released or surface is closed.