本文へ移動

@eightkk/vue-weave / core / TimelineSvgOptions

Interface: TimelineSvgOptions<R, B> ​

Defined in: src/core/exportSvg.ts:425

R and B type the rows and bars that columns, rowLabel and barLabel receive.

Extends ​

Type Parameters ​

R ​

R extends TimelineRow = TimelineRow

B ​

B extends TimelineBar = TimelineBar

Properties ​

background? ​

optional background?: boolean

Defined in: src/core/svgExportShared.ts:96

Paint an opaque background. Default true.

Inherited from ​

SvgExportOptions.background


barLabel? ​

optional barLabel?: (bar) => string

Defined in: src/core/exportSvg.ts:510

Bar label text. Defaults to bar.label.

Parameters ​

bar ​

B

Returns ​

string


baselineIds? ​

optional baselineIds?: readonly string[]

Defined in: src/core/exportSvg.ts:471

Baseline sets to draw, in slot order, as GanttChart baselineIds: at most timelineBaselineLimit unique IDs, with timelineBaselineId for TimelineBar.baseline. Default: the first three of timelineBaselineIds(bars).


baselineLabel? ​

optional baselineLabel?: (id) => string

Defined in: src/core/exportSvg.ts:473

Label of a baseline set in titles. Default "Baseline" for timelineBaselineId and the set ID otherwise.

Parameters ​

id ​

string

Returns ​

string


collapsedIds? ​

optional collapsedIds?: Iterable<string, any, any>

Defined in: src/core/exportSvg.ts:427

Collapsed parent rows; their descendants and the descendants' bars are omitted.


columns? ​

optional columns?: readonly TimelineColumn<R>[]

Defined in: src/core/exportSvg.ts:439

Extra columns after the row heading column.


constraintLabels? ​

optional constraintLabels?: Partial<Record<keyof TimelineConstraints, string>>

Defined in: src/core/exportSvg.ts:506

Text of each constraint kind in the titles of constraint markers. Defaults "Start no earlier than", "Start no later than", "Finish no earlier than", "Finish no later than" and "Must start on".


constraintViolatedLabel? ​

optional constraintViolatedLabel?: string

Defined in: src/core/exportSvg.ts:508

Added to the title of a violated constraint marker. Default "violated".


dependencyStyle? ​

optional dependencyStyle?: DependencyPathStyle

Defined in: src/core/exportSvg.ts:488

Shape of the dependency connectors, as GanttChart dependencyStyle. Default orthogonal.


direction? ​

optional direction?: "ltr" | "rtl"

Defined in: src/core/svgExportShared.ts:100

Text direction of labels. For timelines, rtl also mirrors the time axis and places row headings on the right.

Inherited from ​

SvgExportOptions.direction


fontFamily? ​

optional fontFamily?: string

Defined in: src/core/svgExportShared.ts:92

CSS font-family list written on the root element.

Inherited from ​

SvgExportOptions.fontFamily


formatLag? ​

optional formatLag?: (lag) => string

Defined in: src/core/exportSvg.ts:466

Text of the label drawn on a dependency with a non-zero lag. Default formatDependencyLag (signed hours of milliseconds).

Parameters ​

lag ​

number

Returns ​

string


formatTime? ​

optional formatTime?: (time) => string

Defined in: src/core/exportSvg.ts:464

Tick and tooltip labels. Default UTC HH:mm.

Parameters ​

time ​

number

Returns ​

string


formatVariance? ​

optional formatVariance?: (delta) => string

Defined in: src/core/exportSvg.ts:475

Text of a baseline variance in titles. Default formatDependencyLag (signed hours of milliseconds).

Parameters ​

delta ​

number

Returns ​

string


headerBands? ​

optional headerBands?: readonly (readonly TimelineBand[])[]

Defined in: src/core/exportSvg.ts:448


highlightedBarIds? ​

optional highlightedBarIds?: Iterable<string, any, any>

Defined in: src/core/exportSvg.ts:493

Bars drawn with the highlight outline and the vw-is-highlighted class, as GanttChart highlightedBarIds. The outline uses the dependencyHighlight theme colour.


highlightedDependencyIds? ​

optional highlightedDependencyIds?: Iterable<string, any, any>

Defined in: src/core/exportSvg.ts:486


idPrefix? ​

optional idPrefix?: string

Defined in: src/core/svgExportShared.ts:98

Prefix for the IDs of markers and clip paths, so several exports can be inlined in one page. Default vw-export.

Inherited from ​

SvgExportOptions.idPrefix


labelWidth? ​

optional labelWidth?: number

Defined in: src/core/exportSvg.ts:437

Width of the row heading column in pixels. Default 154.


laneCount? ​

optional laneCount?: number

Defined in: src/core/exportSvg.ts:435

Default 1.


loadRowHeight? ​

optional loadRowHeight?: number

Defined in: src/core/exportSvg.ts:485

Default 44. At least 16.


loadRows? ​

optional loadRows?: readonly TimelineLoadRow[]

Defined in: src/core/exportSvg.ts:482


loadSegments? ​

optional loadSegments?: readonly TimelineLoadSegment[]

Defined in: src/core/exportSvg.ts:483


markerRanges? ​

optional markerRanges?: readonly TimelineMarkerRange[]

Defined in: src/core/exportSvg.ts:454

Highlighted half-open ranges, as GanttChart markerRanges: a band across the body (or across rowIds only) with its label at the bottom of the header, drawn with its tone or the range theme colours at 70% opacity.


markers? ​

optional markers?: readonly TimelineMarker[]

Defined in: src/core/exportSvg.ts:449


nonWorkingPeriods? ​

optional nonWorkingPeriods?: readonly TimeRange[]

Defined in: src/core/exportSvg.ts:495

Half-open intervals shaded as non-working time behind the grid, over the task and load rows. May overlap.


now? ​

optional now?: number

Defined in: src/core/exportSvg.ts:456

Time of a "now" line.


nowLabel? ​

optional nowLabel?: string

Defined in: src/core/exportSvg.ts:481

Label of the now line. Default "Now".


rowHeading? ​

optional rowHeading?: string

Defined in: src/core/exportSvg.ts:479

Heading of the row column. Default "Rows".


rowHeight? ​

optional rowHeight?: number

Defined in: src/core/exportSvg.ts:433

Default 66. At least 8 + laneCount × 14.


rowLabel? ​

optional rowLabel?: (row) => string

Defined in: src/core/exportSvg.ts:512

Row heading text. Defaults to row.label.

Parameters ​

row ​

R

Returns ​

string


rowRange? ​

optional rowRange?: object

Defined in: src/core/exportSvg.ts:431

Export only displayed rows start (inclusive) to end (exclusive), counted after collapsing.

end ​

end: number

start ​

start: number


showProgressLine? ​

optional showProgressLine?: boolean

Defined in: src/core/exportSvg.ts:501

With statusDate, draw a progress line that kinks to the progress point of each bar that is behind or ahead.


showSummaries? ​

optional showSummaries?: boolean

Defined in: src/core/exportSvg.ts:441

Draw rollup bars on parent rows without bars of their own.


statusDate? ​

optional statusDate?: number

Defined in: src/core/exportSvg.ts:497

Time of a status-date line.


statusDateLabel? ​

optional statusDateLabel?: string

Defined in: src/core/exportSvg.ts:499

Label of the status-date line. Default "Status date".


summaryDependencies? ​

optional summaryDependencies?: boolean

Defined in: src/core/exportSvg.ts:447

As GanttChart summaryDependencies: a dependency end may name a summary row instead of a bar. Such an end joins the start or finish edge of the row's rollup bar, so it is drawn only with showSummaries and when the row has a rollup (descendant bars and no bar of its own); otherwise the dependency is left out. Default false.


theme? ​

optional theme?: SvgExportThemeInput

Defined in: src/core/svgExportShared.ts:90

Colours; omitted values use defaultSvgExportTheme. Each is a CSS colour value (hex, a colour name or keyword, or one of the colour functions such as rgb(), color-mix() or var()); anything else throws a RangeError.

Inherited from ​

SvgExportOptions.theme


tickAnchor? ​

optional tickAnchor?: number

Defined in: src/core/exportSvg.ts:462

Tick alignment. Defaults to the start of the scale.


tickStep? ​

optional tickStep?: number

Defined in: src/core/exportSvg.ts:458

Tick interval. Defaults to the first of tickSteps that is at least 76 px wide.


tickSteps? ​

optional tickSteps?: readonly number[]

Defined in: src/core/exportSvg.ts:460

Candidate tick intervals. Default 30 minutes to 24 hours in milliseconds.


timeRange? ​

optional timeRange?: TimeRange

Defined in: src/core/exportSvg.ts:429

Export only this time window. Defaults to the whole scale, from toTime(0) to toTime(width).


title? ​

optional title?: string

Defined in: src/core/svgExportShared.ts:94

Document title, written as <title> and the accessible name.

Inherited from ​

SvgExportOptions.title


varianceLabels? ​

optional varianceLabels?: object

Defined in: src/core/exportSvg.ts:477

Words before the start, finish and duration variances in titles. Defaults "start", "finish" and "duration".

duration? ​

optional duration?: string

finish? ​

optional finish?: string

start? ​

optional start?: string

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