LineNode

constructor(line: Line, style: ShapeStyle = ShapeStyle.LINE, tags: Set<String> = emptySet())

Builds the leaf around line's geometry.

Parameters

line

The geometry to decorate; its components are copied.

style

The concrete paint; the line default when omitted.

tags

Free-form tokens riding the leaf; empty by default.


constructor(node: LineNode, style: ShapeStyle = node.style, tags: Set<String> = node.tags)

Builds the leaf as a copy of node: the same geometry, and node's own style and tags unless either is overridden.

Construction copies node's components, so the copy carries the same geometry at full Double precision. Overriding style or tags swaps that part alone — the other still comes from node.

Parameters

node

The leaf to copy.

style

The concrete paint; node's own when omitted.

tags

Free-form tokens riding the leaf; node's own when omitted.