Skip to content

@graphty/graphty-element / catalog / FormatExportVariant

Interface: FormatExportVariant ​

Defined in: graphty-element/src/catalog/types.ts:1390

One kind of file a format's writer produces: a format id plus the writer options that fix it.

Properties ​

extensions ​

extensions: readonly string[]

Defined in: graphty-element/src/catalog/types.ts:1394


id ​

id: string

Defined in: graphty-element/src/catalog/types.ts:1392

Unique within its format.


mimeTypes ​

mimeTypes: readonly string[]

Defined in: graphty-element/src/catalog/types.ts:1395


options ​

options: readonly OptionDescriptor[]

Defined in: graphty-element/src/catalog/types.ts:1402

The writer options that apply to this variant: the format's writerOptions without the preset's keys and without anything that applies only to another variant.


plainName ​

plainName: string

Defined in: graphty-element/src/catalog/types.ts:1393


preset ​

preset: Readonly<Record<string, unknown>>

Defined in: graphty-element/src/catalog/types.ts:1397

The writer options this variant fixes, passed to exportGraph unchanged.