Fig 2
Container data center power module cutaway · 35kV/10kV → oil-immersed transformer → 480V/400V → cam-locks · click a part for its spec sheet
35kV UPS 480V
Click a part for specs · ←/→ to switch · E to explode/restore · copper=MV amber=transformer blue=LV green=interface purple=SCADA
—
`; } const PAGE_CSS = ` *{box-sizing:border-box} html{color-scheme:dark} body[data-theme="light"]{color-scheme:light} body{margin:0;background:var(--anatomy-page);color:var(--anatomy-text);font:14px/1.6 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased} .iso-page{width:min(__WIDTH__px,100% - 32px);margin:64px auto 96px} `; const ISO_CSS = ` .iso{ --anatomy-page:#0b0b0b;--anatomy-card:#131313;--anatomy-text:#a3a3a3;--anatomy-strong:#e6e6e6;--anatomy-muted:#6e6e6e; --anatomy-paper:#131313;--anatomy-face:#1b1b1b;--anatomy-top:#1c1c1c; --anatomy-shade-0:#0f0f0f;--anatomy-shade-1:#121212;--anatomy-shade-2:#151515;--anatomy-shade-3:#181818; --anatomy-lit-top:#262626;--anatomy-lit-shade:#1d1d1d; --anatomy-hi:#d4d4d4;--anatomy-mid:#6a6a6a;--anatomy-lo:#3e3e3e;--anatomy-faint:#2a2a2a;--anatomy-lit:#ffffff; --anatomy-halo:#050505;--anatomy-halo-opacity:.9;--anatomy-dot:#e6e6e6; --anatomy-red:#ff6b6b;--anatomy-green:#6be0a0;--anatomy-blue:#6b9bff; --anatomy-weight:.6px;--anatomy-ease:cubic-bezier(.32,.72,0,1); --anatomy-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace; --anatomy-lift:inset 0 1px 0 0 #ffffff0a,inset 0 0 0 1px #ffffff06,0 0 0 1px #00000026,0 1px 1px -.5px #00000014,0 3px 3px -1.5px #00000014,0 6px 6px -3px #00000014,0 12px 12px -6px #00000014; } .iso[data-theme="light"]{ --anatomy-page:#f2f2ef;--anatomy-card:#fbfbfa;--anatomy-text:#57575a;--anatomy-strong:#18181a;--anatomy-muted:#8c8c90; --anatomy-paper:#fbfbfa;--anatomy-face:#ffffff;--anatomy-top:#ffffff; --anatomy-shade-0:#dcdcd9;--anatomy-shade-1:#e5e5e2;--anatomy-shade-2:#ededea;--anatomy-shade-3:#f4f4f1; --anatomy-lit-top:#ffffff;--anatomy-lit-shade:#eeeeeb; --anatomy-hi:#26262a;--anatomy-mid:#8a8a8f;--anatomy-lo:#b4b4b8;--anatomy-faint:#d4d4d6;--anatomy-lit:#000000; --anatomy-halo:#8a8a80;--anatomy-halo-opacity:.32;--anatomy-dot:#3a3a3e; --anatomy-red:#e5484d;--anatomy-green:#30a46c;--anatomy-blue:#3e63dd; --anatomy-lift:inset 0 1px 0 0 #ffffff,0 0 0 1px #0000000f,0 1px 1px -.5px #0000000a,0 3px 3px -1.5px #0000000a,0 6px 6px -3px #0000000a,0 12px 12px -6px #0000000a; } .iso-svg{display:block;width:100%;height:auto;overflow:visible} .iso-svg path,.iso-svg circle{vector-effect:non-scaling-stroke} .iso-fill{fill:var(--anatomy-paper);stroke:none} .iso-solid[data-lit]>.iso-fill{fill:var(--anatomy-face)} .iso-shade,.iso-top{stroke:none} .iso-shade[data-shade="0"]{fill:var(--anatomy-shade-0)} .iso-shade[data-shade="1"]{fill:var(--anatomy-shade-1)} .iso-shade[data-shade="2"]{fill:var(--anatomy-shade-2)} .iso-shade[data-shade="3"]{fill:var(--anatomy-shade-3)} .iso-top{fill:var(--anatomy-top)} .iso-solid[data-lit]>.iso-top{fill:var(--anatomy-lit-top)} .iso-solid[data-lit]>.iso-shade{fill:var(--anatomy-lit-shade)} .iso-solid[data-seamless]>.iso-shade,.iso-solid[data-seamless]>.iso-top{stroke-width:.4;stroke-linejoin:round} .iso-solid[data-seamless]>.iso-shade[data-shade="0"]{stroke:var(--anatomy-shade-0)} .iso-solid[data-seamless]>.iso-shade[data-shade="1"]{stroke:var(--anatomy-shade-1)} .iso-solid[data-seamless]>.iso-shade[data-shade="2"]{stroke:var(--anatomy-shade-2)} .iso-solid[data-seamless]>.iso-shade[data-shade="3"]{stroke:var(--anatomy-shade-3)} .iso-solid[data-seamless]>.iso-top{stroke:var(--anatomy-top)} .iso-solid[data-seamless][data-lit]>.iso-top{stroke:var(--anatomy-lit-top)} .iso-solid[data-seamless][data-lit]>.iso-shade{stroke:var(--anatomy-lit-shade)} .iso-solid[data-lit]>.iso-edge{stroke:var(--anatomy-lit)} .iso-halo{fill:var(--anatomy-halo);stroke:none;filter:blur(9px);opacity:var(--anatomy-halo-opacity);transform:translateY(3px)} .iso-line{fill:none;stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight);stroke-linecap:round;stroke-linejoin:round} .iso-line[data-tone="hi"]{stroke:var(--anatomy-hi)} .iso-line[data-tone="mid"]{stroke:var(--anatomy-mid)} .iso-line[data-tone="lo"]{stroke:var(--anatomy-lo)} .iso-line[data-tone="faint"]{stroke:var(--anatomy-faint)} .iso-line[data-tone="lit"]{stroke:var(--anatomy-lit)} .iso-line[data-tone="red"]{stroke:var(--anatomy-red)} .iso-line[data-tone="green"]{stroke:var(--anatomy-green)} .iso-line[data-tone="blue"]{stroke:var(--anatomy-blue)} .iso-line[data-dotted]{stroke-dasharray:.01 3.5;stroke-width:1} .iso-line[data-dashed]{stroke-dasharray:3 3} .iso-line[data-flow]{stroke-dasharray:2 6} .iso-wire-end{fill:var(--anatomy-paper);stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight)} .iso-wire[data-tone="hi"] .iso-wire-end{stroke:var(--anatomy-hi)} .iso-wire[data-tone="mid"] .iso-wire-end{stroke:var(--anatomy-mid)} .iso-wire[data-tone="faint"] .iso-wire-end{stroke:var(--anatomy-faint)} .iso-wire[data-tone="lit"] .iso-wire-end{stroke:var(--anatomy-lit)} .iso-dots circle{fill:var(--anatomy-dot);stroke:none;opacity:.32} .iso-dots[data-tone="hi"] circle{opacity:.85} .iso-dots[data-tone="mid"] circle{opacity:.45} .iso-dots[data-tone="lo"] circle{opacity:.22} .iso-dots[data-tone="faint"] circle{opacity:.12} .iso-face-text{fill:var(--anatomy-mid);font-family:var(--anatomy-mono);letter-spacing:.04em} .iso-face-text[data-tone="hi"]{fill:var(--anatomy-hi)} .iso-face-text[data-tone="lo"]{fill:var(--anatomy-lo)} .iso-face-text[data-tone="faint"]{fill:var(--anatomy-faint)} .tb-body{fill:var(--anatomy-shade-2);stroke:none} .tb-shine{fill:var(--anatomy-top);stroke:none} .tb-shade{fill:var(--anatomy-shade-0);stroke:none} .tb-ring{fill:none;stroke:var(--anatomy-lo);stroke-width:.45;stroke-linecap:butt;stroke-linejoin:round} .tb-ring[data-tone="mid"]{stroke:var(--anatomy-mid)} .tb-ring[data-tone="faint"]{stroke:var(--anatomy-faint)} .tb-ring[data-tone="hi"]{stroke:var(--anatomy-hi)} @keyframes iso-flow{to{stroke-dashoffset:-32}} @keyframes iso-pulse{0%,100%{opacity:.18}12%{opacity:1}40%{opacity:.18}} .iso-line[data-flow]{animation:iso-flow 1600ms linear infinite} .iso-dots circle[data-pulse]{animation:iso-pulse 1600ms steps(1,end) infinite;animation-delay:var(--pulse-at,0ms)} .iso-figure{margin:32px 0 36px} .iso-plate{position:relative;padding:52px 24px;border-radius:0;background:var(--anatomy-card);box-shadow:0 0 0 1px var(--anatomy-mid);--anatomy-paper:var(--anatomy-card)} .iso-plate-corners{position:absolute;inset:18px 20px;pointer-events:none} .iso-plate-corner{position:absolute;color:var(--anatomy-muted);font-family:var(--anatomy-mono);font-size:10.5px;line-height:1;letter-spacing:.04em;white-space:nowrap} .iso-plate-corner[data-corner="fig"]{top:0;left:0;color:var(--anatomy-text)} .iso-plate-corner[data-corner="title"]{top:0;right:0;text-transform:uppercase;letter-spacing:.1em} .iso-plate-corner[data-corner="hint"]{bottom:0;left:0;text-transform:uppercase;letter-spacing:.1em} .iso-plate-corner[data-corner="readout"]{right:0;bottom:0;color:var(--anatomy-text);font-variant-numeric:tabular-nums} .iso-plate .iso-svg{margin:0 auto} .iso-legend{display:grid;gap:8px;margin-top:12px;color:var(--anatomy-muted);font-size:13px;line-height:1.55} .iso-keys{display:flex;flex-wrap:wrap;gap:6px 18px} .iso-key{display:inline-flex;align-items:center;gap:7px} .iso-swatch{width:16px;height:10px;flex:none;overflow:visible} .iso-swatch path{fill:none;stroke:var(--anatomy-hi);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round} .iso-swatch[data-mark="raised"] path,.iso-swatch[data-mark="flat"] path{stroke:var(--anatomy-mid)} .iso-swatch[data-mark="lit"] path{stroke:var(--anatomy-lit)} .iso-swatch[data-mark="dim"] path{stroke:var(--anatomy-lo)} .iso-swatch[data-mark="dotted"] path{stroke-dasharray:.01 3;stroke-width:1.4} .iso-swatch[data-mark="dashed"] path{stroke-dasharray:3 2.5} .iso-swatch[data-mark="red"] path{stroke:var(--anatomy-red)} .iso-swatch[data-mark="green"] path{stroke:var(--anatomy-green)} .iso-swatch[data-mark="blue"] path{stroke:var(--anatomy-blue)} .iso-swatch-crease{stroke:var(--anatomy-lo)!important} @media (max-width:560px){.iso-plate{padding:48px 12px 70px}.iso-plate-corner[data-corner="hint"]{bottom:18px}} @media (prefers-reduced-motion:reduce){.iso-line[data-flow],.iso-dots circle[data-pulse]{animation:none}} `; var DATA = {"grid":{"name":"35 kV incoming cable & terminations","tag":"MV · medium voltage","tone":"mv","desc":"The last meter of the grid. US data centers typically take a 34.5 kV (or 13.8 kV) feeder through a riser pole and cable tray into the MV switchgear; cable ends land on plug-in elbow terminations on the cabinet bushings — hot-pluggable for maintenance.","specs":[["Voltage class","34.5 kV (US main chain) | 10 kV (CN chain)"],["Cable","1/C 35 kV XLPE ×3, ≈42 A at 2500 kVA"],["Terminations","200 A / 600 A elbows, IEEE 386 interface"],["Routing","tray / conduit / direct buried"]],"vendors":["Prysmian","Southwire","Hengtong","ZTT"],"note":"CN-chain comparison: YJV22-8.7/15kV 3×70mm², GB/T 12706. 10 kV at 2.5 MVA ≈ 144 A — one voltage class up, one copper size down."},"mvsw":{"name":"MV switchgear (metal-clad / ring-main)","tag":"MV · medium voltage","tone":"mv","desc":"The first gate of the power path. US practice uses 38 kV-class metal-clad gear; CN practice uses 12 kV drawout or ring-main units. Prefab power modules mount it at the container input, busbars and secondary wiring factory-terminated.","specs":[["Rated voltage","38 kV class (US) | 12 kV (CN)"],["Bus / breaking","1200 A / 31.5 kA | 630 A / 20 kA"],["Protection / interlock","IP4X, five-point interlock + live-line indicator"],["Standard","ANSI C37.20.2 | IEC 62271-200"]],"vendors":["Eaton VCP-WG (550mm)","ABB","Schneider","Shanghai Electric"],"note":"Cabinet width is the prefab battleground: Eaton’s 550 mm compact gear targets the data-center market — a square meter saved per MW is rent."},"vcb":{"name":"Vacuum circuit breaker (VCB)","tag":"MV · medium voltage","tone":"mv","desc":"Arc interruption happens inside three vacuum bottles: contacts separate 8–12 mm in a 10⁻⁴ Pa vacuum where the arc has nothing to ionize — out at the first current zero. Spring-charged closing, total clearing ≤60 ms.","specs":[["Breaking capacity","31.5 kA / 4 s short-circuit"],["Mechanical life","10,000 operations"],["Contact gap","8–12 mm, vacuum 10⁻⁴ Pa"],["Mechanism","spring-charged (or magnetic actuator)"]],"vendors":["Eaton","ABB VD4","Xuguang","Shaanxi Baoguang"],"note":"The VCB is the only big moving part in MV gear — the relay commands, it executes. It rarely operates in a data center, but one failed operation is a building-wide outage."},"relay":{"name":"Protection relay (smart unit ①)","tag":"SCADA · monitoring","tone":"scada","desc":"The brain of the MV cabinet: samples bus voltage, phase and residual currents, issues trip commands on 3-stage overcurrent / instantaneous / earth-fault logic, and pushes telemetry to SCADA over IEC 61850 — the first node where power enters the monitoring world.","specs":[["Protection","3-stage OC + earth-fault + overload + temperature"],["Comms","IEC 61850 GOOSE/MMS, RS485 backup"],["Records","SOE event log, 1 ms resolution"],["Control","SCADA remote trip/close (select-before-operate)"]],"vendors":["SEL-751","GE F650","NR Electric","Sifang"],"note":"The lowest executor in the PTMS stack. The report’s §6 800 VDC monitoring story and §9 PUE metering both trace back to smart units like this."},"txr":{"name":"Oil-immersed transformer (pad-mount)","tag":"TR · transformation","tone":"tr","desc":"The workhorse of US step-down: 34.5 kV/480 V, delta-wye grounded, ONAN oil-cooled, sealed tank with cooling fins, pad-mounted behind bollards. US data centers rarely use dry-type — oil is cheaper, more efficient, installs outdoors; cast-resin dry-type dominates CN 10 kV prefab enclosures.","specs":[["Capacity","2500 kVA (2000–3000 kVA band)"],["Ratio","34.5 kV / 480 V, Δ-Y grounded"],["Impedance / rise","5.75–6.5%, 65 K, BIL 200 kV"],["Standard","IEEE C57.12.34 | cf. GB/T 1094 (SCB dry-type)"]],"vendors":["ABB","ERMCO","Delta Star","Jinpan / Shunte (dry-type)"],"note":"2500 kVA → 480 V full load = 3007 A — exactly one row of 4000 A LV gear. 1 MW IT ≈ 1.2 × 2500 kVA (PUE 1.35 + UPS losses + N+1) — the bulk of the report’s §7 $1.8M/MW power-side figure."},"tmon":{"name":"Oil temperature / level monitor (smart unit ②)","tag":"SCADA · monitoring","tone":"scada","desc":"The transformer’s vitals: top-oil thermometer + oil level gauge + pressure relief valve + electronic monitor. 85 °C top-oil alarm, 95 °C trip; the relief valve acts at 70 kPa — the sealed tank’s last line of defense.","specs":[["Oil temp","85 °C alarm / 95 °C trip (top oil)"],["Winding thermal","top oil +10–15 °C thermal-model estimate"],["Pressure relief","70 kPa actuation, mechanical latching"],["Comms","4–20 mA / Modbus RTU → SCADA"]],"vendors":["Qualitrol","WIKA","Hongzhi","Zhuhai Lizhi"],"note":"CN dry-type comparison: three Pt100 winding sensors — fans on at 100 °C, alarm 130 °C, trip 150 °C (class H); forced-air (AF) boosts capacity 40–50%."},"lvgear":{"name":"480 V low-voltage switchgear","tag":"LV · low voltage","tone":"lv","desc":"First stop after step-down: incoming cubicle (ACB) + bus tie + a row of feeders. 2500 kVA full load = 3007 A, bus rated 4000 A; feeder drawers with arc venting, one cubicle per UPS and cooling feed.","specs":[["Busbar","4000 A copper, 65–100 kA Icu @480 V"],["Incoming ACB","4000 A frame, drawout, LSIG"],["Feeders","800 / 1600 A MCCB, arc barriers"],["Standard","UL 891 / ANSI | CN GB 7251 (400 V)"]],"vendors":["Eaton","ABB Emax 2","Schneider Masterpact","Chint / Liangxin"],"note":"CN comparison: 400 V, ACB 3200 A, GGD/MNS gear — 80 V lower voltage, 20% more current, busbar cross-section grows with it."},"acb":{"name":"Smart trip unit (smart unit ③)","tag":"SCADA · monitoring","tone":"scada","desc":"A small block on the ACB face — yet the metering and protection hub of LV distribution: LSIG four-stage protection, and the data source for PUE metering — the power-cost pass-through dollars in the report are computed here.","specs":[["Protection","LSIG + zone selective interlock ZSI"],["Metering","U/I/P/Q/cosφ/THD/kWh, class 0.5"],["Comms","Modbus RTU/TCP, upgradeable to 61850"],["Events","waveform capture + alarm log"]],"vendors":["Eaton PXR","ABB Ekip","Schneider Micrologic","Liangxin"],"note":"PUE’s denominator (IT load) is metered at UPS output, its numerator (total draw) at LV incoming — one smart trip unit divided by another is the PUE on the report."},"ups":{"name":"UPS & batteries","tag":"UPS · uninterruptible","tone":"ups","desc":"Online double conversion: rectifier → inverter fully isolates utility disturbance; modular parallel N+1 — a module fails without stopping the load. Lithium carries 5–15 min — enough for generator start or a safe load shutdown.","specs":[["Topology","online double conversion, modular N+1"],["Unit","250–600 kVA/module, 480 V output"],["Efficiency","96.5–97.5% (ECO mode 99%)"],["Batteries","Li-ion 5–15 min, BMS down to cell level"]],"vendors":["Vertiv","Eaton 9395","Huawei FusionPower","Kehua"],"note":"Every 1% of efficiency burns ≈88,000 extra kWh/yr per MW IT (0.01 × 1000 kW × 8760 h) — the UPS footnote to the report’s §9 electricity-price sensitivity."},"iface":{"name":"Container power interface (cam-lock)","tag":"IT · interface","tone":"it","desc":"The “socket box” on the container wall: a top row of 400 A single-pole cam-locks (anti-vibration double cam), US phase colors L1 black / L2 red / L3 blue / N white / PE green. The UPS feeder lugs plug in and twist — a 0.3–1.4 MW container connects on arrival — the last link in the mobile-AI-factory 6-month timeline.","specs":[["Interface","400 A cam-lock ×5 (600 V, double cam)"],["Phases","L1 black / L2 red / L3 blue / N white / PE green"],["Protection","IP67 panel + phase-reversal relay"],["Surge","SPD type II (40 kA) + PE terminal"]],"vendors":["Eaton Crouse-Hinds","Power Assemblies","ATI","MELTRIC"],"note":"CN comparison: 380/400 V, colors L1 yellow / L2 green / L3 red / N light blue / PE yellow-green (GB/T 681), GB quick-plug or crimped lugs. Convention fits a double row (normal / bypass)."},"scada":{"name":"SCADA / PTMS gateway","tag":"SCADA · monitoring","tone":"scada","desc":"The nervous system of the power path: aggregates the three smart units (① protection relay ② oil monitor ③ trip unit) plus UPS data, serves a local HMI single-line diagram, pushes upstream to DCIM / BMS. The OT network is physically isolated from the office LAN — power control never touches the internet.","specs":[["Protocols","IEC 61850 / Modbus TCP, DNP3 backup"],["Functions","telemetry / status / control + SOE 1 ms"],["Architecture","dedicated OT VLAN, one-way gateway / industrial firewall"],["Upstream","DCIM / BMS / energy management EMS"]],"vendors":["Vertiv Environet","Schneider EcoStruxure","NARI","Huawei iMaster"],"note":"It is not one standalone “smart control cabinet” — it is smart units embedded in three devices plus one bus. SCADA is unified by a communication network, not by a cabinet."}}; var ORDER = ["grid","mvsw","vcb","relay","txr","tmon","lvgear","acb","ups","iface","scada"]; var TAGC = { mv:"var(--mv)", tr:"var(--tr)", lv:"var(--lv)", ups:"var(--ups)", it:"var(--it)", scada:"var(--scada)" }; var svg = document.querySelector(".iso-svg"); var panel = document.getElementById("panel"); var dotsBox = document.getElementById("dots"); var readout = document.getElementById("readout"); var explodeBtn = document.getElementById("explodeBtn"); var stages = Array.prototype.slice.call(svg.querySelectorAll(".stage")); var sel = null, exploded = false; var still = window.matchMedia("(prefers-reduced-motion: reduce)"); function esc(s){ return String(s).replace(/&/g,"&").replace(/' + esc(k) + '' + esc(v) + ''; } function panelHtml(id){ var d = DATA[id]; var h = '

' + esc(id.toUpperCase()) + '' + esc(d.name) + '

'; h += '' + esc(d.tag) + ''; h += '

' + d.desc + '

'; h += '
' + d.specs.map(function(s){ return chip(s[0], s[1]); }).join("") + '
'; h += '
' + d.vendors.map(function(v){ return '' + esc(v) + ''; }).join("") + '
'; h += '
' + d.note + '
'; return h; } function overviewHtml(){ return '

OVERVIEWOne power assembly line

' + 'Overview · US main chain + CN comparison' + '

The same MW of power path: grid 34.5kV (US) / 10kV (CN) incoming → MV switchgear breaks and protects → oil-immersed pad-mount transformer steps down to 480V / 400V → LV switchgear distributes → UPS conditions → container cam-lock interface. The three devices\u2019 smart units (① protection relay ② oil monitor ③ trip unit) gather along the purple SCADA bus into the gateway — power is the muscle, SCADA is the nerve.

' + '
' + chip("Capacity anchor", "2500kVA @ 34.5kV/480V") + chip("Incoming current", "42A (34.5kV) | 144A (10kV)") + chip("LV full load", "3007A (480V) | 3610A (400V)") + chip("Per 1 MW IT", "≈1.2 × 2500kVA (PUE 1.35 + N+1)") + '
' + '
Why oil-immersed, not dry-type? The US mainstream is the outdoor oil-immersed pad-mount — cheap, efficient, install-and-go; cast-resin dry-type dominates CN 10kV prefab enclosures (indoor fire code). Both branches are compared part-by-part in this figure. Click any part for its spec sheet.
'; } function select(id){ sel = id; stages.forEach(function(gEl){ gEl.classList.toggle("sel", gEl.dataset ? gEl.dataset.id === id : gEl.getAttribute("data-id") === id); }); svg.classList.toggle("dim", !!id); panel.innerHTML = id ? panelHtml(id) : overviewHtml(); var dots = dotsBox.children; for (var i = 0; i < dots.length; i++) dots[i].classList.toggle("on", ORDER[i] === id); readout.innerHTML = id ? "" + esc(DATA[id].tag) + " · " + esc(DATA[id].name) : "34.5kV → 480V · 2500kVA · 42A / 3007A"; } stages.forEach(function(gEl){ var id = gEl.getAttribute("data-id"); gEl.addEventListener("click", function(e){ e.stopPropagation(); select(id === sel ? null : id); }); gEl.addEventListener("keydown", function(e){ if (e.key === "Enter" || e.key === " ") { e.preventDefault(); select(id); } }); }); svg.addEventListener("click", function(){ select(null); }); document.addEventListener("keydown", function(e){ if (e.key === "ArrowRight" || e.key === "ArrowLeft"){ var cur = ORDER.indexOf(sel); var next = e.key === "ArrowRight" ? Math.min(ORDER.length - 1, cur + 1) : Math.max(0, cur < 0 ? 0 : cur - 1); select(ORDER[cur < 0 ? 0 : next]); e.preventDefault(); } var num = "1234567890-".indexOf(e.key); if (num >= 0 && num < ORDER.length){ select(ORDER[num]); e.preventDefault(); } if (e.key === "Escape") select(null); if (e.key === "e" || e.key === "E") toggleExplode(); }); function toggleExplode(){ exploded = !exploded; explodeBtn.classList.toggle("on", exploded); svg.classList.toggle("exploded", exploded); var mods = svg.querySelectorAll(".mod"); for (var i = 0; i < mods.length; i++){ var dx = parseFloat(mods[i].getAttribute("data-dx")) || 0; mods[i].style.transform = exploded ? "translate(" + dx + "px,0)" : "translate(0,0)"; } readout.innerHTML = exploded ? "Exploded view · cables hidden, press E to restore" : "34.5kV → 480V · 2500kVA · 42A / 3007A"; } explodeBtn.addEventListener("click", function(e){ e.stopPropagation(); toggleExplode(); }); select(null);