Skip to content

@graphty/graphty-element / index / BaseDataSourceConfig

Interface: BaseDataSourceConfig ​

Defined in: graphty-element/src/data/DataSource.ts:28

What every reader is configured with, whatever its format.

Properties ​

chunkSize? ​

optional chunkSize?: number

Defined in: graphty-element/src/data/DataSource.ts:38


data? ​

optional data?: SourceData

Defined in: graphty-element/src/data/DataSource.ts:33

The file's contents, inline: text, or its bytes. Bytes are decoded by the importer, which reads a byte-order mark and an encoding declaration; a binary format (a zip) needs them.


errorLimit? ​

optional errorLimit?: number

Defined in: graphty-element/src/data/DataSource.ts:39


file? ​

optional file?: File

Defined in: graphty-element/src/data/DataSource.ts:35

A file to read, as bytes.


graphIndex? ​

optional graphIndex?: number

Defined in: graphty-element/src/data/DataSource.ts:44

Which graph to read from a file that holds several, by its 0-based position. The first when neither this nor graphName is given. listGraphs from ./catalog lists them.


graphName? ​

optional graphName?: string

Defined in: graphty-element/src/data/DataSource.ts:46

Which graph to read from a file that holds several, by its name.


url? ​

optional url?: string

Defined in: graphty-element/src/data/DataSource.ts:37

A URL to fetch, as bytes.