You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

ISnapLinesConfig Interface

Applies to: Customer's Canvas On-Premises; Design Editor 5.35.9, 5.x (may differ) · Archived documentation

A structure containing the configuration of snap lines.

example
configuration = {
    canvas: {
        snapLines: {
            enabled: false
        }
    }
};

Properties

Optional color

color: string

Deprecated, use the advanced configuration. Snap line color. The default value is "rgb(255,0,255)".

Optional enabled

enabled: boolean

Deprecated, use the advanced configuration. Displays snap lines. The default is true.

items

The configuration of snap lines that clings to design elements.

printArea

The configuration of snap lines that clings to the product page.

safetyLines

The configuration of snap lines that clings to safety lines.

Optional tolerance

tolerance: number

Deprecated, use the advanced configuration. The distance between an object and a snap line where the object clings to the line. It is measured in pixels. The default value is 5.