@andespindola/brainlink 0.1.0-beta.110 → 0.1.0-beta.111
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.
|
@@ -51,6 +51,9 @@ const graphDepthMinScale = 0.58
|
|
|
51
51
|
const graphDepthOpacityFloor = 0.42
|
|
52
52
|
const graphDepthEdgeOpacityFloor = 0.24
|
|
53
53
|
const graphDepthProjectionNodeThreshold = 120
|
|
54
|
+
const graphDepthProjectionNodeCap = 980
|
|
55
|
+
const graphDepthProjectionMinScale = 0.08
|
|
56
|
+
const graphDepthProjectionMaxScale = 0.95
|
|
54
57
|
const zoomRecoveryGuardMs = 4200
|
|
55
58
|
const zoomCapTargetViewportShare = 0.72
|
|
56
59
|
const meshEdgeScaleThreshold = 0.09
|
|
@@ -3067,7 +3070,11 @@ const clusterDepthScale = cluster => Number.isFinite(cluster.depthScale) ? clust
|
|
|
3067
3070
|
|
|
3068
3071
|
const shouldProjectRenderNodesInDepth = () =>
|
|
3069
3072
|
state.renderClusters.length === 0 &&
|
|
3070
|
-
state.renderNodes.length >= graphDepthProjectionNodeThreshold
|
|
3073
|
+
state.renderNodes.length >= graphDepthProjectionNodeThreshold &&
|
|
3074
|
+
state.renderNodes.length <= graphDepthProjectionNodeCap &&
|
|
3075
|
+
state.transform.scale >= graphDepthProjectionMinScale &&
|
|
3076
|
+
state.transform.scale <= graphDepthProjectionMaxScale &&
|
|
3077
|
+
!state.pointer.down
|
|
3071
3078
|
|
|
3072
3079
|
const nodeProjectionAnchor = () => {
|
|
3073
3080
|
const hub = state.primaryHub
|
package/package.json
CHANGED