microboard-temp 0.4.48 → 0.4.49
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 +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node.js +1 -1
- package/dist/esm/browser.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/node.js +1 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -45587,7 +45587,7 @@ class AlignmentHelper {
|
|
|
45587
45587
|
const cameraWidth = camera.getWidth();
|
|
45588
45588
|
const scale = this.board.camera.getScale();
|
|
45589
45589
|
const dynamicAlignThreshold = Math.min(this.alignThreshold / scale, 8);
|
|
45590
|
-
const childrenIds = "index" in movingItem ? movingItem.getChildrenIds() : [];
|
|
45590
|
+
const childrenIds = "index" in movingItem && movingItem.index ? movingItem.getChildrenIds() : [];
|
|
45591
45591
|
const nearbyItems = this.canvasDrawer.getLastCreatedCanvas() ? this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (item) => !excludeItems.includes(item), Math.ceil(cameraWidth)) : this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (otherItem) => otherItem !== movingMBR && otherItem.itemType !== "Connector" && otherItem.itemType !== "Drawing" && otherItem.isInView(camera) && !childrenIds.includes(otherItem.getId()), Math.ceil(cameraWidth)).filter((item) => Array.isArray(movingItem) ? !movingItem.includes(item) : true);
|
|
45592
45592
|
const verticalAlignments = new Map;
|
|
45593
45593
|
const horizontalAlignments = new Map;
|
package/dist/cjs/index.js
CHANGED
|
@@ -45587,7 +45587,7 @@ class AlignmentHelper {
|
|
|
45587
45587
|
const cameraWidth = camera.getWidth();
|
|
45588
45588
|
const scale = this.board.camera.getScale();
|
|
45589
45589
|
const dynamicAlignThreshold = Math.min(this.alignThreshold / scale, 8);
|
|
45590
|
-
const childrenIds = "index" in movingItem ? movingItem.getChildrenIds() : [];
|
|
45590
|
+
const childrenIds = "index" in movingItem && movingItem.index ? movingItem.getChildrenIds() : [];
|
|
45591
45591
|
const nearbyItems = this.canvasDrawer.getLastCreatedCanvas() ? this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (item) => !excludeItems.includes(item), Math.ceil(cameraWidth)) : this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (otherItem) => otherItem !== movingMBR && otherItem.itemType !== "Connector" && otherItem.itemType !== "Drawing" && otherItem.isInView(camera) && !childrenIds.includes(otherItem.getId()), Math.ceil(cameraWidth)).filter((item) => Array.isArray(movingItem) ? !movingItem.includes(item) : true);
|
|
45592
45592
|
const verticalAlignments = new Map;
|
|
45593
45593
|
const horizontalAlignments = new Map;
|
package/dist/cjs/node.js
CHANGED
|
@@ -48060,7 +48060,7 @@ class AlignmentHelper {
|
|
|
48060
48060
|
const cameraWidth = camera.getWidth();
|
|
48061
48061
|
const scale = this.board.camera.getScale();
|
|
48062
48062
|
const dynamicAlignThreshold = Math.min(this.alignThreshold / scale, 8);
|
|
48063
|
-
const childrenIds = "index" in movingItem ? movingItem.getChildrenIds() : [];
|
|
48063
|
+
const childrenIds = "index" in movingItem && movingItem.index ? movingItem.getChildrenIds() : [];
|
|
48064
48064
|
const nearbyItems = this.canvasDrawer.getLastCreatedCanvas() ? this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (item) => !excludeItems.includes(item), Math.ceil(cameraWidth)) : this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (otherItem) => otherItem !== movingMBR && otherItem.itemType !== "Connector" && otherItem.itemType !== "Drawing" && otherItem.isInView(camera) && !childrenIds.includes(otherItem.getId()), Math.ceil(cameraWidth)).filter((item) => Array.isArray(movingItem) ? !movingItem.includes(item) : true);
|
|
48065
48065
|
const verticalAlignments = new Map;
|
|
48066
48066
|
const horizontalAlignments = new Map;
|
package/dist/esm/browser.js
CHANGED
|
@@ -45437,7 +45437,7 @@ class AlignmentHelper {
|
|
|
45437
45437
|
const cameraWidth = camera.getWidth();
|
|
45438
45438
|
const scale = this.board.camera.getScale();
|
|
45439
45439
|
const dynamicAlignThreshold = Math.min(this.alignThreshold / scale, 8);
|
|
45440
|
-
const childrenIds = "index" in movingItem ? movingItem.getChildrenIds() : [];
|
|
45440
|
+
const childrenIds = "index" in movingItem && movingItem.index ? movingItem.getChildrenIds() : [];
|
|
45441
45441
|
const nearbyItems = this.canvasDrawer.getLastCreatedCanvas() ? this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (item) => !excludeItems.includes(item), Math.ceil(cameraWidth)) : this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (otherItem) => otherItem !== movingMBR && otherItem.itemType !== "Connector" && otherItem.itemType !== "Drawing" && otherItem.isInView(camera) && !childrenIds.includes(otherItem.getId()), Math.ceil(cameraWidth)).filter((item) => Array.isArray(movingItem) ? !movingItem.includes(item) : true);
|
|
45442
45442
|
const verticalAlignments = new Map;
|
|
45443
45443
|
const horizontalAlignments = new Map;
|
package/dist/esm/index.js
CHANGED
|
@@ -45430,7 +45430,7 @@ class AlignmentHelper {
|
|
|
45430
45430
|
const cameraWidth = camera.getWidth();
|
|
45431
45431
|
const scale = this.board.camera.getScale();
|
|
45432
45432
|
const dynamicAlignThreshold = Math.min(this.alignThreshold / scale, 8);
|
|
45433
|
-
const childrenIds = "index" in movingItem ? movingItem.getChildrenIds() : [];
|
|
45433
|
+
const childrenIds = "index" in movingItem && movingItem.index ? movingItem.getChildrenIds() : [];
|
|
45434
45434
|
const nearbyItems = this.canvasDrawer.getLastCreatedCanvas() ? this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (item) => !excludeItems.includes(item), Math.ceil(cameraWidth)) : this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (otherItem) => otherItem !== movingMBR && otherItem.itemType !== "Connector" && otherItem.itemType !== "Drawing" && otherItem.isInView(camera) && !childrenIds.includes(otherItem.getId()), Math.ceil(cameraWidth)).filter((item) => Array.isArray(movingItem) ? !movingItem.includes(item) : true);
|
|
45435
45435
|
const verticalAlignments = new Map;
|
|
45436
45436
|
const horizontalAlignments = new Map;
|
package/dist/esm/node.js
CHANGED
|
@@ -47898,7 +47898,7 @@ class AlignmentHelper {
|
|
|
47898
47898
|
const cameraWidth = camera.getWidth();
|
|
47899
47899
|
const scale = this.board.camera.getScale();
|
|
47900
47900
|
const dynamicAlignThreshold = Math.min(this.alignThreshold / scale, 8);
|
|
47901
|
-
const childrenIds = "index" in movingItem ? movingItem.getChildrenIds() : [];
|
|
47901
|
+
const childrenIds = "index" in movingItem && movingItem.index ? movingItem.getChildrenIds() : [];
|
|
47902
47902
|
const nearbyItems = this.canvasDrawer.getLastCreatedCanvas() ? this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (item) => !excludeItems.includes(item), Math.ceil(cameraWidth)) : this.spatialIndex.getNearestTo(movingMBR.getCenter(), 20, (otherItem) => otherItem !== movingMBR && otherItem.itemType !== "Connector" && otherItem.itemType !== "Drawing" && otherItem.isInView(camera) && !childrenIds.includes(otherItem.getId()), Math.ceil(cameraWidth)).filter((item) => Array.isArray(movingItem) ? !movingItem.includes(item) : true);
|
|
47903
47903
|
const verticalAlignments = new Map;
|
|
47904
47904
|
const horizontalAlignments = new Map;
|