Skip to content

Function: extrusionDepths() ​

ts
function extrusionDepths(depth, count, widths): number | Float32Array<ArrayBufferLike>;

Experimental

depth per shape in px: a number (px), a percentage string of the shape's width ('60%'), or an array of numbers (px). widths(i): shape i's width in px.

Parameters ​

ParameterType
depthunknown
countnumber
widths(i) => number

Returns ​

number | Float32Array<ArrayBufferLike>

Released under the MIT License.