@graphty/graph-io / styles / Predicate
Type Alias: Predicate ​
Predicate = {
all:true; } | {has:ColumnRef; } | {eq: readonly [ColumnRef,Scalar]; } | {in: readonly [ColumnRef, readonlyScalar[]]; } | {and: readonlyPredicate[]; } | {or: readonlyPredicate[]; } | {not:Predicate; }
Defined in: styles/types.ts:979
Which elements a rule applies to. Readers and the planner emit only all, has, not over has, eq and in (at most 8 values), with at most one and; a wider group is written onto the elements as a style column and selected with has. Open union.
Union Members ​
Type Literal ​
{ all: true; }
all ​
readonlyall:true
Every element.
Type Literal ​
{ has: ColumnRef; }
has ​
readonlyhas:ColumnRef
The elements whose column holds a value (not null, not false).
Type Literal ​
{ eq: readonly [ColumnRef, Scalar]; }
eq ​
The elements whose column equals the value.
Type Literal ​
{ in: readonly [ColumnRef, readonly Scalar[]]; }
in ​
The elements whose column equals one of the values.
Type Literal ​
{ and: readonly Predicate[]; }
and ​
readonlyand: readonlyPredicate[]
The elements every predicate matches.
Type Literal ​
{ or: readonly Predicate[]; }
or ​
readonlyor: readonlyPredicate[]
The elements any predicate matches.
Type Literal ​
{ not: Predicate; }
not ​
readonlynot:Predicate
The elements the predicate does not match.