remove debug logging and setting

This commit is contained in:
bymyself
2025-09-04 18:54:23 -07:00
parent 1e307564f0
commit e8dae57a6a
9 changed files with 5 additions and 155 deletions

View File

@@ -427,24 +427,6 @@ describe('useSpatialIndex', () => {
})
})
describe('getDebugVisualization', () => {
it('should return null when debug is disabled', () => {
const { getDebugVisualization } = spatialIndex
expect(getDebugVisualization()).toBeNull()
})
it('should return debug info when enabled', () => {
const debugIndex = useSpatialIndex({ enableDebugVisualization: true })
debugIndex.initialize()
const debug = debugIndex.getDebugVisualization()
expect(debug).not.toBeNull()
expect(debug).toHaveProperty('size')
expect(debug).toHaveProperty('tree')
})
})
describe('metrics', () => {
it('should track performance metrics', () => {
const { metrics, updateNode, queryViewport } = spatialIndex