Layout
When creating a Config
you are able to define a Layout
object that contains information about how you
want the animation to be positioned inside the canvas.
The Layout
object is created with a fit
and align
:
Property | Type | Description | Default value |
---|---|---|---|
fit | Fit | The fit mode of the animation. Accepts “contain”, “cover”, “fill”, “fit-width”, “fit-height” and “none”. | contain |
align | [Float] | The alignment of the animation in the canvas. Origin is at the top-left corner where [0, 0] is the top-left corner and [1, 1] is the bottom-right corner. | [0.5, 0.5] |