Skip to content

Function: fillLineWidths() ​

ts
function fillLineWidths(layout, width, out): void;

Experimental

Fill per-stream-vertex widths. The segment from stream vertex v to v + 1 uses the width of v's source point, i.e. input width[i] styles the segment leaving point i.

Parameters ​

ParameterType
layoutPick<LineLayout, "vertexCount" | "source"> & object
widthScalarInput
outFloat32Array

Returns ​

void

Released under the MIT License.