CommonInterfaces.CanvasOffset

common-core/src/common-interfaces.CanvasOffset

Used to set the camera offset of the canvas, for example this is useful if you have UI elements which should not overlap with the product you want to show

Example:

{
    left: 0.1, // 10% offset from left
    top: 0.2, // 20% offset from top
    right: 0.85, // 15% offset from right
    bottom: 0.95 // 5% offset from bottom
}

Table of contents

Properties

Properties

bottom

bottom: number


left

left: number


right: number


top

top: number

Last updated