@leapfrog/interactive-canvas 2.0.20-beta-5 → 2.0.20-beta-6

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.
@@ -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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapfrog/interactive-canvas",
3
- "version": "2.0.20-beta-5",
3
+ "version": "2.0.20-beta-6",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"