Documentation / @ripl/core / Queryable
Interface: Queryable
Defined in: packages/core/src/core/query.ts:24
The structural contract the CSS-like query engine operates on, implemented by every Element. Container elements (Group) additionally provide children and a flattened descendant graph so combinators can traverse the scene tree. Typing the engine against this interface (rather than the concrete classes) lets Element, Group, and the engine live in separate modules without import cycles.
Properties
Methods
graph()?
optionalgraph(includeGroups?):Queryable[]
Defined in: packages/core/src/core/query.ts:36
Present on container elements (e.g. Group): the flattened descendant graph.
Parameters
| Parameter | Type |
|---|---|
includeGroups? | boolean |
Returns
Queryable[]