-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlinking.ts
More file actions
26 lines (23 loc) · 825 Bytes
/
linking.ts
File metadata and controls
26 lines (23 loc) · 825 Bytes
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
import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
import { StickyNoteNode } from "./../nodes/StickyNoteNode";
import { LINKING_NODE_TYPES } from "./typing";
import {NodeProps} from "react-flow-renderer";
const edgeTypes = {
default: EdgeStep,
value: EdgeStep,
score: EdgeStep,
success: EdgeStep,
warning: EdgeStep,
danger: EdgeStep,
};
const nodeTypes: Record<LINKING_NODE_TYPES, React.ComponentType<NodeProps> /*& ComponentType<NodeProps>*/> = {
default: NodeDefault,
sourcepath: NodeDefault,
targetpath: NodeDefault,
transformation: NodeDefault,
comparator: NodeDefault,
aggregator: NodeDefault,
stickynote: StickyNoteNode,
};
export { edgeTypes, nodeTypes };