Skip to content

@graphty/graphty-element / index / GraphDataClearedEvent

Interface: GraphDataClearedEvent ​

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

Emitted once every time the graph's data is cleared -- by clearData(), and by a load that replaces the dataset -- after every node and edge is gone. It carries nothing, so it survives structured cloning; a consumer that wants the new counts reads them.

Properties ​

type ​

type: "data-cleared"

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