Skip to content

@eightkk/vue-weave / core / TimelineBar

Interface: TimelineBar<D> ​

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

A GanttChart bar. D types the optional data payload; it defaults to unknown.

Extends ​

Type Parameters ​

D ​

D = unknown

Properties ​

appearance? ​

optional appearance?: "outline" | "solid"

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


baseline? ​

optional baseline?: TimeRange

Defined in: src/core/types.ts:105

The single unnamed baseline, drawn below the bar. It takes part in baseline selection as the set timelineBaselineId ('$baseline').


baselines? ​

optional baselines?: readonly TimelineBaseline[]

Defined in: src/core/types.ts:110

Named baselines, at most one per set ID (for example plan or rev1). Each is a finite interval with end >= start; the set ID timelineBaselineId is reserved for baseline. GanttChart baselineIds chooses the sets that are drawn.


constraints? ​

optional constraints?: TimelineConstraints

Defined in: src/core/types.ts:141

Scheduling constraints, drawn as markers in the bar's lane and added to its description. The fields are named as in ScheduleTask, so they spread into a task unchanged. Each is a finite time in the chart's units. The chart does not move the bar to meet them; a constraint that the bar's dates break is drawn as violated.


critical? ​

optional critical?: boolean

Defined in: src/core/types.ts:114

Draws the bar with the critical outline (--vw-critical) and adds GanttLabels.critical to its description.


data? ​

optional data?: D

Defined in: src/core/types.ts:112

Application data. The components pass it through untouched.


deadline? ​

optional deadline?: number

Defined in: src/core/types.ts:118

A due time, drawn as an indicator in the bar's lane. A bar whose end is after it is marked late.


deletable? ​

optional deletable?: boolean

Defined in: src/core/types.ts:135

Whether Delete or Backspace may propose removing the bar when the chart's deletable prop is set. Defaults to editable.


description? ​

optional description?: string

Defined in: src/core/types.ts:125

Extra text about the bar for assistive technology and the native tooltip, for example "Manually scheduled". GanttChart puts it first in the bar's accessible description, before the critical, float, deadline, constraint and baseline facts, and after the dates in its title; renderTimelineSvg adds it to the bar's <title>. The accessible name is unchanged. Must be a string; blank text is ignored.


editable? ​

optional editable?: boolean

Defined in: src/core/types.ts:99


end ​

end: number

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

Inherited from ​

TimeRange.end


id ​

id: string

Defined in: src/core/types.ts:93


label ​

label: string

Defined in: src/core/types.ts:95


lane? ​

optional lane?: number

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


latestEnd? ​

optional latestEnd?: number

Defined in: src/core/types.ts:116

Latest finish that keeps the plan; a float line is drawn from end to it. Finite and not before end.


progress? ​

optional progress?: number

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


rowId ​

rowId: string

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


segments? ​

optional segments?: readonly TimeRange[]

Defined in: src/core/types.ts:130

Worked pieces of a split bar: sorted, non-overlapping, positive-length intervals inside [start, end]. The gaps are drawn as a thin connector. Not allowed on milestones.


start ​

start: number

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

Inherited from ​

TimeRange.start


tone? ​

optional tone?: ChartTone

Defined in: src/core/types.ts:97

Released under the MIT License.