mock: キャンバスの viewBox を、ツールバーを除いた SVG の大きさに合わせる

ResizeObserver がツールバーを含むペインを見ていたため、viewBox の高さが SVG の実寸より
ツールバーの分だけ大きく、描画が縮んでいた。ツールバーが折り返すとずれが広がる。SVG 自身を見る。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShoEXYqi8PWTjB9E86Ltot
This commit is contained in:
2026-10-23 20:59:42 +09:00
co-authored by Claude Opus 5.5
parent b314309e8c
commit a4eabe3691
3 changed files with 11 additions and 4 deletions
-1
View File
@@ -76,7 +76,6 @@ const {
} = usePhyTreeModel(() => props.project, focus);
const { fit, fitSelected, localPoint, wheel } = usePhyViewport({
project: () => props.project,
pane,
svg,
size,
zoom,