Skip to content

@graphty/graph-io / styles / CytoscapeLiveInput

Interface: CytoscapeLiveInput ​

Defined in: styles/cyjs/live.ts:19

The input of readCytoscapeStyles().

Properties ​

budget? ​

readonly optional budget?: StyleWorkBudget

Defined in: styles/cyjs/live.ts:41

The counted work budget.


elements ​

readonly elements: unknown

Defined in: styles/cyjs/live.ts:21

The core's elements: cy.elements().jsons(), or { nodes, edges }.


format? ​

readonly optional format?: string

Defined in: styles/cyjs/live.ts:32

The graph-io format id recorded as the styles' source; default "json".


rendered? ​

readonly optional rendered?: readonly (Readonly<Record<string, unknown>> | null | undefined)[]

Defined in: styles/cyjs/live.ts:28

What the core draws for each element, ele.style(), in the order of elements (for { nodes, edges }, the nodes then the edges); optional, and null for an element with none.


signal? ​

readonly optional signal?: AbortSignal

Defined in: styles/cyjs/live.ts:43

Cancels the work.


snapshot ​

readonly snapshot: GraphSnapshot

Defined in: styles/cyjs/live.ts:30

The graph the styles are for (the core's elements as a snapshot); the values come out indexed like it.


style ​

readonly style: unknown

Defined in: styles/cyjs/live.ts:23

The core's stylesheet: cy.style().json() (a function is written there as "fn"), or the one it was given.


toolDefaults? ​

readonly optional toolDefaults?: boolean

Defined in: styles/cyjs/live.ts:34

Whether Cytoscape.js's defaults fill what the stylesheet leaves unset; default true.