Skip to content

@graphty/graph-io / styles / resolveStyles

Function: resolveStyles() ​

resolveStyles(extracted, target, property, snapshot?): readonly (StyleValue | null)[]

Defined in: styles/plan/resolve.ts:673

Every element's value of one property under a file's styles: the reference semantics of the format.

Parameters ​

extracted ​

ExtractedStyles

the styles

target ​

StyleTarget

nodes or edges

property ​

StyleProperty

the property

snapshot? ​

GraphSnapshot

the graph; when given, data columns and degrees are read from it (so a degree mapping follows the graph), otherwise from extracted.features

Returns ​

readonly (StyleValue | null)[]

each element's value, or null where the file gives none