Contact us

Applies to: Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Editor 7.4

Skip to main content

Interface: ICanvasContentMargin

A structure defining the space (in pixels) between the edges of the canvas viewer and the design. Omitted sides are 0.

Example​

configuration = {
canvas: {
contentMargin: { left: 30, top: 40, right: 30, bottom: 40 }
}
};

Properties​

left?​

optional left?: number

The space on the left, in pixels.


top?​

optional top?: number

The space on the top, in pixels.


optional right?: number

The space on the right, in pixels.


bottom?​

optional bottom?: number

The space on the bottom, in pixels.

Was this page helpful?