Skip to content

@graphty/graph-io / styles / StyleWriteCapabilities

Interface: StyleWriteCapabilities ​

Defined in: styles/types.ts:1437

What a format's writer can hold: per target, the properties it writes natively, and where the graphty.styles block and the tagged per-element values go: "native" (the exporter places them itself), "attributes" (graph-io adds them to the snapshot as a graph attribute and element attributes) or "none".

Properties ​

block ​

readonly block: "attributes" | "none" | "native"

Defined in: styles/types.ts:1450

Where the block and the tagged values go.


edge ​

readonly edge: readonly EdgeStyleProperty[]

Defined in: styles/types.ts:1441

Edge properties written natively.


graph? ​

readonly optional graph?: readonly "background"[]

Defined in: styles/types.ts:1443

Graph properties written natively.


node ​

readonly node: readonly NodeStyleProperty[]

Defined in: styles/types.ts:1439

Node properties written natively.


tool? ​

readonly optional tool?: StyleTool

Defined in: styles/types.ts:1448

The program that draws the files this writer writes, when there is one. A graph property the format has no place for is not reported lost when its value is what that program draws anyway (its tool default).