microboard-temp 0.4.98 → 0.4.100
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 +9 -19
- package/dist/cjs/index.js +9 -19
- package/dist/cjs/node.js +9 -19
- package/dist/esm/browser.js +9 -19
- package/dist/esm/index.js +9 -19
- package/dist/esm/node.js +9 -19
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -19494,18 +19494,18 @@ class BaseCommand {
|
|
|
19494
19494
|
const items = this.items;
|
|
19495
19495
|
switch (this.operation.method) {
|
|
19496
19496
|
case "addChildren":
|
|
19497
|
-
return
|
|
19498
|
-
return {
|
|
19497
|
+
return items.map((item) => {
|
|
19498
|
+
return { item, operation: {
|
|
19499
19499
|
...this.operation,
|
|
19500
|
-
|
|
19501
|
-
};
|
|
19500
|
+
method: "removeChildren"
|
|
19501
|
+
} };
|
|
19502
19502
|
});
|
|
19503
19503
|
case "removeChildren":
|
|
19504
|
-
return
|
|
19505
|
-
return {
|
|
19504
|
+
return items.map((item) => {
|
|
19505
|
+
return { item, operation: {
|
|
19506
19506
|
...this.operation,
|
|
19507
|
-
|
|
19508
|
-
};
|
|
19507
|
+
method: "addChildren"
|
|
19508
|
+
} };
|
|
19509
19509
|
});
|
|
19510
19510
|
default:
|
|
19511
19511
|
return mapItemsByOperation(items, (item) => {
|
|
@@ -40549,9 +40549,6 @@ class Frame2 extends BaseItem {
|
|
|
40549
40549
|
case "RichText":
|
|
40550
40550
|
this.text.apply(op);
|
|
40551
40551
|
break;
|
|
40552
|
-
case "LinkTo":
|
|
40553
|
-
this.linkTo.apply(op);
|
|
40554
|
-
break;
|
|
40555
40552
|
default:
|
|
40556
40553
|
return;
|
|
40557
40554
|
}
|
|
@@ -47982,13 +47979,6 @@ class Deck extends BaseItem {
|
|
|
47982
47979
|
const foundItem = this.index?.getById(childId);
|
|
47983
47980
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47984
47981
|
if (foundItem) {
|
|
47985
|
-
foundItem.transformation.apply({
|
|
47986
|
-
class: "Transformation",
|
|
47987
|
-
method: "translateTo",
|
|
47988
|
-
item: [this.id],
|
|
47989
|
-
x: this.left,
|
|
47990
|
-
y: this.top - this.getHeight() / 2
|
|
47991
|
-
});
|
|
47992
47982
|
this.index?.remove(foundItem);
|
|
47993
47983
|
foundItem.parent = "Board";
|
|
47994
47984
|
foundItem.shouldUseRelativeAlignment = true;
|
|
@@ -54201,7 +54191,7 @@ class Board {
|
|
|
54201
54191
|
itemData.transformation.translateX = translateX - minX + x;
|
|
54202
54192
|
itemData.transformation.translateY = translateY - minY + y;
|
|
54203
54193
|
}
|
|
54204
|
-
if (itemData
|
|
54194
|
+
if ("children" in itemData && itemData.children) {
|
|
54205
54195
|
itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
|
|
54206
54196
|
}
|
|
54207
54197
|
newMap[newItemId] = itemData;
|
package/dist/cjs/index.js
CHANGED
|
@@ -19494,18 +19494,18 @@ class BaseCommand {
|
|
|
19494
19494
|
const items = this.items;
|
|
19495
19495
|
switch (this.operation.method) {
|
|
19496
19496
|
case "addChildren":
|
|
19497
|
-
return
|
|
19498
|
-
return {
|
|
19497
|
+
return items.map((item) => {
|
|
19498
|
+
return { item, operation: {
|
|
19499
19499
|
...this.operation,
|
|
19500
|
-
|
|
19501
|
-
};
|
|
19500
|
+
method: "removeChildren"
|
|
19501
|
+
} };
|
|
19502
19502
|
});
|
|
19503
19503
|
case "removeChildren":
|
|
19504
|
-
return
|
|
19505
|
-
return {
|
|
19504
|
+
return items.map((item) => {
|
|
19505
|
+
return { item, operation: {
|
|
19506
19506
|
...this.operation,
|
|
19507
|
-
|
|
19508
|
-
};
|
|
19507
|
+
method: "addChildren"
|
|
19508
|
+
} };
|
|
19509
19509
|
});
|
|
19510
19510
|
default:
|
|
19511
19511
|
return mapItemsByOperation(items, (item) => {
|
|
@@ -40549,9 +40549,6 @@ class Frame2 extends BaseItem {
|
|
|
40549
40549
|
case "RichText":
|
|
40550
40550
|
this.text.apply(op);
|
|
40551
40551
|
break;
|
|
40552
|
-
case "LinkTo":
|
|
40553
|
-
this.linkTo.apply(op);
|
|
40554
|
-
break;
|
|
40555
40552
|
default:
|
|
40556
40553
|
return;
|
|
40557
40554
|
}
|
|
@@ -47982,13 +47979,6 @@ class Deck extends BaseItem {
|
|
|
47982
47979
|
const foundItem = this.index?.getById(childId);
|
|
47983
47980
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47984
47981
|
if (foundItem) {
|
|
47985
|
-
foundItem.transformation.apply({
|
|
47986
|
-
class: "Transformation",
|
|
47987
|
-
method: "translateTo",
|
|
47988
|
-
item: [this.id],
|
|
47989
|
-
x: this.left,
|
|
47990
|
-
y: this.top - this.getHeight() / 2
|
|
47991
|
-
});
|
|
47992
47982
|
this.index?.remove(foundItem);
|
|
47993
47983
|
foundItem.parent = "Board";
|
|
47994
47984
|
foundItem.shouldUseRelativeAlignment = true;
|
|
@@ -54201,7 +54191,7 @@ class Board {
|
|
|
54201
54191
|
itemData.transformation.translateX = translateX - minX + x;
|
|
54202
54192
|
itemData.transformation.translateY = translateY - minY + y;
|
|
54203
54193
|
}
|
|
54204
|
-
if (itemData
|
|
54194
|
+
if ("children" in itemData && itemData.children) {
|
|
54205
54195
|
itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
|
|
54206
54196
|
}
|
|
54207
54197
|
newMap[newItemId] = itemData;
|
package/dist/cjs/node.js
CHANGED
|
@@ -22033,18 +22033,18 @@ class BaseCommand {
|
|
|
22033
22033
|
const items = this.items;
|
|
22034
22034
|
switch (this.operation.method) {
|
|
22035
22035
|
case "addChildren":
|
|
22036
|
-
return
|
|
22037
|
-
return {
|
|
22036
|
+
return items.map((item) => {
|
|
22037
|
+
return { item, operation: {
|
|
22038
22038
|
...this.operation,
|
|
22039
|
-
|
|
22040
|
-
};
|
|
22039
|
+
method: "removeChildren"
|
|
22040
|
+
} };
|
|
22041
22041
|
});
|
|
22042
22042
|
case "removeChildren":
|
|
22043
|
-
return
|
|
22044
|
-
return {
|
|
22043
|
+
return items.map((item) => {
|
|
22044
|
+
return { item, operation: {
|
|
22045
22045
|
...this.operation,
|
|
22046
|
-
|
|
22047
|
-
};
|
|
22046
|
+
method: "addChildren"
|
|
22047
|
+
} };
|
|
22048
22048
|
});
|
|
22049
22049
|
default:
|
|
22050
22050
|
return mapItemsByOperation(items, (item) => {
|
|
@@ -43022,9 +43022,6 @@ class Frame2 extends BaseItem {
|
|
|
43022
43022
|
case "RichText":
|
|
43023
43023
|
this.text.apply(op);
|
|
43024
43024
|
break;
|
|
43025
|
-
case "LinkTo":
|
|
43026
|
-
this.linkTo.apply(op);
|
|
43027
|
-
break;
|
|
43028
43025
|
default:
|
|
43029
43026
|
return;
|
|
43030
43027
|
}
|
|
@@ -50455,13 +50452,6 @@ class Deck extends BaseItem {
|
|
|
50455
50452
|
const foundItem = this.index?.getById(childId);
|
|
50456
50453
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
50457
50454
|
if (foundItem) {
|
|
50458
|
-
foundItem.transformation.apply({
|
|
50459
|
-
class: "Transformation",
|
|
50460
|
-
method: "translateTo",
|
|
50461
|
-
item: [this.id],
|
|
50462
|
-
x: this.left,
|
|
50463
|
-
y: this.top - this.getHeight() / 2
|
|
50464
|
-
});
|
|
50465
50455
|
this.index?.remove(foundItem);
|
|
50466
50456
|
foundItem.parent = "Board";
|
|
50467
50457
|
foundItem.shouldUseRelativeAlignment = true;
|
|
@@ -56674,7 +56664,7 @@ class Board {
|
|
|
56674
56664
|
itemData.transformation.translateX = translateX - minX + x;
|
|
56675
56665
|
itemData.transformation.translateY = translateY - minY + y;
|
|
56676
56666
|
}
|
|
56677
|
-
if (itemData
|
|
56667
|
+
if ("children" in itemData && itemData.children) {
|
|
56678
56668
|
itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
|
|
56679
56669
|
}
|
|
56680
56670
|
newMap[newItemId] = itemData;
|
package/dist/esm/browser.js
CHANGED
|
@@ -19343,18 +19343,18 @@ class BaseCommand {
|
|
|
19343
19343
|
const items = this.items;
|
|
19344
19344
|
switch (this.operation.method) {
|
|
19345
19345
|
case "addChildren":
|
|
19346
|
-
return
|
|
19347
|
-
return {
|
|
19346
|
+
return items.map((item) => {
|
|
19347
|
+
return { item, operation: {
|
|
19348
19348
|
...this.operation,
|
|
19349
|
-
|
|
19350
|
-
};
|
|
19349
|
+
method: "removeChildren"
|
|
19350
|
+
} };
|
|
19351
19351
|
});
|
|
19352
19352
|
case "removeChildren":
|
|
19353
|
-
return
|
|
19354
|
-
return {
|
|
19353
|
+
return items.map((item) => {
|
|
19354
|
+
return { item, operation: {
|
|
19355
19355
|
...this.operation,
|
|
19356
|
-
|
|
19357
|
-
};
|
|
19356
|
+
method: "addChildren"
|
|
19357
|
+
} };
|
|
19358
19358
|
});
|
|
19359
19359
|
default:
|
|
19360
19360
|
return mapItemsByOperation(items, (item) => {
|
|
@@ -40398,9 +40398,6 @@ class Frame2 extends BaseItem {
|
|
|
40398
40398
|
case "RichText":
|
|
40399
40399
|
this.text.apply(op);
|
|
40400
40400
|
break;
|
|
40401
|
-
case "LinkTo":
|
|
40402
|
-
this.linkTo.apply(op);
|
|
40403
|
-
break;
|
|
40404
40401
|
default:
|
|
40405
40402
|
return;
|
|
40406
40403
|
}
|
|
@@ -47831,13 +47828,6 @@ class Deck extends BaseItem {
|
|
|
47831
47828
|
const foundItem = this.index?.getById(childId);
|
|
47832
47829
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47833
47830
|
if (foundItem) {
|
|
47834
|
-
foundItem.transformation.apply({
|
|
47835
|
-
class: "Transformation",
|
|
47836
|
-
method: "translateTo",
|
|
47837
|
-
item: [this.id],
|
|
47838
|
-
x: this.left,
|
|
47839
|
-
y: this.top - this.getHeight() / 2
|
|
47840
|
-
});
|
|
47841
47831
|
this.index?.remove(foundItem);
|
|
47842
47832
|
foundItem.parent = "Board";
|
|
47843
47833
|
foundItem.shouldUseRelativeAlignment = true;
|
|
@@ -54050,7 +54040,7 @@ class Board {
|
|
|
54050
54040
|
itemData.transformation.translateX = translateX - minX + x;
|
|
54051
54041
|
itemData.transformation.translateY = translateY - minY + y;
|
|
54052
54042
|
}
|
|
54053
|
-
if (itemData
|
|
54043
|
+
if ("children" in itemData && itemData.children) {
|
|
54054
54044
|
itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
|
|
54055
54045
|
}
|
|
54056
54046
|
newMap[newItemId] = itemData;
|
package/dist/esm/index.js
CHANGED
|
@@ -19336,18 +19336,18 @@ class BaseCommand {
|
|
|
19336
19336
|
const items = this.items;
|
|
19337
19337
|
switch (this.operation.method) {
|
|
19338
19338
|
case "addChildren":
|
|
19339
|
-
return
|
|
19340
|
-
return {
|
|
19339
|
+
return items.map((item) => {
|
|
19340
|
+
return { item, operation: {
|
|
19341
19341
|
...this.operation,
|
|
19342
|
-
|
|
19343
|
-
};
|
|
19342
|
+
method: "removeChildren"
|
|
19343
|
+
} };
|
|
19344
19344
|
});
|
|
19345
19345
|
case "removeChildren":
|
|
19346
|
-
return
|
|
19347
|
-
return {
|
|
19346
|
+
return items.map((item) => {
|
|
19347
|
+
return { item, operation: {
|
|
19348
19348
|
...this.operation,
|
|
19349
|
-
|
|
19350
|
-
};
|
|
19349
|
+
method: "addChildren"
|
|
19350
|
+
} };
|
|
19351
19351
|
});
|
|
19352
19352
|
default:
|
|
19353
19353
|
return mapItemsByOperation(items, (item) => {
|
|
@@ -40391,9 +40391,6 @@ class Frame2 extends BaseItem {
|
|
|
40391
40391
|
case "RichText":
|
|
40392
40392
|
this.text.apply(op);
|
|
40393
40393
|
break;
|
|
40394
|
-
case "LinkTo":
|
|
40395
|
-
this.linkTo.apply(op);
|
|
40396
|
-
break;
|
|
40397
40394
|
default:
|
|
40398
40395
|
return;
|
|
40399
40396
|
}
|
|
@@ -47824,13 +47821,6 @@ class Deck extends BaseItem {
|
|
|
47824
47821
|
const foundItem = this.index?.getById(childId);
|
|
47825
47822
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
47826
47823
|
if (foundItem) {
|
|
47827
|
-
foundItem.transformation.apply({
|
|
47828
|
-
class: "Transformation",
|
|
47829
|
-
method: "translateTo",
|
|
47830
|
-
item: [this.id],
|
|
47831
|
-
x: this.left,
|
|
47832
|
-
y: this.top - this.getHeight() / 2
|
|
47833
|
-
});
|
|
47834
47824
|
this.index?.remove(foundItem);
|
|
47835
47825
|
foundItem.parent = "Board";
|
|
47836
47826
|
foundItem.shouldUseRelativeAlignment = true;
|
|
@@ -54043,7 +54033,7 @@ class Board {
|
|
|
54043
54033
|
itemData.transformation.translateX = translateX - minX + x;
|
|
54044
54034
|
itemData.transformation.translateY = translateY - minY + y;
|
|
54045
54035
|
}
|
|
54046
|
-
if (itemData
|
|
54036
|
+
if ("children" in itemData && itemData.children) {
|
|
54047
54037
|
itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
|
|
54048
54038
|
}
|
|
54049
54039
|
newMap[newItemId] = itemData;
|
package/dist/esm/node.js
CHANGED
|
@@ -21870,18 +21870,18 @@ class BaseCommand {
|
|
|
21870
21870
|
const items = this.items;
|
|
21871
21871
|
switch (this.operation.method) {
|
|
21872
21872
|
case "addChildren":
|
|
21873
|
-
return
|
|
21874
|
-
return {
|
|
21873
|
+
return items.map((item) => {
|
|
21874
|
+
return { item, operation: {
|
|
21875
21875
|
...this.operation,
|
|
21876
|
-
|
|
21877
|
-
};
|
|
21876
|
+
method: "removeChildren"
|
|
21877
|
+
} };
|
|
21878
21878
|
});
|
|
21879
21879
|
case "removeChildren":
|
|
21880
|
-
return
|
|
21881
|
-
return {
|
|
21880
|
+
return items.map((item) => {
|
|
21881
|
+
return { item, operation: {
|
|
21882
21882
|
...this.operation,
|
|
21883
|
-
|
|
21884
|
-
};
|
|
21883
|
+
method: "addChildren"
|
|
21884
|
+
} };
|
|
21885
21885
|
});
|
|
21886
21886
|
default:
|
|
21887
21887
|
return mapItemsByOperation(items, (item) => {
|
|
@@ -42859,9 +42859,6 @@ class Frame2 extends BaseItem {
|
|
|
42859
42859
|
case "RichText":
|
|
42860
42860
|
this.text.apply(op);
|
|
42861
42861
|
break;
|
|
42862
|
-
case "LinkTo":
|
|
42863
|
-
this.linkTo.apply(op);
|
|
42864
|
-
break;
|
|
42865
42862
|
default:
|
|
42866
42863
|
return;
|
|
42867
42864
|
}
|
|
@@ -50292,13 +50289,6 @@ class Deck extends BaseItem {
|
|
|
50292
50289
|
const foundItem = this.index?.getById(childId);
|
|
50293
50290
|
if (this.parent !== childId && this.getId() !== childId) {
|
|
50294
50291
|
if (foundItem) {
|
|
50295
|
-
foundItem.transformation.apply({
|
|
50296
|
-
class: "Transformation",
|
|
50297
|
-
method: "translateTo",
|
|
50298
|
-
item: [this.id],
|
|
50299
|
-
x: this.left,
|
|
50300
|
-
y: this.top - this.getHeight() / 2
|
|
50301
|
-
});
|
|
50302
50292
|
this.index?.remove(foundItem);
|
|
50303
50293
|
foundItem.parent = "Board";
|
|
50304
50294
|
foundItem.shouldUseRelativeAlignment = true;
|
|
@@ -56511,7 +56501,7 @@ class Board {
|
|
|
56511
56501
|
itemData.transformation.translateX = translateX - minX + x;
|
|
56512
56502
|
itemData.transformation.translateY = translateY - minY + y;
|
|
56513
56503
|
}
|
|
56514
|
-
if (itemData
|
|
56504
|
+
if ("children" in itemData && itemData.children) {
|
|
56515
56505
|
itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
|
|
56516
56506
|
}
|
|
56517
56507
|
newMap[newItemId] = itemData;
|