Skip to content

@graphty/graphty-element / session / LoadedSource

Interface: LoadedSource ​

Defined in: graphty-element/src/session/types.ts:1688

One load still in the graph: where it came from, and what it added.

Extends ​

Properties ​

added ​

readonly added: object

Defined in: graphty-element/src/session/types.ts:1698

How many nodes and edges the load added to the graph.

edges ​

readonly edges: number

nodes ​

readonly nodes: number


config? ​

readonly optional config?: Readonly<Record<string, unknown>>

Defined in: graphty-element/src/session/types.ts:1663

The source's options, without data and file: the url, and what the source reads besides.

Inherited from ​

DataSourceDescriptor.config


leftOut? ​

readonly optional leftOut?: object

Defined in: graphty-element/src/session/types.ts:1704

Edge rows the load left out because they named a node no node row held (unmatched: "leave-out"), and how many distinct such names, as LoadReport.unmatched counts them. Present only when the load left at least one row out.

edges? ​

readonly optional edges?: readonly LeftOutEdge[]

The left-out rows themselves (the first 100), so they can be shown after the load and after a project is saved and reopened: each row's two ends as the load read them, and its other values. Absent in a project saved before they were kept.

endColumns? ​

readonly optional endColumns?: object

The names of the columns the load read each row's two ends from. Absent when an end was read by an expression that is not a plain column name, or in a project saved before it was kept.

endColumns.source ​

readonly source: string

endColumns.target ​

readonly target: string

rows ​

readonly rows: number

values ​

readonly values: number


name? ​

readonly optional name?: string

Defined in: graphty-element/src/session/types.ts:1659

What the reader calls the data.

Inherited from ​

DataSourceDescriptor.name


size? ​

readonly optional size?: number

Defined in: graphty-element/src/session/types.ts:1661

The file's size in bytes, when a file was read.

Inherited from ​

DataSourceDescriptor.size


tableRows? ​

readonly optional tableRows?: readonly ("edges" | "nodes")[]

Defined in: graphty-element/src/session/types.ts:1696

What each of tables held, in the same order: rows of nodes or rows of edges, as the load read them. Absent when the load read a graph file (its one entry holds both) or no table by name, and in a project saved before it was kept.


tables ​

readonly tables: readonly string[]

Defined in: graphty-element/src/session/types.ts:1690

The names of the tables the load read, as the draft named them; empty when it read none by name.


type? ​

readonly optional type?: string

Defined in: graphty-element/src/session/types.ts:1657

The data source that read it: the format named, or the one detected.

Inherited from ​

DataSourceDescriptor.type