Skip to content

@aninest/extensions / Snap / ShouldSnap

ShouldSnap()<Animating, Point>

ts
type ShouldSnap<Animating, Point>: (point, currentState) => boolean;

Type Parameters

Animating extends RecursiveAnimatable<unknown>

Point extends PartialRecursiveAnimatable<Animating>

Parameters

point: Point

currentState: Animating

Returns

boolean

Defined in

../../extensions/src/snap.ts:124