@aninest/extensions / Bound / BoundsLayer
BoundsLayer<Animating>
ts
type BoundsLayer<Animating>: object & Layer<Animating>;
A layer used to enforce minimum and maximum bounds on an animation.
Type declaration
update()
ts
update: (bounds) => void | undefined;
Parameters
• bounds: PartialFullBounds
<PartialRecursiveAnimatable
<Animating
>>
Returns
void
| undefined
Type Parameters
• Animating extends UnknownRecursiveAnimatable
See
setupBoundsLayer for how to create a BoundsLayer.