Skip to content

@eightkk/vue-weave / core / TreeGridSvgOptions

Interface: TreeGridSvgOptions<R> ​

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

Options of renderTreeGridSvg. R types the rows that formatValue and sortRules receive.

Extends ​

Type Parameters ​

R ​

R extends TreeGridRow = TreeGridRow

Properties ​

applyView? ​

optional applyView?: boolean

Defined in: src/core/exportGridSvg.ts:51

Apply sort and filters with projectTreeGridRows before drawing. Default true; pass false when the rows are already projected, as TreeGrid's parent passes them.


background? ​

optional background?: boolean

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

Paint an opaque background. Default true.

Inherited from ​

SvgExportOptions.background


cells? ​

optional cells?: readonly TreeGridCell[]

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

Sparse cells of the columns without value, as TreeGrid cells.


columnRange? ​

optional columnRange?: object

Defined in: src/core/exportGridSvg.ts:55

Export only data columns start (inclusive) to end (exclusive), counted in columns order.

end ​

end: number

start ​

start: number


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


expandedIds? ​

optional expandedIds?: Iterable<string, any, any> | "all"

Defined in: src/core/exportGridSvg.ts:28

The expanded rows, as TreeGrid expandedIds: the descendants of other rows are left out. Default all, which expands every row so the whole tree is drawn.


filters? ​

optional filters?: readonly TimelineViewFilter[]

Defined in: src/core/exportGridSvg.ts:44

Column filters, as TreeGrid filters: marked with ⏷ in the headers and, with applyView, applied to the rows.


fontFamily? ​

optional fontFamily?: string

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

CSS font-family list written on the root element.

Inherited from ​

SvgExportOptions.fontFamily


formatValue? ​

optional formatValue?: (value, context) => string

Defined in: src/core/exportGridSvg.ts:30

Text of a cell value, as TreeGrid formatValue.

Parameters ​

value ​

TreeGridValue

context ​
column ​

TreeGridColumn<R>

row ​

R

Returns ​

string


headerHeight? ​

optional headerHeight?: number

Defined in: src/core/exportGridSvg.ts:36

Height of the header row in pixels. Default 36.


highlightColor? ​

optional highlightColor?: string

Defined in: src/core/exportGridSvg.ts:65

Colour of highlights (--vw-tree-grid-highlight). Defaults to the theme's dependencyHighlight.


highlightedCells? ​

optional highlightedCells?: readonly TreeGridCellRef[]

Defined in: src/core/exportGridSvg.ts:63

Cells drawn highlighted, as TreeGrid highlightedCells.


highlightedRowIds? ​

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

Defined in: src/core/exportGridSvg.ts:61

Rows drawn highlighted, as TreeGrid highlightedRowIds.


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


includeTreeColumn? ​

optional includeTreeColumn?: boolean

Defined in: src/core/exportGridSvg.ts:57

Draw the tree column. Default true.


indent? ​

optional indent?: number

Defined in: src/core/exportGridSvg.ts:40

Indentation per tree level in pixels (--vw-tree-grid-indent). Default 16.


labels? ​

optional labels?: Partial<TreeGridLabels>

Defined in: src/core/exportGridSvg.ts:32

Texts; omitted ones use treeGridDefaultLabels. The export draws the tree column header, yes and no, the marks and the status words.


missingCell? ​

optional missingCell?: TreeGridMissingCell

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

What a cell that the data does not list means, as TreeGrid missingCell. Default empty.


rowHeight? ​

optional rowHeight?: number

Defined in: src/core/exportGridSvg.ts:34

Height of every line in pixels. Default 32.


rowRange? ​

optional rowRange?: object

Defined in: src/core/exportGridSvg.ts:53

Export only displayed lines start (inclusive) to end (exclusive), counted after collapsing and filtering.

end ​

end: number

start ​

start: number


selectedColor? ​

optional selectedColor?: string

Defined in: src/core/exportGridSvg.ts:67

Fill of selected rows (--vw-tree-grid-selected). Default #e3eefa.


selectedRowIds? ​

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

Defined in: src/core/exportGridSvg.ts:59

Rows drawn in the selected style, as TreeGrid selectedRowIds.


sort? ​

optional sort?: readonly TimelineViewSort[]

Defined in: src/core/exportGridSvg.ts:42

Header sort rules, as TreeGrid sort: drawn as ▲ and ▼ in the headers and, with applyView, applied to the rows.


sortRules? ​

optional sortRules?: Readonly<Record<string, TimelineRowCompare<R>>>

Defined in: src/core/exportGridSvg.ts:46

Registered compare rules of projectTreeGridRows.


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


treeColumnWidth? ​

optional treeColumnWidth?: number

Defined in: src/core/exportGridSvg.ts:38

Width of the tree column in pixels. Default 240.

Released under the MIT License.