@graphty/graph-io / styles / featuresOf
Function: featuresOf() ​
featuresOf(
snapshot,target):StyleFeature[]
Defined in: styles/plan/features.ts:49
The candidate explaining columns of one target: every scalar attribute (the reserved graphty.* columns, coordinates and Cytoscape's selection state excepted), the group a node sits in as the style column group, and for nodes the degree (and the in- and out-degree of a directed graph) as { computed } references, which follow later edits of the graph; no degree where an undirected edge is stored as a directed pair.
Parameters ​
snapshot ​
GraphSnapshot
the graph
target ​
nodes or edges
Returns ​
the features, in column order with the degrees last