From d27e2ca26754b939c090f26a8de38e47f30233cc Mon Sep 17 00:00:00 2001 From: Taras Greben Date: Fri, 3 Jul 2026 17:16:21 +0300 Subject: [PATCH] Add Re-route button to Schema ReTrace. --- docs/schema.html | 18 ++++++++++++++---- docs/schema/ui.js | 8 ++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/schema.html b/docs/schema.html index ddc5a0e..399bb84 100644 --- a/docs/schema.html +++ b/docs/schema.html @@ -149,9 +149,10 @@ .mobile-only { display: inline-flex !important; } .hide-mobile { display: none !important; } .responsive-text::after { content: attr(data-short); } + #header { gap: 6px; padding: 4px 8px; overflow-x: auto; padding-bottom: 2px; } + .btn-group { gap: 4px; } #header .btn { padding: 4px 8px; } #header .sep { display: none; } - #header { overflow-x: auto; padding-bottom: 2px; } #header::-webkit-scrollbar { height: 4px; } #header::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; } @@ -246,8 +247,15 @@
- - + + +
@@ -281,7 +289,9 @@ - +
diff --git a/docs/schema/ui.js b/docs/schema/ui.js index 7a8b55f..ed01e35 100644 --- a/docs/schema/ui.js +++ b/docs/schema/ui.js @@ -406,6 +406,14 @@ export function initUI(mode, importNetlistStandalone, resetLayout, hasLayoutData }; } + document.getElementById('btn-reroute').onclick = async () => { + if (!S.hasData) { toast('No netlist', 'warn'); return; } + pushHistory(); + const l = await import('./layout.js'); + await l.buildAndRoute({}, false); + toast('Re-routed schematic diagram'); + }; + document.getElementById('btn-auto-place').onclick = async () => { if (!S.hasData) { toast('No netlist', 'warn'); return; } if (hasLayoutData && hasLayoutData()) {