refactor: change edge-text prop type to extend svgattributes

This commit is contained in:
Braks
2022-05-27 23:36:01 +02:00
parent 4e9ad11fc5
commit 0d17d00644
+2 -2
View File
@@ -1,4 +1,4 @@
import type { CSSProperties, Component, DefineComponent, HTMLAttributes, VNode } from 'vue'
import type { CSSProperties, Component, DefineComponent, HTMLAttributes, SVGAttributes, VNode } from 'vue'
import type { BackgroundVariant, Dimensions, ElementData, XYPosition } from './flow'
import type { GraphNode, NodeProps } from './node'
import type { EdgeProps } from './edge'
@@ -93,7 +93,7 @@ export interface MiniMapNodeProps {
}
/** these props are passed to edge texts */
export interface EdgeTextProps extends HTMLAttributes {
export interface EdgeTextProps extends SVGAttributes {
x: number
y: number
label?: string | VNode | Object