lasso-canvas-image
Polygon selecting tool for HTML5 Image Element
Instalation
npm i lasso-canvas-image
Usage
// ES6 modules with Babel or TypeScript; // CommonJS modulesconst createLasso = ; // Initconst lasso = ; // Methodslasso;lasso; lasso;lasso;
Examples
Check out this example
Syntax
Options
element
DOM HTMLImageElement Instanceradius
The radius of the circle's dots on the canvasonChange
Runs when the selected area is updated or points are moved by the useronUpdate
Runs when the selected area is updatedenabled
defaults to true