update(nodes): add __vf to node props

* move edge/node component-types to components file

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-25 15:21:36 +01:00
parent 3855e9fe3f
commit f2e38ca7ac
6 changed files with 39 additions and 37 deletions
+10 -3
View File
@@ -1,4 +1,4 @@
import { CSSProperties } from 'vue'
import { Component, CSSProperties, DefineComponent } from 'vue'
import {
BackgroundVariant,
Dimensions,
@@ -11,11 +11,18 @@ import {
XYPosition,
} from './flow'
import { Connection, ConnectionLineType, ConnectionMode } from './connection'
import { GraphNode, Node, NodeExtent, NodeTypes, TranslateExtent } from './node'
import { GraphNode, Node, NodeExtent, NodeProps, TranslateExtent } from './node'
import { FlowStore } from './store'
import { EdgeTypes } from './edge'
import { EdgeProps } from './edge'
import { KeyCode, PanOnScrollMode } from './zoom'
export type DefaultEdgeTypes = { [key in 'default' | 'straight' | 'smoothstep' | 'step']: Component<EdgeProps> }
export type EdgeTypes = (keyof DefaultEdgeTypes | string)[]
export type NodeComponent = Component<NodeProps> | DefineComponent<NodeProps, any, any, any, any> | string
export type DefaultNodeTypes = { [key in 'input' | 'output' | 'default']: Component<NodeProps> }
export type NodeTypes = (keyof DefaultNodeTypes | string)[]
export type EdgeComponent = Component<EdgeProps> | DefineComponent<EdgeProps, any, any, any, any, any> | string
export type HandleType = 'source' | 'target'
export interface HandleElement extends XYPosition, Dimensions {