Skip to content

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

readonly graph: GraphStyle

Defined in: styles/types.ts:1230

The graph's own style.


notes ​

readonly notes: readonly StyleNote[]

Defined in: styles/types.ts:1234

Everything approximated, dropped or malformed.


rules ​

readonly rules: readonly StyleRule[]

Defined in: styles/types.ts:1232

Bottom to top.


source ​

readonly source: 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 ​

readonly dialect: StyleDialect | null

How the file spells its values.

format ​

readonly format: string

The graph-io format id.

tool ​

readonly tool: StyleTool | null

The program whose defaults were applied, or null when the writer is not identified.


units ​

readonly units: object

Defined in: styles/types.ts:1225

The unit of every length: pixels, or the writing tool's relative size factor.

length ​

readonly length: "px" | "relative"

Pixels, or the writing tool's relative size factor.


version ​

readonly version: 1

Defined in: styles/types.ts:1214

Changes only when the meaning of an existing construct changes.