| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <!doctype html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="light">
- <title>电路板选脚查看器</title>
- <link rel="stylesheet" href="app.css">
- </head>
- <body>
- <div class="app-shell" id="app">
- <header class="topbar">
- <div class="product-block">
- <span class="product-mark" aria-hidden="true"></span>
- <div>
- <div class="product-title">FCB 电路板选脚查看器</div>
- <div class="product-meta" id="board-summary">正在载入板数据</div>
- </div>
- </div>
- <div class="search-block">
- <label class="search-field" for="board-search">
- <span aria-hidden="true">⌕</span>
- <input
- id="board-search"
- type="search"
- autocomplete="off"
- spellcheck="false"
- placeholder="位号、针号、网络、功能、能力或 FPGA 球位"
- aria-controls="search-results"
- aria-autocomplete="list"
- >
- </label>
- <div id="search-results" class="search-results" role="listbox" aria-label="搜索结果" hidden></div>
- </div>
- <div class="status-cluster">
- <span id="app-status" class="status-badge status-loading" role="status">校验中</span>
- <button id="drawer-toggle" class="icon-button drawer-toggle" type="button" title="展开详情" aria-label="展开详情" aria-expanded="true">
- <span aria-hidden="true">⌄</span>
- </button>
- </div>
- </header>
- <main class="workspace">
- <section class="board-pane" aria-label="电路板工作区">
- <div id="stale-banner" class="stale-banner" role="alert" hidden></div>
- <div class="board-toolbar">
- <fieldset id="category-filters" class="segmented filters" aria-label="座子类别">
- <legend class="sr-only">座子类别</legend>
- <label><input type="checkbox" value="CON" checked><span>CON</span></label>
- <label><input type="checkbox" value="J" checked><span>J</span></label>
- <label><input type="checkbox" value="PL" checked><span>PL</span></label>
- <label><input type="checkbox" value="TP" checked><span>TP</span></label>
- </fieldset>
- <fieldset id="layer-controls" class="layer-controls" aria-label="板图图层">
- <legend class="sr-only">板图图层</legend>
- <label><input type="checkbox" value="mask" checked><span class="swatch swatch-mask"></span>阻焊/板框</label>
- <label><input type="checkbox" value="silk" checked><span class="swatch swatch-silk"></span>丝印</label>
- <label><input type="checkbox" value="copper" checked><span class="swatch swatch-copper"></span>铜层</label>
- <label id="photo-control" class="disabled-control" title="当前版本未配置照片叠层"><input id="photo-layer" type="checkbox" value="photo" disabled><span class="swatch swatch-photo"></span><span id="photo-label">照片未配置</span></label>
- </fieldset>
- <div class="view-tools" aria-label="视图工具">
- <button id="zoom-out" class="icon-button" type="button" title="缩小" aria-label="缩小"><span aria-hidden="true">−</span></button>
- <button id="zoom-in" class="icon-button" type="button" title="放大" aria-label="放大"><span aria-hidden="true">+</span></button>
- <button id="reset-view" class="icon-button" type="button" title="重置视图" aria-label="重置视图"><span aria-hidden="true">↺</span></button>
- </div>
- </div>
- <div id="board-viewport" class="board-viewport">
- <svg id="board-svg" role="img" aria-label="电路板视图" tabindex="0" preserveAspectRatio="xMidYMid meet">
- <g id="asset-layers" aria-hidden="true">
- <image id="layer-mask" href="/generated/board-mask-edge.svg" preserveAspectRatio="none"></image>
- <image id="layer-silk" href="/generated/board-silkscreen.svg" preserveAspectRatio="none"></image>
- <image id="layer-copper" href="/generated/board-copper.svg" preserveAspectRatio="none"></image>
- <image id="layer-photo" preserveAspectRatio="none" hidden></image>
- </g>
- <g id="net-layer" aria-hidden="true"></g>
- <g id="hotspot-layer"></g>
- <g id="pin-layer"></g>
- <g id="selection-layer" aria-hidden="true"></g>
- </svg>
- <div id="board-loading" class="board-loading" role="status">正在载入 110 个接触点</div>
- <div id="board-tooltip" class="board-tooltip" role="tooltip" hidden></div>
- <div class="coordinate-rail" aria-hidden="true"><span>0</span><span>215 mm</span><span>430 mm</span></div>
- </div>
- <footer class="board-footer">
- <span id="visible-count">0 个座子</span>
- <span id="zoom-readout">100%</span>
- <span id="selection-readout">未选择</span>
- </footer>
- </section>
- <aside id="detail-panel" class="detail-panel" aria-label="座子与针脚详情">
- <div class="drawer-handle" aria-hidden="true"></div>
- <div class="detail-tabs" role="tablist" aria-label="详情视图">
- <button id="detail-tab" type="button" role="tab" aria-selected="true" aria-controls="detail-content">座子详情</button>
- <button id="candidate-tab" type="button" role="tab" aria-selected="false" aria-controls="candidate-content">选脚辅助</button>
- </div>
- <section id="detail-content" class="panel-content" role="tabpanel" aria-labelledby="detail-tab"></section>
- <section id="candidate-content" class="panel-content" role="tabpanel" aria-labelledby="candidate-tab" hidden>
- <div class="candidate-controls">
- <label for="capability-select">目标能力</label>
- <select id="capability-select">
- <option value="uart_tx">UART TX</option>
- <option value="uart_rx">UART RX</option>
- <option value="pwm">PWM</option>
- <option value="gpio_output">GPIO 输出</option>
- <option value="gpio_input">GPIO 输入</option>
- <option value="tach">转速输入</option>
- <option value="fan_tach">风扇转速输入</option>
- <option value="presence">在位检测</option>
- <option value="gpio">通用 GPIO</option>
- </select>
- </div>
- <div id="candidate-list" class="candidate-list"></div>
- </section>
- </aside>
- </main>
- </div>
- <script type="module" src="app.js"></script>
- </body>
- </html>
|