feat(core): add zIndex option to elements
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -103,6 +103,7 @@ export interface DefaultEdge<Data = ElementData, CustomEvents extends Record<str
|
|||||||
/** contextual and custom events of edge */
|
/** contextual and custom events of edge */
|
||||||
events?: Partial<EdgeEventsHandler<CustomEvents>>
|
events?: Partial<EdgeEventsHandler<CustomEvents>>
|
||||||
/** Aria label for edge (a11y) */
|
/** Aria label for edge (a11y) */
|
||||||
|
zIndex?: number
|
||||||
ariaLabel?: string | null
|
ariaLabel?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,7 +149,6 @@ export interface EdgePositions {
|
|||||||
/** Internal edge type */
|
/** Internal edge type */
|
||||||
export type GraphEdge<Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any> = Edge<Data, CustomEvents> & {
|
export type GraphEdge<Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any> = Edge<Data, CustomEvents> & {
|
||||||
selected?: boolean
|
selected?: boolean
|
||||||
z?: number
|
|
||||||
sourceNode: GraphNode
|
sourceNode: GraphNode
|
||||||
targetNode: GraphNode
|
targetNode: GraphNode
|
||||||
data: Data
|
data: Data
|
||||||
|
|||||||
@@ -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 */
|
/** contextual and custom events that are passed to your custom components */
|
||||||
events?: Partial<NodeEventsHandler<CustomEvents>>
|
events?: Partial<NodeEventsHandler<CustomEvents>>
|
||||||
|
|
||||||
|
zIndex?: number
|
||||||
ariaLabel?: string
|
ariaLabel?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user