MotionScript

@motion-script/core


@motion-script/core / resolveCornerRadius

Function: resolveCornerRadius()

resolveCornerRadius(value, previous?): CornerRadiusResolved

Defined in: attributes/shape/corners/corner-radius.ts:51

Resolves a RectCornerRadius input into a fully-specified CornerRadiusResolved.

  • A number expands to all four corners set to that value.
  • An object fills missing corners from previous, then falls back to 0.

Parameters

value

RectCornerRadius

previous?

CornerRadiusResolved

Returns

CornerRadiusResolved