feat: visibleEntitiesWithUri

This commit is contained in:
cha0s 2019-06-08 00:23:51 -05:00
parent 9239d5b2e6
commit 7d4ab97fa0
2 changed files with 10 additions and 0 deletions

View File

@ -189,6 +189,12 @@ export class EntityList extends decorate(class {}) {
return entities; return entities;
} }
visibleEntitiesWithUri(query, uri) {
return this.visibleEntities(query).filter((entity) => {
return entity.uri === uri;
});
}
} }
export {EntityListView} from './view'; export {EntityListView} from './view';

View File

@ -217,4 +217,8 @@ export class Layer extends decorate(class {}) {
return this.entityList.visibleEntities(query); return this.entityList.visibleEntities(query);
} }
visibleEntitiesWithUri(query, uri) {
return this.entityList.visibleEntitiesWithUri(query, uri);
}
} }