paper-select-tool
A Paper.js based selection tool.
Adds a Paper.js based tool to a canvas. Currently a lasso, rectangle and circle selection tool are implemented.
Install
The paper-select-tool library is available on npm.
npm i @jmatt/paper-select-tool
Usage
To use it, import it and use one of the selection tools.
; var core = document settings;window { settings = ; pst;}// ...var things = point: 100 100 id: 'big bada boom' ;var inSelection = pst;// returns the filtered collection of objects with points in the selection.
Examples
Examples can be found in the examples
directory.
License
The MIT License. See the LICENSE file.