@abidibo/react-cam-roi 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ const Canvas = ({ canvasSize, initialData }) => {
13
13
  useDispatcherEvents(canvasRef.current);
14
14
  useEffect(() => {
15
15
  if (canvasSize.width !== 0 && canvasSize.height !== 0 && !initialized) {
16
- canvasRef.current = new fabric.Canvas('react-cam-roi-canvas');
16
+ canvasRef.current = new fabric.Canvas(`react-cam-roi-canvas-${id}`);
17
17
  canvasRef.current.setDimensions({ width: canvasSize.width, height: canvasSize.height });
18
18
  initCanvasData(canvasRef, addShapes, metadata, setMetadata, initialData, enableLogs);
19
19
  setInitialized(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abidibo/react-cam-roi",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "A react component for drawing ROI over images and managing metadata",
5
5
  "repository": {
6
6
  "type": "git",