API Reference / Modules / common-core/src/common-interfaces / CanvasOffset

# Interface: 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

# Defined in

packages/common-core/src/common-interfaces.ts:22 (opens new window)


# left

left: number

# Defined in

packages/common-core/src/common-interfaces.ts:19 (opens new window)


right: number

# Defined in

packages/common-core/src/common-interfaces.ts:21 (opens new window)


# top

top: number

# Defined in

packages/common-core/src/common-interfaces.ts:20 (opens new window)