Skip to content

@eightkk/vue-weave / core / renderTaskBoardSvg

Function: renderTaskBoardSvg() ​

renderTaskBoardSvg<C>(cards, columns, options?): string

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

Build a standalone SVG document of a task board with the default TaskBoard rendering: a header per column with its label, detail, card count (with the WIP limit, and "shown of all" while filter hides cards) and WIP warnings, then per lane a header and a row of cells with the cards in cards order. Collapsed columns are narrow strips with the column label turned; collapsed lanes show their header and card count only. Every card is included regardless of scrolling. Validates like groupBoardCards and throws a RangeError for invalid sizes or colours. Runs without a DOM.

Type Parameters ​

C ​

C extends TaskBoardCard<unknown>

Parameters ​

cards ​

readonly C[]

columns ​

readonly TaskBoardColumn[]

options? ​

TaskBoardSvgOptions<C> = {}

Returns ​

string

Released under the MIT License.