microboard-temp 0.4.70 → 0.4.72
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 +6 -3
- package/dist/cjs/index.js +6 -3
- package/dist/cjs/node.js +6 -3
- package/dist/esm/browser.js +6 -3
- package/dist/esm/index.js +6 -3
- package/dist/esm/node.js +6 -3
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -21416,7 +21416,7 @@ class SimpleSpatialIndex {
|
|
|
21416
21416
|
return items;
|
|
21417
21417
|
}
|
|
21418
21418
|
getMbr() {
|
|
21419
|
-
return this.
|
|
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();
|
|
@@ -47909,8 +47909,11 @@ class Deck extends BaseItem {
|
|
|
47909
47909
|
shouldUseCustomRender = false;
|
|
47910
47910
|
constructor(board, id = "", defaultData2, cards) {
|
|
47911
47911
|
super(board, id, defaultDeckData, true);
|
|
47912
|
+
this.index.getUnderPoint = () => [];
|
|
47913
|
+
this.index.getEnclosed = () => [];
|
|
47914
|
+
this.index.getEnclosedOrCrossed = () => [];
|
|
47912
47915
|
if (cards) {
|
|
47913
|
-
this.transformation.matrix = cards[
|
|
47916
|
+
this.transformation.matrix = cards[0].transformation.matrix;
|
|
47914
47917
|
this.applyAddChildren(cards.map((card) => card.getId()));
|
|
47915
47918
|
}
|
|
47916
47919
|
this.transformation.subject.subscribe(() => {
|
|
@@ -47926,7 +47929,7 @@ class Deck extends BaseItem {
|
|
|
47926
47929
|
childIds.forEach((childId) => {
|
|
47927
47930
|
const foundItem = this.board.items.getById(childId);
|
|
47928
47931
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47929
|
-
if (!this.index?.getById(childId) && foundItem
|
|
47932
|
+
if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
|
|
47930
47933
|
foundItem.transformation.apply({
|
|
47931
47934
|
class: "Transformation",
|
|
47932
47935
|
method: "translateTo",
|
package/dist/cjs/index.js
CHANGED
|
@@ -21416,7 +21416,7 @@ class SimpleSpatialIndex {
|
|
|
21416
21416
|
return items;
|
|
21417
21417
|
}
|
|
21418
21418
|
getMbr() {
|
|
21419
|
-
return this.
|
|
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();
|
|
@@ -47909,8 +47909,11 @@ class Deck extends BaseItem {
|
|
|
47909
47909
|
shouldUseCustomRender = false;
|
|
47910
47910
|
constructor(board, id = "", defaultData2, cards) {
|
|
47911
47911
|
super(board, id, defaultDeckData, true);
|
|
47912
|
+
this.index.getUnderPoint = () => [];
|
|
47913
|
+
this.index.getEnclosed = () => [];
|
|
47914
|
+
this.index.getEnclosedOrCrossed = () => [];
|
|
47912
47915
|
if (cards) {
|
|
47913
|
-
this.transformation.matrix = cards[
|
|
47916
|
+
this.transformation.matrix = cards[0].transformation.matrix;
|
|
47914
47917
|
this.applyAddChildren(cards.map((card) => card.getId()));
|
|
47915
47918
|
}
|
|
47916
47919
|
this.transformation.subject.subscribe(() => {
|
|
@@ -47926,7 +47929,7 @@ class Deck extends BaseItem {
|
|
|
47926
47929
|
childIds.forEach((childId) => {
|
|
47927
47930
|
const foundItem = this.board.items.getById(childId);
|
|
47928
47931
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47929
|
-
if (!this.index?.getById(childId) && foundItem
|
|
47932
|
+
if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
|
|
47930
47933
|
foundItem.transformation.apply({
|
|
47931
47934
|
class: "Transformation",
|
|
47932
47935
|
method: "translateTo",
|
package/dist/cjs/node.js
CHANGED
|
@@ -23888,7 +23888,7 @@ class SimpleSpatialIndex {
|
|
|
23888
23888
|
return items;
|
|
23889
23889
|
}
|
|
23890
23890
|
getMbr() {
|
|
23891
|
-
return this.
|
|
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();
|
|
@@ -50382,8 +50382,11 @@ class Deck extends BaseItem {
|
|
|
50382
50382
|
shouldUseCustomRender = false;
|
|
50383
50383
|
constructor(board, id = "", defaultData2, cards) {
|
|
50384
50384
|
super(board, id, defaultDeckData, true);
|
|
50385
|
+
this.index.getUnderPoint = () => [];
|
|
50386
|
+
this.index.getEnclosed = () => [];
|
|
50387
|
+
this.index.getEnclosedOrCrossed = () => [];
|
|
50385
50388
|
if (cards) {
|
|
50386
|
-
this.transformation.matrix = cards[
|
|
50389
|
+
this.transformation.matrix = cards[0].transformation.matrix;
|
|
50387
50390
|
this.applyAddChildren(cards.map((card) => card.getId()));
|
|
50388
50391
|
}
|
|
50389
50392
|
this.transformation.subject.subscribe(() => {
|
|
@@ -50399,7 +50402,7 @@ class Deck extends BaseItem {
|
|
|
50399
50402
|
childIds.forEach((childId) => {
|
|
50400
50403
|
const foundItem = this.board.items.getById(childId);
|
|
50401
50404
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
50402
|
-
if (!this.index?.getById(childId) && foundItem
|
|
50405
|
+
if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
|
|
50403
50406
|
foundItem.transformation.apply({
|
|
50404
50407
|
class: "Transformation",
|
|
50405
50408
|
method: "translateTo",
|
package/dist/esm/browser.js
CHANGED
|
@@ -21265,7 +21265,7 @@ class SimpleSpatialIndex {
|
|
|
21265
21265
|
return items;
|
|
21266
21266
|
}
|
|
21267
21267
|
getMbr() {
|
|
21268
|
-
return this.
|
|
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();
|
|
@@ -47758,8 +47758,11 @@ class Deck extends BaseItem {
|
|
|
47758
47758
|
shouldUseCustomRender = false;
|
|
47759
47759
|
constructor(board, id = "", defaultData2, cards) {
|
|
47760
47760
|
super(board, id, defaultDeckData, true);
|
|
47761
|
+
this.index.getUnderPoint = () => [];
|
|
47762
|
+
this.index.getEnclosed = () => [];
|
|
47763
|
+
this.index.getEnclosedOrCrossed = () => [];
|
|
47761
47764
|
if (cards) {
|
|
47762
|
-
this.transformation.matrix = cards[
|
|
47765
|
+
this.transformation.matrix = cards[0].transformation.matrix;
|
|
47763
47766
|
this.applyAddChildren(cards.map((card) => card.getId()));
|
|
47764
47767
|
}
|
|
47765
47768
|
this.transformation.subject.subscribe(() => {
|
|
@@ -47775,7 +47778,7 @@ class Deck extends BaseItem {
|
|
|
47775
47778
|
childIds.forEach((childId) => {
|
|
47776
47779
|
const foundItem = this.board.items.getById(childId);
|
|
47777
47780
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47778
|
-
if (!this.index?.getById(childId) && foundItem
|
|
47781
|
+
if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
|
|
47779
47782
|
foundItem.transformation.apply({
|
|
47780
47783
|
class: "Transformation",
|
|
47781
47784
|
method: "translateTo",
|
package/dist/esm/index.js
CHANGED
|
@@ -21258,7 +21258,7 @@ class SimpleSpatialIndex {
|
|
|
21258
21258
|
return items;
|
|
21259
21259
|
}
|
|
21260
21260
|
getMbr() {
|
|
21261
|
-
return this.
|
|
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();
|
|
@@ -47751,8 +47751,11 @@ class Deck extends BaseItem {
|
|
|
47751
47751
|
shouldUseCustomRender = false;
|
|
47752
47752
|
constructor(board, id = "", defaultData2, cards) {
|
|
47753
47753
|
super(board, id, defaultDeckData, true);
|
|
47754
|
+
this.index.getUnderPoint = () => [];
|
|
47755
|
+
this.index.getEnclosed = () => [];
|
|
47756
|
+
this.index.getEnclosedOrCrossed = () => [];
|
|
47754
47757
|
if (cards) {
|
|
47755
|
-
this.transformation.matrix = cards[
|
|
47758
|
+
this.transformation.matrix = cards[0].transformation.matrix;
|
|
47756
47759
|
this.applyAddChildren(cards.map((card) => card.getId()));
|
|
47757
47760
|
}
|
|
47758
47761
|
this.transformation.subject.subscribe(() => {
|
|
@@ -47768,7 +47771,7 @@ class Deck extends BaseItem {
|
|
|
47768
47771
|
childIds.forEach((childId) => {
|
|
47769
47772
|
const foundItem = this.board.items.getById(childId);
|
|
47770
47773
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47771
|
-
if (!this.index?.getById(childId) && foundItem
|
|
47774
|
+
if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
|
|
47772
47775
|
foundItem.transformation.apply({
|
|
47773
47776
|
class: "Transformation",
|
|
47774
47777
|
method: "translateTo",
|
package/dist/esm/node.js
CHANGED
|
@@ -23725,7 +23725,7 @@ class SimpleSpatialIndex {
|
|
|
23725
23725
|
return items;
|
|
23726
23726
|
}
|
|
23727
23727
|
getMbr() {
|
|
23728
|
-
return this.
|
|
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();
|
|
@@ -50219,8 +50219,11 @@ class Deck extends BaseItem {
|
|
|
50219
50219
|
shouldUseCustomRender = false;
|
|
50220
50220
|
constructor(board, id = "", defaultData2, cards) {
|
|
50221
50221
|
super(board, id, defaultDeckData, true);
|
|
50222
|
+
this.index.getUnderPoint = () => [];
|
|
50223
|
+
this.index.getEnclosed = () => [];
|
|
50224
|
+
this.index.getEnclosedOrCrossed = () => [];
|
|
50222
50225
|
if (cards) {
|
|
50223
|
-
this.transformation.matrix = cards[
|
|
50226
|
+
this.transformation.matrix = cards[0].transformation.matrix;
|
|
50224
50227
|
this.applyAddChildren(cards.map((card) => card.getId()));
|
|
50225
50228
|
}
|
|
50226
50229
|
this.transformation.subject.subscribe(() => {
|
|
@@ -50236,7 +50239,7 @@ class Deck extends BaseItem {
|
|
|
50236
50239
|
childIds.forEach((childId) => {
|
|
50237
50240
|
const foundItem = this.board.items.getById(childId);
|
|
50238
50241
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
50239
|
-
if (!this.index?.getById(childId) && foundItem
|
|
50242
|
+
if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
|
|
50240
50243
|
foundItem.transformation.apply({
|
|
50241
50244
|
class: "Transformation",
|
|
50242
50245
|
method: "translateTo",
|