microboard-temp 0.4.71 → 0.4.73

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.
@@ -21416,7 +21416,7 @@ class SimpleSpatialIndex {
21416
21416
  return items;
21417
21417
  }
21418
21418
  getMbr() {
21419
- return this.Mbr;
21419
+ return this.itemsArray[0].getMbr().combine(this.itemsArray.slice(1).map((item) => item.getMbr()));
21420
21420
  }
21421
21421
  list() {
21422
21422
  return this.itemsArray.concat();
@@ -47913,7 +47913,13 @@ class Deck extends BaseItem {
47913
47913
  this.index.getEnclosed = () => [];
47914
47914
  this.index.getEnclosedOrCrossed = () => [];
47915
47915
  if (cards) {
47916
- this.transformation.matrix = cards[0].transformation.matrix;
47916
+ this.transformation.apply({
47917
+ class: "Transformation",
47918
+ method: "translateTo",
47919
+ item: [this.id],
47920
+ x: cards[0].left,
47921
+ y: cards[0].top
47922
+ });
47917
47923
  this.applyAddChildren(cards.map((card) => card.getId()));
47918
47924
  }
47919
47925
  this.transformation.subject.subscribe(() => {
package/dist/cjs/index.js CHANGED
@@ -21416,7 +21416,7 @@ class SimpleSpatialIndex {
21416
21416
  return items;
21417
21417
  }
21418
21418
  getMbr() {
21419
- return this.Mbr;
21419
+ return this.itemsArray[0].getMbr().combine(this.itemsArray.slice(1).map((item) => item.getMbr()));
21420
21420
  }
21421
21421
  list() {
21422
21422
  return this.itemsArray.concat();
@@ -47913,7 +47913,13 @@ class Deck extends BaseItem {
47913
47913
  this.index.getEnclosed = () => [];
47914
47914
  this.index.getEnclosedOrCrossed = () => [];
47915
47915
  if (cards) {
47916
- this.transformation.matrix = cards[0].transformation.matrix;
47916
+ this.transformation.apply({
47917
+ class: "Transformation",
47918
+ method: "translateTo",
47919
+ item: [this.id],
47920
+ x: cards[0].left,
47921
+ y: cards[0].top
47922
+ });
47917
47923
  this.applyAddChildren(cards.map((card) => card.getId()));
47918
47924
  }
47919
47925
  this.transformation.subject.subscribe(() => {
package/dist/cjs/node.js CHANGED
@@ -23888,7 +23888,7 @@ class SimpleSpatialIndex {
23888
23888
  return items;
23889
23889
  }
23890
23890
  getMbr() {
23891
- return this.Mbr;
23891
+ return this.itemsArray[0].getMbr().combine(this.itemsArray.slice(1).map((item) => item.getMbr()));
23892
23892
  }
23893
23893
  list() {
23894
23894
  return this.itemsArray.concat();
@@ -50386,7 +50386,13 @@ class Deck extends BaseItem {
50386
50386
  this.index.getEnclosed = () => [];
50387
50387
  this.index.getEnclosedOrCrossed = () => [];
50388
50388
  if (cards) {
50389
- this.transformation.matrix = cards[0].transformation.matrix;
50389
+ this.transformation.apply({
50390
+ class: "Transformation",
50391
+ method: "translateTo",
50392
+ item: [this.id],
50393
+ x: cards[0].left,
50394
+ y: cards[0].top
50395
+ });
50390
50396
  this.applyAddChildren(cards.map((card) => card.getId()));
50391
50397
  }
50392
50398
  this.transformation.subject.subscribe(() => {
@@ -21265,7 +21265,7 @@ class SimpleSpatialIndex {
21265
21265
  return items;
21266
21266
  }
21267
21267
  getMbr() {
21268
- return this.Mbr;
21268
+ return this.itemsArray[0].getMbr().combine(this.itemsArray.slice(1).map((item) => item.getMbr()));
21269
21269
  }
21270
21270
  list() {
21271
21271
  return this.itemsArray.concat();
@@ -47762,7 +47762,13 @@ class Deck extends BaseItem {
47762
47762
  this.index.getEnclosed = () => [];
47763
47763
  this.index.getEnclosedOrCrossed = () => [];
47764
47764
  if (cards) {
47765
- this.transformation.matrix = cards[0].transformation.matrix;
47765
+ this.transformation.apply({
47766
+ class: "Transformation",
47767
+ method: "translateTo",
47768
+ item: [this.id],
47769
+ x: cards[0].left,
47770
+ y: cards[0].top
47771
+ });
47766
47772
  this.applyAddChildren(cards.map((card) => card.getId()));
47767
47773
  }
47768
47774
  this.transformation.subject.subscribe(() => {
package/dist/esm/index.js CHANGED
@@ -21258,7 +21258,7 @@ class SimpleSpatialIndex {
21258
21258
  return items;
21259
21259
  }
21260
21260
  getMbr() {
21261
- return this.Mbr;
21261
+ return this.itemsArray[0].getMbr().combine(this.itemsArray.slice(1).map((item) => item.getMbr()));
21262
21262
  }
21263
21263
  list() {
21264
21264
  return this.itemsArray.concat();
@@ -47755,7 +47755,13 @@ class Deck extends BaseItem {
47755
47755
  this.index.getEnclosed = () => [];
47756
47756
  this.index.getEnclosedOrCrossed = () => [];
47757
47757
  if (cards) {
47758
- this.transformation.matrix = cards[0].transformation.matrix;
47758
+ this.transformation.apply({
47759
+ class: "Transformation",
47760
+ method: "translateTo",
47761
+ item: [this.id],
47762
+ x: cards[0].left,
47763
+ y: cards[0].top
47764
+ });
47759
47765
  this.applyAddChildren(cards.map((card) => card.getId()));
47760
47766
  }
47761
47767
  this.transformation.subject.subscribe(() => {
package/dist/esm/node.js CHANGED
@@ -23725,7 +23725,7 @@ class SimpleSpatialIndex {
23725
23725
  return items;
23726
23726
  }
23727
23727
  getMbr() {
23728
- return this.Mbr;
23728
+ return this.itemsArray[0].getMbr().combine(this.itemsArray.slice(1).map((item) => item.getMbr()));
23729
23729
  }
23730
23730
  list() {
23731
23731
  return this.itemsArray.concat();
@@ -50223,7 +50223,13 @@ class Deck extends BaseItem {
50223
50223
  this.index.getEnclosed = () => [];
50224
50224
  this.index.getEnclosedOrCrossed = () => [];
50225
50225
  if (cards) {
50226
- this.transformation.matrix = cards[0].transformation.matrix;
50226
+ this.transformation.apply({
50227
+ class: "Transformation",
50228
+ method: "translateTo",
50229
+ item: [this.id],
50230
+ x: cards[0].left,
50231
+ y: cards[0].top
50232
+ });
50227
50233
  this.applyAddChildren(cards.map((card) => card.getId()));
50228
50234
  }
50229
50235
  this.transformation.subject.subscribe(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.71",
3
+ "version": "0.4.73",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",