@andespindola/brainlink 0.1.0-beta.72 → 0.1.0-beta.73
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.
|
@@ -10,6 +10,7 @@ const clusterZoomThreshold = 0.18
|
|
|
10
10
|
const macroGalaxyZoomThreshold = 0.012
|
|
11
11
|
const macroGalaxyEnterHysteresis = 0.86
|
|
12
12
|
const macroGalaxyExitHysteresis = 1.24
|
|
13
|
+
const galaxyDiscoveryEnabled = false
|
|
13
14
|
const massiveAutoFitMacroScale = 0.006
|
|
14
15
|
const defaultMacroScale = 0.006
|
|
15
16
|
const clusterCellPixelSize = 64
|
|
@@ -677,6 +678,10 @@ const visibilityScaleBucket = (scale) => {
|
|
|
677
678
|
}
|
|
678
679
|
|
|
679
680
|
const shouldRenderMacroGalaxyView = () => {
|
|
681
|
+
if (!galaxyDiscoveryEnabled) {
|
|
682
|
+
state.macroViewActive = false
|
|
683
|
+
return false
|
|
684
|
+
}
|
|
680
685
|
if (state.visibleNodes.length <= 1) {
|
|
681
686
|
state.macroViewActive = false
|
|
682
687
|
return false
|
|
@@ -1818,15 +1823,8 @@ const computeRenderVisibility = () => {
|
|
|
1818
1823
|
carryOverNodes,
|
|
1819
1824
|
Math.max(sampleLimit * 7, carryOverLimit)
|
|
1820
1825
|
)
|
|
1821
|
-
const layeredNodes = selectLayeredNodesForScale(sourceWithCarry, sampleLimit)
|
|
1822
|
-
const bridgeLimit = Math.max(24, Math.min(180, Math.floor(sampleLimit * 0.26)))
|
|
1823
|
-
const bridgedNodes = mergeUniqueNodes(
|
|
1824
|
-
layeredNodes,
|
|
1825
|
-
selectAccessBridgeNodes(sourceWithCarry, bridgeLimit),
|
|
1826
|
-
Math.min(renderNodeBudget, sampleLimit + bridgeLimit)
|
|
1827
|
-
)
|
|
1828
1826
|
const sampledRaw = selectStableSampleNodes(
|
|
1829
|
-
|
|
1827
|
+
sourceWithCarry,
|
|
1830
1828
|
Math.min(sampleLimit, renderNodeBudget)
|
|
1831
1829
|
)
|
|
1832
1830
|
const continuityBudget = Math.max(24, Math.min(sampleLimit - 8, Math.floor(sampleLimit * 0.42)))
|
package/package.json
CHANGED