Skip to content

@eightkk/vue-weave / core / assignmentWorkPeriods

Function: assignmentWorkPeriods() ​

assignmentWorkPeriods(work, assignment): TimeRange[]

Defined in: src/core/resourceLoad.ts:66

The elapsed periods in which an assignment needs its resource, given the work segments of its task: the whole work, or for an assignment with workOffset or workDuration the matching part of the work, clipped to it. Throws a RangeError for invalid work segments or offsets. The arguments are not modified.

Parameters ​

work ​

readonly TimeRange[]

assignment ​

Pick<ResourceAssignment, "taskId" | "workOffset" | "workDuration">

Returns ​

TimeRange[]

Released under the MIT License.