PolylineNode

constructor(polyline: Polyline, style: ShapeStyle = ShapeStyle.POLYLINE, tags: Set<String> = emptySet())

Builds the leaf around polyline's vertices.

Parameters

polyline

The geometry to decorate; its vertex list is kept by reference.

style

The concrete paint; the polyline default when omitted.

tags

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


constructor(node: PolylineNode, 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 reuses node's vertex list by reference, 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.