Skip to main content

EVENT_LASSO_UPDATE

const EVENT_LASSO_UPDATE: "lasso:update" = "lasso:update"

Fired by the Lasso plugin continuously as selection updates. Provides shape, canvasPosition and canvasSize (the region's bounding box). Freehand and polygon updates also provide points in canvas coordinates with implicit closure. Freehand points are simplified; polygon points include exact committed vertices and the prospective pointer vertex between clicks. Polygon selection and update events follow pointer movement and pan as well as clicks. Completion uses committed vertices only. Every enclosed pocket is filled, irrespective of winding or retracing. Preview and hit testing use its external boundaries; internal loops do not create holes.

Constant​