feat(pcb): 기판 툴바에 자동 배선 버튼 추가, 연결(넷) 목록은 기본 접힘(자동 배선 섹션이 화면 아래로 밀려 안 보이던 문제)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6633d85bba
commit
d2334b23dd
1 file changed
+4
-3
@@ -115,6 +115,7 @@ details{margin-bottom:6px}summary{cursor:pointer;font-weight:700;font-size:12.5p
|
||||
<button class="btn" onclick="rotateSel()" title="R">⟳ 회전</button>
|
||||
<button class="btn" onclick="deleteSel()" title="Delete">🗑 삭제</button>
|
||||
<span class="sp"></span>
|
||||
<button class="btn pri" id="rbtn2" onclick="doRoute()" title="Freerouting 으로 자동 배선">🧭 자동 배선</button>
|
||||
<label style="font-size:11px;color:var(--muted)">격자</label>
|
||||
<select id="snap" style="width:76px" onchange="draw()"><option value="0.5">0.5mm</option><option value="1.27">1.27mm</option><option value="2.54" selected>2.54mm</option><option value="0.1">0.1mm</option></select>
|
||||
<button class="btn" onclick="fitView()">⤢ 맞춤</button>
|
||||
@@ -142,7 +143,7 @@ details{margin-bottom:6px}summary{cursor:pointer;font-weight:700;font-size:12.5p
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details open><summary>연결(넷)</summary>
|
||||
<details><summary>연결(넷)</summary>
|
||||
<div id="nets"></div>
|
||||
<div class="note">🔗 핀 연결 모드에서 핀 A → 핀 B를 클릭하면 이어집니다. 계속 클릭하면 같은 넷에 추가됩니다. Esc로 끊기.</div>
|
||||
</details>
|
||||
@@ -490,7 +491,7 @@ function applyMill(){
|
||||
|
||||
// ───────────── 배선 · G-code ─────────────
|
||||
async function doRoute(){
|
||||
const b=$('rbtn');b.disabled=true;$('rres').innerHTML='Freerouting 실행 중… (보드에 따라 수 초~수 분)';
|
||||
const b=$('rbtn'),b2=$('rbtn2');b.disabled=true;if(b2)b2.disabled=true;$('rres').innerHTML='Freerouting 실행 중… (보드에 따라 수 초~수 분)';
|
||||
try{
|
||||
const key0=pcbKey();
|
||||
const d=await api('/api/pcb/route',{project:P,maxPasses:+$('passes').value||30,timeoutSec:+$('tmo').value||120,jumpers:$('jmp').checked});
|
||||
@@ -503,7 +504,7 @@ async function doRoute(){
|
||||
:`<span class="bad">✖ 미배선 ${un<0?'?':un}건</span> (${d.traces.length}구간 배선됨, ${d.stats.seconds}초)<br>부품을 옮기거나 회전해 교차를 줄이거나, '점퍼선' 옵션을 켜 보세요.`)+jl;
|
||||
save();draw();
|
||||
}catch(e){$('rres').innerHTML=`<span class="bad">${esc(e.message)}</span>`;}
|
||||
finally{b.disabled=false;}
|
||||
finally{b.disabled=false;if(b2)b2.disabled=false;}
|
||||
}
|
||||
async function doGcode(){
|
||||
if(!routed){$('res').innerHTML='<span class="bad">먼저 자동 배선을 실행하세요.</span>';return;}
|
||||
|
||||
Reference in new issue
Block a user