highlightAlertArea(alertarea_id: string, highlightColor: number, highlight: boolean = false): void {
const locate = (level: IndoorModelLevel) => {
const found = level.alertAreas.find(alertarea => alertarea.id === alertarea_id);
const color = ( highlight ? highlightColor : 0xff0000);
if ( found ) {
found.object.setFloorColor(color);
// found.object.setVisibleIn3D(flag);
return true;
}
return false;
};
this.model.levels.some(locate);
}
I am currently using a visual code IDE. I have a good understanding of how the program works and I usually study by searching for functions with a Ctrl click. However, in this case, when I try to find a specific function, I cannot locate it even after ctrl-clicking on it. Is there an alternative method?
found.object.setFloorColor(color);