refactor(base-edge): pass id to base edge path
This commit is contained in:
@@ -3,6 +3,7 @@ import { isNumeric } from '../../utils';
|
||||
import type { BaseEdgeProps } from '../../types';
|
||||
|
||||
const BaseEdge = ({
|
||||
id,
|
||||
path,
|
||||
labelX,
|
||||
labelY,
|
||||
@@ -20,6 +21,7 @@ const BaseEdge = ({
|
||||
return (
|
||||
<>
|
||||
<path
|
||||
id={id}
|
||||
style={style}
|
||||
d={path}
|
||||
fill="none"
|
||||
|
||||
@@ -121,6 +121,7 @@ export type EdgeProps<T = any> = Pick<
|
||||
|
||||
export type BaseEdgeProps = Pick<EdgeProps, 'style' | 'markerStart' | 'markerEnd' | 'interactionWidth'> &
|
||||
EdgeLabelOptions & {
|
||||
id?: string;
|
||||
labelX?: number;
|
||||
labelY?: number;
|
||||
path: string;
|
||||
|
||||
Reference in New Issue
Block a user