remove debug noise
This commit is contained in:
@@ -192,7 +192,7 @@ async function handleObjectClicked(hit: any, isMultiSelect: boolean, mouseEvent?
|
||||
await selectionHandler.select(id, isMultiSelect)
|
||||
}
|
||||
} else {
|
||||
console.log(`🚫 Object ${id} is from a non-interactive model, skipping PowerBI selection`)
|
||||
console.log(`Object ${id} is from a non-interactive model, skipping selection`)
|
||||
}
|
||||
|
||||
// Show tooltip if we have mouse coordinates
|
||||
|
||||
@@ -163,7 +163,6 @@ export class FilteredSelectionExtension extends SelectionExtension {
|
||||
}
|
||||
|
||||
protected onObjectDoubleClick(selection: SelectionEvent | null) {
|
||||
console.log('🎯 FilteredSelectionExtension.onObjectDoubleClick called with:', selection)
|
||||
|
||||
if (!selection || !selection.hits || selection.hits.length === 0) {
|
||||
super.onObjectDoubleClick(selection)
|
||||
@@ -174,7 +173,6 @@ export class FilteredSelectionExtension extends SelectionExtension {
|
||||
for (const hit of selection.hits) {
|
||||
const objectId = hit.node.model.id
|
||||
if (this.isNonInteractiveObject(objectId)) {
|
||||
console.log('🚫 Preventing zoom on non-interactive object:', objectId)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,8 +179,6 @@ export class ViewerHandler {
|
||||
const nonInteractiveObjectIds = this.getNonInteractiveObjectIds()
|
||||
const allVisibleIds = [...objectIds, ...nonInteractiveObjectIds]
|
||||
|
||||
console.log(`📊 Filtering: ${objectIds.length} selected + ${nonInteractiveObjectIds.length} non-interactive = ${allVisibleIds.length} total visible`)
|
||||
|
||||
this.filteringState = this.filtering.isolateObjects(allVisibleIds, 'powerbi', true, ghost)
|
||||
if (zoom) {
|
||||
this.zoomObjects(objectIds, true)
|
||||
@@ -194,8 +192,6 @@ export class ViewerHandler {
|
||||
const nonInteractiveObjectIds = this.getNonInteractiveObjectIds()
|
||||
const allVisibleIds = [...objectIds, ...nonInteractiveObjectIds]
|
||||
|
||||
console.log(`📊 Reset filter: ${objectIds.length} objects + ${nonInteractiveObjectIds.length} non-interactive = ${allVisibleIds.length} total visible`)
|
||||
|
||||
this.isolateObjects(allVisibleIds, ghost)
|
||||
if (zoom) {
|
||||
this.zoomObjects(objectIds, true)
|
||||
@@ -300,7 +296,6 @@ export class ViewerHandler {
|
||||
})
|
||||
|
||||
this.modelObjectsMap.set(rootObjectId, objectIds)
|
||||
console.log(`📦 Mapped ${objectIds.size} objects to root object: ${rootObjectId} (${modelMetadata[i].modelName})`)
|
||||
}
|
||||
|
||||
// Since you are setting another camera position, maybe you want the second argument to false
|
||||
|
||||
@@ -274,7 +274,6 @@ export class Visual implements IVisual {
|
||||
// reset selection handler if we're reprocessing data (not first load)
|
||||
// this ensures only interactive objects get registered
|
||||
if (visualStore.isViewerObjectsLoaded && visualStore.getModelObjectsMap().size > 0) {
|
||||
console.log('🔄 Resetting selection handler for interactive mode update')
|
||||
this.selectionHandler.reset()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user