schangxiang@126.com
2025-05-07 cace264ad9d86a7831099810b079da1141957add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { BaseEdgeModel, BaseNodeModel } from '@logicflow/core'
 
// export interface
export interface Store {
  lf: any
  xmlData: Ref<any>
  theme: Ref<any>
  flowMap: Map<string, any>
  selected: Ref<any>
  lastLines: Ref<BaseEdgeModel[]>
  onSelectNode: (node: any, event: Event) => void
  onCancelSelect: (event: Event) => void
  showEdgeAnimation: (data: Record<string, any>) => void
}
 
export enum StoreKey {
  LF = 'lf',
  THEME = 'theme',
  FLOW_MAP = 'flowMap',
  SELECTED = 'selected',
  LAST_LINES = 'lastLines',
  XML_DATA = 'xmlData',
}
 
export interface FlowType {
  edges: any[]
  nodes: any[]
}