Interface: ExtrusionData
Experimental
Data of an ExtrusionPrimitive.
Properties
| Property | Type | Description |
|---|---|---|
bevel | number | Experimental Bevel radius (CSS px) and segments of the rounded edges. |
clip | | { x: readonly [number, number]; y: readonly [number, number]; } | null | Experimental Visible data ranges (the plot area): prisms are cut at their edges. Null: no clipping. |
color | RGBA | Float32Array<ArrayBufferLike> | Experimental sRGB colors: one, or 4 floats per shape. |
depth | number | ArrayLike<number> | Experimental Depth in CSS px: one for all shapes or one per shape. |
front | "x" | "y" | Experimental The axis whose labels belong in front of the shapes in the 2.5D view (bars: the position axis, 'y' for horizontal bars), so they are not hidden behind them. Default 'x'. |
hit | | ((origin, direction, t, clip) => ExtrusionHit | undefined) | null | Experimental The ray test of prisms (world ray, current transform, world clip box x0, y0, x1, y1); null: the shapes' boxes. |
material | MeshMaterialSpec | null | Experimental material (E8.7): null for Plotly's lighting model. |
opacity | number | Experimental Multiplies alpha. |
outlines | readonly Outline[] | null | Experimental Other shapes: outlines in data space (e.g. sectorOutline, polygonOutline), mapped through the transform (their points; normals are rescaled). Null: the rects. |
prisms | ((out, t) => void) | null | Experimental Other prisms (area fills, extrusion-cartesian.ts): writes them in world px for a data → world transform (their items index color). Null: the rects or outlines. Set depth to their largest depth. |
segments | number | Experimental |
x0 | ArrayLike<number> | Experimental Rects: corners in data space (the transform maps them to world px); NaN skips a rect. The count is the shortest array. Ignored when outlines is set. |
x1 | ArrayLike<number> | Experimental |
y0 | ArrayLike<number> | Experimental |
y1 | ArrayLike<number> | Experimental |