in src/visual.ts [65:88]
public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstance[] | VisualObjectInstanceEnumerationObject {
let enumeration = new ObjectEnumerationBuilder();
// Visuals are initialized with an empty data view before queries are run, therefore we need to make sure that
// we are resilient here when we do not have data view.
if (this.dataView) {
let objects = null;
if (this.dataView && this.dataView.metadata) {
objects = this.dataView.metadata.objects;
}
switch (options.objectName) {
case "general":
break;
case SubtotalProperties.ObjectSubTotals:
this.enumerateSubTotalsOptions(enumeration, objects);
break;
default:
break;
}
}
return enumeration.complete();
}