Skip to content

@graphty/graph-io / styles / planStyles

Function: planStyles() ​

planStyles(values, features, options?): ExtractedStyles

Defined in: styles/plan/plan.ts:150

Plans a file's styles: the rules that reproduce its per-element values, with the columns they read.

Parameters ​

values ​

StyleValues

the canonical values, the declared rules and the graph they belong to

features ​

StyleFeatures

the candidate explaining columns per target (featuresOf() of the snapshot)

options? ​

PlanOptions = {}

tool defaults, the budget, the notes collector, the raw columns and a cancel signal

Returns ​

ExtractedStyles

the styles, exact for every element