wujingjing
2024-12-16 890adec7fddfe9d5f5da4511343ac6e8341d46b3
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { NodeType, nodeTypeMap } from '../vueFlowEnum';
 
export class VueFlowConfig {
    static nodeStyleMap = new Map([
        [
            NodeType.Start,
            {
                type: NodeType.Start,
                title: nodeTypeMap[NodeType.Start],
                icon: 'xiangxiajiantou -rotate-90',
                fontSize: '13',
                color: 'white',
                class: '!bg-primary ',
            },
        ],
        [
            NodeType.End,
            {
                type: NodeType.End,
                title: nodeTypeMap[NodeType.End],
                icon: 'jieshu',
                fontSize: '13',
                color: 'white',
                class: '!bg-primary ',
            },
        ],
        [
            NodeType.Condition,
            {
                type: NodeType.Condition,
                title: nodeTypeMap[NodeType.Condition],
                icon: 'jiegousheji',
                fontSize: '14',
                class: 'bg-[#edc9e9] ',
            },
        ],
        [
            NodeType.LLM,
            {
                type: NodeType.LLM,
                title: nodeTypeMap[NodeType.LLM],
                icon: 'llm',
                fontSize: '14',
                class: 'bg-[#d9d7ff] ',
            },
        ],
        [
            NodeType.Output,
            {
                type: NodeType.Output,
                title: nodeTypeMap[NodeType.Output],
                icon: 'xiaoxi1',
                fontSize: '14',
                class: 'bg-[#9ce4f4] ',
            },
        ],
        [
            NodeType.Agent,
            {
                type: NodeType.Agent,
                title: nodeTypeMap[NodeType.Agent],
                icon: 'wode',
                fontSize: '14',
                class: 'bg-[#ffd89a] ',
            },
        ],
        [
            NodeType.Func,
            {
                type: NodeType.Func,
                title: nodeTypeMap[NodeType.Func],
                icon: 'kaishi',
                fontSize: '14',
                class: 'bg-[#bbdbff] ',
            },
        ],
    ]);
}