@graphty/graph-io / styles / CytoscapeLiveInput
Interface: CytoscapeLiveInput ​
Defined in: styles/cyjs/live.ts:19
The input of readCytoscapeStyles().
Properties ​
budget? ​
readonlyoptionalbudget?:StyleWorkBudget
Defined in: styles/cyjs/live.ts:41
The counted work budget.
elements ​
readonlyelements:unknown
Defined in: styles/cyjs/live.ts:21
The core's elements: cy.elements().jsons(), or { nodes, edges }.
format? ​
readonlyoptionalformat?:string
Defined in: styles/cyjs/live.ts:32
The graph-io format id recorded as the styles' source; default "json".
rendered? ​
readonlyoptionalrendered?: 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? ​
readonlyoptionalsignal?:AbortSignal
Defined in: styles/cyjs/live.ts:43
Cancels the work.
snapshot ​
readonlysnapshot: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 ​
readonlystyle: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? ​
readonlyoptionaltoolDefaults?:boolean
Defined in: styles/cyjs/live.ts:34
Whether Cytoscape.js's defaults fill what the stylesheet leaves unset; default true.