Skip to content

@eightkk/vue-weave / core / createResourceTimelineProjector

Function: createResourceTimelineProjector() ​

createResourceTimelineProjector<D, R>(): (input, options) => ResourceTimelineProjection<D, R>

Defined in: src/core/resourceTimeline.ts:172

A memoized projectResourceTimeline. It returns the previous projection, with the same arrays, while the input fields (resources, tasks, assignments, dependencies, unplannedTaskIds) and the options (barLabel, preferredBarIds) are the same objects as in the previous call, so a re-render does not cancel a drag in progress.

Type Parameters ​

D ​

D = unknown

R ​

R = unknown

Returns ​

(input, options) => ResourceTimelineProjection<D, R>

Released under the MIT License.