feat(core,edges): add focusable and ariaLabel options to edge type
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,8 @@ interface DefaultEdge<Data = ElementData, CustomEvents extends Record<string, Cu
|
|||||||
updatable?: EdgeUpdatable
|
updatable?: EdgeUpdatable
|
||||||
/** Disable/enable selecting edge */
|
/** Disable/enable selecting edge */
|
||||||
selectable?: boolean
|
selectable?: boolean
|
||||||
|
/** Disable/enable focusing edges (a11y) */
|
||||||
|
focusable?: boolean
|
||||||
/** Additional class names, can be a string or a callback returning a string (receives current flow element) */
|
/** Additional class names, can be a string or a callback returning a string (receives current flow element) */
|
||||||
class?: string | ClassFunc<GraphEdge<Data, CustomEvents>>
|
class?: string | ClassFunc<GraphEdge<Data, CustomEvents>>
|
||||||
/** Additional styles, can be an object or a callback returning an object (receives current flow element) */
|
/** Additional styles, can be an object or a callback returning an object (receives current flow element) */
|
||||||
@@ -97,6 +99,8 @@ interface DefaultEdge<Data = ElementData, CustomEvents extends Record<string, Cu
|
|||||||
data?: Data
|
data?: Data
|
||||||
/** 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) */
|
||||||
|
ariaLabel?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SmoothStepPathOptions {
|
export interface SmoothStepPathOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user