Skip to content

Function: packArcShapes() ​

ts
function packArcShapes(data, count, out?): object;

Experimental

Resolve every wedge's shape (computeArcShape) and bounds (arcBounds) into the iShape / iCorner / iBounds layouts. Wedges with a non-finite center or an empty shape get zero bounds, which the vertex shader culls.

Parameters ​

ParameterType
dataPick<ArcData, "x" | "y" | typeof SHAPE_KEYS[number]>
countnumber
out?{ bounds: Float32Array; corner: Float32Array; shape: Float32Array; }
out.bounds?Float32Array
out.corner?Float32Array
out.shape?Float32Array

Returns ​

object

NameType
boundsFloat32Array
cornerFloat32Array
shapeFloat32Array

Released under the MIT License.