Skip to content

Interface: ExtrusionData ​

Experimental

Data of an ExtrusionPrimitive.

Properties ​

PropertyTypeDescription
bevelnumberExperimental Bevel radius (CSS px) and segments of the rounded edges.
clip| { x: readonly [number, number]; y: readonly [number, number]; } | nullExperimental Visible data ranges (the plot area): prisms are cut at their edges. Null: no clipping.
colorRGBA | Float32Array<ArrayBufferLike>Experimental sRGB colors: one, or 4 floats per shape.
depthnumber | 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) | nullExperimental The ray test of prisms (world ray, current transform, world clip box x0, y0, x1, y1); null: the shapes' boxes.
materialMeshMaterialSpec | nullExperimental material (E8.7): null for Plotly's lighting model.
opacitynumberExperimental Multiplies alpha.
outlinesreadonly Outline[] | nullExperimental 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) | nullExperimental 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.
segmentsnumberExperimental
x0ArrayLike<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.
x1ArrayLike<number>Experimental
y0ArrayLike<number>Experimental
y1ArrayLike<number>Experimental

Released under the MIT License.