@leapfrog/interactive-canvas 2.0.20-beta-6 → 2.0.20-beta-8
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
|
|
@@ -2998,7 +3000,7 @@ class AbstractInteractiveCanvas {
|
|
|
2998
3000
|
*/
|
|
2999
3001
|
bringObjectForward(target) {
|
|
3000
3002
|
if (this.fabricCanvas) {
|
|
3001
|
-
this.fabricCanvas.bringObjectForward(target,
|
|
3003
|
+
this.fabricCanvas.bringObjectForward(target, false);
|
|
3002
3004
|
this.fabricCanvas.requestRenderAll();
|
|
3003
3005
|
}
|
|
3004
3006
|
}
|
|
@@ -3008,7 +3010,7 @@ class AbstractInteractiveCanvas {
|
|
|
3008
3010
|
*/
|
|
3009
3011
|
sendObjectBackwards(target) {
|
|
3010
3012
|
if (this.fabricCanvas) {
|
|
3011
|
-
this.fabricCanvas.sendObjectBackwards(target,
|
|
3013
|
+
this.fabricCanvas.sendObjectBackwards(target, false);
|
|
3012
3014
|
this.fabricCanvas.requestRenderAll();
|
|
3013
3015
|
}
|
|
3014
3016
|
}
|
|
@@ -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
|
|
@@ -3019,7 +3021,7 @@ class AbstractInteractiveCanvas {
|
|
|
3019
3021
|
*/
|
|
3020
3022
|
bringObjectForward(target) {
|
|
3021
3023
|
if (this.fabricCanvas) {
|
|
3022
|
-
this.fabricCanvas.bringObjectForward(target,
|
|
3024
|
+
this.fabricCanvas.bringObjectForward(target, false);
|
|
3023
3025
|
this.fabricCanvas.requestRenderAll();
|
|
3024
3026
|
}
|
|
3025
3027
|
}
|
|
@@ -3029,7 +3031,7 @@ class AbstractInteractiveCanvas {
|
|
|
3029
3031
|
*/
|
|
3030
3032
|
sendObjectBackwards(target) {
|
|
3031
3033
|
if (this.fabricCanvas) {
|
|
3032
|
-
this.fabricCanvas.sendObjectBackwards(target,
|
|
3034
|
+
this.fabricCanvas.sendObjectBackwards(target, false);
|
|
3033
3035
|
this.fabricCanvas.requestRenderAll();
|
|
3034
3036
|
}
|
|
3035
3037
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leapfrog/interactive-canvas",
|
|
3
|
-
"version": "2.0.20-beta-
|
|
3
|
+
"version": "2.0.20-beta-8",
|
|
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
|
}
|