added types for baseEdge
This commit is contained in:
@@ -114,13 +114,24 @@ export type EdgeProps<T = any> = Pick<
|
||||
* @public
|
||||
*/
|
||||
export type BaseEdgeProps = EdgeLabelOptions & {
|
||||
/** unique id of edge */
|
||||
id?: string;
|
||||
/** additional padding where interacting with an edge is still possible */
|
||||
interactionWidth?: number;
|
||||
className?: string;
|
||||
/** x position of edge label */
|
||||
labelX?: number;
|
||||
/** y position of edge label */
|
||||
labelY?: number;
|
||||
/** marker at start of edge
|
||||
* @example 'url(#arrow)'
|
||||
*/
|
||||
markerStart?: string;
|
||||
/** marker at end of edge
|
||||
* @example 'url(#arrow)'
|
||||
*/
|
||||
markerEnd?: string;
|
||||
/** svg path of the edge */
|
||||
path: string;
|
||||
style?: CSSProperties;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user