editor / commonRadius
Function: commonRadius()
commonRadius(
radii):number|undefined
Defined in: model/common-radius.ts:13
Radius shared by every vertex of a shape, shown in its radius field; none when the radii differ, the field then showing "Mixed" (Figma's figma.mixed, REF-FIGMA-CR), or when the shape has no vertex.
Parameters
radii
readonly number[]
requested radius of each vertex, integers ≥ 0 (areValidRadii): compared with ===, under which NaN equals nothing, and -0 equals 0
Returns
number | undefined
the common radius, undefined when there is none (an absent value, an option type in other languages, ADR-0025)
Kind
domain
See
REF-FIGMA-CR