Skip to main content

Home > @jsplumbtoolkit/browser-ui > SnaplinesPluginOptions

SnaplinesPluginOptions interface

Options for the snaplines plugin.

Signature:

export interface SnaplinesPluginOptions extends SurfacePluginOptions 

Extends: SurfacePluginOptions

Properties

PropertyModifiersTypeDescription
enabled?boolean(Optional) Defaults to true. If false, you can start the plugin in disabled mode.
showCenters?boolean(Optional) Whether or not to show center snaplines. Defaults to true.
showEdges?boolean(Optional) Whether or not to show edge snaplines. Defaults to true.
tolerance?number(Optional) 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).