Skip to content

Interface: FillData ​

Experimental

Data for FillPrimitive.

Extends ​

Properties ​

PropertyTypeDescriptionInherited from
colorColorInputExperimental Per-polygon color (sRGB 0–1 RGBA, straight alpha): one tuple or 4 floats per polygon.-
fillRule?FillRuleExperimental Default 'simple'.FillGeometryInput.fillRule
opacity?numberExperimental Multiplies every polygon's alpha (uniform: changing it uploads nothing). Default 1.-
paint?FillPaintExperimental Paint style; defaults to { kind: 'solid' }. See FillPaint.-
polygons?ArrayLike<number>Experimental First ring index of each polygon, ascending. Omitted: every ring is its own polygon.FillGeometryInput.polygons
rings?ArrayLike<number>Experimental Start vertex of each ring, ascending. Omitted: all vertices form a single ring.FillGeometryInput.rings
xNumericArrayExperimentalFillGeometryInput.x
yNumericArrayExperimentalFillGeometryInput.y
z?NumericArrayExperimental Optional z for 3D fills (world-space positions; each polygon should be planar).FillGeometryInput.z

Released under the MIT License.