Skip to main content

Type Alias: SnapUnit

SnapUnit = TickStep | "none" | SnapRule

Defined in: time/snap.ts:40

What a gesture snaps to: a named unit/increment, a custom SnapRule, or 'none' for raw pixel-to-millisecond conversion with no rounding. Gantt.snap's 'tick' member is resolved to a concrete TickStep by the caller (the current preset's own tickUnit/tickIncrement) before this function ever sees it — time/ names units and increments, never a preset.