@leapfrog/interactive-canvas 2.0.20-beta-1 → 2.0.20-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.
|
@@ -2476,8 +2476,12 @@ class Text extends AbstractCanvasObject {
|
|
|
2476
2476
|
text: `${lineNumber}.`
|
|
2477
2477
|
});
|
|
2478
2478
|
}
|
|
2479
|
-
|
|
2479
|
+
console.log(this.fabricObject.left, "this.fabricObject.left");
|
|
2480
|
+
console.log(left, "left");
|
|
2481
|
+
if (method === "fillText" && this.fabricObject.left <= 3) {
|
|
2480
2482
|
left = left + this.getOrderedListMargin();
|
|
2483
|
+
console.log(this.getOrderedListMargin(), "this.getOrderedListMargin()");
|
|
2484
|
+
console.log(left, "after marginleft");
|
|
2481
2485
|
}
|
|
2482
2486
|
this.fabricObject.dirty = true;
|
|
2483
2487
|
originalRenderTextLine.apply(this.fabricObject, [method, ctx, Array.isArray(line) ? line : [line], left, top, lineIndex]);
|
|
@@ -2497,8 +2497,12 @@ class Text extends AbstractCanvasObject {
|
|
|
2497
2497
|
text: `${lineNumber}.`
|
|
2498
2498
|
});
|
|
2499
2499
|
}
|
|
2500
|
-
|
|
2500
|
+
console.log(this.fabricObject.left, "this.fabricObject.left");
|
|
2501
|
+
console.log(left, "left");
|
|
2502
|
+
if (method === "fillText" && this.fabricObject.left <= 3) {
|
|
2501
2503
|
left = left + this.getOrderedListMargin();
|
|
2504
|
+
console.log(this.getOrderedListMargin(), "this.getOrderedListMargin()");
|
|
2505
|
+
console.log(left, "after marginleft");
|
|
2502
2506
|
}
|
|
2503
2507
|
this.fabricObject.dirty = true;
|
|
2504
2508
|
originalRenderTextLine.apply(this.fabricObject, [method, ctx, Array.isArray(line) ? line : [line], left, top, lineIndex]);
|