Skip to main content

Type Alias: SnapSetting

SnapSetting = TickStep | "tick" | "none" | SnapRule

Defined in: time/scale.ts:20

What a caller states that a drag snaps to (#489): a named unit and increment, one tick of whatever preset is showing, a custom SnapRule, or 'none' for raw pixel placement — the free-dragging default a consumer who states nothing gets. Gantt.snap is the one place this is stated; the gesture resolves it to a SnapUnit at commit time, when the preset's own tick is known.