microboard-temp 0.13.12 → 0.13.13
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 +33 -13
- package/dist/cjs/index.js +33 -13
- package/dist/cjs/node.js +33 -13
- package/dist/esm/browser.js +33 -13
- package/dist/esm/index.js +33 -13
- package/dist/esm/node.js +33 -13
- package/dist/types/Items/BaseItem/BaseItemOperation.d.ts +1 -1
- package/dist/types/Items/Group/GroupOperation.d.ts +17 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -19533,7 +19533,7 @@ class GroupCommand {
|
|
|
19533
19533
|
const operation = {
|
|
19534
19534
|
...this.operation,
|
|
19535
19535
|
method: "removeChild",
|
|
19536
|
-
childId:
|
|
19536
|
+
childId: this.operation.childId
|
|
19537
19537
|
};
|
|
19538
19538
|
return {
|
|
19539
19539
|
item: group2,
|
|
@@ -19547,7 +19547,33 @@ class GroupCommand {
|
|
|
19547
19547
|
const operation = {
|
|
19548
19548
|
...this.operation,
|
|
19549
19549
|
method: "addChild",
|
|
19550
|
-
childId:
|
|
19550
|
+
childId: this.operation.childId
|
|
19551
|
+
};
|
|
19552
|
+
return {
|
|
19553
|
+
item: group2,
|
|
19554
|
+
operation
|
|
19555
|
+
};
|
|
19556
|
+
});
|
|
19557
|
+
}
|
|
19558
|
+
case "addChildren": {
|
|
19559
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19560
|
+
return groups.map((group2) => {
|
|
19561
|
+
const operation = {
|
|
19562
|
+
...this.operation,
|
|
19563
|
+
method: "removeChildren"
|
|
19564
|
+
};
|
|
19565
|
+
return {
|
|
19566
|
+
item: group2,
|
|
19567
|
+
operation
|
|
19568
|
+
};
|
|
19569
|
+
});
|
|
19570
|
+
}
|
|
19571
|
+
case "removeChildren": {
|
|
19572
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19573
|
+
return groups.map((group2) => {
|
|
19574
|
+
const operation = {
|
|
19575
|
+
...this.operation,
|
|
19576
|
+
method: "addChildren"
|
|
19551
19577
|
};
|
|
19552
19578
|
return {
|
|
19553
19579
|
item: group2,
|
|
@@ -43607,21 +43633,15 @@ class Group extends BaseItem {
|
|
|
43607
43633
|
return null;
|
|
43608
43634
|
}
|
|
43609
43635
|
apply(op) {
|
|
43636
|
+
super.apply(op);
|
|
43610
43637
|
switch (op.class) {
|
|
43611
43638
|
case "Group":
|
|
43612
43639
|
if (op.method === "addChild") {
|
|
43613
43640
|
this.applyAddChildren([op.childId]);
|
|
43614
43641
|
} else if (op.method === "removeChild") {
|
|
43615
43642
|
this.applyRemoveChildren([op.childId]);
|
|
43616
|
-
} else if (op.method === "addChildren") {
|
|
43617
|
-
this.applyAddChildren(op.newData.childIds);
|
|
43618
|
-
} else if (op.method === "removeChildren") {
|
|
43619
|
-
this.applyRemoveChildren(op.newData.childIds);
|
|
43620
43643
|
}
|
|
43621
43644
|
break;
|
|
43622
|
-
case "Transformation":
|
|
43623
|
-
super.apply(op);
|
|
43624
|
-
break;
|
|
43625
43645
|
default:
|
|
43626
43646
|
return;
|
|
43627
43647
|
}
|
|
@@ -43654,10 +43674,10 @@ class Group extends BaseItem {
|
|
|
43654
43674
|
for (const child of children) {
|
|
43655
43675
|
const childLocalMbr = child.getMbr();
|
|
43656
43676
|
const corners = [
|
|
43657
|
-
|
|
43658
|
-
|
|
43659
|
-
|
|
43660
|
-
|
|
43677
|
+
new Point(childLocalMbr.left, childLocalMbr.top),
|
|
43678
|
+
new Point(childLocalMbr.right, childLocalMbr.top),
|
|
43679
|
+
new Point(childLocalMbr.right, childLocalMbr.bottom),
|
|
43680
|
+
new Point(childLocalMbr.left, childLocalMbr.bottom)
|
|
43661
43681
|
];
|
|
43662
43682
|
for (const corner of corners) {
|
|
43663
43683
|
groupWorldMatrix.apply(corner);
|
package/dist/cjs/index.js
CHANGED
|
@@ -19533,7 +19533,7 @@ class GroupCommand {
|
|
|
19533
19533
|
const operation = {
|
|
19534
19534
|
...this.operation,
|
|
19535
19535
|
method: "removeChild",
|
|
19536
|
-
childId:
|
|
19536
|
+
childId: this.operation.childId
|
|
19537
19537
|
};
|
|
19538
19538
|
return {
|
|
19539
19539
|
item: group2,
|
|
@@ -19547,7 +19547,33 @@ class GroupCommand {
|
|
|
19547
19547
|
const operation = {
|
|
19548
19548
|
...this.operation,
|
|
19549
19549
|
method: "addChild",
|
|
19550
|
-
childId:
|
|
19550
|
+
childId: this.operation.childId
|
|
19551
|
+
};
|
|
19552
|
+
return {
|
|
19553
|
+
item: group2,
|
|
19554
|
+
operation
|
|
19555
|
+
};
|
|
19556
|
+
});
|
|
19557
|
+
}
|
|
19558
|
+
case "addChildren": {
|
|
19559
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19560
|
+
return groups.map((group2) => {
|
|
19561
|
+
const operation = {
|
|
19562
|
+
...this.operation,
|
|
19563
|
+
method: "removeChildren"
|
|
19564
|
+
};
|
|
19565
|
+
return {
|
|
19566
|
+
item: group2,
|
|
19567
|
+
operation
|
|
19568
|
+
};
|
|
19569
|
+
});
|
|
19570
|
+
}
|
|
19571
|
+
case "removeChildren": {
|
|
19572
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19573
|
+
return groups.map((group2) => {
|
|
19574
|
+
const operation = {
|
|
19575
|
+
...this.operation,
|
|
19576
|
+
method: "addChildren"
|
|
19551
19577
|
};
|
|
19552
19578
|
return {
|
|
19553
19579
|
item: group2,
|
|
@@ -43607,21 +43633,15 @@ class Group extends BaseItem {
|
|
|
43607
43633
|
return null;
|
|
43608
43634
|
}
|
|
43609
43635
|
apply(op) {
|
|
43636
|
+
super.apply(op);
|
|
43610
43637
|
switch (op.class) {
|
|
43611
43638
|
case "Group":
|
|
43612
43639
|
if (op.method === "addChild") {
|
|
43613
43640
|
this.applyAddChildren([op.childId]);
|
|
43614
43641
|
} else if (op.method === "removeChild") {
|
|
43615
43642
|
this.applyRemoveChildren([op.childId]);
|
|
43616
|
-
} else if (op.method === "addChildren") {
|
|
43617
|
-
this.applyAddChildren(op.newData.childIds);
|
|
43618
|
-
} else if (op.method === "removeChildren") {
|
|
43619
|
-
this.applyRemoveChildren(op.newData.childIds);
|
|
43620
43643
|
}
|
|
43621
43644
|
break;
|
|
43622
|
-
case "Transformation":
|
|
43623
|
-
super.apply(op);
|
|
43624
|
-
break;
|
|
43625
43645
|
default:
|
|
43626
43646
|
return;
|
|
43627
43647
|
}
|
|
@@ -43654,10 +43674,10 @@ class Group extends BaseItem {
|
|
|
43654
43674
|
for (const child of children) {
|
|
43655
43675
|
const childLocalMbr = child.getMbr();
|
|
43656
43676
|
const corners = [
|
|
43657
|
-
|
|
43658
|
-
|
|
43659
|
-
|
|
43660
|
-
|
|
43677
|
+
new Point(childLocalMbr.left, childLocalMbr.top),
|
|
43678
|
+
new Point(childLocalMbr.right, childLocalMbr.top),
|
|
43679
|
+
new Point(childLocalMbr.right, childLocalMbr.bottom),
|
|
43680
|
+
new Point(childLocalMbr.left, childLocalMbr.bottom)
|
|
43661
43681
|
];
|
|
43662
43682
|
for (const corner of corners) {
|
|
43663
43683
|
groupWorldMatrix.apply(corner);
|
package/dist/cjs/node.js
CHANGED
|
@@ -22072,7 +22072,7 @@ class GroupCommand {
|
|
|
22072
22072
|
const operation = {
|
|
22073
22073
|
...this.operation,
|
|
22074
22074
|
method: "removeChild",
|
|
22075
|
-
childId:
|
|
22075
|
+
childId: this.operation.childId
|
|
22076
22076
|
};
|
|
22077
22077
|
return {
|
|
22078
22078
|
item: group2,
|
|
@@ -22086,7 +22086,33 @@ class GroupCommand {
|
|
|
22086
22086
|
const operation = {
|
|
22087
22087
|
...this.operation,
|
|
22088
22088
|
method: "addChild",
|
|
22089
|
-
childId:
|
|
22089
|
+
childId: this.operation.childId
|
|
22090
|
+
};
|
|
22091
|
+
return {
|
|
22092
|
+
item: group2,
|
|
22093
|
+
operation
|
|
22094
|
+
};
|
|
22095
|
+
});
|
|
22096
|
+
}
|
|
22097
|
+
case "addChildren": {
|
|
22098
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
22099
|
+
return groups.map((group2) => {
|
|
22100
|
+
const operation = {
|
|
22101
|
+
...this.operation,
|
|
22102
|
+
method: "removeChildren"
|
|
22103
|
+
};
|
|
22104
|
+
return {
|
|
22105
|
+
item: group2,
|
|
22106
|
+
operation
|
|
22107
|
+
};
|
|
22108
|
+
});
|
|
22109
|
+
}
|
|
22110
|
+
case "removeChildren": {
|
|
22111
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
22112
|
+
return groups.map((group2) => {
|
|
22113
|
+
const operation = {
|
|
22114
|
+
...this.operation,
|
|
22115
|
+
method: "addChildren"
|
|
22090
22116
|
};
|
|
22091
22117
|
return {
|
|
22092
22118
|
item: group2,
|
|
@@ -46080,21 +46106,15 @@ class Group extends BaseItem {
|
|
|
46080
46106
|
return null;
|
|
46081
46107
|
}
|
|
46082
46108
|
apply(op) {
|
|
46109
|
+
super.apply(op);
|
|
46083
46110
|
switch (op.class) {
|
|
46084
46111
|
case "Group":
|
|
46085
46112
|
if (op.method === "addChild") {
|
|
46086
46113
|
this.applyAddChildren([op.childId]);
|
|
46087
46114
|
} else if (op.method === "removeChild") {
|
|
46088
46115
|
this.applyRemoveChildren([op.childId]);
|
|
46089
|
-
} else if (op.method === "addChildren") {
|
|
46090
|
-
this.applyAddChildren(op.newData.childIds);
|
|
46091
|
-
} else if (op.method === "removeChildren") {
|
|
46092
|
-
this.applyRemoveChildren(op.newData.childIds);
|
|
46093
46116
|
}
|
|
46094
46117
|
break;
|
|
46095
|
-
case "Transformation":
|
|
46096
|
-
super.apply(op);
|
|
46097
|
-
break;
|
|
46098
46118
|
default:
|
|
46099
46119
|
return;
|
|
46100
46120
|
}
|
|
@@ -46127,10 +46147,10 @@ class Group extends BaseItem {
|
|
|
46127
46147
|
for (const child of children) {
|
|
46128
46148
|
const childLocalMbr = child.getMbr();
|
|
46129
46149
|
const corners = [
|
|
46130
|
-
|
|
46131
|
-
|
|
46132
|
-
|
|
46133
|
-
|
|
46150
|
+
new Point(childLocalMbr.left, childLocalMbr.top),
|
|
46151
|
+
new Point(childLocalMbr.right, childLocalMbr.top),
|
|
46152
|
+
new Point(childLocalMbr.right, childLocalMbr.bottom),
|
|
46153
|
+
new Point(childLocalMbr.left, childLocalMbr.bottom)
|
|
46134
46154
|
];
|
|
46135
46155
|
for (const corner of corners) {
|
|
46136
46156
|
groupWorldMatrix.apply(corner);
|
package/dist/esm/browser.js
CHANGED
|
@@ -19362,7 +19362,7 @@ class GroupCommand {
|
|
|
19362
19362
|
const operation = {
|
|
19363
19363
|
...this.operation,
|
|
19364
19364
|
method: "removeChild",
|
|
19365
|
-
childId:
|
|
19365
|
+
childId: this.operation.childId
|
|
19366
19366
|
};
|
|
19367
19367
|
return {
|
|
19368
19368
|
item: group2,
|
|
@@ -19376,7 +19376,33 @@ class GroupCommand {
|
|
|
19376
19376
|
const operation = {
|
|
19377
19377
|
...this.operation,
|
|
19378
19378
|
method: "addChild",
|
|
19379
|
-
childId:
|
|
19379
|
+
childId: this.operation.childId
|
|
19380
|
+
};
|
|
19381
|
+
return {
|
|
19382
|
+
item: group2,
|
|
19383
|
+
operation
|
|
19384
|
+
};
|
|
19385
|
+
});
|
|
19386
|
+
}
|
|
19387
|
+
case "addChildren": {
|
|
19388
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19389
|
+
return groups.map((group2) => {
|
|
19390
|
+
const operation = {
|
|
19391
|
+
...this.operation,
|
|
19392
|
+
method: "removeChildren"
|
|
19393
|
+
};
|
|
19394
|
+
return {
|
|
19395
|
+
item: group2,
|
|
19396
|
+
operation
|
|
19397
|
+
};
|
|
19398
|
+
});
|
|
19399
|
+
}
|
|
19400
|
+
case "removeChildren": {
|
|
19401
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19402
|
+
return groups.map((group2) => {
|
|
19403
|
+
const operation = {
|
|
19404
|
+
...this.operation,
|
|
19405
|
+
method: "addChildren"
|
|
19380
19406
|
};
|
|
19381
19407
|
return {
|
|
19382
19408
|
item: group2,
|
|
@@ -43436,21 +43462,15 @@ class Group extends BaseItem {
|
|
|
43436
43462
|
return null;
|
|
43437
43463
|
}
|
|
43438
43464
|
apply(op) {
|
|
43465
|
+
super.apply(op);
|
|
43439
43466
|
switch (op.class) {
|
|
43440
43467
|
case "Group":
|
|
43441
43468
|
if (op.method === "addChild") {
|
|
43442
43469
|
this.applyAddChildren([op.childId]);
|
|
43443
43470
|
} else if (op.method === "removeChild") {
|
|
43444
43471
|
this.applyRemoveChildren([op.childId]);
|
|
43445
|
-
} else if (op.method === "addChildren") {
|
|
43446
|
-
this.applyAddChildren(op.newData.childIds);
|
|
43447
|
-
} else if (op.method === "removeChildren") {
|
|
43448
|
-
this.applyRemoveChildren(op.newData.childIds);
|
|
43449
43472
|
}
|
|
43450
43473
|
break;
|
|
43451
|
-
case "Transformation":
|
|
43452
|
-
super.apply(op);
|
|
43453
|
-
break;
|
|
43454
43474
|
default:
|
|
43455
43475
|
return;
|
|
43456
43476
|
}
|
|
@@ -43483,10 +43503,10 @@ class Group extends BaseItem {
|
|
|
43483
43503
|
for (const child of children) {
|
|
43484
43504
|
const childLocalMbr = child.getMbr();
|
|
43485
43505
|
const corners = [
|
|
43486
|
-
|
|
43487
|
-
|
|
43488
|
-
|
|
43489
|
-
|
|
43506
|
+
new Point(childLocalMbr.left, childLocalMbr.top),
|
|
43507
|
+
new Point(childLocalMbr.right, childLocalMbr.top),
|
|
43508
|
+
new Point(childLocalMbr.right, childLocalMbr.bottom),
|
|
43509
|
+
new Point(childLocalMbr.left, childLocalMbr.bottom)
|
|
43490
43510
|
];
|
|
43491
43511
|
for (const corner of corners) {
|
|
43492
43512
|
groupWorldMatrix.apply(corner);
|
package/dist/esm/index.js
CHANGED
|
@@ -19355,7 +19355,7 @@ class GroupCommand {
|
|
|
19355
19355
|
const operation = {
|
|
19356
19356
|
...this.operation,
|
|
19357
19357
|
method: "removeChild",
|
|
19358
|
-
childId:
|
|
19358
|
+
childId: this.operation.childId
|
|
19359
19359
|
};
|
|
19360
19360
|
return {
|
|
19361
19361
|
item: group2,
|
|
@@ -19369,7 +19369,33 @@ class GroupCommand {
|
|
|
19369
19369
|
const operation = {
|
|
19370
19370
|
...this.operation,
|
|
19371
19371
|
method: "addChild",
|
|
19372
|
-
childId:
|
|
19372
|
+
childId: this.operation.childId
|
|
19373
|
+
};
|
|
19374
|
+
return {
|
|
19375
|
+
item: group2,
|
|
19376
|
+
operation
|
|
19377
|
+
};
|
|
19378
|
+
});
|
|
19379
|
+
}
|
|
19380
|
+
case "addChildren": {
|
|
19381
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19382
|
+
return groups.map((group2) => {
|
|
19383
|
+
const operation = {
|
|
19384
|
+
...this.operation,
|
|
19385
|
+
method: "removeChildren"
|
|
19386
|
+
};
|
|
19387
|
+
return {
|
|
19388
|
+
item: group2,
|
|
19389
|
+
operation
|
|
19390
|
+
};
|
|
19391
|
+
});
|
|
19392
|
+
}
|
|
19393
|
+
case "removeChildren": {
|
|
19394
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
19395
|
+
return groups.map((group2) => {
|
|
19396
|
+
const operation = {
|
|
19397
|
+
...this.operation,
|
|
19398
|
+
method: "addChildren"
|
|
19373
19399
|
};
|
|
19374
19400
|
return {
|
|
19375
19401
|
item: group2,
|
|
@@ -43429,21 +43455,15 @@ class Group extends BaseItem {
|
|
|
43429
43455
|
return null;
|
|
43430
43456
|
}
|
|
43431
43457
|
apply(op) {
|
|
43458
|
+
super.apply(op);
|
|
43432
43459
|
switch (op.class) {
|
|
43433
43460
|
case "Group":
|
|
43434
43461
|
if (op.method === "addChild") {
|
|
43435
43462
|
this.applyAddChildren([op.childId]);
|
|
43436
43463
|
} else if (op.method === "removeChild") {
|
|
43437
43464
|
this.applyRemoveChildren([op.childId]);
|
|
43438
|
-
} else if (op.method === "addChildren") {
|
|
43439
|
-
this.applyAddChildren(op.newData.childIds);
|
|
43440
|
-
} else if (op.method === "removeChildren") {
|
|
43441
|
-
this.applyRemoveChildren(op.newData.childIds);
|
|
43442
43465
|
}
|
|
43443
43466
|
break;
|
|
43444
|
-
case "Transformation":
|
|
43445
|
-
super.apply(op);
|
|
43446
|
-
break;
|
|
43447
43467
|
default:
|
|
43448
43468
|
return;
|
|
43449
43469
|
}
|
|
@@ -43476,10 +43496,10 @@ class Group extends BaseItem {
|
|
|
43476
43496
|
for (const child of children) {
|
|
43477
43497
|
const childLocalMbr = child.getMbr();
|
|
43478
43498
|
const corners = [
|
|
43479
|
-
|
|
43480
|
-
|
|
43481
|
-
|
|
43482
|
-
|
|
43499
|
+
new Point(childLocalMbr.left, childLocalMbr.top),
|
|
43500
|
+
new Point(childLocalMbr.right, childLocalMbr.top),
|
|
43501
|
+
new Point(childLocalMbr.right, childLocalMbr.bottom),
|
|
43502
|
+
new Point(childLocalMbr.left, childLocalMbr.bottom)
|
|
43483
43503
|
];
|
|
43484
43504
|
for (const corner of corners) {
|
|
43485
43505
|
groupWorldMatrix.apply(corner);
|
package/dist/esm/node.js
CHANGED
|
@@ -21889,7 +21889,7 @@ class GroupCommand {
|
|
|
21889
21889
|
const operation = {
|
|
21890
21890
|
...this.operation,
|
|
21891
21891
|
method: "removeChild",
|
|
21892
|
-
childId:
|
|
21892
|
+
childId: this.operation.childId
|
|
21893
21893
|
};
|
|
21894
21894
|
return {
|
|
21895
21895
|
item: group2,
|
|
@@ -21903,7 +21903,33 @@ class GroupCommand {
|
|
|
21903
21903
|
const operation = {
|
|
21904
21904
|
...this.operation,
|
|
21905
21905
|
method: "addChild",
|
|
21906
|
-
childId:
|
|
21906
|
+
childId: this.operation.childId
|
|
21907
|
+
};
|
|
21908
|
+
return {
|
|
21909
|
+
item: group2,
|
|
21910
|
+
operation
|
|
21911
|
+
};
|
|
21912
|
+
});
|
|
21913
|
+
}
|
|
21914
|
+
case "addChildren": {
|
|
21915
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
21916
|
+
return groups.map((group2) => {
|
|
21917
|
+
const operation = {
|
|
21918
|
+
...this.operation,
|
|
21919
|
+
method: "removeChildren"
|
|
21920
|
+
};
|
|
21921
|
+
return {
|
|
21922
|
+
item: group2,
|
|
21923
|
+
operation
|
|
21924
|
+
};
|
|
21925
|
+
});
|
|
21926
|
+
}
|
|
21927
|
+
case "removeChildren": {
|
|
21928
|
+
const groups = Array.isArray(group) ? group : [group];
|
|
21929
|
+
return groups.map((group2) => {
|
|
21930
|
+
const operation = {
|
|
21931
|
+
...this.operation,
|
|
21932
|
+
method: "addChildren"
|
|
21907
21933
|
};
|
|
21908
21934
|
return {
|
|
21909
21935
|
item: group2,
|
|
@@ -45897,21 +45923,15 @@ class Group extends BaseItem {
|
|
|
45897
45923
|
return null;
|
|
45898
45924
|
}
|
|
45899
45925
|
apply(op) {
|
|
45926
|
+
super.apply(op);
|
|
45900
45927
|
switch (op.class) {
|
|
45901
45928
|
case "Group":
|
|
45902
45929
|
if (op.method === "addChild") {
|
|
45903
45930
|
this.applyAddChildren([op.childId]);
|
|
45904
45931
|
} else if (op.method === "removeChild") {
|
|
45905
45932
|
this.applyRemoveChildren([op.childId]);
|
|
45906
|
-
} else if (op.method === "addChildren") {
|
|
45907
|
-
this.applyAddChildren(op.newData.childIds);
|
|
45908
|
-
} else if (op.method === "removeChildren") {
|
|
45909
|
-
this.applyRemoveChildren(op.newData.childIds);
|
|
45910
45933
|
}
|
|
45911
45934
|
break;
|
|
45912
|
-
case "Transformation":
|
|
45913
|
-
super.apply(op);
|
|
45914
|
-
break;
|
|
45915
45935
|
default:
|
|
45916
45936
|
return;
|
|
45917
45937
|
}
|
|
@@ -45944,10 +45964,10 @@ class Group extends BaseItem {
|
|
|
45944
45964
|
for (const child of children) {
|
|
45945
45965
|
const childLocalMbr = child.getMbr();
|
|
45946
45966
|
const corners = [
|
|
45947
|
-
|
|
45948
|
-
|
|
45949
|
-
|
|
45950
|
-
|
|
45967
|
+
new Point(childLocalMbr.left, childLocalMbr.top),
|
|
45968
|
+
new Point(childLocalMbr.right, childLocalMbr.top),
|
|
45969
|
+
new Point(childLocalMbr.right, childLocalMbr.bottom),
|
|
45970
|
+
new Point(childLocalMbr.left, childLocalMbr.bottom)
|
|
45951
45971
|
];
|
|
45952
45972
|
for (const corner of corners) {
|
|
45953
45973
|
groupWorldMatrix.apply(corner);
|
|
@@ -10,5 +10,21 @@ interface RemoveChild {
|
|
|
10
10
|
item: string[];
|
|
11
11
|
childId: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface AddChildren {
|
|
14
|
+
class: "Group";
|
|
15
|
+
method: "addChildren";
|
|
16
|
+
item: string[];
|
|
17
|
+
newData: {
|
|
18
|
+
childIds: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface RemoveChildren {
|
|
22
|
+
class: "Group";
|
|
23
|
+
method: "removeChildren";
|
|
24
|
+
item: string[];
|
|
25
|
+
newData: {
|
|
26
|
+
childIds: string[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export type GroupOperation = AddChild | RemoveChild | AddChildren | RemoveChildren;
|
|
14
30
|
export {};
|