microboard-temp 0.4.76 → 0.4.77

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.
@@ -48034,11 +48034,11 @@ class Deck extends BaseItem {
48034
48034
  }
48035
48035
  updateMbr() {
48036
48036
  const { translateX, translateY } = this.transformation.matrix;
48037
- const { right, bottom } = this.index.getMbr();
48037
+ const indexMbr = this.index.getMbr();
48038
48038
  this.left = translateX;
48039
48039
  this.top = translateY;
48040
- this.right = right;
48041
- this.bottom = bottom;
48040
+ this.right = translateX + indexMbr.getWidth();
48041
+ this.bottom = translateY + indexMbr.getHeight();
48042
48042
  }
48043
48043
  deserialize(data) {
48044
48044
  super.deserialize(data);
package/dist/cjs/index.js CHANGED
@@ -48034,11 +48034,11 @@ class Deck extends BaseItem {
48034
48034
  }
48035
48035
  updateMbr() {
48036
48036
  const { translateX, translateY } = this.transformation.matrix;
48037
- const { right, bottom } = this.index.getMbr();
48037
+ const indexMbr = this.index.getMbr();
48038
48038
  this.left = translateX;
48039
48039
  this.top = translateY;
48040
- this.right = right;
48041
- this.bottom = bottom;
48040
+ this.right = translateX + indexMbr.getWidth();
48041
+ this.bottom = translateY + indexMbr.getHeight();
48042
48042
  }
48043
48043
  deserialize(data) {
48044
48044
  super.deserialize(data);
package/dist/cjs/node.js CHANGED
@@ -50507,11 +50507,11 @@ class Deck extends BaseItem {
50507
50507
  }
50508
50508
  updateMbr() {
50509
50509
  const { translateX, translateY } = this.transformation.matrix;
50510
- const { right, bottom } = this.index.getMbr();
50510
+ const indexMbr = this.index.getMbr();
50511
50511
  this.left = translateX;
50512
50512
  this.top = translateY;
50513
- this.right = right;
50514
- this.bottom = bottom;
50513
+ this.right = translateX + indexMbr.getWidth();
50514
+ this.bottom = translateY + indexMbr.getHeight();
50515
50515
  }
50516
50516
  deserialize(data) {
50517
50517
  super.deserialize(data);
@@ -47883,11 +47883,11 @@ class Deck extends BaseItem {
47883
47883
  }
47884
47884
  updateMbr() {
47885
47885
  const { translateX, translateY } = this.transformation.matrix;
47886
- const { right, bottom } = this.index.getMbr();
47886
+ const indexMbr = this.index.getMbr();
47887
47887
  this.left = translateX;
47888
47888
  this.top = translateY;
47889
- this.right = right;
47890
- this.bottom = bottom;
47889
+ this.right = translateX + indexMbr.getWidth();
47890
+ this.bottom = translateY + indexMbr.getHeight();
47891
47891
  }
47892
47892
  deserialize(data) {
47893
47893
  super.deserialize(data);
package/dist/esm/index.js CHANGED
@@ -47876,11 +47876,11 @@ class Deck extends BaseItem {
47876
47876
  }
47877
47877
  updateMbr() {
47878
47878
  const { translateX, translateY } = this.transformation.matrix;
47879
- const { right, bottom } = this.index.getMbr();
47879
+ const indexMbr = this.index.getMbr();
47880
47880
  this.left = translateX;
47881
47881
  this.top = translateY;
47882
- this.right = right;
47883
- this.bottom = bottom;
47882
+ this.right = translateX + indexMbr.getWidth();
47883
+ this.bottom = translateY + indexMbr.getHeight();
47884
47884
  }
47885
47885
  deserialize(data) {
47886
47886
  super.deserialize(data);
package/dist/esm/node.js CHANGED
@@ -50344,11 +50344,11 @@ class Deck extends BaseItem {
50344
50344
  }
50345
50345
  updateMbr() {
50346
50346
  const { translateX, translateY } = this.transformation.matrix;
50347
- const { right, bottom } = this.index.getMbr();
50347
+ const indexMbr = this.index.getMbr();
50348
50348
  this.left = translateX;
50349
50349
  this.top = translateY;
50350
- this.right = right;
50351
- this.bottom = bottom;
50350
+ this.right = translateX + indexMbr.getWidth();
50351
+ this.bottom = translateY + indexMbr.getHeight();
50352
50352
  }
50353
50353
  deserialize(data) {
50354
50354
  super.deserialize(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.76",
3
+ "version": "0.4.77",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",