API ReferenceGlobalsCanvasOffset

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

# Hierarchy

  • CanvasOffset

# Index

# Properties

# Properties

# bottom

bottom: number

Defined in packages/common-core/src/common-interfaces.ts:22


# left

left: number

Defined in packages/common-core/src/common-interfaces.ts:19


right: number

Defined in packages/common-core/src/common-interfaces.ts:21


# top

top: number

Defined in packages/common-core/src/common-interfaces.ts:20