|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <map.h>
Data Fields | |
| mln_momentum_snap_fields | fields |
| double | spacing |
| double | offset |
| double | tolerance |
| double | duration_ms |
Where a part settles after a gesture that changed it.
The targets are every spacing from offset, in the part's unit. Bearing targets wrap around the circle. Once the part's glide ends, or right away when it doesn't move, the part eases to the nearest target if it is within tolerance of it, and otherwise stays where it is. A setting whose bit isn't set takes the part's default, which mln_gesture_momentum lists.
| double mln_momentum_snap::duration_ms |
Zero settles without easing. Defaults to 300.
| mln_momentum_snap_fields mln_momentum_snap::fields |
| double mln_momentum_snap::offset |
Defaults to 0.
| double mln_momentum_snap::spacing |
Positive.
| double mln_momentum_snap::tolerance |
Not negative.