Skip to content

@graphty/graph-io / styles / toCytoscapeStylesheet

Function: toCytoscapeStylesheet() ​

toCytoscapeStylesheet(extracted, options?): CytoscapeStylesheetResult

Defined in: styles/cyjs/emit.ts:915

Writes neutral styles as a Cytoscape.js stylesheet, the element data it reads and the bypasses that make it exact.

Parameters ​

extracted ​

ExtractedStyles

the styles

options? ​

CytoscapeStylesheetOptions = {}

the import id that scopes the stylesheet

Returns ​

CytoscapeStylesheetResult

the stylesheet, the element data, the bypasses and the notes of what could not be written