Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.22 KB

GraphChangedEvent.md

File metadata and controls

47 lines (26 loc) · 1.22 KB

@antv/graphlib / Exports / GraphChangedEvent

Interface: GraphChangedEvent<N, E>

Type parameters

Name Type
N extends PlainObject
E extends PlainObject

Table of contents

Properties

Properties

changes

changes: GraphChange<N, E>[]

Atomic changes that have occurred in the graph since the last time graph.onChanged was triggered.

changes are ordered by the time they occurred.

Each change object is a smallest unit of change that can be made to a graph, including addition, removal, or modification of nodes or edges.

You can call reduceChanges to reduce them.

Defined in

src/types.ts:129


graph

graph: Graph<N, E>

The Graph instance which triggered this event.

Defined in

src/types.ts:118