mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Unify UME World as hex nav with conditional flat world map.
Seed a unique L2 World canvas under the UME World container, show the flat map only when nested regions have NEs, pack blocks without overlap, allow drag overrides on the world map while forbidding direct NE adds, and hide the world-map truncation banner. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5d705fa7bb
commit
1ef43fdcd4
30 changed files with 4389 additions and 371 deletions
23
scripts/_run_ume_apply.py
Normal file
23
scripts/_run_ume_apply.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
from sqlalchemy import text
|
||||
|
||||
from netx_api.db import SessionLocal
|
||||
from netx_api.ume_topology_apply import apply_ume_topology_to_fabric
|
||||
from netx_api.ume_topology_world import ensure_ume_world_and_sbn_folders, get_world_view
|
||||
|
||||
db = SessionLocal()
|
||||
try:
|
||||
print("apply…")
|
||||
s = apply_ume_topology_to_fabric(db)
|
||||
print("apply", s)
|
||||
w = ensure_ume_world_and_sbn_folders(db)
|
||||
print("world", w)
|
||||
v = get_world_view(db)
|
||||
print("view", v.id if v else None)
|
||||
n_xy = db.execute(text("select count(*) from topo_fabric_node where world_x is not null")).scalar()
|
||||
n_e = db.execute(text("select count(*) from topo_fabric_edge where status='active'")).scalar()
|
||||
n_f = db.execute(
|
||||
text("select count(*) from topo_folder where external_ref<>'' and external_ref<>'ume:world'")
|
||||
).scalar()
|
||||
print("fabric_xy", n_xy, "active_edges", n_e, "sbn_folders", n_f)
|
||||
finally:
|
||||
db.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue