feat(core): add zIndex option to elements

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-10 11:10:40 +01:00
committed by Braks
parent 790ef34f83
commit 93b463df0c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -103,6 +103,7 @@ export interface DefaultEdge<Data = ElementData, CustomEvents extends Record<str
/** contextual and custom events of edge */
events?: Partial<EdgeEventsHandler<CustomEvents>>
/** Aria label for edge (a11y) */
zIndex?: number
ariaLabel?: string | null
}
@@ -148,7 +149,6 @@ export interface EdgePositions {
/** Internal edge type */
export type GraphEdge<Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any> = Edge<Data, CustomEvents> & {
selected?: boolean
z?: number
sourceNode: GraphNode
targetNode: GraphNode
data: Data
+1
View File
@@ -85,6 +85,7 @@ export interface Node<Data = ElementData, CustomEvents extends Record<string, Cu
/** contextual and custom events that are passed to your custom components */
events?: Partial<NodeEventsHandler<CustomEvents>>
zIndex?: number
ariaLabel?: string
}