mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-09-11 18:49:41 +10:00
feat: expose showDebugPanel API and add panel toggle method
This commit is contained in:
@@ -201,6 +201,11 @@ export class DebugPanel {
|
|||||||
/** @returns {string | null} */
|
/** @returns {string | null} */
|
||||||
get lastActiveId() { return this.#lastActiveId; }
|
get lastActiveId() { return this.#lastActiveId; }
|
||||||
|
|
||||||
|
/** Expands the debug panel if it is collapsed. */
|
||||||
|
show() {
|
||||||
|
this.#panel.classList.remove("collapsed");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the draggable checkbox to the given value without firing the change callback.
|
* Sets the draggable checkbox to the given value without firing the change callback.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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.
|
// Connection SVG is screen-space — must re-render on every pan/zoom so paths track node positions.
|
||||||
let hasTransformed = false;
|
let hasTransformed = false;
|
||||||
let trackTransform = false;
|
let trackTransform = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user