Skip to content

Function: clampBevel() ​

ts
function clampBevel(bevel, width, height, depth): number;

Experimental

The bevel an outline of this size and depth takes: at most half its size and its depth; none below a thousandth of a px.

Parameters ​

ParameterType
bevelnumber
widthnumber
heightnumber
depthnumber

Returns ​

number

Released under the MIT License.