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 6.15.0, 6.x (may differ) · Archived documentation

A structure containing the configuration of snap lines.

For details, see the Markings topic.

example
configuration = {
    canvas: {
        snapLines: {
            items: {
                enabled: true,
                color: "rgb(255,0,0)",
                tolerance: 5,
                priority: 2,
                initialValue: false
            }
        }
    }
};

Properties

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.