From 86c9b4dc38380642eb5ab7e8707cf7e9d2873fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Guimmara?= Date: Mon, 23 Dec 2024 13:23:01 +0100 Subject: [PATCH] refactor(index.js): add displayParentBounds toggle --- example/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/index.js b/example/index.js index 470942c0d..c5d866898 100644 --- a/example/index.js +++ b/example/index.js @@ -72,6 +72,7 @@ const params = { up: hashUrl ? '+Z' : '+Y', enableDebug: true, + displayParentBounds: false, displayBoxBounds: false, displaySphereBounds: false, displayRegionBounds: false, @@ -273,6 +274,7 @@ function init() { const debug = gui.addFolder( 'Debug Options' ); debug.add( params, 'enableDebug' ); + debug.add( params, 'displayParentBounds' ); debug.add( params, 'displayBoxBounds' ); debug.add( params, 'displaySphereBounds' ); debug.add( params, 'displayRegionBounds' ); @@ -489,6 +491,7 @@ function animate() { const plugin = tiles.getPluginByName( 'DEBUG_TILES_PLUGIN' ); plugin.enabled = params.enableDebug; plugin.displayBoxBounds = params.displayBoxBounds; + plugin.displayParentBounds = params.displayParentBounds; plugin.displaySphereBounds = params.displaySphereBounds; plugin.displayRegionBounds = params.displayRegionBounds; plugin.colorMode = parseFloat( params.colorMode );