Skip to content

@eightkk/vue-weave / core / timelineConstraintViolated

Function: timelineConstraintViolated() ​

timelineConstraintViolated(range, kind, time): boolean

Defined in: src/core/timeline.ts:49

Whether the interval breaks the constraint kind at time: a start before startNoEarlierThan or after startNoLaterThan, a finish (end) before finishNoEarlierThan or after finishNoLaterThan, or a start other than fixedStart. GanttChart and renderTimelineSvg draw such a constraint as violated.

Parameters ​

range ​

TimeRange

kind ​

keyof TimelineConstraints

time ​

number

Returns ​

boolean

Released under the MIT License.