Creates a vertex array, defaulting to Points and zero vertices; new vertices are opaque white at the origin.
typeOptionalvertexCountOptionalDeep-copies vertex data and primitive type.
sourceAppends a vertex copy, reallocating storage if capacity is insufficient.
vertexSets the vertex count to zero, retaining allocated capacity.
ProtecteddrawSubclasses draw synchronously and may compose objects via target.draw(); states is a copy for this call.
targetstatesReturns axis-aligned bounds of all vertex positions; an empty array returns a zero rectangle.
Returns a zero-based shared vertex view; throws RangeError for an out-of-bounds index. After growth reallocates storage, previous views still point to the old storage and must be retrieved again.
indexReturns the current vertex count.
Resizes the vertex count; new vertices use defaults, and shrinking removes vertices from the end.
vertexCountCopies value's components into the specified vertex; index starts at zero.
indexvalue
Native contiguous vertices, exposed through stable per-allocation views.