This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.
Optional
init: Partial<LassoSelectingTool>Gets or sets the time in milliseconds for which the mouse must be stationary before this tool can be started. The default value is 175 milliseconds. Setting this property does not raise any events.
Gets or sets the Shape that is used to hold the line as it is being drawn.
The default value is a simple Shape drawing a translucent polygon. The shape may not be null.
Override
canOverride
doOverride
doOverride
doStart drawing the line by starting to accumulate points in the shape's geometry.
Override
doKeep accumulating points in the shape's geometry.
Override
doFinish drawing the line by selecting Parts whose Part.selectionObject is within the drawn polygon.
Virtual
select
This replacement for the DragSelectingTool operates similarly but instead of drawing a rectangular area where Parts may be selected, follows the mouse to draw a polygon.
Instead of the DragSelectingTool.box this tool has the LassoSelectingTool.shape whose Shape.fill and Shape.stroke may be styled.
Install by replacing the CommandHandler.dragSelectingTool. For example: