@leapfrog/interactive-canvas 2.0.25-beta-10 → 2.0.25-beta-11
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.
|
@@ -2546,7 +2546,7 @@ class Text extends AbstractCanvasObject {
|
|
|
2546
2546
|
text: `${lineNumber}.`
|
|
2547
2547
|
});
|
|
2548
2548
|
}
|
|
2549
|
-
if (method === "fillText" && this.fabricObject.left <= 3) {
|
|
2549
|
+
if (method === "fillText" && this.isOrderedList() && this.fabricObject.left <= 3) {
|
|
2550
2550
|
left = left + this.getOrderedListMargin();
|
|
2551
2551
|
}
|
|
2552
2552
|
this.fabricObject.dirty = true;
|
|
@@ -2567,7 +2567,7 @@ class Text extends AbstractCanvasObject {
|
|
|
2567
2567
|
text: `${lineNumber}.`
|
|
2568
2568
|
});
|
|
2569
2569
|
}
|
|
2570
|
-
if (method === "fillText" && this.fabricObject.left <= 3) {
|
|
2570
|
+
if (method === "fillText" && this.isOrderedList() && this.fabricObject.left <= 3) {
|
|
2571
2571
|
left = left + this.getOrderedListMargin();
|
|
2572
2572
|
}
|
|
2573
2573
|
this.fabricObject.dirty = true;
|