@graphty/graph-io / styles / matchPredicate
Function: matchPredicate() ​
matchPredicate(
extracted,target,where,snapshot?): readonlyboolean[]
Defined in: styles/plan/resolve.ts:692
Which elements a rule's condition selects under a file's styles, read the way resolveStyles() reads it.
Parameters ​
extracted ​
the styles whose columns and features the condition reads
target ​
nodes or edges
where ​
the condition
snapshot? ​
GraphSnapshot
the graph; when given, data columns and degrees are read from it, otherwise from extracted.features
Returns ​
readonly boolean[]
per element, whether the condition selects it