日本語
@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?
optionalapplyView?: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?
optionalbackground?:boolean
Defined in: src/core/svgExportShared.ts:96
Paint an opaque background. Default true.
Inherited from
cells?
optionalcells?: readonlyTreeGridCell[]
Defined in: src/core/exportGridSvg.ts:21
Sparse cells of the columns without value, as TreeGrid cells.
columnRange?
optionalcolumnRange?: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?
optionaldirection?:"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
expandedIds?
optionalexpandedIds?: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?
optionalfilters?: readonlyTimelineViewFilter[]
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?
optionalfontFamily?:string
Defined in: src/core/svgExportShared.ts:92
CSS font-family list written on the root element.
Inherited from
formatValue?
optionalformatValue?: (value,context) =>string
Defined in: src/core/exportGridSvg.ts:30
Text of a cell value, as TreeGrid formatValue.
Parameters
value
context
column
row
R
Returns
string
headerHeight?
optionalheaderHeight?:number
Defined in: src/core/exportGridSvg.ts:36
Height of the header row in pixels. Default 36.
highlightColor?
optionalhighlightColor?:string
Defined in: src/core/exportGridSvg.ts:65
Colour of highlights (--vw-tree-grid-highlight). Defaults to the theme's dependencyHighlight.
highlightedCells?
optionalhighlightedCells?: readonlyTreeGridCellRef[]
Defined in: src/core/exportGridSvg.ts:63
Cells drawn highlighted, as TreeGrid highlightedCells.
highlightedRowIds?
optionalhighlightedRowIds?:Iterable<string,any,any>
Defined in: src/core/exportGridSvg.ts:61
Rows drawn highlighted, as TreeGrid highlightedRowIds.
idPrefix?
optionalidPrefix?: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
includeTreeColumn?
optionalincludeTreeColumn?:boolean
Defined in: src/core/exportGridSvg.ts:57
Draw the tree column. Default true.
indent?
optionalindent?:number
Defined in: src/core/exportGridSvg.ts:40
Indentation per tree level in pixels (--vw-tree-grid-indent). Default 16.
labels?
optionallabels?: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?
optionalmissingCell?:TreeGridMissingCell
Defined in: src/core/exportGridSvg.ts:23
What a cell that the data does not list means, as TreeGrid missingCell. Default empty.
rowHeight?
optionalrowHeight?:number
Defined in: src/core/exportGridSvg.ts:34
Height of every line in pixels. Default 32.
rowRange?
optionalrowRange?: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?
optionalselectedColor?:string
Defined in: src/core/exportGridSvg.ts:67
Fill of selected rows (--vw-tree-grid-selected). Default #e3eefa.
selectedRowIds?
optionalselectedRowIds?:Iterable<string,any,any>
Defined in: src/core/exportGridSvg.ts:59
Rows drawn in the selected style, as TreeGrid selectedRowIds.
sort?
optionalsort?: readonlyTimelineViewSort[]
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?
optionalsortRules?:Readonly<Record<string,TimelineRowCompare<R>>>
Defined in: src/core/exportGridSvg.ts:46
Registered compare rules of projectTreeGridRows.
theme?
optionaltheme?: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
title?
optionaltitle?:string
Defined in: src/core/svgExportShared.ts:94
Document title, written as <title> and the accessible name.
Inherited from
treeColumnWidth?
optionaltreeColumnWidth?:number
Defined in: src/core/exportGridSvg.ts:38
Width of the tree column in pixels. Default 240.