refactor(types): use vite-plugin-import-types
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+10
-3
@@ -1,6 +1,6 @@
|
||||
import { CSSProperties } from 'vue'
|
||||
import { Edge, GraphEdge } from './edge'
|
||||
import { NodeExtent, GraphNode, TranslateExtent, Node } from './node'
|
||||
import { GraphNode, Node } from './node'
|
||||
import { ConnectionLineType, ConnectionMode } from './connection'
|
||||
import { KeyCode, PanOnScrollMode } from './zoom'
|
||||
import { EdgeTypes, NodeTypes } from './components'
|
||||
@@ -15,6 +15,9 @@ export type NextElements = {
|
||||
edges: GraphEdge[]
|
||||
}
|
||||
|
||||
export type TranslateExtent = [[number, number], [number, number]]
|
||||
export type NodeExtent = [[number, number], [number, number]]
|
||||
|
||||
export type Transform = [number, number, number]
|
||||
|
||||
export enum Position {
|
||||
@@ -99,9 +102,9 @@ export type FlowInstance<T = any> = {
|
||||
toObject: ToObjectFunc<T>
|
||||
}
|
||||
|
||||
export interface FlowOptions {
|
||||
export interface FlowProps {
|
||||
modelValue?: Elements
|
||||
id?: string
|
||||
elements?: Elements
|
||||
nodeTypes?: NodeTypes
|
||||
edgeTypes?: EdgeTypes
|
||||
connectionMode?: ConnectionMode
|
||||
@@ -139,3 +142,7 @@ export interface FlowOptions {
|
||||
storageKey?: string
|
||||
loading?: string
|
||||
}
|
||||
|
||||
export interface FlowOptions extends Omit<FlowProps, 'modelValue'> {
|
||||
elements?: Elements
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user