Skip to content

@graphty/graphty-element / index / GraphDataAddedEvent

Interface: GraphDataAddedEvent ​

Defined in: graphty-element/src/events.ts:119

Properties ​

cause? ​

optional cause?: HistoryCause

Defined in: graphty-element/src/events.ts:131

What added the rows: a command, or undo, redo or a rollback bringing them back. Absent for a load that does not yet come through the session's history (a data source, a file, a URL). The element starts a layout, frames the camera and runs the on-load algorithms only for rows a command or such a load added, never for rows undo or redo brought back.


count ​

count: number

Defined in: graphty-element/src/events.ts:122


dataType ​

dataType: "edges" | "nodes"

Defined in: graphty-element/src/events.ts:121


shouldStartLayout ​

shouldStartLayout: boolean

Defined in: graphty-element/src/events.ts:123


shouldZoomToFit ​

shouldZoomToFit: boolean

Defined in: graphty-element/src/events.ts:124


type ​

type: "data-added"

Defined in: graphty-element/src/events.ts:120