microboard-temp 0.4.76 → 0.4.78

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.
@@ -47936,6 +47936,7 @@ class Deck extends BaseItem {
47936
47936
  x: cards[0].left,
47937
47937
  y: cards[0].top
47938
47938
  });
47939
+ this.updateMbr();
47939
47940
  this.applyAddChildren(cards.map((card) => card.getId()));
47940
47941
  }
47941
47942
  this.transformation.subject.subscribe(() => {
@@ -48034,11 +48035,11 @@ class Deck extends BaseItem {
48034
48035
  }
48035
48036
  updateMbr() {
48036
48037
  const { translateX, translateY } = this.transformation.matrix;
48037
- const { right, bottom } = this.index.getMbr();
48038
+ const indexMbr = this.index.getMbr();
48038
48039
  this.left = translateX;
48039
48040
  this.top = translateY;
48040
- this.right = right;
48041
- this.bottom = bottom;
48041
+ this.right = translateX + indexMbr.getWidth();
48042
+ this.bottom = translateY + indexMbr.getHeight();
48042
48043
  }
48043
48044
  deserialize(data) {
48044
48045
  super.deserialize(data);
package/dist/cjs/index.js CHANGED
@@ -47936,6 +47936,7 @@ class Deck extends BaseItem {
47936
47936
  x: cards[0].left,
47937
47937
  y: cards[0].top
47938
47938
  });
47939
+ this.updateMbr();
47939
47940
  this.applyAddChildren(cards.map((card) => card.getId()));
47940
47941
  }
47941
47942
  this.transformation.subject.subscribe(() => {
@@ -48034,11 +48035,11 @@ class Deck extends BaseItem {
48034
48035
  }
48035
48036
  updateMbr() {
48036
48037
  const { translateX, translateY } = this.transformation.matrix;
48037
- const { right, bottom } = this.index.getMbr();
48038
+ const indexMbr = this.index.getMbr();
48038
48039
  this.left = translateX;
48039
48040
  this.top = translateY;
48040
- this.right = right;
48041
- this.bottom = bottom;
48041
+ this.right = translateX + indexMbr.getWidth();
48042
+ this.bottom = translateY + indexMbr.getHeight();
48042
48043
  }
48043
48044
  deserialize(data) {
48044
48045
  super.deserialize(data);
package/dist/cjs/node.js CHANGED
@@ -50409,6 +50409,7 @@ class Deck extends BaseItem {
50409
50409
  x: cards[0].left,
50410
50410
  y: cards[0].top
50411
50411
  });
50412
+ this.updateMbr();
50412
50413
  this.applyAddChildren(cards.map((card) => card.getId()));
50413
50414
  }
50414
50415
  this.transformation.subject.subscribe(() => {
@@ -50507,11 +50508,11 @@ class Deck extends BaseItem {
50507
50508
  }
50508
50509
  updateMbr() {
50509
50510
  const { translateX, translateY } = this.transformation.matrix;
50510
- const { right, bottom } = this.index.getMbr();
50511
+ const indexMbr = this.index.getMbr();
50511
50512
  this.left = translateX;
50512
50513
  this.top = translateY;
50513
- this.right = right;
50514
- this.bottom = bottom;
50514
+ this.right = translateX + indexMbr.getWidth();
50515
+ this.bottom = translateY + indexMbr.getHeight();
50515
50516
  }
50516
50517
  deserialize(data) {
50517
50518
  super.deserialize(data);
@@ -47785,6 +47785,7 @@ class Deck extends BaseItem {
47785
47785
  x: cards[0].left,
47786
47786
  y: cards[0].top
47787
47787
  });
47788
+ this.updateMbr();
47788
47789
  this.applyAddChildren(cards.map((card) => card.getId()));
47789
47790
  }
47790
47791
  this.transformation.subject.subscribe(() => {
@@ -47883,11 +47884,11 @@ class Deck extends BaseItem {
47883
47884
  }
47884
47885
  updateMbr() {
47885
47886
  const { translateX, translateY } = this.transformation.matrix;
47886
- const { right, bottom } = this.index.getMbr();
47887
+ const indexMbr = this.index.getMbr();
47887
47888
  this.left = translateX;
47888
47889
  this.top = translateY;
47889
- this.right = right;
47890
- this.bottom = bottom;
47890
+ this.right = translateX + indexMbr.getWidth();
47891
+ this.bottom = translateY + indexMbr.getHeight();
47891
47892
  }
47892
47893
  deserialize(data) {
47893
47894
  super.deserialize(data);
package/dist/esm/index.js CHANGED
@@ -47778,6 +47778,7 @@ class Deck extends BaseItem {
47778
47778
  x: cards[0].left,
47779
47779
  y: cards[0].top
47780
47780
  });
47781
+ this.updateMbr();
47781
47782
  this.applyAddChildren(cards.map((card) => card.getId()));
47782
47783
  }
47783
47784
  this.transformation.subject.subscribe(() => {
@@ -47876,11 +47877,11 @@ class Deck extends BaseItem {
47876
47877
  }
47877
47878
  updateMbr() {
47878
47879
  const { translateX, translateY } = this.transformation.matrix;
47879
- const { right, bottom } = this.index.getMbr();
47880
+ const indexMbr = this.index.getMbr();
47880
47881
  this.left = translateX;
47881
47882
  this.top = translateY;
47882
- this.right = right;
47883
- this.bottom = bottom;
47883
+ this.right = translateX + indexMbr.getWidth();
47884
+ this.bottom = translateY + indexMbr.getHeight();
47884
47885
  }
47885
47886
  deserialize(data) {
47886
47887
  super.deserialize(data);
package/dist/esm/node.js CHANGED
@@ -50246,6 +50246,7 @@ class Deck extends BaseItem {
50246
50246
  x: cards[0].left,
50247
50247
  y: cards[0].top
50248
50248
  });
50249
+ this.updateMbr();
50249
50250
  this.applyAddChildren(cards.map((card) => card.getId()));
50250
50251
  }
50251
50252
  this.transformation.subject.subscribe(() => {
@@ -50344,11 +50345,11 @@ class Deck extends BaseItem {
50344
50345
  }
50345
50346
  updateMbr() {
50346
50347
  const { translateX, translateY } = this.transformation.matrix;
50347
- const { right, bottom } = this.index.getMbr();
50348
+ const indexMbr = this.index.getMbr();
50348
50349
  this.left = translateX;
50349
50350
  this.top = translateY;
50350
- this.right = right;
50351
- this.bottom = bottom;
50351
+ this.right = translateX + indexMbr.getWidth();
50352
+ this.bottom = translateY + indexMbr.getHeight();
50352
50353
  }
50353
50354
  deserialize(data) {
50354
50355
  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.78",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",