microboard-temp 0.13.63 → 0.13.64
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 +11 -1
- package/dist/cjs/index.js +11 -1
- package/dist/cjs/node.js +11 -1
- package/dist/esm/browser.js +11 -1
- package/dist/esm/index.js +11 -1
- package/dist/esm/node.js +11 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -61928,9 +61928,19 @@ class Board {
|
|
|
61928
61928
|
}
|
|
61929
61929
|
}
|
|
61930
61930
|
const newMap = {};
|
|
61931
|
+
const childItemIds = new Set;
|
|
61932
|
+
for (const itemId in itemsMap) {
|
|
61933
|
+
const d = itemsMap[itemId];
|
|
61934
|
+
if (Array.isArray(d.childIds)) {
|
|
61935
|
+
for (const cid of d.childIds)
|
|
61936
|
+
childItemIds.add(cid);
|
|
61937
|
+
}
|
|
61938
|
+
}
|
|
61931
61939
|
let minX = Infinity;
|
|
61932
61940
|
let minY = Infinity;
|
|
61933
61941
|
for (const itemId in itemsMap) {
|
|
61942
|
+
if (childItemIds.has(itemId))
|
|
61943
|
+
continue;
|
|
61934
61944
|
const itemData = itemsMap[itemId];
|
|
61935
61945
|
const { translateX, translateY } = itemData.transformation || {
|
|
61936
61946
|
translateX: 0,
|
|
@@ -61980,7 +61990,7 @@ class Board {
|
|
|
61980
61990
|
itemData.middlePoint.x += -minX + x;
|
|
61981
61991
|
itemData.middlePoint.y += -minY + y;
|
|
61982
61992
|
}
|
|
61983
|
-
} else if (itemData.transformation) {
|
|
61993
|
+
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
61984
61994
|
itemData.transformation.translateX = translateX - minX + x;
|
|
61985
61995
|
itemData.transformation.translateY = translateY - minY + y;
|
|
61986
61996
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -61928,9 +61928,19 @@ class Board {
|
|
|
61928
61928
|
}
|
|
61929
61929
|
}
|
|
61930
61930
|
const newMap = {};
|
|
61931
|
+
const childItemIds = new Set;
|
|
61932
|
+
for (const itemId in itemsMap) {
|
|
61933
|
+
const d = itemsMap[itemId];
|
|
61934
|
+
if (Array.isArray(d.childIds)) {
|
|
61935
|
+
for (const cid of d.childIds)
|
|
61936
|
+
childItemIds.add(cid);
|
|
61937
|
+
}
|
|
61938
|
+
}
|
|
61931
61939
|
let minX = Infinity;
|
|
61932
61940
|
let minY = Infinity;
|
|
61933
61941
|
for (const itemId in itemsMap) {
|
|
61942
|
+
if (childItemIds.has(itemId))
|
|
61943
|
+
continue;
|
|
61934
61944
|
const itemData = itemsMap[itemId];
|
|
61935
61945
|
const { translateX, translateY } = itemData.transformation || {
|
|
61936
61946
|
translateX: 0,
|
|
@@ -61980,7 +61990,7 @@ class Board {
|
|
|
61980
61990
|
itemData.middlePoint.x += -minX + x;
|
|
61981
61991
|
itemData.middlePoint.y += -minY + y;
|
|
61982
61992
|
}
|
|
61983
|
-
} else if (itemData.transformation) {
|
|
61993
|
+
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
61984
61994
|
itemData.transformation.translateX = translateX - minX + x;
|
|
61985
61995
|
itemData.transformation.translateY = translateY - minY + y;
|
|
61986
61996
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -64403,9 +64403,19 @@ class Board {
|
|
|
64403
64403
|
}
|
|
64404
64404
|
}
|
|
64405
64405
|
const newMap = {};
|
|
64406
|
+
const childItemIds = new Set;
|
|
64407
|
+
for (const itemId in itemsMap) {
|
|
64408
|
+
const d = itemsMap[itemId];
|
|
64409
|
+
if (Array.isArray(d.childIds)) {
|
|
64410
|
+
for (const cid of d.childIds)
|
|
64411
|
+
childItemIds.add(cid);
|
|
64412
|
+
}
|
|
64413
|
+
}
|
|
64406
64414
|
let minX = Infinity;
|
|
64407
64415
|
let minY = Infinity;
|
|
64408
64416
|
for (const itemId in itemsMap) {
|
|
64417
|
+
if (childItemIds.has(itemId))
|
|
64418
|
+
continue;
|
|
64409
64419
|
const itemData = itemsMap[itemId];
|
|
64410
64420
|
const { translateX, translateY } = itemData.transformation || {
|
|
64411
64421
|
translateX: 0,
|
|
@@ -64455,7 +64465,7 @@ class Board {
|
|
|
64455
64465
|
itemData.middlePoint.x += -minX + x;
|
|
64456
64466
|
itemData.middlePoint.y += -minY + y;
|
|
64457
64467
|
}
|
|
64458
|
-
} else if (itemData.transformation) {
|
|
64468
|
+
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
64459
64469
|
itemData.transformation.translateX = translateX - minX + x;
|
|
64460
64470
|
itemData.transformation.translateY = translateY - minY + y;
|
|
64461
64471
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -61671,9 +61671,19 @@ class Board {
|
|
|
61671
61671
|
}
|
|
61672
61672
|
}
|
|
61673
61673
|
const newMap = {};
|
|
61674
|
+
const childItemIds = new Set;
|
|
61675
|
+
for (const itemId in itemsMap) {
|
|
61676
|
+
const d = itemsMap[itemId];
|
|
61677
|
+
if (Array.isArray(d.childIds)) {
|
|
61678
|
+
for (const cid of d.childIds)
|
|
61679
|
+
childItemIds.add(cid);
|
|
61680
|
+
}
|
|
61681
|
+
}
|
|
61674
61682
|
let minX = Infinity;
|
|
61675
61683
|
let minY = Infinity;
|
|
61676
61684
|
for (const itemId in itemsMap) {
|
|
61685
|
+
if (childItemIds.has(itemId))
|
|
61686
|
+
continue;
|
|
61677
61687
|
const itemData = itemsMap[itemId];
|
|
61678
61688
|
const { translateX, translateY } = itemData.transformation || {
|
|
61679
61689
|
translateX: 0,
|
|
@@ -61723,7 +61733,7 @@ class Board {
|
|
|
61723
61733
|
itemData.middlePoint.x += -minX + x;
|
|
61724
61734
|
itemData.middlePoint.y += -minY + y;
|
|
61725
61735
|
}
|
|
61726
|
-
} else if (itemData.transformation) {
|
|
61736
|
+
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
61727
61737
|
itemData.transformation.translateX = translateX - minX + x;
|
|
61728
61738
|
itemData.transformation.translateY = translateY - minY + y;
|
|
61729
61739
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -61664,9 +61664,19 @@ class Board {
|
|
|
61664
61664
|
}
|
|
61665
61665
|
}
|
|
61666
61666
|
const newMap = {};
|
|
61667
|
+
const childItemIds = new Set;
|
|
61668
|
+
for (const itemId in itemsMap) {
|
|
61669
|
+
const d = itemsMap[itemId];
|
|
61670
|
+
if (Array.isArray(d.childIds)) {
|
|
61671
|
+
for (const cid of d.childIds)
|
|
61672
|
+
childItemIds.add(cid);
|
|
61673
|
+
}
|
|
61674
|
+
}
|
|
61667
61675
|
let minX = Infinity;
|
|
61668
61676
|
let minY = Infinity;
|
|
61669
61677
|
for (const itemId in itemsMap) {
|
|
61678
|
+
if (childItemIds.has(itemId))
|
|
61679
|
+
continue;
|
|
61670
61680
|
const itemData = itemsMap[itemId];
|
|
61671
61681
|
const { translateX, translateY } = itemData.transformation || {
|
|
61672
61682
|
translateX: 0,
|
|
@@ -61716,7 +61726,7 @@ class Board {
|
|
|
61716
61726
|
itemData.middlePoint.x += -minX + x;
|
|
61717
61727
|
itemData.middlePoint.y += -minY + y;
|
|
61718
61728
|
}
|
|
61719
|
-
} else if (itemData.transformation) {
|
|
61729
|
+
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
61720
61730
|
itemData.transformation.translateX = translateX - minX + x;
|
|
61721
61731
|
itemData.transformation.translateY = translateY - minY + y;
|
|
61722
61732
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -64128,9 +64128,19 @@ class Board {
|
|
|
64128
64128
|
}
|
|
64129
64129
|
}
|
|
64130
64130
|
const newMap = {};
|
|
64131
|
+
const childItemIds = new Set;
|
|
64132
|
+
for (const itemId in itemsMap) {
|
|
64133
|
+
const d = itemsMap[itemId];
|
|
64134
|
+
if (Array.isArray(d.childIds)) {
|
|
64135
|
+
for (const cid of d.childIds)
|
|
64136
|
+
childItemIds.add(cid);
|
|
64137
|
+
}
|
|
64138
|
+
}
|
|
64131
64139
|
let minX = Infinity;
|
|
64132
64140
|
let minY = Infinity;
|
|
64133
64141
|
for (const itemId in itemsMap) {
|
|
64142
|
+
if (childItemIds.has(itemId))
|
|
64143
|
+
continue;
|
|
64134
64144
|
const itemData = itemsMap[itemId];
|
|
64135
64145
|
const { translateX, translateY } = itemData.transformation || {
|
|
64136
64146
|
translateX: 0,
|
|
@@ -64180,7 +64190,7 @@ class Board {
|
|
|
64180
64190
|
itemData.middlePoint.x += -minX + x;
|
|
64181
64191
|
itemData.middlePoint.y += -minY + y;
|
|
64182
64192
|
}
|
|
64183
|
-
} else if (itemData.transformation) {
|
|
64193
|
+
} else if (itemData.transformation && !childItemIds.has(itemId)) {
|
|
64184
64194
|
itemData.transformation.translateX = translateX - minX + x;
|
|
64185
64195
|
itemData.transformation.translateY = translateY - minY + y;
|
|
64186
64196
|
}
|