@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(
|
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);
|