@leapfrog/interactive-canvas 2.0.25-beta-1 → 2.0.25-beta-2
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.
|
@@ -3071,6 +3071,7 @@ class AbstractInteractiveCanvas {
|
|
|
3071
3071
|
console.log("Assigned imagePath:", canvasObjectData.imagePath);
|
|
3072
3072
|
const object = new Image(this, fabricImage);
|
|
3073
3073
|
object.data.imagePath = imageUrl;
|
|
3074
|
+
object.imageUrl$.next(imageUrl);
|
|
3074
3075
|
this.trackNewObject(object);
|
|
3075
3076
|
this.syncObjectList();
|
|
3076
3077
|
return object;
|
|
@@ -3092,6 +3092,7 @@ class AbstractInteractiveCanvas {
|
|
|
3092
3092
|
console.log("Assigned imagePath:", canvasObjectData.imagePath);
|
|
3093
3093
|
const object = new Image(this, fabricImage);
|
|
3094
3094
|
object.data.imagePath = imageUrl;
|
|
3095
|
+
object.imageUrl$.next(imageUrl);
|
|
3095
3096
|
this.trackNewObject(object);
|
|
3096
3097
|
this.syncObjectList();
|
|
3097
3098
|
return object;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDimensionRestrictions, IInteractiveCanvas, IMutableImage, IMutablePosition, IPosition } from "../..";
|
|
2
2
|
import { ICanvasObject } from "../canvas-object.interface";
|
|
3
3
|
import { AbstractCanvasObject } from "../abstract-canvas-object";
|
|
4
|
-
import { Observable } from "rxjs";
|
|
4
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
5
5
|
import { CanvasObjectData } from "../canvas-object-data";
|
|
6
6
|
import { FabricImage } from "fabric";
|
|
7
7
|
/**
|
|
@@ -12,7 +12,7 @@ export interface IImage extends ICanvasObject, IMutableImage, IMutablePosition {
|
|
|
12
12
|
export declare class Image extends AbstractCanvasObject<FabricImage> implements IImage {
|
|
13
13
|
private readonly DEFAULT_RESTRICTIONS;
|
|
14
14
|
private layoutWidth;
|
|
15
|
-
|
|
15
|
+
imageUrl$: BehaviorSubject<string>;
|
|
16
16
|
constructor(canvas: IInteractiveCanvas, fabricObject: FabricImage, persistedField?: CanvasObjectData);
|
|
17
17
|
/**
|
|
18
18
|
* @override
|