@leapfrog/interactive-canvas 2.0.24-beta-8 → 2.0.25-beta-1
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.
|
@@ -3068,7 +3068,9 @@ class AbstractInteractiveCanvas {
|
|
|
3068
3068
|
this.fabricCanvas.add(fabricImage);
|
|
3069
3069
|
const canvasObjectData = new CanvasObjectData(ObjectType.IMAGE, id);
|
|
3070
3070
|
canvasObjectData.imagePath = imageUrl;
|
|
3071
|
-
|
|
3071
|
+
console.log("Assigned imagePath:", canvasObjectData.imagePath);
|
|
3072
|
+
const object = new Image(this, fabricImage);
|
|
3073
|
+
object.data.imagePath = imageUrl;
|
|
3072
3074
|
this.trackNewObject(object);
|
|
3073
3075
|
this.syncObjectList();
|
|
3074
3076
|
return object;
|
|
@@ -3089,7 +3089,9 @@ class AbstractInteractiveCanvas {
|
|
|
3089
3089
|
this.fabricCanvas.add(fabricImage);
|
|
3090
3090
|
const canvasObjectData = new CanvasObjectData(exports.ObjectType.IMAGE, id);
|
|
3091
3091
|
canvasObjectData.imagePath = imageUrl;
|
|
3092
|
-
|
|
3092
|
+
console.log("Assigned imagePath:", canvasObjectData.imagePath);
|
|
3093
|
+
const object = new Image(this, fabricImage);
|
|
3094
|
+
object.data.imagePath = imageUrl;
|
|
3093
3095
|
this.trackNewObject(object);
|
|
3094
3096
|
this.syncObjectList();
|
|
3095
3097
|
return object;
|
|
@@ -8,7 +8,7 @@ export declare abstract class AbstractCanvasObject<T extends FabricObject> imple
|
|
|
8
8
|
protected pinToBottomDistance: number;
|
|
9
9
|
protected canvas: IInteractiveCanvas;
|
|
10
10
|
protected fabricObject: T;
|
|
11
|
-
|
|
11
|
+
data: CanvasObjectData;
|
|
12
12
|
private readonly dimensions$;
|
|
13
13
|
private readonly opacity$;
|
|
14
14
|
/**
|