Interface InsetPaddingOption

An option for setting the inset padding of the camera.

interface InsetPaddingOption {
    bottom: number;
    left: number;
    right: number;
    top: number;
    type?: "pixel" | "portion";
}

Properties

bottom: number
left: number
right: number
top: number
type?: "pixel" | "portion"

The type of padding to use. If 'portion', the padding will be a portion of the canvas size. If 'pixel', the padding will be in pixels.

'pixel'