Skip to content

@graphty/graphty-element / index / ExportLoss

Type Alias: ExportLoss ​

ExportLoss = CodedFact<ExportLossCode | string & object>

Defined in: graphty-element/src/data/export.ts:155

One kind of thing an export could not carry, as a code and its values, for the application to word. Every code has the same params:

  • columns: the columns it is about, by name (empty when it is about none, such as the graph's self-loops); every graph attribute a format has no place for, for instance.
  • count: how many nodes, edges, values or columns are affected, or null when not counted.

A style code adds target and property where it is about one property (and channel where that property is a channel only graphty draws), and W_STYLE_LAYER_FLATTENED adds layer and reason (see ExportStyleLossCode).

code is an ExportLossCode for a built-in writer; a writer registered with registerFormatWriter reports its own codes.