Skip to content

@eightkk/vue-weave / core / TaskBoardSvgOptions

Interface: TaskBoardSvgOptions<C> ​

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

Options of renderTaskBoardSvg. C types the cards that filter, cardLabel and cardDetail receive.

Extends ​

Type Parameters ​

C ​

C extends TaskBoardCard = TaskBoardCard

Properties ​

background? ​

optional background?: boolean

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

Paint an opaque background. Default true.

Inherited from ​

SvgExportOptions.background


cardDetail? ​

optional cardDetail?: (card) => string | undefined

Defined in: src/core/exportBoardSvg.ts:37

Card detail text. Defaults to card.detail.

Parameters ​

card ​

C

Returns ​

string | undefined


cardLabel? ​

optional cardLabel?: (card) => string

Defined in: src/core/exportBoardSvg.ts:35

Card title text. Defaults to card.label.

Parameters ​

card ​

C

Returns ​

string


collapsedColumnIds? ​

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

Defined in: src/core/exportBoardSvg.ts:21

Columns drawn as narrow strips with their label turned, as TaskBoard collapsedColumnIds. Unknown IDs are ignored.


collapsedColumnWidth? ​

optional collapsedColumnWidth?: number

Defined in: src/core/exportBoardSvg.ts:31

Width of a collapsed column in pixels. Default 44.


collapsedLaneIds? ​

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

Defined in: src/core/exportBoardSvg.ts:23

Lanes drawn as their header only, as TaskBoard collapsedLaneIds. Unknown IDs are ignored.


columnWidth? ​

optional columnWidth?: number

Defined in: src/core/exportBoardSvg.ts:29

Width of an expanded column in pixels. Default 232.


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


filter? ​

optional filter?: (card) => boolean

Defined in: src/core/exportBoardSvg.ts:19

As TaskBoard filter: only the cards it accepts are drawn; counts show "shown of all" while it hides cards.

Parameters ​

card ​

C

Returns ​

boolean


fontFamily? ​

optional fontFamily?: string

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

CSS font-family list written on the root element.

Inherited from ​

SvgExportOptions.fontFamily


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


labels? ​

optional labels?: Partial<TaskBoardSvgLabels>

Defined in: src/core/exportBoardSvg.ts:27

Texts; omitted ones use the English TaskBoard defaults.


lanes? ​

optional lanes?: readonly TaskBoardLane[]

Defined in: src/core/exportBoardSvg.ts:17

Swimlanes, as TaskBoard lanes. Without lanes (or with an empty array) the board has one row of cells.


padding? ​

optional padding?: number

Defined in: src/core/exportBoardSvg.ts:33

Margin around the board and gap between columns, in pixels. Default 10.


selectedId? ​

optional selectedId?: string

Defined in: src/core/exportBoardSvg.ts:25

A card drawn in the selected style.


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


title? ​

optional title?: string

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

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

Inherited from ​

SvgExportOptions.title


wipUnderColor? ​

optional wipUnderColor?: string

Defined in: src/core/exportBoardSvg.ts:41

Colour of the under-minimum warning (--vw-board-wip-under). Default #8a5a00.


wipWarningColor? ​

optional wipWarningColor?: string

Defined in: src/core/exportBoardSvg.ts:39

Colour of the over-limit warning (--vw-board-wip-warning). Default #a8361f.

Released under the MIT License.