mirror of
https://github.com/hansjone/netx.git
synced 2026-10-16 00:40:45 +08:00
Raise physical canvas capacity and keep region==canvas rules consistent.
Pass view kind into membership so metro maps are not capped at core=80, add region-scoped neighbor projection, and align UI/tests with one physical canvas per region. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a9a45d39d4
commit
75d03f5f9b
8 changed files with 342 additions and 157 deletions
|
|
@ -360,7 +360,8 @@ export default function TopologyReactFlowView(props: TopologyReactFlowViewProps)
|
|||
connectionLineStyle={{ stroke: "#38bdf8", strokeWidth: 2 }}
|
||||
defaultEdgeOptions={{ type: "straight", labelShowBg: false }}
|
||||
proOptions={{ hideAttribution: true }}
|
||||
minZoom={isWorldFlatCanvas ? 0.002 : 0.05}
|
||||
// Composed metro canvases can span 40k–70k; default 0.05 clips fitView.
|
||||
minZoom={isWorldFlatCanvas || nodes.length >= 400 ? 0.002 : 0.05}
|
||||
maxZoom={isWorldFlatCanvas ? 12 : 4}
|
||||
nodesDraggable={
|
||||
isWorldFlatCanvas
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue