本文へ移動

@eightkk/vue-weave / core / formatDependencyLag

Function: formatDependencyLag() ​

formatDependencyLag(lag): string

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

Default text of a dependency lag in GanttChart (formatLag) and renderTimelineSvg: a signed number of hours of a millisecond lag, rounded to two decimals, such as +2 h, +0.5 h or −1.25 h (a lead, with U+2212 MINUS SIGN). Charts in other time units should pass their own formatter. Throws a RangeError for a non-finite lag.

Parameters ​

lag ​

number

Returns ​

string

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