update(flow): remove store, worker props
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
|||||||
} from './flow'
|
} from './flow'
|
||||||
import { Connection, ConnectionLineType, ConnectionMode } from './connection'
|
import { Connection, ConnectionLineType, ConnectionMode } from './connection'
|
||||||
import { GraphNode, Node, NodeExtent, NodeProps, TranslateExtent } from './node'
|
import { GraphNode, Node, NodeExtent, NodeProps, TranslateExtent } from './node'
|
||||||
import { FlowStore } from './store'
|
|
||||||
import { EdgeProps } from './edge'
|
import { EdgeProps } from './edge'
|
||||||
import { KeyCode, PanOnScrollMode } from './zoom'
|
import { KeyCode, PanOnScrollMode } from './zoom'
|
||||||
|
|
||||||
@@ -32,6 +31,14 @@ export interface HandleElement extends XYPosition, Dimensions {
|
|||||||
|
|
||||||
export type ValidConnectionFunc = (connection: Connection) => boolean
|
export type ValidConnectionFunc = (connection: Connection) => boolean
|
||||||
|
|
||||||
|
export interface HandleProps {
|
||||||
|
id?: string
|
||||||
|
type?: string
|
||||||
|
position?: Position
|
||||||
|
isValidConnection?: ValidConnectionFunc
|
||||||
|
connectable?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export interface BackgroundProps {
|
export interface BackgroundProps {
|
||||||
variant?: BackgroundVariant
|
variant?: BackgroundVariant
|
||||||
gap?: number
|
gap?: number
|
||||||
@@ -109,7 +116,6 @@ export interface CustomConnectionLineProps {
|
|||||||
|
|
||||||
export interface FlowProps extends FlowOptions {
|
export interface FlowProps extends FlowOptions {
|
||||||
id?: string
|
id?: string
|
||||||
store?: FlowStore
|
|
||||||
modelValue?: Elements
|
modelValue?: Elements
|
||||||
nodeTypes?: NodeTypes
|
nodeTypes?: NodeTypes
|
||||||
edgeTypes?: EdgeTypes
|
edgeTypes?: EdgeTypes
|
||||||
@@ -146,5 +152,4 @@ export interface FlowProps extends FlowOptions {
|
|||||||
edgeUpdaterRadius?: number
|
edgeUpdaterRadius?: number
|
||||||
storageKey?: string
|
storageKey?: string
|
||||||
loading?: Loading
|
loading?: Loading
|
||||||
worker?: boolean
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user