@leapfrog/interactive-canvas 2.0.24-beta-4 → 2.0.24-beta-5
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.
|
@@ -3062,8 +3062,6 @@ class AbstractInteractiveCanvas {
|
|
|
3062
3062
|
},
|
|
3063
3063
|
});
|
|
3064
3064
|
this.fabricCanvas.add(fabricImage);
|
|
3065
|
-
const canvasObjectData = new CanvasObjectData(ObjectType.IMAGE, id);
|
|
3066
|
-
canvasObjectData.imagePath = imageUrl;
|
|
3067
3065
|
const object = new Image(this, fabricImage);
|
|
3068
3066
|
this.trackNewObject(object);
|
|
3069
3067
|
this.syncObjectList();
|
|
@@ -3245,9 +3243,11 @@ class AbstractInteractiveCanvas {
|
|
|
3245
3243
|
fontSize: fontSizePx,
|
|
3246
3244
|
fontFamily: profile.defaultFont,
|
|
3247
3245
|
textAlign: profile.defaultTextAlignment,
|
|
3246
|
+
hoverCursor: "move",
|
|
3248
3247
|
multiLine: true,
|
|
3249
3248
|
lineHeight: profile.defaultLineHeight,
|
|
3250
|
-
charSpacing: profile.defaultCharacterSpacing
|
|
3249
|
+
charSpacing: profile.defaultCharacterSpacing,
|
|
3250
|
+
perPixelTargetFind: false
|
|
3251
3251
|
};
|
|
3252
3252
|
const fabricTextbox = new this.fabric.Textbox("Text goes here", textOptions);
|
|
3253
3253
|
this.fabricCanvas.add(fabricTextbox);
|
|
@@ -3083,8 +3083,6 @@ class AbstractInteractiveCanvas {
|
|
|
3083
3083
|
},
|
|
3084
3084
|
});
|
|
3085
3085
|
this.fabricCanvas.add(fabricImage);
|
|
3086
|
-
const canvasObjectData = new CanvasObjectData(exports.ObjectType.IMAGE, id);
|
|
3087
|
-
canvasObjectData.imagePath = imageUrl;
|
|
3088
3086
|
const object = new Image(this, fabricImage);
|
|
3089
3087
|
this.trackNewObject(object);
|
|
3090
3088
|
this.syncObjectList();
|
|
@@ -3266,9 +3264,11 @@ class AbstractInteractiveCanvas {
|
|
|
3266
3264
|
fontSize: fontSizePx,
|
|
3267
3265
|
fontFamily: profile.defaultFont,
|
|
3268
3266
|
textAlign: profile.defaultTextAlignment,
|
|
3267
|
+
hoverCursor: "move",
|
|
3269
3268
|
multiLine: true,
|
|
3270
3269
|
lineHeight: profile.defaultLineHeight,
|
|
3271
|
-
charSpacing: profile.defaultCharacterSpacing
|
|
3270
|
+
charSpacing: profile.defaultCharacterSpacing,
|
|
3271
|
+
perPixelTargetFind: false
|
|
3272
3272
|
};
|
|
3273
3273
|
const fabricTextbox = new this.fabric.Textbox("Text goes here", textOptions);
|
|
3274
3274
|
this.fabricCanvas.add(fabricTextbox);
|