Skip to content

@graphty/graph-io / styles / matchPredicate

Function: matchPredicate() ​

matchPredicate(extracted, target, where, snapshot?): readonly boolean[]

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 ​

ExtractedStyles

the styles whose columns and features the condition reads

target ​

StyleTarget

nodes or edges

where ​

Predicate

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