Class: Snap

Snap

new Snap (wm, options)

add edge snapping plugin
Name Type Description
wm WindowManager
options object optional
Name Type Default Description
screen boolean true optional snap to screen edges
windows boolean true optional snap to window edges
snap number 20 optional distance to edge in pixels before snapping and width/height of snap bars
color string #a8f0f4 optional color for snap bars
spacing number 5 optional spacing distance between window and edges
indicator number 10 optional size in pixels of snapping indicator (the indicator is actually twice the size of what is shown)