日本語
@eightkk/vue-weave / core / validateTimelineData
Function: validateTimelineData()
validateTimelineData(
rows,bars,dependencies?,laneCount?,options?):void
Defined in: src/core/timeline.ts:428
Validate once per input change. IDs must be unique within each collection (rows, bars, dependencies); a row and a bar may share an ID. Throws an Error for a dependency from a bar to itself, naming the dependency and the bar. (scheduleTasks, which takes its own links, reports such a link as a cycle instead.) Throws a RangeError for a dependency lag that is not a finite number. With options.summaryDependencies, a dependency end may also be the ID of a summary row; an ID that is both a bar ID and a row ID always means the bar. As in scheduleTasks, a dependency between a summary row and a bar or summary row below it throws an Error.
Parameters
rows
readonly TimelineRow<unknown>[]
bars
readonly TimelineBar<unknown>[]
dependencies?
readonly TimelineDependency[] = []
laneCount?
number = 1
options?
TimelineDataOptions = {}
Returns
void