MotionScript

@motion-script/core


@motion-script/core / resolveCorners

Function: resolveCorners()

resolveCorners<T>(value, fallback, previous, isScalar): Corners<T>

Defined in: attributes/shape/corners/per-corner.ts:65

Resolves a CornersInput into a fully-specified Corners.

Precedence per corner mirrors the rest of the codebase's mappers: supplied value → previousfallback. isScalar discriminates the scalar form from the object forms (e.g. typeof v === "number" for radius/smooth, or a string-literal check for style).

Type Parameters

T

T

Parameters

value

CornersInput<T>

fallback

T

previous

Corners<T> | undefined

isScalar

CornerScalarGuard<T>

Returns

Corners<T>