Documentation / Snap
Snap
Snaps the animation to predetermined points before ending.
Snap
| Name | Description |
|---|---|
| ShouldSnap | - |
| distanceLessThan | Returns a function of whether the provided distance is smaller than the distance between the current state and an arbitrary point. Mainly meant as a utility function for setSnapPoint. |
| distanceSquaredBetween | Measures the squared euclidean distance between the point and the currentState across the features in the point. |
| setLocalSnapGrid | Sets a snap grid only for the top level of the animation. |
| setSnapGrid | Adds a grid to snap to. |
| setSnapPoint | Adds a point to snap to, across any number of features. |