Skip to content

@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 ​

StyleTarget

nodes or edges

Returns ​

StyleFeature[]

the features, in column order with the degrees last