bugfix: types file
This commit is contained in:
@@ -87,7 +87,7 @@ export default (EdgeComponent: any): Component<EdgeProps> => {
|
|||||||
nodeId || '',
|
nodeId || '',
|
||||||
pinia.setConnectionNodeId,
|
pinia.setConnectionNodeId,
|
||||||
pinia.setConnectionPosition,
|
pinia.setConnectionPosition,
|
||||||
props.onConnectEdge,
|
props.onConnectEdge as any,
|
||||||
isTarget,
|
isTarget,
|
||||||
isValidConnection,
|
isValidConnection,
|
||||||
pinia.connectionMode,
|
pinia.connectionMode,
|
||||||
|
|||||||
+18
-18
@@ -153,12 +153,12 @@ export const WrapEdgeProps = {
|
|||||||
onClick: {
|
onClick: {
|
||||||
type: Function('event', 'edge') as PropType<WrapEdgeProps['onClick']>,
|
type: Function('event', 'edge') as PropType<WrapEdgeProps['onClick']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
onEdgeDoubleClick: {
|
onEdgeDoubleClick: {
|
||||||
type: Function('event', 'edge') as PropType<WrapEdgeProps['onEdgeDoubleClick']>,
|
type: Function('event', 'edge') as PropType<WrapEdgeProps['onEdgeDoubleClick']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
selected: {
|
selected: {
|
||||||
type: Boolean as PropType<WrapEdgeProps['selected']>,
|
type: Boolean as PropType<WrapEdgeProps['selected']>,
|
||||||
@@ -275,27 +275,27 @@ export const WrapEdgeProps = {
|
|||||||
onConnectEdge: {
|
onConnectEdge: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onConnectEdge']>,
|
type: Function() as PropType<WrapEdgeProps['onConnectEdge']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
onContextMenu: {
|
onContextMenu: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onContextMenu']>,
|
type: Function() as PropType<WrapEdgeProps['onContextMenu']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
onMouseEnter: {
|
onMouseEnter: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onMouseEnter']>,
|
type: Function() as PropType<WrapEdgeProps['onMouseEnter']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
onMouseMove: {
|
onMouseMove: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onMouseMove']>,
|
type: Function() as PropType<WrapEdgeProps['onMouseMove']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
onMouseLeave: {
|
onMouseLeave: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onMouseLeave']>,
|
type: Function() as PropType<WrapEdgeProps['onMouseLeave']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
edgeUpdaterRadius: {
|
edgeUpdaterRadius: {
|
||||||
type: Number as PropType<WrapEdgeProps['edgeUpdaterRadius']>,
|
type: Number as PropType<WrapEdgeProps['edgeUpdaterRadius']>,
|
||||||
@@ -305,12 +305,12 @@ export const WrapEdgeProps = {
|
|||||||
onEdgeUpdateStart: {
|
onEdgeUpdateStart: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onEdgeUpdateStart']>,
|
type: Function() as PropType<WrapEdgeProps['onEdgeUpdateStart']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
},
|
},
|
||||||
onEdgeUpdateEnd: {
|
onEdgeUpdateEnd: {
|
||||||
type: Function() as PropType<WrapEdgeProps['onEdgeUpdateEnd']>,
|
type: Function() as PropType<WrapEdgeProps['onEdgeUpdateEnd']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => ({})
|
default: undefined
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -555,47 +555,47 @@ export const WrapNodeProps = {
|
|||||||
onClick: {
|
onClick: {
|
||||||
type: Function() as PropType<WrapNodeProps['onClick']>,
|
type: Function() as PropType<WrapNodeProps['onClick']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onNodeDoubleClick: {
|
onNodeDoubleClick: {
|
||||||
type: Function() as PropType<WrapNodeProps['onNodeDoubleClick']>,
|
type: Function() as PropType<WrapNodeProps['onNodeDoubleClick']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onMouseEnter: {
|
onMouseEnter: {
|
||||||
type: Function() as PropType<WrapNodeProps['onMouseEnter']>,
|
type: Function() as PropType<WrapNodeProps['onMouseEnter']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onMouseMove: {
|
onMouseMove: {
|
||||||
type: Function() as PropType<WrapNodeProps['onMouseMove']>,
|
type: Function() as PropType<WrapNodeProps['onMouseMove']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onMouseLeave: {
|
onMouseLeave: {
|
||||||
type: Function() as PropType<WrapNodeProps['onMouseLeave']>,
|
type: Function() as PropType<WrapNodeProps['onMouseLeave']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onContextMenu: {
|
onContextMenu: {
|
||||||
type: Function() as PropType<WrapNodeProps['onContextMenu']>,
|
type: Function() as PropType<WrapNodeProps['onContextMenu']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onNodeDragStart: {
|
onNodeDragStart: {
|
||||||
type: Function() as PropType<WrapNodeProps['onNodeDragStart']>,
|
type: Function() as PropType<WrapNodeProps['onNodeDragStart']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onNodeDrag: {
|
onNodeDrag: {
|
||||||
type: Function() as PropType<WrapNodeProps['onNodeDrag']>,
|
type: Function() as PropType<WrapNodeProps['onNodeDrag']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
onNodeDragStop: {
|
onNodeDragStop: {
|
||||||
type: Function() as PropType<WrapNodeProps['onNodeDragStop']>,
|
type: Function() as PropType<WrapNodeProps['onNodeDragStop']>,
|
||||||
required: false,
|
required: false,
|
||||||
default: () => {}
|
default: undefined
|
||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
type: Object as PropType<WrapNodeProps['style']>,
|
type: Object as PropType<WrapNodeProps['style']>,
|
||||||
|
|||||||
Reference in New Issue
Block a user