Skip to main content

Class: InvalidSnapIncrementError

Defined in: model/errors.ts:134

code: 'invalid-snap-increment' — a snap { unit, increment } whose increment is not a positive integer. time/'s stepping loops (snapInstant, stepsBetween) walk forward or backward one increment at a time until they pass the target; a 0 never advances and a negative value walks away from it, so either one loops forever (#201). Thrown by Gantt.snap's setter, so the mistake names the assignment rather than the drag two gestures later, and again inside time/ itself, because a custom ViewPreset's own tick reaches the same loop without passing through that setter.

Extends​

Constructors​

Constructor​

new InvalidSnapIncrementError(unit, increment): InvalidSnapIncrementError

Defined in: model/errors.ts:138

Parameters​

unit​

TimeUnit

increment​

number

Returns​

InvalidSnapIncrementError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:104

Inherited from​

FreeGanttError.code


increment​

readonly increment: number

Defined in: model/errors.ts:136


unit​

readonly unit: TimeUnit

Defined in: model/errors.ts:135