@graphty/graph-io / @graphty/graph-io/json / JsonShapeMeta
Interface: JsonShapeMeta ​
Defined in: formats/json/dialect.ts:72
The shape information the importer records under meta.extra.json so the exporter can write the same file back; jsonShapeOf(snapshot) reads it. Every field is optional because a graph may come from another format.
Properties ​
allowSelfLoops? ​
readonlyoptionalallowSelfLoops?:boolean
Defined in: formats/json/dialect.ts:90
graphology: options.allowSelfLoops as declared.
cytoscape? ​
readonlyoptionalcytoscape?:Readonly<Record<string,unknown>>
Defined in: formats/json/dialect.ts:92
cytoscape: every top-level key besides elements and data (style, zoom, pan, ...), verbatim.
dialect? ​
readonlyoptionaldialect?:JsonDialect
Defined in: formats/json/dialect.ts:74
The dialect the file was read as.
edgesKey? ​
readonlyoptionaledgesKey?:string
Defined in: formats/json/dialect.ts:76
node-link / d3: the key the edge array was under ("links" or "edges").
id? ​
readonlyoptionalid?:string
Defined in: formats/json/dialect.ts:86
jgf: the graph id.
indexLinks? ​
readonlyoptionalindexLinks?:boolean
Defined in: formats/json/dialect.ts:80
node-link / d3: whether edge endpoints were array positions rather than ids.
nodeIdKey? ​
readonlyoptionalnodeIdKey?:string|null
Defined in: formats/json/dialect.ts:78
node-link / d3: the key holding the node id ("id", "name", ...); null when nodes were positional.
sourceKey? ​
readonlyoptionalsourceKey?:string
Defined in: formats/json/dialect.ts:82
node-link / d3 / vis: the endpoint keys the file used.
targetKey? ​
readonlyoptionaltargetKey?:string
Defined in: formats/json/dialect.ts:84
node-link / d3 / vis: the endpoint keys the file used.
type? ​
readonlyoptionaltype?:string
Defined in: formats/json/dialect.ts:88
jgf: the graph type.