English
@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?
optionalappearance?:"outline"|"solid"
Defined in: src/core/types.ts:98
baseline?
optionalbaseline?: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?
optionalbaselines?: readonlyTimelineBaseline[]
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?
optionalconstraints?: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?
optionalcritical?: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?
optionaldata?:D
Defined in: src/core/types.ts:112
Application data. The components pass it through untouched.
deadline?
optionaldeadline?: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?
optionaldeletable?: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?
optionaldescription?: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?
optionaleditable?:boolean
Defined in: src/core/types.ts:99
end
end:
number
Defined in: src/core/timeline.ts:15
Inherited from
id
id:
string
Defined in: src/core/types.ts:93
label
label:
string
Defined in: src/core/types.ts:95
lane?
optionallane?:number
Defined in: src/core/types.ts:96
latestEnd?
optionallatestEnd?: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?
optionalprogress?:number
Defined in: src/core/types.ts:100
rowId
rowId:
string
Defined in: src/core/types.ts:94
segments?
optionalsegments?: readonlyTimeRange[]
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
tone?
optionaltone?:ChartTone
Defined in: src/core/types.ts:97