Interface SnaplinesPluginOptions

Options for the snaplines plugin.

interface SnaplinesPluginOptions {
    enabled?: boolean;
    showCenters?: boolean;
    showEdges?: boolean;
    tolerance?: number;

Hierarchy (view full)


enabled?: boolean

Defaults to true. If false, you can start the plugin in disabled mode.

showCenters?: boolean

Whether or not to show center snaplines. Defaults to true.

showEdges?: boolean

Whether or not to show edge snaplines. Defaults to true.

tolerance?: number

The tolerance either side of a snapline inside which an element must be before the snapline is activated. Defaults to 10 pixels (either side of the line).