@cogic/annotorious 2.7.16 → 2.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/ImageAnnotator.jsx
CHANGED
|
@@ -309,6 +309,9 @@ export default class ImageAnnotator extends Component {
|
|
|
309
309
|
|
|
310
310
|
getCurrentDrawingTool = () => this.annotationLayer.tools?.current;
|
|
311
311
|
|
|
312
|
+
getSelectedShape = () =>
|
|
313
|
+
this.annotationLayer.selectedShape;
|
|
314
|
+
|
|
312
315
|
listDrawingTools = () =>
|
|
313
316
|
this.annotationLayer.listDrawingTools();
|
|
314
317
|
|
package/src/index.jsx
CHANGED
|
@@ -202,6 +202,8 @@ export class Annotorious {
|
|
|
202
202
|
|
|
203
203
|
getCurrentDrawingTool = () => this._app.current.getCurrentDrawingTool();
|
|
204
204
|
|
|
205
|
+
getSelectedShape = () => this._app.current.getSelectedShape();
|
|
206
|
+
|
|
205
207
|
listDrawingTools = () =>
|
|
206
208
|
this._app.current.listDrawingTools();
|
|
207
209
|
|