feat: visibleEntitiesWithUri
This commit is contained in:
parent
9239d5b2e6
commit
7d4ab97fa0
|
@ -189,6 +189,12 @@ export class EntityList extends decorate(class {}) {
|
|||
return entities;
|
||||
}
|
||||
|
||||
visibleEntitiesWithUri(query, uri) {
|
||||
return this.visibleEntities(query).filter((entity) => {
|
||||
return entity.uri === uri;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export {EntityListView} from './view';
|
||||
|
|
|
@ -217,4 +217,8 @@ export class Layer extends decorate(class {}) {
|
|||
return this.entityList.visibleEntities(query);
|
||||
}
|
||||
|
||||
visibleEntitiesWithUri(query, uri) {
|
||||
return this.entityList.visibleEntitiesWithUri(query, uri);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user