microboard-temp 0.4.80 → 0.4.81
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.
- package/dist/cjs/browser.js +3 -3
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/node.js +3 -3
- package/dist/esm/browser.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/node.js +3 -3
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -48025,11 +48025,11 @@ class Deck extends BaseItem {
|
|
|
48025
48025
|
updateMbr() {
|
|
48026
48026
|
const { translateX, translateY } = this.transformation.matrix;
|
|
48027
48027
|
const items = this.index.list();
|
|
48028
|
-
const itemsMbr = items[0]
|
|
48028
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48029
48029
|
this.left = translateX;
|
|
48030
48030
|
this.top = translateY;
|
|
48031
|
-
this.right = translateX + itemsMbr
|
|
48032
|
-
this.bottom = translateY + itemsMbr
|
|
48031
|
+
this.right = translateX + (itemsMbr?.getWidth() || 0);
|
|
48032
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || 0);
|
|
48033
48033
|
}
|
|
48034
48034
|
deserialize(data) {
|
|
48035
48035
|
super.deserialize(data);
|
package/dist/cjs/index.js
CHANGED
|
@@ -48025,11 +48025,11 @@ class Deck extends BaseItem {
|
|
|
48025
48025
|
updateMbr() {
|
|
48026
48026
|
const { translateX, translateY } = this.transformation.matrix;
|
|
48027
48027
|
const items = this.index.list();
|
|
48028
|
-
const itemsMbr = items[0]
|
|
48028
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48029
48029
|
this.left = translateX;
|
|
48030
48030
|
this.top = translateY;
|
|
48031
|
-
this.right = translateX + itemsMbr
|
|
48032
|
-
this.bottom = translateY + itemsMbr
|
|
48031
|
+
this.right = translateX + (itemsMbr?.getWidth() || 0);
|
|
48032
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || 0);
|
|
48033
48033
|
}
|
|
48034
48034
|
deserialize(data) {
|
|
48035
48035
|
super.deserialize(data);
|
package/dist/cjs/node.js
CHANGED
|
@@ -50498,11 +50498,11 @@ class Deck extends BaseItem {
|
|
|
50498
50498
|
updateMbr() {
|
|
50499
50499
|
const { translateX, translateY } = this.transformation.matrix;
|
|
50500
50500
|
const items = this.index.list();
|
|
50501
|
-
const itemsMbr = items[0]
|
|
50501
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
50502
50502
|
this.left = translateX;
|
|
50503
50503
|
this.top = translateY;
|
|
50504
|
-
this.right = translateX + itemsMbr
|
|
50505
|
-
this.bottom = translateY + itemsMbr
|
|
50504
|
+
this.right = translateX + (itemsMbr?.getWidth() || 0);
|
|
50505
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || 0);
|
|
50506
50506
|
}
|
|
50507
50507
|
deserialize(data) {
|
|
50508
50508
|
super.deserialize(data);
|
package/dist/esm/browser.js
CHANGED
|
@@ -47874,11 +47874,11 @@ class Deck extends BaseItem {
|
|
|
47874
47874
|
updateMbr() {
|
|
47875
47875
|
const { translateX, translateY } = this.transformation.matrix;
|
|
47876
47876
|
const items = this.index.list();
|
|
47877
|
-
const itemsMbr = items[0]
|
|
47877
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
47878
47878
|
this.left = translateX;
|
|
47879
47879
|
this.top = translateY;
|
|
47880
|
-
this.right = translateX + itemsMbr
|
|
47881
|
-
this.bottom = translateY + itemsMbr
|
|
47880
|
+
this.right = translateX + (itemsMbr?.getWidth() || 0);
|
|
47881
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || 0);
|
|
47882
47882
|
}
|
|
47883
47883
|
deserialize(data) {
|
|
47884
47884
|
super.deserialize(data);
|
package/dist/esm/index.js
CHANGED
|
@@ -47867,11 +47867,11 @@ class Deck extends BaseItem {
|
|
|
47867
47867
|
updateMbr() {
|
|
47868
47868
|
const { translateX, translateY } = this.transformation.matrix;
|
|
47869
47869
|
const items = this.index.list();
|
|
47870
|
-
const itemsMbr = items[0]
|
|
47870
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
47871
47871
|
this.left = translateX;
|
|
47872
47872
|
this.top = translateY;
|
|
47873
|
-
this.right = translateX + itemsMbr
|
|
47874
|
-
this.bottom = translateY + itemsMbr
|
|
47873
|
+
this.right = translateX + (itemsMbr?.getWidth() || 0);
|
|
47874
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || 0);
|
|
47875
47875
|
}
|
|
47876
47876
|
deserialize(data) {
|
|
47877
47877
|
super.deserialize(data);
|
package/dist/esm/node.js
CHANGED
|
@@ -50335,11 +50335,11 @@ class Deck extends BaseItem {
|
|
|
50335
50335
|
updateMbr() {
|
|
50336
50336
|
const { translateX, translateY } = this.transformation.matrix;
|
|
50337
50337
|
const items = this.index.list();
|
|
50338
|
-
const itemsMbr = items[0]
|
|
50338
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
50339
50339
|
this.left = translateX;
|
|
50340
50340
|
this.top = translateY;
|
|
50341
|
-
this.right = translateX + itemsMbr
|
|
50342
|
-
this.bottom = translateY + itemsMbr
|
|
50341
|
+
this.right = translateX + (itemsMbr?.getWidth() || 0);
|
|
50342
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || 0);
|
|
50343
50343
|
}
|
|
50344
50344
|
deserialize(data) {
|
|
50345
50345
|
super.deserialize(data);
|