@graphty/graphty-element / index / DataLoadingProgressEvent
Interface: DataLoadingProgressEvent ​
Defined in: graphty-element/src/events.ts:247
Properties ​
bytesProcessed ​
bytesProcessed:
number
Defined in: graphty-element/src/events.ts:250
chunksProcessed ​
chunksProcessed:
number
Defined in: graphty-element/src/events.ts:274
edgeRecordsLoaded ​
edgeRecordsLoaded:
number
Defined in: graphty-element/src/events.ts:273
How many edge RECORDS the source has handed over so far.
Mid-load is before the endpoint spelling has been settled for every chunk and before a rejected or merged record has been resolved into an edge or into nothing, so this is the only edge number that can honestly be published while a load is running. A load of three records that produces two edges progresses to three here and completes at two.
Both halves of this event used to be called nodesLoaded and edgesLoaded, the same names data-loading-complete carries for two different numbers -- which is the confusion the import report exists to end, repeated one level down.
format ​
format:
string
Defined in: graphty-element/src/events.ts:249
loadId? ​
optionalloadId?:number
Defined in: graphty-element/src/events.ts:280
Which load this is about: the id addDataFromSource, loadFromFile and loadFromUrl resolve to, and that every event about one load carries. Absent on a report about records handed to a setter, which is not a load.
nodeRecordsLoaded ​
nodeRecordsLoaded:
number
Defined in: graphty-element/src/events.ts:260
How many node RECORDS the source has handed over so far.
Named for records because that is what it counts, and because the number the load finishes with is a different one: an edge naming a node the file never declares creates that node, so the graph can hold more nodes than any source handed over.
percentage? ​
optionalpercentage?:number
Defined in: graphty-element/src/events.ts:252
totalBytes? ​
optionaltotalBytes?:number
Defined in: graphty-element/src/events.ts:251
type ​
type:
"data-loading-progress"
Defined in: graphty-element/src/events.ts:248