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. Extensions can be found in the GoJS kit under the extensions
(for loading via script tags),extensionsTS
(UMD modules), or extensionsJSM
(ES6 modules) folders. See the Extensions intro page for more information.
You do not normally need to create an instance of this tool because one already exists as the ToolManager.dragSelectingTool, which you can modify.
The Tool.name of this tool is "DragSelecting".
Remember the original collection of selected Parts.
Restore the selection which may have been modified during a drag.
Release any references to selected Parts.
Select Parts within the bounds of the drag-select box.
Select Parts within the bounds of the drag-select box.
Select Parts within the bounds of the drag-select box.
For a given rectangle, select Parts that are within that rectangle.
rectangular bounds in document coordinates.
The RealtimeDragSelectingTool class lets the user select and deselect Parts within the DragSelectingTool.box during a drag, not just at the end of the drag.
If you want to experiment with this extension, try the Realtime Drag Selecting sample.