@leapfrog/interactive-canvas 2.0.20-beta-5 → 2.0.20-beta-7
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.
|
@@ -2998,7 +2998,7 @@ class AbstractInteractiveCanvas {
|
|
|
2998
2998
|
*/
|
|
2999
2999
|
bringObjectForward(target) {
|
|
3000
3000
|
if (this.fabricCanvas) {
|
|
3001
|
-
this.fabricCanvas.bringObjectForward(target,
|
|
3001
|
+
this.fabricCanvas.bringObjectForward(target, false);
|
|
3002
3002
|
this.fabricCanvas.requestRenderAll();
|
|
3003
3003
|
}
|
|
3004
3004
|
}
|
|
@@ -3008,7 +3008,7 @@ class AbstractInteractiveCanvas {
|
|
|
3008
3008
|
*/
|
|
3009
3009
|
sendObjectBackwards(target) {
|
|
3010
3010
|
if (this.fabricCanvas) {
|
|
3011
|
-
this.fabricCanvas.sendObjectBackwards(target,
|
|
3011
|
+
this.fabricCanvas.sendObjectBackwards(target, false);
|
|
3012
3012
|
this.fabricCanvas.requestRenderAll();
|
|
3013
3013
|
}
|
|
3014
3014
|
}
|
|
@@ -3779,10 +3779,6 @@ class InteractiveCanvas extends AbstractInteractiveCanvas {
|
|
|
3779
3779
|
this.devicePixelRatio = devicePixelRatio;
|
|
3780
3780
|
this.headless = false;
|
|
3781
3781
|
this.undoStack = new UndoStack(this);
|
|
3782
|
-
const canvasElement = document.getElementById('canvas');
|
|
3783
|
-
const width = canvasElement.clientWidth * devicePixelRatio;
|
|
3784
|
-
const height = canvasElement.clientHeight * devicePixelRatio;
|
|
3785
|
-
this.fabricCanvas.setDimensions({ width, height });
|
|
3786
3782
|
this.fabricCanvas.setViewportTransform([1, 0, 0, 1, 0, 0]);
|
|
3787
3783
|
this.fabricCanvas.setZoom(devicePixelRatio);
|
|
3788
3784
|
//Initialize watchers
|
|
@@ -3019,7 +3019,7 @@ class AbstractInteractiveCanvas {
|
|
|
3019
3019
|
*/
|
|
3020
3020
|
bringObjectForward(target) {
|
|
3021
3021
|
if (this.fabricCanvas) {
|
|
3022
|
-
this.fabricCanvas.bringObjectForward(target,
|
|
3022
|
+
this.fabricCanvas.bringObjectForward(target, false);
|
|
3023
3023
|
this.fabricCanvas.requestRenderAll();
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
@@ -3029,7 +3029,7 @@ class AbstractInteractiveCanvas {
|
|
|
3029
3029
|
*/
|
|
3030
3030
|
sendObjectBackwards(target) {
|
|
3031
3031
|
if (this.fabricCanvas) {
|
|
3032
|
-
this.fabricCanvas.sendObjectBackwards(target,
|
|
3032
|
+
this.fabricCanvas.sendObjectBackwards(target, false);
|
|
3033
3033
|
this.fabricCanvas.requestRenderAll();
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
@@ -3800,10 +3800,6 @@ class InteractiveCanvas extends AbstractInteractiveCanvas {
|
|
|
3800
3800
|
this.devicePixelRatio = devicePixelRatio;
|
|
3801
3801
|
this.headless = false;
|
|
3802
3802
|
this.undoStack = new UndoStack(this);
|
|
3803
|
-
const canvasElement = document.getElementById('canvas');
|
|
3804
|
-
const width = canvasElement.clientWidth * devicePixelRatio;
|
|
3805
|
-
const height = canvasElement.clientHeight * devicePixelRatio;
|
|
3806
|
-
this.fabricCanvas.setDimensions({ width, height });
|
|
3807
3803
|
this.fabricCanvas.setViewportTransform([1, 0, 0, 1, 0, 0]);
|
|
3808
3804
|
this.fabricCanvas.setZoom(devicePixelRatio);
|
|
3809
3805
|
//Initialize watchers
|