Visual debug overlay for inspecting layout.
const overlay = new LayoutDebugOverlay();app.stage.addChild(overlay.container);// Update after layout computationlayoutTree.setOnLayoutComplete((root) => { overlay.update(root);});// Toggle visibilityoverlay.toggle(); Copy
const overlay = new LayoutDebugOverlay();app.stage.addChild(overlay.container);// Update after layout computationlayoutTree.setOnLayoutComplete((root) => { overlay.update(root);});// Toggle visibilityoverlay.toggle();
Readonly
Check if overlay is visible
Dispose the overlay
Hide the overlay
Update options
Show the overlay
Toggle overlay visibility
Update the overlay with a layout tree
Visual debug overlay for inspecting layout.
Example