feat: expose showDebugPanel API and add panel toggle method

This commit is contained in:
2026-09-08 23:17:20 +10:00
parent 212c2adb77
commit d395153dca
2 changed files with 8 additions and 0 deletions

View File

@@ -311,6 +311,9 @@ const debugPanel = new DebugPanel(debugPanelEl,
}
);
// Browser DevTools command: showDebugPanel()
window.showDebugPanel = () => debugPanel.show();
// Connection SVG is screen-space — must re-render on every pan/zoom so paths track node positions.
let hasTransformed = false;
let trackTransform = false;