@leapfrog/interactive-canvas 2.0.20-beta-2 → 2.0.20-beta-4
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.
|
@@ -1224,7 +1224,9 @@ class Border extends AbstractCanvasObject {
|
|
|
1224
1224
|
top: 0,
|
|
1225
1225
|
left: 0,
|
|
1226
1226
|
width: this.canvas.getDimensions().widthPx - this.strokeWidth$.value,
|
|
1227
|
-
height: this.canvas.getDimensions().heightPx - this.strokeWidth$.value
|
|
1227
|
+
height: this.canvas.getDimensions().heightPx - this.strokeWidth$.value,
|
|
1228
|
+
selectable: false,
|
|
1229
|
+
evented: false
|
|
1228
1230
|
});
|
|
1229
1231
|
}
|
|
1230
1232
|
/**
|
|
@@ -2476,12 +2478,8 @@ class Text extends AbstractCanvasObject {
|
|
|
2476
2478
|
text: `${lineNumber}.`
|
|
2477
2479
|
});
|
|
2478
2480
|
}
|
|
2479
|
-
console.log(this.fabricObject.left, "this.fabricObject.left");
|
|
2480
|
-
console.log(left, "left");
|
|
2481
2481
|
if (method === "fillText" && this.fabricObject.left <= 3) {
|
|
2482
2482
|
left = left + this.getOrderedListMargin();
|
|
2483
|
-
console.log(this.getOrderedListMargin(), "this.getOrderedListMargin()");
|
|
2484
|
-
console.log(left, "after marginleft");
|
|
2485
2483
|
}
|
|
2486
2484
|
this.fabricObject.dirty = true;
|
|
2487
2485
|
originalRenderTextLine.apply(this.fabricObject, [method, ctx, Array.isArray(line) ? line : [line], left, top, lineIndex]);
|
|
@@ -1245,7 +1245,9 @@ class Border extends AbstractCanvasObject {
|
|
|
1245
1245
|
top: 0,
|
|
1246
1246
|
left: 0,
|
|
1247
1247
|
width: this.canvas.getDimensions().widthPx - this.strokeWidth$.value,
|
|
1248
|
-
height: this.canvas.getDimensions().heightPx - this.strokeWidth$.value
|
|
1248
|
+
height: this.canvas.getDimensions().heightPx - this.strokeWidth$.value,
|
|
1249
|
+
selectable: false,
|
|
1250
|
+
evented: false
|
|
1249
1251
|
});
|
|
1250
1252
|
}
|
|
1251
1253
|
/**
|
|
@@ -2497,12 +2499,8 @@ class Text extends AbstractCanvasObject {
|
|
|
2497
2499
|
text: `${lineNumber}.`
|
|
2498
2500
|
});
|
|
2499
2501
|
}
|
|
2500
|
-
console.log(this.fabricObject.left, "this.fabricObject.left");
|
|
2501
|
-
console.log(left, "left");
|
|
2502
2502
|
if (method === "fillText" && this.fabricObject.left <= 3) {
|
|
2503
2503
|
left = left + this.getOrderedListMargin();
|
|
2504
|
-
console.log(this.getOrderedListMargin(), "this.getOrderedListMargin()");
|
|
2505
|
-
console.log(left, "after marginleft");
|
|
2506
2504
|
}
|
|
2507
2505
|
this.fabricObject.dirty = true;
|
|
2508
2506
|
originalRenderTextLine.apply(this.fabricObject, [method, ctx, Array.isArray(line) ? line : [line], left, top, lineIndex]);
|