@graphty/graph-io / styles / isStyleValue
Function: isStyleValue() ​
isStyleValue(
target,property,value):boolean
Defined in: styles/vocabulary.ts:368
Whether a value is a canonical value of a property. A graphty:<channel> property takes any string, number or boolean; an unknown property takes nothing.
Parameters ​
target ​
"graph" | StyleTarget
nodes, edges or the graph
property ​
string
the property name
value ​
unknown
the value to check
Returns ​
boolean
true when the value has the property's kind and canonical spelling