From bd140f154902399244d0630ab62a9e7908107eac Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 25 Nov 2021 15:05:44 +0100 Subject: [PATCH] update(flow): remove store, worker props Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/types/components.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/types/components.ts b/src/types/components.ts index 48857bd3..e4c8a4da 100644 --- a/src/types/components.ts +++ b/src/types/components.ts @@ -12,7 +12,6 @@ import { } from './flow' import { Connection, ConnectionLineType, ConnectionMode } from './connection' import { GraphNode, Node, NodeExtent, NodeProps, TranslateExtent } from './node' -import { FlowStore } from './store' import { EdgeProps } from './edge' import { KeyCode, PanOnScrollMode } from './zoom' @@ -32,6 +31,14 @@ export interface HandleElement extends XYPosition, Dimensions { export type ValidConnectionFunc = (connection: Connection) => boolean +export interface HandleProps { + id?: string + type?: string + position?: Position + isValidConnection?: ValidConnectionFunc + connectable?: boolean +} + export interface BackgroundProps { variant?: BackgroundVariant gap?: number @@ -109,7 +116,6 @@ export interface CustomConnectionLineProps { export interface FlowProps extends FlowOptions { id?: string - store?: FlowStore modelValue?: Elements nodeTypes?: NodeTypes edgeTypes?: EdgeTypes @@ -146,5 +152,4 @@ export interface FlowProps extends FlowOptions { edgeUpdaterRadius?: number storageKey?: string loading?: Loading - worker?: boolean }