@leapfrog/interactive-canvas 2.0.20-beta-7 → 2.0.20
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.
|
@@ -1832,7 +1832,9 @@ class Text extends AbstractCanvasObject {
|
|
|
1832
1832
|
const lineIndex = (this.getText().substring(0, start).split(Text.NEW_LINE).length - 1);
|
|
1833
1833
|
const lines = this.getText().split(Text.NEW_LINE);
|
|
1834
1834
|
const startWithinLine = lines[lineIndex].indexOf(target);
|
|
1835
|
-
return
|
|
1835
|
+
return this.fabricObject.styles[lineIndex]
|
|
1836
|
+
? new Array(replacement.length).fill(this.fabricObject.styles[lineIndex][startWithinLine])
|
|
1837
|
+
: undefined;
|
|
1836
1838
|
}
|
|
1837
1839
|
/**
|
|
1838
1840
|
* @override
|
|
@@ -1853,7 +1853,9 @@ class Text extends AbstractCanvasObject {
|
|
|
1853
1853
|
const lineIndex = (this.getText().substring(0, start).split(Text.NEW_LINE).length - 1);
|
|
1854
1854
|
const lines = this.getText().split(Text.NEW_LINE);
|
|
1855
1855
|
const startWithinLine = lines[lineIndex].indexOf(target);
|
|
1856
|
-
return
|
|
1856
|
+
return this.fabricObject.styles[lineIndex]
|
|
1857
|
+
? new Array(replacement.length).fill(this.fabricObject.styles[lineIndex][startWithinLine])
|
|
1858
|
+
: undefined;
|
|
1857
1859
|
}
|
|
1858
1860
|
/**
|
|
1859
1861
|
* @override
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leapfrog/interactive-canvas",
|
|
3
|
-
"version": "2.0.20
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "Leapfrog interactive canvas",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"overrides": {
|
|
28
28
|
"form-data": "4.0.4"
|
|
29
29
|
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"tag": "beta"
|
|
32
|
-
},
|
|
33
30
|
"author": "",
|
|
34
31
|
"license": "UNLICENSED"
|
|
35
32
|
}
|