refactor(edge-text): allow html attributes as props

This commit is contained in:
moklick
2021-03-01 15:42:17 +01:00
parent 1745320101
commit 254003919c
2 changed files with 50 additions and 50 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { CSSProperties, MouseEvent as ReactMouseEvent } from 'react';
import { CSSProperties, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
import { Selection as D3Selection, ZoomBehavior } from 'd3';
export type ElementId = string;
@@ -157,7 +157,7 @@ export interface EdgeSmoothStepProps<T = any> extends EdgeProps<T> {
borderRadius?: number;
}
export interface EdgeTextProps {
export interface EdgeTextProps extends HTMLAttributes<SVGElement> {
x: number;
y: number;
label?: string;