microboard-temp 0.13.48 → 0.13.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 +4 -15
- package/dist/cjs/index.js +4 -15
- package/dist/cjs/node.js +4 -15
- package/dist/esm/browser.js +4 -15
- package/dist/esm/index.js +4 -15
- package/dist/esm/node.js +4 -15
- package/dist/types/ForceGraph/ForceGraphEngine.d.ts +3 -2
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -3956,8 +3956,8 @@ var init_Settings = __esm(() => {
|
|
|
3956
3956
|
MAX_CARD_SIZE: 500,
|
|
3957
3957
|
CONNECTOR_ITEM_OFFSET: 20,
|
|
3958
3958
|
FG_SPRING_K: 0.2,
|
|
3959
|
-
FG_TARGET_GAP:
|
|
3960
|
-
FG_REPULSION:
|
|
3959
|
+
FG_TARGET_GAP: 50,
|
|
3960
|
+
FG_REPULSION: 100,
|
|
3961
3961
|
FG_MIN_DIST_SQ: 100,
|
|
3962
3962
|
FG_DAMPING: 0.6,
|
|
3963
3963
|
FG_SLEEP_THRESHOLD: 0.5,
|
|
@@ -60821,19 +60821,8 @@ class ForceGraphEngine {
|
|
|
60821
60821
|
}
|
|
60822
60822
|
return visited;
|
|
60823
60823
|
}
|
|
60824
|
-
calibrateTargetGap(
|
|
60825
|
-
|
|
60826
|
-
let count = 0;
|
|
60827
|
-
for (const id of nodeIds) {
|
|
60828
|
-
const item = this.board.items.getById(id);
|
|
60829
|
-
if (!item)
|
|
60830
|
-
continue;
|
|
60831
|
-
const mbr = item.getMbr();
|
|
60832
|
-
totalMaxDim += Math.max(mbr.getWidth(), mbr.getHeight());
|
|
60833
|
-
count++;
|
|
60834
|
-
}
|
|
60835
|
-
const avgMaxDim = count > 0 ? totalMaxDim / count : 100;
|
|
60836
|
-
return avgMaxDim * 1.5;
|
|
60824
|
+
calibrateTargetGap(_nodeIds) {
|
|
60825
|
+
return conf.FG_TARGET_GAP;
|
|
60837
60826
|
}
|
|
60838
60827
|
getActiveNodeIds() {
|
|
60839
60828
|
const all6 = new Set;
|
package/dist/cjs/index.js
CHANGED
|
@@ -3956,8 +3956,8 @@ var init_Settings = __esm(() => {
|
|
|
3956
3956
|
MAX_CARD_SIZE: 500,
|
|
3957
3957
|
CONNECTOR_ITEM_OFFSET: 20,
|
|
3958
3958
|
FG_SPRING_K: 0.2,
|
|
3959
|
-
FG_TARGET_GAP:
|
|
3960
|
-
FG_REPULSION:
|
|
3959
|
+
FG_TARGET_GAP: 50,
|
|
3960
|
+
FG_REPULSION: 100,
|
|
3961
3961
|
FG_MIN_DIST_SQ: 100,
|
|
3962
3962
|
FG_DAMPING: 0.6,
|
|
3963
3963
|
FG_SLEEP_THRESHOLD: 0.5,
|
|
@@ -60821,19 +60821,8 @@ class ForceGraphEngine {
|
|
|
60821
60821
|
}
|
|
60822
60822
|
return visited;
|
|
60823
60823
|
}
|
|
60824
|
-
calibrateTargetGap(
|
|
60825
|
-
|
|
60826
|
-
let count = 0;
|
|
60827
|
-
for (const id of nodeIds) {
|
|
60828
|
-
const item = this.board.items.getById(id);
|
|
60829
|
-
if (!item)
|
|
60830
|
-
continue;
|
|
60831
|
-
const mbr = item.getMbr();
|
|
60832
|
-
totalMaxDim += Math.max(mbr.getWidth(), mbr.getHeight());
|
|
60833
|
-
count++;
|
|
60834
|
-
}
|
|
60835
|
-
const avgMaxDim = count > 0 ? totalMaxDim / count : 100;
|
|
60836
|
-
return avgMaxDim * 1.5;
|
|
60824
|
+
calibrateTargetGap(_nodeIds) {
|
|
60825
|
+
return conf.FG_TARGET_GAP;
|
|
60837
60826
|
}
|
|
60838
60827
|
getActiveNodeIds() {
|
|
60839
60828
|
const all6 = new Set;
|
package/dist/cjs/node.js
CHANGED
|
@@ -3956,8 +3956,8 @@ var init_Settings = __esm(() => {
|
|
|
3956
3956
|
MAX_CARD_SIZE: 500,
|
|
3957
3957
|
CONNECTOR_ITEM_OFFSET: 20,
|
|
3958
3958
|
FG_SPRING_K: 0.2,
|
|
3959
|
-
FG_TARGET_GAP:
|
|
3960
|
-
FG_REPULSION:
|
|
3959
|
+
FG_TARGET_GAP: 50,
|
|
3960
|
+
FG_REPULSION: 100,
|
|
3961
3961
|
FG_MIN_DIST_SQ: 100,
|
|
3962
3962
|
FG_DAMPING: 0.6,
|
|
3963
3963
|
FG_SLEEP_THRESHOLD: 0.5,
|
|
@@ -63296,19 +63296,8 @@ class ForceGraphEngine {
|
|
|
63296
63296
|
}
|
|
63297
63297
|
return visited;
|
|
63298
63298
|
}
|
|
63299
|
-
calibrateTargetGap(
|
|
63300
|
-
|
|
63301
|
-
let count = 0;
|
|
63302
|
-
for (const id of nodeIds) {
|
|
63303
|
-
const item = this.board.items.getById(id);
|
|
63304
|
-
if (!item)
|
|
63305
|
-
continue;
|
|
63306
|
-
const mbr = item.getMbr();
|
|
63307
|
-
totalMaxDim += Math.max(mbr.getWidth(), mbr.getHeight());
|
|
63308
|
-
count++;
|
|
63309
|
-
}
|
|
63310
|
-
const avgMaxDim = count > 0 ? totalMaxDim / count : 100;
|
|
63311
|
-
return avgMaxDim * 1.5;
|
|
63299
|
+
calibrateTargetGap(_nodeIds) {
|
|
63300
|
+
return conf.FG_TARGET_GAP;
|
|
63312
63301
|
}
|
|
63313
63302
|
getActiveNodeIds() {
|
|
63314
63303
|
const all6 = new Set;
|
package/dist/esm/browser.js
CHANGED
|
@@ -3963,8 +3963,8 @@ var init_Settings = __esm(() => {
|
|
|
3963
3963
|
MAX_CARD_SIZE: 500,
|
|
3964
3964
|
CONNECTOR_ITEM_OFFSET: 20,
|
|
3965
3965
|
FG_SPRING_K: 0.2,
|
|
3966
|
-
FG_TARGET_GAP:
|
|
3967
|
-
FG_REPULSION:
|
|
3966
|
+
FG_TARGET_GAP: 50,
|
|
3967
|
+
FG_REPULSION: 100,
|
|
3968
3968
|
FG_MIN_DIST_SQ: 100,
|
|
3969
3969
|
FG_DAMPING: 0.6,
|
|
3970
3970
|
FG_SLEEP_THRESHOLD: 0.5,
|
|
@@ -60564,19 +60564,8 @@ class ForceGraphEngine {
|
|
|
60564
60564
|
}
|
|
60565
60565
|
return visited;
|
|
60566
60566
|
}
|
|
60567
|
-
calibrateTargetGap(
|
|
60568
|
-
|
|
60569
|
-
let count = 0;
|
|
60570
|
-
for (const id of nodeIds) {
|
|
60571
|
-
const item = this.board.items.getById(id);
|
|
60572
|
-
if (!item)
|
|
60573
|
-
continue;
|
|
60574
|
-
const mbr = item.getMbr();
|
|
60575
|
-
totalMaxDim += Math.max(mbr.getWidth(), mbr.getHeight());
|
|
60576
|
-
count++;
|
|
60577
|
-
}
|
|
60578
|
-
const avgMaxDim = count > 0 ? totalMaxDim / count : 100;
|
|
60579
|
-
return avgMaxDim * 1.5;
|
|
60567
|
+
calibrateTargetGap(_nodeIds) {
|
|
60568
|
+
return conf.FG_TARGET_GAP;
|
|
60580
60569
|
}
|
|
60581
60570
|
getActiveNodeIds() {
|
|
60582
60571
|
const all6 = new Set;
|
package/dist/esm/index.js
CHANGED
|
@@ -3956,8 +3956,8 @@ var init_Settings = __esm(() => {
|
|
|
3956
3956
|
MAX_CARD_SIZE: 500,
|
|
3957
3957
|
CONNECTOR_ITEM_OFFSET: 20,
|
|
3958
3958
|
FG_SPRING_K: 0.2,
|
|
3959
|
-
FG_TARGET_GAP:
|
|
3960
|
-
FG_REPULSION:
|
|
3959
|
+
FG_TARGET_GAP: 50,
|
|
3960
|
+
FG_REPULSION: 100,
|
|
3961
3961
|
FG_MIN_DIST_SQ: 100,
|
|
3962
3962
|
FG_DAMPING: 0.6,
|
|
3963
3963
|
FG_SLEEP_THRESHOLD: 0.5,
|
|
@@ -60557,19 +60557,8 @@ class ForceGraphEngine {
|
|
|
60557
60557
|
}
|
|
60558
60558
|
return visited;
|
|
60559
60559
|
}
|
|
60560
|
-
calibrateTargetGap(
|
|
60561
|
-
|
|
60562
|
-
let count = 0;
|
|
60563
|
-
for (const id of nodeIds) {
|
|
60564
|
-
const item = this.board.items.getById(id);
|
|
60565
|
-
if (!item)
|
|
60566
|
-
continue;
|
|
60567
|
-
const mbr = item.getMbr();
|
|
60568
|
-
totalMaxDim += Math.max(mbr.getWidth(), mbr.getHeight());
|
|
60569
|
-
count++;
|
|
60570
|
-
}
|
|
60571
|
-
const avgMaxDim = count > 0 ? totalMaxDim / count : 100;
|
|
60572
|
-
return avgMaxDim * 1.5;
|
|
60560
|
+
calibrateTargetGap(_nodeIds) {
|
|
60561
|
+
return conf.FG_TARGET_GAP;
|
|
60573
60562
|
}
|
|
60574
60563
|
getActiveNodeIds() {
|
|
60575
60564
|
const all6 = new Set;
|
package/dist/esm/node.js
CHANGED
|
@@ -3958,8 +3958,8 @@ var init_Settings = __esm(() => {
|
|
|
3958
3958
|
MAX_CARD_SIZE: 500,
|
|
3959
3959
|
CONNECTOR_ITEM_OFFSET: 20,
|
|
3960
3960
|
FG_SPRING_K: 0.2,
|
|
3961
|
-
FG_TARGET_GAP:
|
|
3962
|
-
FG_REPULSION:
|
|
3961
|
+
FG_TARGET_GAP: 50,
|
|
3962
|
+
FG_REPULSION: 100,
|
|
3963
3963
|
FG_MIN_DIST_SQ: 100,
|
|
3964
3964
|
FG_DAMPING: 0.6,
|
|
3965
3965
|
FG_SLEEP_THRESHOLD: 0.5,
|
|
@@ -63021,19 +63021,8 @@ class ForceGraphEngine {
|
|
|
63021
63021
|
}
|
|
63022
63022
|
return visited;
|
|
63023
63023
|
}
|
|
63024
|
-
calibrateTargetGap(
|
|
63025
|
-
|
|
63026
|
-
let count = 0;
|
|
63027
|
-
for (const id of nodeIds) {
|
|
63028
|
-
const item = this.board.items.getById(id);
|
|
63029
|
-
if (!item)
|
|
63030
|
-
continue;
|
|
63031
|
-
const mbr = item.getMbr();
|
|
63032
|
-
totalMaxDim += Math.max(mbr.getWidth(), mbr.getHeight());
|
|
63033
|
-
count++;
|
|
63034
|
-
}
|
|
63035
|
-
const avgMaxDim = count > 0 ? totalMaxDim / count : 100;
|
|
63036
|
-
return avgMaxDim * 1.5;
|
|
63024
|
+
calibrateTargetGap(_nodeIds) {
|
|
63025
|
+
return conf.FG_TARGET_GAP;
|
|
63037
63026
|
}
|
|
63038
63027
|
getActiveNodeIds() {
|
|
63039
63028
|
const all6 = new Set;
|
|
@@ -53,8 +53,9 @@ export declare class ForceGraphEngine {
|
|
|
53
53
|
/** BFS through connector graph starting from `startNodeId`. */
|
|
54
54
|
private bfsComponent;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
56
|
+
* Returns the edge-to-edge rest gap for the component.
|
|
57
|
+
* Using a fixed gap (conf.FG_TARGET_GAP) keeps spring forces predictable
|
|
58
|
+
* and ensures fast settling regardless of node size.
|
|
58
59
|
*/
|
|
59
60
|
private calibrateTargetGap;
|
|
60
61
|
private getActiveNodeIds;
|