Skip to content

@graphty/graphty-element / session / EXPORT_STYLE_LOSS_CODES

Variable: EXPORT_STYLE_LOSS_CODES ​

const EXPORT_STYLE_LOSS_CODES: readonly ["W_STYLE_NOT_WRITTEN", "W_STYLE_APPROXIMATED", "W_STYLE_RULES_NOT_KEPT", "W_STYLE_LAYER_FLATTENED", "W_STYLES_NOT_EXPORTED", "E_STYLES_MISMATCH"]

Defined in: graphty-element/src/session/styles/fileStyles/codes.ts:69

The style codes an export reports among its losses, before anything is written: what the format cannot hold (W_STYLE_NOT_WRITTEN), holds only approximately (W_STYLE_APPROXIMATED), the layers it does not keep (W_STYLE_RULES_NOT_KEPT), a layer written as its values (W_STYLE_LAYER_FLATTENED), layers an export without styles: true left out (W_STYLES_NOT_EXPORTED), and styles of another graph (E_STYLES_MISMATCH, the only error).