perf(522-2·522-3): B07 평면도 ⚙ 미리보기 첫 화면부터 캔버스만 · 받아 둔 도면 재사용

- cad_host bare 옵션 = iframe 주소 ?bare · openwebcad main.tsx 그리기 전 setBare(true) — 도면 오기 전에도 리본 · 패널 없음
- 평면도 관리 모달 · B06 표 위 CAD = bare
- 평면도 관리 = 페이지 목록(deps.drawings) 그대로 · 장 받기 = Prefetch.openDrawing · 같은 목록 다시 열기 = 요청 없음 · 고친 뒤만 목록 새로 + syncDrawings
- test_130 흉내 갱신(처음 = 목록 안 받음 · 고친 뒤 맞춤 · 다시 열기 요청 없음 · ?bare)
- 첫 열기 1.23~1.34 s → 0.31 s · 다시 열기 0.14~0.16 s · 요청 3 → 0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 08:03:55 +09:00
co-authored by Claude Opus 5.5
parent b522a52622
commit 7e57a970f8
7 changed files with 86 additions and 18 deletions
+3
View File
@@ -31,6 +31,7 @@ import {
isViewOnly,
setActiveLayerId,
setActiveToolActor,
setBare,
setCanvas,
setEntities,
setHighlightedEntityIds,
@@ -46,6 +47,8 @@ import { ActorEvent, type DrawEvent } from './tools/tool.types';
// 호스트 앱의 화이트/블랙 모드를 먼저 붙인 뒤 렌더한다.
syncThemeFromHost();
// 부모가 `?bare` 로 띄우면 첫 그림부터 캔버스만 — 도면을 넘길 때 다시 정함(522-2)
if (new URLSearchParams(window.location.search).has('bare')) setBare(true);
ReactDOM.createRoot(document.getElementById('root') as HTMLDivElement).render(
<React.StrictMode>