@leapfrog/interactive-canvas 2.0.24-beta-7 → 2.0.24-beta-8
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.
|
@@ -3066,7 +3066,9 @@ class AbstractInteractiveCanvas {
|
|
|
3066
3066
|
},
|
|
3067
3067
|
});
|
|
3068
3068
|
this.fabricCanvas.add(fabricImage);
|
|
3069
|
-
const
|
|
3069
|
+
const canvasObjectData = new CanvasObjectData(ObjectType.IMAGE, id);
|
|
3070
|
+
canvasObjectData.imagePath = imageUrl;
|
|
3071
|
+
const object = new Image(this, fabricImage, canvasObjectData);
|
|
3070
3072
|
this.trackNewObject(object);
|
|
3071
3073
|
this.syncObjectList();
|
|
3072
3074
|
return object;
|
|
@@ -3087,7 +3087,9 @@ class AbstractInteractiveCanvas {
|
|
|
3087
3087
|
},
|
|
3088
3088
|
});
|
|
3089
3089
|
this.fabricCanvas.add(fabricImage);
|
|
3090
|
-
const
|
|
3090
|
+
const canvasObjectData = new CanvasObjectData(exports.ObjectType.IMAGE, id);
|
|
3091
|
+
canvasObjectData.imagePath = imageUrl;
|
|
3092
|
+
const object = new Image(this, fabricImage, canvasObjectData);
|
|
3091
3093
|
this.trackNewObject(object);
|
|
3092
3094
|
this.syncObjectList();
|
|
3093
3095
|
return object;
|