chore(core): deprecate event properties of nodes and edges

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 3e9840a351
commit 8db9b1a997
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -103,7 +103,7 @@ export interface DefaultEdge<
template?: EdgeComponent
/** Additional data that is passed to your custom components */
data?: Data
/** contextual and custom events of edge */
/** @deprecated will be removed in the next major version */
events?: Partial<EdgeEventsHandler<CustomEvents>>
/** Aria label for edge (a11y) */
zIndex?: number
@@ -159,6 +159,7 @@ export type GraphEdge<
sourceNode: GraphNode
targetNode: GraphNode
data: Data
/** @deprecated will be removed in the next major version */
events: Partial<EdgeEventsHandler<CustomEvents>>
type: Type
} & EdgePositions
+1
View File
@@ -114,6 +114,7 @@ export interface GraphNode<
dragging: boolean
initialized: boolean
data: Data
/** @deprecated will be removed in the next major version */
events: Partial<NodeEventsHandler<CustomEvents>>
type: Type
}