@graphty/graph-io / styles / FileStyles
Interface: FileStyles ​
Defined in: styles/types.ts:1212
The small, JSON-serializable description of a file's styles.
Properties ​
graph ​
readonlygraph:GraphStyle
Defined in: styles/types.ts:1230
The graph's own style.
notes ​
readonlynotes: readonlyStyleNote[]
Defined in: styles/types.ts:1234
Everything approximated, dropped or malformed.
rules ​
readonlyrules: readonlyStyleRule[]
Defined in: styles/types.ts:1232
Bottom to top.
source ​
readonlysource:object
Defined in: styles/types.ts:1216
The format, the dialect of its values, and the program whose defaults were applied (null when unknown).
dialect ​
readonlydialect:StyleDialect|null
How the file spells its values.
format ​
readonlyformat:string
The graph-io format id.
tool ​
readonlytool:StyleTool|null
The program whose defaults were applied, or null when the writer is not identified.
units ​
readonlyunits:object
Defined in: styles/types.ts:1225
The unit of every length: pixels, or the writing tool's relative size factor.
length ​
readonlylength:"px"|"relative"
Pixels, or the writing tool's relative size factor.
version ​
readonlyversion:1
Defined in: styles/types.ts:1214
Changes only when the meaning of an existing construct changes.