@welldot/render

drawWellLegendSymbol

Draws a single legend symbol into its own <svg> (matched by selector), sized to the symbol plus a small margin, with the textures it needs defined inside — so the markup renders standalone, e.g. in a PDF table.

drawWellLegendSymbol(selector, item, options?): void

Draws a single legend symbol into its own <svg> (matched by selector), sized to the symbol plus a small margin, with the textures it needs defined inside — so the markup renders standalone, e.g. in a PDF table.

Parameters

selector

string

item

WellLegendItem

options?

Omit<LegendOptions, "config"> = {}

Returns

void