Realistic rack-equipment icons for switches and patch panels
Swapped the abstract mxgraph.networks.switch pictogram and the hand-drawn patch-panel box for draw.io's built-in Rack shape library -- real 19" front-panel silhouettes (verified against the actual stencil source on GitHub, not guessed): mxgraph.rack.general.switches_1 for switches, ...cat5e_rack_mount_patch_panel_24_ports for patch panels. No stencil library covers FS.com/AFL/Primex/Clearview/FIS (all niche fiber/telecom brands draw.io doesn't ship icons for), so per user's choice brand/model accuracy is carried as text instead: every node's caption is now 'hostname' + the real NetBox device_type.model on a second line, e.g. 'ls-bsls-sw01 / IES3110-8TFP-R'. Patch panels also lost their hand-built 7-cell composition (body + strip + 6 port-tick cells) now that a real stencil exists -- one cell each, cell count 530 -> 271. Fixed a spacing regression this surfaced: the new realistic icons are much shorter/flatter than the old ones, and COL_W (210) left only ~100px between adjacent columns -- not enough room for a ~150-180px connector label, so port/VLAN tags were overlapping neighboring icons. COL_W -> 320. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NM3nivbufxEWiKKmatEtEe
This commit is contained in:
@@ -24,10 +24,16 @@ both fabrics for a documented reason (spare/inventory, decommissioning, or
|
||||
planned/not-yet-installed) -- those are called out in their own box on the
|
||||
diagram rather than silently dropped.
|
||||
|
||||
Every connector is labeled with the port at each end (e.g. `9 ↔ 1`), and
|
||||
switches/patch panels look the part: switches get draw.io's built-in network
|
||||
switch icon, patch panels get a small rack-unit look (header strip + port
|
||||
ticks) rather than a plain box.
|
||||
Every connector is labeled with the port at each end (e.g. `9 ↔ 1`).
|
||||
Switches and patch panels use draw.io's built-in **Rack** shape library
|
||||
(`mxgraph.rack.general.switches_1` / `...cat5e_rack_mount_patch_panel_24_ports`)
|
||||
-- real 19"-rack front-panel silhouettes, not the old abstract pictogram /
|
||||
hand-drawn box. There's no stencil library for FS.com, AFL, Primex,
|
||||
Clearview, or FIS specifically (those are niche fiber/telecom brands, not
|
||||
in any icon set draw.io ships), so brand accuracy is carried as text
|
||||
instead of guessed at in the art: every node's caption is its hostname
|
||||
*and* its real NetBox `device_type.model` (e.g. `IES3110-8TFP-R`, `xPAK
|
||||
6-Port SC/APC`), not just the hostname.
|
||||
|
||||
A **VLAN legend + table** sits at the top of the diagram: a colored
|
||||
"VLAN <id> / name" block per VLAN on the left (each color also used for
|
||||
|
||||
Reference in New Issue
Block a user