Skip to main content

Interface: CanvasLayerMetadata

Metadata for a layer in the canvas editor.

CanvasLayerMetadata contains positioning, sizing, and transformation information for a layer in the print-on-demand canvas editor. These properties control how the layer appears and is manipulated in the design editor.

Properties

angle

angle: number

Rotation angle in degrees. Controls the orientation of the layer.


height

height: number

Height of the layer in pixels. Determines the vertical size of the layer.


left

left: number

Distance from the left edge in pixels. Controls horizontal positioning from the left of the canvas.


scaleX

scaleX: number

Horizontal scale multiplier. Values greater than 1 enlarge horizontally, less than 1 shrink.


scaleY

scaleY: number

Vertical scale multiplier. Values greater than 1 enlarge vertically, less than 1 shrink.


skewX

skewX: number

Horizontal skew transformation value. Creates a slanting effect along the X axis.


skewY

skewY: number

Vertical skew transformation value. Creates a slanting effect along the Y axis.


top

top: number

Distance from the top edge in pixels. Controls vertical positioning from the top of the canvas.


visible

visible: boolean

If true, the layer is visible in the editor. If false, the layer is hidden but still exists in the composition.


width

width: number

Width of the layer in pixels. Determines the horizontal size of the layer.