Interface: RectData
Experimental
Data accepted by RectPrimitive. Coordinates are in data space; sizes in CSS px.
Properties
| Property | Type | Description |
|---|---|---|
borderAlign | RectBorderAlign | Experimental Default 'inside'. |
borderColor | ColorInput | Experimental sRGB RGBA border color. Default transparent. |
borderWidth | ScalarInput | Experimental Border width in CSS px. Default 0. |
cornerRadius | ScalarInput | Experimental Corner radius in CSS px, clamped to half the smaller side. Default 0. |
depth | ScalarInput | Experimental Reserved for extrusion (plan E8.9); currently ignored. |
fill | ColorInput | Experimental sRGB RGBA fill. Default opaque mid-grey. |
items? | ArrayLike<number> | Experimental The item each rect stands for (e.g. a treemap tile's node), for the 2.5D view of domain traces (extrusion-domain.ts: per-item depth). Ignored when drawing. |
opacity | number | Experimental Multiplies every color's alpha. Default 1. |
pattern | PatternFill | null | Experimental Pattern fills per rect (plan E8.10), or null (the default) for plain fills. |
snap | boolean | Experimental Snap edges to device pixels for crisp 1 px borders (2D). Default false. |
x0 | NumericArray | Experimental Corner coordinates (data space). Float64Array preferred. The count is the shortest array. |
x1 | NumericArray | Experimental |
y0 | NumericArray | Experimental |
y1 | NumericArray | Experimental |
z? | NumericArray | Experimental Plane z per rect, for 3D scenes (data space). Default 0. |