An improved polygon editing tool with more features and better usability
npm install @recogito/annotorious-better-polygonA better polygon selection tool for Annotorious. Compatible with both
the Annotorious standard version and Annotorious for OpenSeadragon.
- Close the polygon either by double clicking (or long tap), or re-selecting the first point
- When approaching the first point, the mouse will snap to it to make selecting easier
- Add points by clicking and dragging the line midpoint handles
- Remove points by selecting them with a click and pressing the DEL key
- Optionally start drawing by drag or single click
__Better Polygon__ requires Annotorious version 2.5.9 or higher.
``html

`
__Or via npm:__
``
$ npm i @recogito/annotorious-better-polygon
__Import and initialize:__
`js
import BetterPolygon from '@recogito/annotorious-better-polygon';
//...
BetterPolygon(anno);
``