Skip to content

@eightkk/vue-weave / core / taskViewBindings

Function: taskViewBindings() ​

taskViewBindings(input): ViewBinding[]

Defined in: src/core/viewBindings.ts:299

The bindings of a plan whose views show tasks and dependencies under their own IDs: scheduleToGraph nodes and edges, GanttChart bars, rows and dependencies, and resource load. Pass the result to useLinkedSelection or buildViewBindingIndex, and add bindings of your own for anything else. Per task, in input order: its node, bar and row, then per assignment, in assignment order, a load target for each period in which the assignment uses its resource; then per dependency its edge and timeline dependency. The load targets agree with calculateResourceLoad for the same tasks and assignments: pauses, calendar breaks and the parts of the work outside an assignment's workOffset and workDuration bind nothing. Throws Error for an invalid or duplicate task or dependency ID, an empty entity kind, an assignment of an unknown task or with an invalid resource ID, an inactive task that is also in tasks, and an assigned task without a work array; RangeError for invalid work segments (safe integer endpoints, positive length) or an invalid workOffset or workDuration. The input is not modified.

Parameters ​

input ​

TaskViewBindingsInput

Returns ​

ViewBinding[]

Released under the MIT License.