本文へ移動

@eightkk/vue-weave / core / timelineConstraints

Function: timelineConstraints() ​

timelineConstraints(source): TimelineConstraints | undefined

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

The constraint fields of any object, for example a ScheduleTask, as a new TimelineConstraints with only the kinds that are set, or undefined when none is. Use it to build TimelineBar.constraints from scheduler tasks; the other direction needs no helper, because { ...task, ...bar.constraints } is a valid ScheduleTask.

Parameters ​

source ​

Readonly<TimelineConstraints> | undefined

Returns ​

TimelineConstraints | undefined

MIT ライセンスで公開しています。