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
increment
number
Returns
InvalidSnapIncrementError
Overrides
Properties
code
readonlycode:ThrownCode
Defined in: model/errors.ts:104
Inherited from
increment
readonlyincrement:number
Defined in: model/errors.ts:136
unit
readonlyunit:TimeUnit
Defined in: model/errors.ts:135