MotionScript

@motion-script/core


@motion-script/core / expandByPadding

Function: expandByPadding()

expandByPadding(innerWidth, innerHeight, pad): object

Defined in: layout/padding.ts:25

Add padding back onto an inner size to get the outer size that contains it.

Parameters

innerWidth

number

innerHeight

number

pad

InsetsResolved

Returns

object

height

height: number

width

width: number