The compiled value of a graph: {} config block: an ordered list of
graph-default style items. The compiler folds the deprecated top-level
graph keywords into this list first, then lets an explicit graph: {}
block override on key conflict.
import { compile, parse } from'jssm'; constcfg = compile(parse('a -> b; graph_bg_color: #ffffff;')); // the compiler canonicalizes the folded `graph_bg_color` alias to a // `background-color` item, so: // cfg.default_graph_config includes { key: 'background-color', value: '#ffffffff' }
The compiled value of a
graph: {}config block: an ordered list of graph-default style items. The compiler folds the deprecated top-level graph keywords into this list first, then lets an explicitgraph: {}block override on key conflict.