@welldot/render

SvgInstance

Descriptor for a single SVG panel managed by WellRenderer.

SvgInstance = object

Descriptor for a single SVG panel managed by WellRenderer.

Param

selector

CSS selector for the <svg> element (e.g. "#well-panel-1").

Param

height

Inner drawing height in pixels (excludes margins).

Param

width

Inner drawing width in pixels (excludes margins).

Param

margins

Space reserved around the drawing area for axes and labels.

Properties

depthRange?

optional depthRange?: [number, number]

Depth window [from, to] (m) drawn in this panel. When every panel has one, draw() uses them instead of splitting the depth in proportion to the panel heights, so panels may overlap or skip depths.


height

height: number


margins

margins: object

bottom

bottom: number

left

left: number

right: number

top

top: number


repeatedTo?

optional repeatedTo?: number

Depth (m) down to which the panel repeats the bottom of the previous one. The repeated band [depthRange[0], repeatedTo] is hatched and labelled with RenderConfig.overlap.label.


selector

selector: string


width

width: number