microboard-temp 0.13.70 → 0.13.71
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 +0 -20
- package/dist/cjs/index.js +0 -20
- package/dist/cjs/node.js +0 -20
- package/dist/esm/browser.js +0 -20
- package/dist/esm/index.js +0 -20
- package/dist/esm/node.js +0 -20
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -61939,14 +61939,6 @@ class Board {
|
|
|
61939
61939
|
}
|
|
61940
61940
|
}
|
|
61941
61941
|
}
|
|
61942
|
-
console.log("[paste] childItemIds:", [...childItemIds]);
|
|
61943
|
-
console.log("[paste] items in map:", Object.entries(itemsMap).map(([id, d]) => ({
|
|
61944
|
-
id,
|
|
61945
|
-
type: d.itemType,
|
|
61946
|
-
tx: d.transformation?.translateX,
|
|
61947
|
-
ty: d.transformation?.translateY,
|
|
61948
|
-
isChild: childItemIds.has(id)
|
|
61949
|
-
})));
|
|
61950
61942
|
let minX = Infinity;
|
|
61951
61943
|
let minY = Infinity;
|
|
61952
61944
|
for (const itemId in itemsMap) {
|
|
@@ -61971,7 +61963,6 @@ class Board {
|
|
|
61971
61963
|
minY = 0;
|
|
61972
61964
|
}
|
|
61973
61965
|
const { x, y } = this.pointer.point;
|
|
61974
|
-
console.log("[paste] minX:", minX, "minY:", minY, "pointer:", x, y);
|
|
61975
61966
|
const originalTranslations = new Map;
|
|
61976
61967
|
for (const itemId in itemsMap) {
|
|
61977
61968
|
const t3 = itemsMap[itemId].transformation;
|
|
@@ -62010,7 +62001,6 @@ class Board {
|
|
|
62010
62001
|
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
62011
62002
|
const newTx = translateX - minX + x;
|
|
62012
62003
|
const newTy = translateY - minY + y;
|
|
62013
|
-
console.log(`[paste] ${itemData.itemType} ${itemId}: (${translateX},${translateY}) → (${newTx},${newTy})`);
|
|
62014
62004
|
itemData.transformation.translateX = newTx;
|
|
62015
62005
|
itemData.transformation.translateY = newTy;
|
|
62016
62006
|
const d = itemData;
|
|
@@ -62031,7 +62021,6 @@ class Board {
|
|
|
62031
62021
|
const parentNewTy = parentOrigTy - minY + y;
|
|
62032
62022
|
const newChildTx = parentNewTx + translateX;
|
|
62033
62023
|
const newChildTy = parentNewTy + translateY;
|
|
62034
|
-
console.log(`[paste] child ${itemData.itemType} ${itemId}: local=(${translateX},${translateY}) parentNew=(${parentNewTx},${parentNewTy}) → world=(${newChildTx},${newChildTy})`);
|
|
62035
62024
|
if (itemData.transformation) {
|
|
62036
62025
|
itemData.transformation.translateX = newChildTx;
|
|
62037
62026
|
itemData.transformation.translateY = newChildTy;
|
|
@@ -62065,16 +62054,7 @@ class Board {
|
|
|
62065
62054
|
select: select2
|
|
62066
62055
|
});
|
|
62067
62056
|
const items = Object.keys(newMap).map((id) => this.items.getById(id)).filter((item) => typeof item !== "undefined");
|
|
62068
|
-
for (const item of items) {
|
|
62069
|
-
const mbr = item.getMbr();
|
|
62070
|
-
const pos = item.transformation.getTranslation();
|
|
62071
|
-
console.log(`[nest-pre] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) mbr=(${mbr.left.toFixed(0)},${mbr.top.toFixed(0)},${mbr.right.toFixed(0)},${mbr.bottom.toFixed(0)}) parent=${item.parent}`);
|
|
62072
|
-
}
|
|
62073
62057
|
this.handleNesting(items);
|
|
62074
|
-
for (const item of items) {
|
|
62075
|
-
const pos = item.transformation.getTranslation();
|
|
62076
|
-
console.log(`[nest-post] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) parent=${item.parent}`);
|
|
62077
|
-
}
|
|
62078
62058
|
this.selection.removeAll();
|
|
62079
62059
|
this.selection.add(items);
|
|
62080
62060
|
this.selection.setContext("EditUnderPointer");
|
package/dist/cjs/index.js
CHANGED
|
@@ -61939,14 +61939,6 @@ class Board {
|
|
|
61939
61939
|
}
|
|
61940
61940
|
}
|
|
61941
61941
|
}
|
|
61942
|
-
console.log("[paste] childItemIds:", [...childItemIds]);
|
|
61943
|
-
console.log("[paste] items in map:", Object.entries(itemsMap).map(([id, d]) => ({
|
|
61944
|
-
id,
|
|
61945
|
-
type: d.itemType,
|
|
61946
|
-
tx: d.transformation?.translateX,
|
|
61947
|
-
ty: d.transformation?.translateY,
|
|
61948
|
-
isChild: childItemIds.has(id)
|
|
61949
|
-
})));
|
|
61950
61942
|
let minX = Infinity;
|
|
61951
61943
|
let minY = Infinity;
|
|
61952
61944
|
for (const itemId in itemsMap) {
|
|
@@ -61971,7 +61963,6 @@ class Board {
|
|
|
61971
61963
|
minY = 0;
|
|
61972
61964
|
}
|
|
61973
61965
|
const { x, y } = this.pointer.point;
|
|
61974
|
-
console.log("[paste] minX:", minX, "minY:", minY, "pointer:", x, y);
|
|
61975
61966
|
const originalTranslations = new Map;
|
|
61976
61967
|
for (const itemId in itemsMap) {
|
|
61977
61968
|
const t3 = itemsMap[itemId].transformation;
|
|
@@ -62010,7 +62001,6 @@ class Board {
|
|
|
62010
62001
|
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
62011
62002
|
const newTx = translateX - minX + x;
|
|
62012
62003
|
const newTy = translateY - minY + y;
|
|
62013
|
-
console.log(`[paste] ${itemData.itemType} ${itemId}: (${translateX},${translateY}) → (${newTx},${newTy})`);
|
|
62014
62004
|
itemData.transformation.translateX = newTx;
|
|
62015
62005
|
itemData.transformation.translateY = newTy;
|
|
62016
62006
|
const d = itemData;
|
|
@@ -62031,7 +62021,6 @@ class Board {
|
|
|
62031
62021
|
const parentNewTy = parentOrigTy - minY + y;
|
|
62032
62022
|
const newChildTx = parentNewTx + translateX;
|
|
62033
62023
|
const newChildTy = parentNewTy + translateY;
|
|
62034
|
-
console.log(`[paste] child ${itemData.itemType} ${itemId}: local=(${translateX},${translateY}) parentNew=(${parentNewTx},${parentNewTy}) → world=(${newChildTx},${newChildTy})`);
|
|
62035
62024
|
if (itemData.transformation) {
|
|
62036
62025
|
itemData.transformation.translateX = newChildTx;
|
|
62037
62026
|
itemData.transformation.translateY = newChildTy;
|
|
@@ -62065,16 +62054,7 @@ class Board {
|
|
|
62065
62054
|
select: select2
|
|
62066
62055
|
});
|
|
62067
62056
|
const items = Object.keys(newMap).map((id) => this.items.getById(id)).filter((item) => typeof item !== "undefined");
|
|
62068
|
-
for (const item of items) {
|
|
62069
|
-
const mbr = item.getMbr();
|
|
62070
|
-
const pos = item.transformation.getTranslation();
|
|
62071
|
-
console.log(`[nest-pre] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) mbr=(${mbr.left.toFixed(0)},${mbr.top.toFixed(0)},${mbr.right.toFixed(0)},${mbr.bottom.toFixed(0)}) parent=${item.parent}`);
|
|
62072
|
-
}
|
|
62073
62057
|
this.handleNesting(items);
|
|
62074
|
-
for (const item of items) {
|
|
62075
|
-
const pos = item.transformation.getTranslation();
|
|
62076
|
-
console.log(`[nest-post] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) parent=${item.parent}`);
|
|
62077
|
-
}
|
|
62078
62058
|
this.selection.removeAll();
|
|
62079
62059
|
this.selection.add(items);
|
|
62080
62060
|
this.selection.setContext("EditUnderPointer");
|
package/dist/cjs/node.js
CHANGED
|
@@ -64414,14 +64414,6 @@ class Board {
|
|
|
64414
64414
|
}
|
|
64415
64415
|
}
|
|
64416
64416
|
}
|
|
64417
|
-
console.log("[paste] childItemIds:", [...childItemIds]);
|
|
64418
|
-
console.log("[paste] items in map:", Object.entries(itemsMap).map(([id, d]) => ({
|
|
64419
|
-
id,
|
|
64420
|
-
type: d.itemType,
|
|
64421
|
-
tx: d.transformation?.translateX,
|
|
64422
|
-
ty: d.transformation?.translateY,
|
|
64423
|
-
isChild: childItemIds.has(id)
|
|
64424
|
-
})));
|
|
64425
64417
|
let minX = Infinity;
|
|
64426
64418
|
let minY = Infinity;
|
|
64427
64419
|
for (const itemId in itemsMap) {
|
|
@@ -64446,7 +64438,6 @@ class Board {
|
|
|
64446
64438
|
minY = 0;
|
|
64447
64439
|
}
|
|
64448
64440
|
const { x, y } = this.pointer.point;
|
|
64449
|
-
console.log("[paste] minX:", minX, "minY:", minY, "pointer:", x, y);
|
|
64450
64441
|
const originalTranslations = new Map;
|
|
64451
64442
|
for (const itemId in itemsMap) {
|
|
64452
64443
|
const t3 = itemsMap[itemId].transformation;
|
|
@@ -64485,7 +64476,6 @@ class Board {
|
|
|
64485
64476
|
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
64486
64477
|
const newTx = translateX - minX + x;
|
|
64487
64478
|
const newTy = translateY - minY + y;
|
|
64488
|
-
console.log(`[paste] ${itemData.itemType} ${itemId}: (${translateX},${translateY}) → (${newTx},${newTy})`);
|
|
64489
64479
|
itemData.transformation.translateX = newTx;
|
|
64490
64480
|
itemData.transformation.translateY = newTy;
|
|
64491
64481
|
const d = itemData;
|
|
@@ -64506,7 +64496,6 @@ class Board {
|
|
|
64506
64496
|
const parentNewTy = parentOrigTy - minY + y;
|
|
64507
64497
|
const newChildTx = parentNewTx + translateX;
|
|
64508
64498
|
const newChildTy = parentNewTy + translateY;
|
|
64509
|
-
console.log(`[paste] child ${itemData.itemType} ${itemId}: local=(${translateX},${translateY}) parentNew=(${parentNewTx},${parentNewTy}) → world=(${newChildTx},${newChildTy})`);
|
|
64510
64499
|
if (itemData.transformation) {
|
|
64511
64500
|
itemData.transformation.translateX = newChildTx;
|
|
64512
64501
|
itemData.transformation.translateY = newChildTy;
|
|
@@ -64540,16 +64529,7 @@ class Board {
|
|
|
64540
64529
|
select: select2
|
|
64541
64530
|
});
|
|
64542
64531
|
const items = Object.keys(newMap).map((id) => this.items.getById(id)).filter((item) => typeof item !== "undefined");
|
|
64543
|
-
for (const item of items) {
|
|
64544
|
-
const mbr = item.getMbr();
|
|
64545
|
-
const pos = item.transformation.getTranslation();
|
|
64546
|
-
console.log(`[nest-pre] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) mbr=(${mbr.left.toFixed(0)},${mbr.top.toFixed(0)},${mbr.right.toFixed(0)},${mbr.bottom.toFixed(0)}) parent=${item.parent}`);
|
|
64547
|
-
}
|
|
64548
64532
|
this.handleNesting(items);
|
|
64549
|
-
for (const item of items) {
|
|
64550
|
-
const pos = item.transformation.getTranslation();
|
|
64551
|
-
console.log(`[nest-post] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) parent=${item.parent}`);
|
|
64552
|
-
}
|
|
64553
64533
|
this.selection.removeAll();
|
|
64554
64534
|
this.selection.add(items);
|
|
64555
64535
|
this.selection.setContext("EditUnderPointer");
|
package/dist/esm/browser.js
CHANGED
|
@@ -61682,14 +61682,6 @@ class Board {
|
|
|
61682
61682
|
}
|
|
61683
61683
|
}
|
|
61684
61684
|
}
|
|
61685
|
-
console.log("[paste] childItemIds:", [...childItemIds]);
|
|
61686
|
-
console.log("[paste] items in map:", Object.entries(itemsMap).map(([id, d]) => ({
|
|
61687
|
-
id,
|
|
61688
|
-
type: d.itemType,
|
|
61689
|
-
tx: d.transformation?.translateX,
|
|
61690
|
-
ty: d.transformation?.translateY,
|
|
61691
|
-
isChild: childItemIds.has(id)
|
|
61692
|
-
})));
|
|
61693
61685
|
let minX = Infinity;
|
|
61694
61686
|
let minY = Infinity;
|
|
61695
61687
|
for (const itemId in itemsMap) {
|
|
@@ -61714,7 +61706,6 @@ class Board {
|
|
|
61714
61706
|
minY = 0;
|
|
61715
61707
|
}
|
|
61716
61708
|
const { x, y } = this.pointer.point;
|
|
61717
|
-
console.log("[paste] minX:", minX, "minY:", minY, "pointer:", x, y);
|
|
61718
61709
|
const originalTranslations = new Map;
|
|
61719
61710
|
for (const itemId in itemsMap) {
|
|
61720
61711
|
const t3 = itemsMap[itemId].transformation;
|
|
@@ -61753,7 +61744,6 @@ class Board {
|
|
|
61753
61744
|
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
61754
61745
|
const newTx = translateX - minX + x;
|
|
61755
61746
|
const newTy = translateY - minY + y;
|
|
61756
|
-
console.log(`[paste] ${itemData.itemType} ${itemId}: (${translateX},${translateY}) → (${newTx},${newTy})`);
|
|
61757
61747
|
itemData.transformation.translateX = newTx;
|
|
61758
61748
|
itemData.transformation.translateY = newTy;
|
|
61759
61749
|
const d = itemData;
|
|
@@ -61774,7 +61764,6 @@ class Board {
|
|
|
61774
61764
|
const parentNewTy = parentOrigTy - minY + y;
|
|
61775
61765
|
const newChildTx = parentNewTx + translateX;
|
|
61776
61766
|
const newChildTy = parentNewTy + translateY;
|
|
61777
|
-
console.log(`[paste] child ${itemData.itemType} ${itemId}: local=(${translateX},${translateY}) parentNew=(${parentNewTx},${parentNewTy}) → world=(${newChildTx},${newChildTy})`);
|
|
61778
61767
|
if (itemData.transformation) {
|
|
61779
61768
|
itemData.transformation.translateX = newChildTx;
|
|
61780
61769
|
itemData.transformation.translateY = newChildTy;
|
|
@@ -61808,16 +61797,7 @@ class Board {
|
|
|
61808
61797
|
select: select2
|
|
61809
61798
|
});
|
|
61810
61799
|
const items = Object.keys(newMap).map((id) => this.items.getById(id)).filter((item) => typeof item !== "undefined");
|
|
61811
|
-
for (const item of items) {
|
|
61812
|
-
const mbr = item.getMbr();
|
|
61813
|
-
const pos = item.transformation.getTranslation();
|
|
61814
|
-
console.log(`[nest-pre] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) mbr=(${mbr.left.toFixed(0)},${mbr.top.toFixed(0)},${mbr.right.toFixed(0)},${mbr.bottom.toFixed(0)}) parent=${item.parent}`);
|
|
61815
|
-
}
|
|
61816
61800
|
this.handleNesting(items);
|
|
61817
|
-
for (const item of items) {
|
|
61818
|
-
const pos = item.transformation.getTranslation();
|
|
61819
|
-
console.log(`[nest-post] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) parent=${item.parent}`);
|
|
61820
|
-
}
|
|
61821
61801
|
this.selection.removeAll();
|
|
61822
61802
|
this.selection.add(items);
|
|
61823
61803
|
this.selection.setContext("EditUnderPointer");
|
package/dist/esm/index.js
CHANGED
|
@@ -61675,14 +61675,6 @@ class Board {
|
|
|
61675
61675
|
}
|
|
61676
61676
|
}
|
|
61677
61677
|
}
|
|
61678
|
-
console.log("[paste] childItemIds:", [...childItemIds]);
|
|
61679
|
-
console.log("[paste] items in map:", Object.entries(itemsMap).map(([id, d]) => ({
|
|
61680
|
-
id,
|
|
61681
|
-
type: d.itemType,
|
|
61682
|
-
tx: d.transformation?.translateX,
|
|
61683
|
-
ty: d.transformation?.translateY,
|
|
61684
|
-
isChild: childItemIds.has(id)
|
|
61685
|
-
})));
|
|
61686
61678
|
let minX = Infinity;
|
|
61687
61679
|
let minY = Infinity;
|
|
61688
61680
|
for (const itemId in itemsMap) {
|
|
@@ -61707,7 +61699,6 @@ class Board {
|
|
|
61707
61699
|
minY = 0;
|
|
61708
61700
|
}
|
|
61709
61701
|
const { x, y } = this.pointer.point;
|
|
61710
|
-
console.log("[paste] minX:", minX, "minY:", minY, "pointer:", x, y);
|
|
61711
61702
|
const originalTranslations = new Map;
|
|
61712
61703
|
for (const itemId in itemsMap) {
|
|
61713
61704
|
const t3 = itemsMap[itemId].transformation;
|
|
@@ -61746,7 +61737,6 @@ class Board {
|
|
|
61746
61737
|
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
61747
61738
|
const newTx = translateX - minX + x;
|
|
61748
61739
|
const newTy = translateY - minY + y;
|
|
61749
|
-
console.log(`[paste] ${itemData.itemType} ${itemId}: (${translateX},${translateY}) → (${newTx},${newTy})`);
|
|
61750
61740
|
itemData.transformation.translateX = newTx;
|
|
61751
61741
|
itemData.transformation.translateY = newTy;
|
|
61752
61742
|
const d = itemData;
|
|
@@ -61767,7 +61757,6 @@ class Board {
|
|
|
61767
61757
|
const parentNewTy = parentOrigTy - minY + y;
|
|
61768
61758
|
const newChildTx = parentNewTx + translateX;
|
|
61769
61759
|
const newChildTy = parentNewTy + translateY;
|
|
61770
|
-
console.log(`[paste] child ${itemData.itemType} ${itemId}: local=(${translateX},${translateY}) parentNew=(${parentNewTx},${parentNewTy}) → world=(${newChildTx},${newChildTy})`);
|
|
61771
61760
|
if (itemData.transformation) {
|
|
61772
61761
|
itemData.transformation.translateX = newChildTx;
|
|
61773
61762
|
itemData.transformation.translateY = newChildTy;
|
|
@@ -61801,16 +61790,7 @@ class Board {
|
|
|
61801
61790
|
select: select2
|
|
61802
61791
|
});
|
|
61803
61792
|
const items = Object.keys(newMap).map((id) => this.items.getById(id)).filter((item) => typeof item !== "undefined");
|
|
61804
|
-
for (const item of items) {
|
|
61805
|
-
const mbr = item.getMbr();
|
|
61806
|
-
const pos = item.transformation.getTranslation();
|
|
61807
|
-
console.log(`[nest-pre] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) mbr=(${mbr.left.toFixed(0)},${mbr.top.toFixed(0)},${mbr.right.toFixed(0)},${mbr.bottom.toFixed(0)}) parent=${item.parent}`);
|
|
61808
|
-
}
|
|
61809
61793
|
this.handleNesting(items);
|
|
61810
|
-
for (const item of items) {
|
|
61811
|
-
const pos = item.transformation.getTranslation();
|
|
61812
|
-
console.log(`[nest-post] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) parent=${item.parent}`);
|
|
61813
|
-
}
|
|
61814
61794
|
this.selection.removeAll();
|
|
61815
61795
|
this.selection.add(items);
|
|
61816
61796
|
this.selection.setContext("EditUnderPointer");
|
package/dist/esm/node.js
CHANGED
|
@@ -64139,14 +64139,6 @@ class Board {
|
|
|
64139
64139
|
}
|
|
64140
64140
|
}
|
|
64141
64141
|
}
|
|
64142
|
-
console.log("[paste] childItemIds:", [...childItemIds]);
|
|
64143
|
-
console.log("[paste] items in map:", Object.entries(itemsMap).map(([id, d]) => ({
|
|
64144
|
-
id,
|
|
64145
|
-
type: d.itemType,
|
|
64146
|
-
tx: d.transformation?.translateX,
|
|
64147
|
-
ty: d.transformation?.translateY,
|
|
64148
|
-
isChild: childItemIds.has(id)
|
|
64149
|
-
})));
|
|
64150
64142
|
let minX = Infinity;
|
|
64151
64143
|
let minY = Infinity;
|
|
64152
64144
|
for (const itemId in itemsMap) {
|
|
@@ -64171,7 +64163,6 @@ class Board {
|
|
|
64171
64163
|
minY = 0;
|
|
64172
64164
|
}
|
|
64173
64165
|
const { x, y } = this.pointer.point;
|
|
64174
|
-
console.log("[paste] minX:", minX, "minY:", minY, "pointer:", x, y);
|
|
64175
64166
|
const originalTranslations = new Map;
|
|
64176
64167
|
for (const itemId in itemsMap) {
|
|
64177
64168
|
const t3 = itemsMap[itemId].transformation;
|
|
@@ -64210,7 +64201,6 @@ class Board {
|
|
|
64210
64201
|
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
64211
64202
|
const newTx = translateX - minX + x;
|
|
64212
64203
|
const newTy = translateY - minY + y;
|
|
64213
|
-
console.log(`[paste] ${itemData.itemType} ${itemId}: (${translateX},${translateY}) → (${newTx},${newTy})`);
|
|
64214
64204
|
itemData.transformation.translateX = newTx;
|
|
64215
64205
|
itemData.transformation.translateY = newTy;
|
|
64216
64206
|
const d = itemData;
|
|
@@ -64231,7 +64221,6 @@ class Board {
|
|
|
64231
64221
|
const parentNewTy = parentOrigTy - minY + y;
|
|
64232
64222
|
const newChildTx = parentNewTx + translateX;
|
|
64233
64223
|
const newChildTy = parentNewTy + translateY;
|
|
64234
|
-
console.log(`[paste] child ${itemData.itemType} ${itemId}: local=(${translateX},${translateY}) parentNew=(${parentNewTx},${parentNewTy}) → world=(${newChildTx},${newChildTy})`);
|
|
64235
64224
|
if (itemData.transformation) {
|
|
64236
64225
|
itemData.transformation.translateX = newChildTx;
|
|
64237
64226
|
itemData.transformation.translateY = newChildTy;
|
|
@@ -64265,16 +64254,7 @@ class Board {
|
|
|
64265
64254
|
select: select2
|
|
64266
64255
|
});
|
|
64267
64256
|
const items = Object.keys(newMap).map((id) => this.items.getById(id)).filter((item) => typeof item !== "undefined");
|
|
64268
|
-
for (const item of items) {
|
|
64269
|
-
const mbr = item.getMbr();
|
|
64270
|
-
const pos = item.transformation.getTranslation();
|
|
64271
|
-
console.log(`[nest-pre] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) mbr=(${mbr.left.toFixed(0)},${mbr.top.toFixed(0)},${mbr.right.toFixed(0)},${mbr.bottom.toFixed(0)}) parent=${item.parent}`);
|
|
64272
|
-
}
|
|
64273
64257
|
this.handleNesting(items);
|
|
64274
|
-
for (const item of items) {
|
|
64275
|
-
const pos = item.transformation.getTranslation();
|
|
64276
|
-
console.log(`[nest-post] ${item.itemType} ${item.getId()}: pos=(${pos.x.toFixed(0)},${pos.y.toFixed(0)}) parent=${item.parent}`);
|
|
64277
|
-
}
|
|
64278
64258
|
this.selection.removeAll();
|
|
64279
64259
|
this.selection.add(items);
|
|
64280
64260
|
this.selection.setContext("EditUnderPointer");
|