日本語
@eightkk/vue-weave / core / resourceLoadFromMsProject
Function: resourceLoadFromMsProject()
resourceLoadFromMsProject(
project,options?):MsProjectResourceLoad
Defined in: src/core/interchangeMsProject.ts:1226
Map the resources and assignments of a plan, such as the result of fromMsProjectXml, to the shapes of calculateResourceLoad, levelResources and projectResourceTimeline. Only work resources count (type 'work' or absent); material and cost resources, and assignments to them or to summary tasks, are left out. A resource's capacity is maxUnits (default 1) and an assignment's units its units (default 1), both times unitScale and rounded. An assignment that rounds to 0 is left out with a warning. The input is validated like toMsProjectXml. Throws a RangeError for an invalid unitScale.
Parameters
project
options?
MsProjectResourceLoadOptions = {}