|
@@ -222,12 +222,18 @@ export class DebugLayer {
|
|
|
* @param entity defines the entity to select
|
|
|
* @param lineContainerTitle defines the specific block to highlight
|
|
|
*/
|
|
|
- public select(entity: any, lineContainerTitle?: string) {
|
|
|
+ public select(entity: any, lineContainerTitles?: string | string[]) {
|
|
|
if (this.BJSINSPECTOR) {
|
|
|
- this.BJSINSPECTOR.Inspector.MarkLineContainerTitleForHighlighting(lineContainerTitle);
|
|
|
+
|
|
|
+ if (lineContainerTitles){
|
|
|
+ if (Object.prototype.toString.call(lineContainerTitles) == '[object String]') {
|
|
|
+ this.BJSINSPECTOR.Inspector.MarkLineContainerTitleForHighlighting(lineContainerTitles);
|
|
|
+ } else {
|
|
|
+ this.BJSINSPECTOR.Inspector.MarkMultipleLineContainerTitlesForHighlighting(lineContainerTitles);
|
|
|
+ }
|
|
|
+ }
|
|
|
this.BJSINSPECTOR.Inspector.OnSelectionChangeObservable.notifyObservers(entity);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/** Get the inspector from bundle or global */
|