@vyr/service-graph 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyr/service-graph",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -1,9 +1,10 @@
1
- import { Generate, Listener } from '@vyr/engine'
2
1
  import { Cell, CellView, Edge, Graph, Shape } from '@antv/x6'
3
2
  import { Selection } from '@antv/x6-plugin-selection'
4
3
  import { Stencil } from '@antv/x6-plugin-stencil'
5
4
  import { History } from '@antv/x6-plugin-history'
6
5
  import { Options } from '@antv/x6/lib/graph/options'
6
+ import { Listener } from '@vyr/engine'
7
+ import { runtime } from '@vyr/runtime'
7
8
  import { Unit } from './common/Unit'
8
9
  import { language } from './locale'
9
10
 
@@ -191,7 +192,7 @@ class GraphDrawer extends Listener<GraphObserver> {
191
192
  this.selectEdge = ''
192
193
  }
193
194
 
194
- private _delaySelect = Generate.delayExecute(() => {
195
+ private _delaySelect = runtime.delayExecute(() => {
195
196
  const cells = this.selection.getSelectedCells()
196
197
  this.trigger('select', cells)
197
198
  })
@@ -199,10 +200,10 @@ class GraphDrawer extends Listener<GraphObserver> {
199
200
  if (this.needTriggerChange === false) return
200
201
  this._delayChange()
201
202
  }
202
- private _delayChange = Generate.delayExecute(() => {
203
+ private _delayChange = runtime.delayExecute(() => {
203
204
  this.trigger('change', {})
204
205
  })
205
- private _resize = Generate.delayExecute(() => {
206
+ private _resize = runtime.delayExecute(() => {
206
207
  if (!this.container) return
207
208
  const rect = this.container.getBoundingClientRect()
208
209
  this.graph.resize(rect.width, rect.height)
@@ -1,23 +1,23 @@
1
1
  import { reactive, AsyncComponentLoader, defineAsyncComponent } from 'vue'
2
2
  import { Service } from "@vyr/service"
3
- import { DeserializationObject, InteractionInputCollection, ObjectUtils, InteractionDescriptor, InteractionNode, InteractionMapper } from '@vyr/engine'
3
+ import { DeserializationObject, InteractionNodeInputCollection, ObjectUtils, Interaction, InteractionNode, InteractionMapper, InteractionExecuteNodeSchame, InteractionConditionNodeSchame } from '@vyr/engine'
4
4
  import { Unit } from './common/Unit'
5
- import { BranchUnit, ConditionUnit, ExecuteUnit, InteractionUnit } from './common/InteractionUnit'
5
+ import { ConditionUnit, ExecuteUnit, InteractionUnit } from './common/InteractionUnit'
6
6
  import { GraphDrawer } from './GraphDrawer'
7
7
 
8
- class GraphState {
8
+ class GraphStore {
9
9
  width = '60%'
10
10
  height = '60%'
11
11
  visible = false
12
12
  descriptor = ''
13
13
  event = ''
14
- inputs: InteractionInputCollection = {}
15
- interaction: DeserializationObject<InteractionDescriptor> | null = null
14
+ nodes: InteractionNodeInputCollection = {}
15
+ interaction: DeserializationObject<Interaction> | null = null
16
16
 
17
17
  reset() {
18
18
  this.descriptor = ''
19
19
  this.event = ''
20
- this.inputs = {}
20
+ this.nodes = {}
21
21
  this.interaction = null
22
22
  }
23
23
  }
@@ -30,24 +30,21 @@ class GraphService extends Service {
30
30
  this._drawer = new GraphDrawer()
31
31
  this._drawer.stencil.load([
32
32
  new ExecuteUnit({ drawer: this._drawer, label: 'Execute' },),
33
- new BranchUnit({ drawer: this._drawer, label: 'Branch' }),
34
33
  new ConditionUnit({ drawer: this._drawer, label: 'Condition' }),
35
34
  ], 'inspector')
36
35
  }
37
36
  return this._drawer
38
37
  }
39
- readonly state = reactive(new GraphState())
40
- interaction: DeserializationObject<InteractionDescriptor> | null = null
38
+ readonly store = reactive(new GraphStore())
39
+ interaction: DeserializationObject<Interaction> | null = null
41
40
 
42
41
  private _doNodes(nodes: InteractionNode[]) {
43
42
  for (const node of nodes) {
44
- if (node.interaction === 'Execute') {
43
+ if (node.type === 'Execute') {
45
44
  const cell = new ExecuteUnit({ ...node, drawer: this.drawer })
46
45
  this.drawer.graph.addCell(cell)
47
- } else if (node.interaction === 'Condition') {
46
+ } else if (node.type === 'Condition') {
48
47
  this.drawer.graph.addCell(new ConditionUnit({ ...node, drawer: this.drawer }))
49
- } else if (node.interaction === 'Branch') {
50
- this.drawer.graph.addCell(new BranchUnit({ ...node, drawer: this.drawer }))
51
48
  }
52
49
  }
53
50
 
@@ -88,7 +85,7 @@ class GraphService extends Service {
88
85
  }
89
86
  }
90
87
 
91
- render(interaction: DeserializationObject<InteractionDescriptor>) {
88
+ render(interaction: DeserializationObject<Interaction>) {
92
89
  this.interaction = interaction
93
90
 
94
91
  this.drawer.needTriggerChange = false
@@ -97,7 +94,7 @@ class GraphService extends Service {
97
94
  this.drawer.needTriggerChange = true
98
95
  }
99
96
 
100
- update(curInteraction: DeserializationObject<InteractionDescriptor>) {
97
+ update(curInteraction: DeserializationObject<Interaction>) {
101
98
  if (this.interaction === null) return
102
99
 
103
100
  this.drawer.needTriggerChange = false
@@ -134,19 +131,20 @@ class GraphService extends Service {
134
131
  }
135
132
 
136
133
  build() {
137
- const interaction = new InteractionDescriptor()
134
+ const interaction = new Interaction()
138
135
  const cells = this.drawer.graph.getCells()
139
136
 
140
137
  for (const cell of cells) {
141
138
  if (cell instanceof InteractionUnit) {
142
- const node = {
139
+ const NodeSchame = cell.vMeta.type === 'Execute' ? InteractionExecuteNodeSchame : InteractionConditionNodeSchame
140
+ const node = NodeSchame.parse({
143
141
  id: cell.id,
144
142
  label: cell.vMeta.label ?? '',
145
- url: cell.vMeta.url,
146
- interaction: cell.vMeta.interaction,
143
+ script: cell.vMeta.script,
144
+ type: cell.vMeta.type,
147
145
  input: cell.vMeta.input,
148
146
  position: cell.getPosition(),
149
- }
147
+ })
150
148
  interaction.nodes.push(node)
151
149
  } else if (cell.isEdge()) {
152
150
  const mapper = this.drawer.getMapper(cell)
@@ -1 +1 @@
1
- window._iconfont_svg_string_4957342='<svg><symbol id="graph-branch" viewBox="0 0 1024 1024"><path d="M688.12457276 240.8608551c-47.73902893 0-86.51733398 38.77830505-86.51733399 86.51733399 0 38.70105743 25.56896211 71.53129578 60.63938141 82.57770539v74.08046721L363.68457031 581.83184815V362.21686554c34.14344787-11.58714294 58.70819092-43.95389558 58.70819092-81.95972442 0-47.73902893-38.77830505-86.51733398-86.51733399-86.51733399s-86.51733398 38.77830505-86.51733398 86.51733399c0 38.00582886 24.56474304 70.29533386 58.70819092 81.95972443V661.86038208c-34.14344787 11.58714294-58.70819092 43.95389558-58.70819092 81.95972443 0 47.73902893 38.77830505 86.51733398 86.51733398 86.51733398s86.51733398-38.77830505 86.51733399-86.51733399c0-38.00582886-24.56474304-70.29533386-58.70819092-81.95972442v-21.47483826l327.14366913-107.14244843c16.14475251-5.25283813 26.95941925-20.23887635 26.95941925-37.23335266V408.64268494c33.13922883-12.2051239 56.85424805-44.03114318 56.85424805-81.26449585 0-47.73902893-38.77830505-86.51733398-86.51733398-86.51733399z m-389.32800294 39.39628602c0-20.4706192 16.60823823-37.07885742 37.07885742-37.07885743s37.07885742 16.60823823 37.07885743 37.07885743-16.60823823 37.07885742-37.07885743 37.07885742-37.07885742-16.60823823-37.07885742-37.07885742z m74.15771485 463.48571776c0 20.4706192-16.60823823 37.07885742-37.07885743 37.07885743s-37.07885742-16.60823823-37.07885742-37.07885743 16.60823823-37.07885742 37.07885742-37.07885742 37.07885742 16.60823823 37.07885743 37.07885742z m315.17028809-379.28581237c-20.4706192 0-37.07885742-16.60823823-37.07885743-37.07885742s16.60823823-37.07885742 37.07885743-37.07885742 37.07885742 16.60823823 37.07885742 37.07885742-16.60823823 37.07885742-37.07885742 37.07885742z" fill="#515151" ></path></symbol><symbol id="graph-loading" viewBox="0 0 1024 1024"><path d="M512 195.28475976c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589v108.14666724c0 12.35961937 10.81466651 23.17428589 23.17428589 23.17428589s23.17428589-10.81466651 23.17428589-23.17428589V218.45904565c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428589zM643.32095313 403.85333276c6.17980933 0 12.35961937-1.54495216 16.99447656-6.17981005l75.702667-75.702667c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024-9.26971435-9.26971435-23.17428589-9.26971435-32.44400025 0l-75.70266699 75.702667c-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400024 3.08990502 4.63485718 9.26971435 6.17980933 15.44952368 6.17981005zM805.54095435 488.82571411h-108.14666724c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589s10.81466651 23.17428589 23.17428589 23.17428589h108.14666724c12.35961937 0 23.17428589-10.81466651 23.17428589-23.17428589s-10.81466651-23.17428589-23.17428589-23.17428589zM658.77047753 626.32647729c-9.26971435-9.26971435-23.17428589-9.26971435-32.44400024 0s-9.26971435 23.17428589 0 32.44400024l75.702667 75.702667c4.63485718 4.63485718 10.81466651 6.17980933 16.99447656 6.17980933s12.35961937-1.54495216 16.99447584-6.17980933c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024l-77.24761916-75.702667zM512 674.22000122c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589v108.14666724c0 12.35961937 10.81466651 23.17428589 23.17428589 23.17428589s23.17428589-10.81466651 23.17428589-23.17428589v-108.14666724c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428589zM365.22952247 626.32647729l-75.702667 75.702667c-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400024 4.63485718 4.63485718 10.81466651 6.17980933 16.99447655 6.17980933s12.35961937-1.54495216 16.99447585-6.17980933l75.7026677-75.702667c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024s-26.26419091-9.26971435-33.9889531 0zM349.77999878 512c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428589H218.45904565c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589s10.81466651 23.17428589 23.17428589 23.17428589h108.14666724c12.35961937 0 23.17428589-10.81466651 23.17428589-23.17428589zM320.42590356 287.98190331c-9.26971435-9.26971435-23.17428589-9.26971435-32.44400025 0-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400025l75.702667 75.70266699c4.63485718 4.63485718 10.81466651 6.17980933 16.99447656 6.17980934s12.35961937-1.54495216 16.99447584-6.17980934c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024l-77.24761915-75.702667z" fill="#515151" ></path></symbol><symbol id="graph-success" viewBox="0 0 1024 1024"><path d="M512 195.28475976C337.4203794 195.28475976 195.28475976 337.4203794 195.28475976 512S337.4203794 828.71524024 512 828.71524024 828.71524024 686.5796206 828.71524024 512 686.5796206 195.28475976 512 195.28475976z m0 587.08190871c-148.31542969 0-270.36666847-122.05123878-270.36666847-270.36666847S363.68457031 241.63333153 512 241.63333153 782.36666847 363.68457031 782.36666847 512 660.31542969 782.36666847 512 782.36666847z" fill="#515151" ></path><path d="M649.50076317 417.75790429L465.65142823 603.1521914 374.49923683 512c-9.26971435-9.26971435-23.17428589-9.26971435-32.44400025 0-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400024l108.14666795 108.14666724c4.63485718 4.63485718 10.81466651 6.17980933 16.99447585 6.17981005s12.35961937-1.54495216 16.99447655-6.17981005l200.8438108-200.84381079c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024-10.81466651-9.26971435-26.26419091-9.26971435-35.53390455-1.54495216z" fill="#515151" ></path></symbol><symbol id="graph-warning" viewBox="0 0 1024 1024"><path d="M817.90057373 698.93923927L579.97790551 272.53237891C566.07333398 247.81314087 539.80914307 233.90856933 512 233.90856933c-27.80914307 0-54.07333398 15.44952368-67.97790551 38.62380958L206.09942627 698.93923927c-13.90457153 24.71923805-13.90457153 55.61828614 0 80.33752489S246.26818872 820.99047875 274.07733178 820.99047875h475.84533644c27.80914307 0 54.07333398-15.44952368 67.97790551-41.71371459 13.90457153-24.71923805 13.90457153-55.61828614 0-80.33752489z m-40.16876245 58.70819115c-6.17980933 10.81466651-16.99447656 16.99447656-27.80914306 16.99447655H274.07733178c-10.81466651 0-21.62933374-6.17980933-27.80914306-16.99447655-6.17980933-10.81466651-6.17980933-24.71923805 0-35.53390526L484.19085693 295.7066648c6.17980933-9.26971435 16.99447656-15.44952368 27.80914307-15.44952368s21.62933374 6.17980933 27.80914307 15.44952368l237.92266821 426.40686036c6.17980933 10.81466651 6.17980933 23.17428589 0 35.53390526z" fill="#515151" ></path><path d="M512 681.94476343m-30.89904809 0a30.89904809 30.89904809 0 1 0 61.79809618 0 30.89904809 30.89904809 0 1 0-61.79809618 0Z" fill="#515151" ></path><path d="M512 596.97238136c12.35961937 0 23.17428589-10.81466651 23.17428589-23.17428589v-139.04571534c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428588s-23.17428589 10.81466651-23.17428589 23.17428588v139.04571534c0 12.35961937 10.81466651 23.17428589 23.17428589 23.17428589z" fill="#515151" ></path></symbol><symbol id="graph-condition" viewBox="0 0 1024 1024"><path d="M605.73535156 552.73730469h-25.3125c-10.28320313 0-21.35742188-8.30566406-24.52148437-18.19335938l-13.05175781-31.640625c-4.74609375-9.09667969-2.76855469-22.93945313 4.35058593-30.05859375l17.79785156-17.79785155c3.1640625-3.1640625 4.74609375-7.11914063 4.74609376-11.8652344s-1.97753905-8.70117188-4.74609376-11.86523436l-30.45410156-30.45410156c-3.1640625-3.1640625-7.11914063-4.74609375-11.86523437-4.74609374s-8.70117188 1.97753905-11.86523439 4.74609374l-17.79785156 17.79785156c-7.51464844 7.51464844-20.96191406 9.4921875-30.05859374 4.35058595l-31.640625-13.05175783c-9.8876953-2.76855469-18.19335938-13.84277344-18.19335938-24.52148437v-25.3125c0-4.35058595-1.58203125-8.30566406-4.74609374-11.86523438-3.1640625-3.1640625-7.51464844-4.74609375-11.86523438-4.74609374H353.796875c-4.35058595 0-8.30566406 1.58203125-11.86523438 4.74609375-3.1640625 3.1640625-4.74609375 7.51464844-4.74609375 11.86523437V385.4375c0 10.28320313-8.30566406 21.35742188-18.19335937 24.52148438l-31.64062499 13.0517578c-9.09667969 5.14160156-22.93945313 2.76855469-30.05859376-4.35058593L239.09960935 400.86230469c-3.1640625-3.1640625-7.11914063-4.74609375-11.86523434-4.74609377s-8.70117188 1.97753905-11.86523437 4.74609377l-30.45410158 30.45410156c-3.1640625 3.1640625-4.74609375 7.11914063-4.74609375 11.86523436s1.97753905 8.70117188 4.74609375 11.86523438L203.50390625 472.44921875c7.51464844 7.51464844 9.4921875 20.96191406 4.35058594 30.05859375l-13.05175782 32.03613281c-3.1640625 9.8876953-14.23828125 18.19335938-24.52148436 18.19335938H144.96875001c-4.35058595 0-8.30566406 1.58203125-11.86523439 4.74609375-3.1640625 3.1640625-4.74609375 7.51464844-4.74609374 11.86523437v43.11035157c0 4.35058595 1.58203125 8.30566406 4.74609375 11.86523437 3.1640625 3.1640625 7.51464844 4.74609375 11.86523438 4.74609375h25.3125c10.28320313 0 21.35742188 8.30566406 24.52148437 18.19335938l13.05175781 31.64062498c4.74609375 9.09667969 2.76855469 22.93945313-4.35058594 30.05859379l-17.79785156 17.79785154c-3.1640625 3.1640625-4.74609375 7.11914063-4.74609375 11.86523436s1.97753905 8.70117188 4.74609375 11.86523439l30.45410157 30.45410156c3.1640625 3.1640625 7.11914063 4.74609375 11.86523437 4.74609376s8.70117188-1.97753905 11.86523437-4.74609376l17.79785157-17.79785156c7.51464844-7.51464844 20.96191406-9.4921875 30.05859374-4.35058592l32.03613282 13.05175779c9.8876953 3.1640625 18.19335938 14.23828125 18.19335937 24.52148438v25.3125c0 4.35058595 1.58203125 8.30566406 4.74609375 11.86523437 3.1640625 3.1640625 7.51464844 4.74609375 11.86523438 4.74609375h43.11035156c4.35058595 0 8.30566406-1.58203125 11.86523439-4.74609375 3.1640625-3.1640625 4.74609375-7.51464844 4.74609373-11.86523437v-25.3125c0-10.28320313 8.30566406-21.35742188 18.19335938-24.52148438l32.03613281-13.05175779c9.09667969-5.14160156 22.93945313-2.76855469 30.05859375 4.35058592l17.79785156 17.79785156c3.1640625 3.1640625 7.11914063 4.74609375 11.86523438 4.74609376s8.70117188-1.97753905 11.86523438-4.74609376l30.45410156-30.45410156c3.1640625-3.1640625 4.74609375-7.11914063 4.74609375-11.86523439s-1.97753905-8.70117188-4.74609375-11.86523436l-17.79785157-17.79785157c-7.51464844-7.51464844-9.4921875-20.96191406-4.35058593-30.05859376l13.05175781-31.64062498c3.1640625-9.8876953 14.23828125-18.19335938 24.52148437-18.19335938h25.3125c4.35058595 0 8.30566406-1.58203125 11.86523438-4.74609375 3.1640625-3.1640625 4.74609375-7.51464844 4.74609376-11.86523437v-43.11035157c0-4.35058595-1.58203125-8.30566406-4.74609376-11.86523437-4.74609375-3.1640625-9.09667969-4.74609375-13.44726563-4.74609375z m-230.18554687 132.89062498c-52.60253906 0-94.92187501-42.31933594-94.92187502-94.92187498s42.71484375-94.92187501 94.92187502-94.921875c52.60253906 0 94.92187501 42.71484375 94.921875 94.921875 0 52.60253906-42.71484375 94.92187501-94.921875 94.92187498z m520.48828125-344.48730466c-2.37304688-2.37304688-5.53710938-3.55957031-8.30566406-3.55957032h-18.19335938c-7.51464844 0-15.42480469-5.93261719-17.79785157-13.05175782l-9.4921875-22.93945312c-3.55957031-6.72363281-1.97753905-16.61132813 3.16406251-21.75292969l13.05175781-13.05175781c1.97753905-1.97753905 3.55957031-5.14160156 3.55957031-8.30566406s-1.18652345-6.328125-3.55957031-8.30566407l-22.1484375-22.1484375c-1.97753905-1.97753905-5.14160156-3.55957031-8.30566405-3.55957031s-6.328125 1.18652345-8.30566407 3.55957031l-13.05175782 13.05175782c-5.14160156 5.53710938-15.02929689 6.72363281-21.75292969 3.1640625l-22.93945312-9.49218749c-7.11914063-2.37304688-13.05175781-10.28320313-13.05175781-17.79785158v-18.19335937c0-3.1640625-1.18652345-5.93261719-3.55957031-8.30566406-2.37304688-2.37304688-5.53710938-3.55957031-8.30566407-3.55957032H705.79882813c-3.1640625 0-6.328125 1.18652345-8.30566407 3.55957032-2.37304688 2.37304688-3.55957031 5.53710938-3.55957031 8.30566406v18.19335937c0 7.51464844-5.93261719 15.42480469-13.05175781 17.79785158l-22.93945313 9.49218749c-6.72363281 3.55957031-16.61132813 1.97753905-21.75292969-3.1640625l-13.05175781-13.05175782c-1.97753905-1.97753905-5.14160156-3.55957031-8.30566406-3.55957031s-6.328125 1.18652345-8.30566406 3.55957031l-22.1484375 22.1484375c-1.97753905 1.97753905-3.55957031 5.14160156-3.55957032 8.30566407s1.18652345 6.328125 3.55957032 8.30566406l13.05175781 13.05175781c5.53710938 5.53710938 6.72363281 15.02929689 3.16406251 21.75292969l-9.49218751 22.93945312c-2.37304688 7.11914063-10.28320313 13.05175781-17.79785156 13.05175782h-18.19335938c-3.1640625 0-6.328125 1.18652345-8.30566406 3.55957032-2.37304688 2.37304688-3.55957031 5.53710938-3.55957031 8.30566405v31.2451172c0 3.1640625 1.18652345 6.328125 3.55957031 8.30566405 2.37304688 2.37304688 5.53710938 3.55957031 8.30566406 3.55957031h18.19335938c7.51464844 0 15.42480469 5.93261719 17.79785156 13.05175782l9.49218751 22.93945312c3.55957031 6.72363281 1.97753905 16.61132813-3.16406251 21.75292969l-13.05175781 13.05175781c-1.97753905 1.97753905-3.55957031 5.14160156-3.55957032 8.30566407s1.18652345 6.328125 3.55957032 8.30566406l22.1484375 22.14843751c1.97753905 1.97753905 5.14160156 3.55957031 8.30566406 3.5595703s6.328125-1.18652345 8.30566406-3.5595703l13.05175781-13.05175783c5.14160156-5.53710938 15.02929689-6.72363281 21.75292969-3.1640625l22.93945313 9.4921875c7.11914063 2.37304688 13.05175781 10.28320313 13.05175781 17.79785158v18.19335936c0 3.1640625 1.18652345 6.328125 3.55957031 8.30566406 2.37304688 2.37304688 5.53710938 3.55957031 8.30566405 3.55957032h31.2451172c3.1640625 0 6.328125-1.18652345 8.30566406-3.55957032 2.37304688-2.37304688 3.55957031-5.53710938 3.55957032-8.30566406v-18.19335936c0-7.51464844 5.93261719-15.42480469 13.05175781-17.79785158l22.93945315-9.4921875c6.72363281-3.55957031 16.61132813-1.97753905 21.75292966 3.1640625l13.05175781 13.05175783c1.97753905 2.37304688 5.14160156 3.55957031 8.30566406 3.5595703s6.328125-1.18652345 8.30566407-3.5595703l22.1484375-22.14843751c2.37304688-2.37304688 3.55957031-5.14160156 3.55957031-8.30566406s-1.18652345-6.328125-3.55957031-8.30566407l-13.05175781-13.05175781c-5.14160156-5.14160156-6.72363281-15.02929689-3.16406249-21.75292969l9.4921875-22.93945312c2.37304688-7.11914063 10.28320313-13.05175781 17.79785155-13.05175782h18.19335937c3.1640625 0 5.93261719-1.18652345 8.30566407-3.55957031 2.37304688-2.37304688 3.55957031-5.53710938 3.55957031-8.30566405V349.84179687c0-3.1640625-1.18652345-6.328125-3.55957031-8.70117188z m-175.20996095 92.94433594c-37.96875001 0-68.81835937-30.84960938-68.81835935-68.81835938 0-37.96875001 30.84960938-68.81835937 68.81835935-68.81835938 37.96875001 0 68.81835937 30.84960938 68.81835939 68.81835938 0 37.96875001-30.84960938 68.81835937-68.81835939 68.81835938z" ></path></symbol><symbol id="graph-execute" viewBox="0 0 1024 1024"><path d="M746.27 641.105c-4.5-4.5-11.205-8.955-17.91-6.75a24.84 24.84 0 0 0-24.66 24.66c0 6.705 4.5 13.41 9 17.865l29.115 29.07c-31.41-4.5-60.525-15.66-85.185-35.775-2.25 0-2.25-2.25-4.5-4.5l-264.6-277.29c-44.82-49.185-98.595-76.05-163.62-76.05a24.84 24.84 0 0 0-24.66 24.615c0 13.455 11.205 22.365 24.66 22.365 51.57 0 94.14 22.365 127.8 60.39l269.01 279.54 4.5 4.5a232.92 232.92 0 0 0 121.05 49.185l-33.615 31.275c-6.75 4.5-11.25 13.455-11.25 20.16 0 13.41 13.5 24.57 26.955 22.365 6.75 0 13.455-4.5 17.91-9l69.525-64.8a28.305 28.305 0 0 0 0-40.275l-69.525-71.55z m-2.25-389.115c-8.955-11.16-22.41-13.41-33.615-4.5-6.75 4.5-8.955 11.25-8.955 17.91 0 8.955 2.25 15.66 11.25 20.16l29.115 29.025c-51.57 6.75-98.64 26.865-134.55 62.64l-80.685 82.755a21.6 21.6 0 0 0 0 31.275c4.5 4.5 11.205 6.75 17.91 6.75 6.75 0 13.5-2.25 17.955-6.75l78.48-82.71c29.115-26.865 65.025-44.73 103.14-49.23l-31.41 31.32c-4.5 4.5-9 11.205-9 17.91 0 13.41 11.25 24.57 22.455 24.57 6.75 0 13.455-2.25 20.16-6.705l74.025-71.55a24.3 24.3 0 0 0 0-33.525l-76.23-69.345M436.85 565.055c-6.75 0-13.455 2.25-17.955 6.75L336.05 656.72c-33.615 31.32-67.275 46.935-112.095 46.935h-2.25a24.84 24.84 0 0 0-24.66 24.615c0 13.41 11.25 22.365 24.66 22.365h2.25c58.275 0 103.14-22.365 147.96-60.39l85.185-87.21c4.5-4.5 6.75-8.955 6.75-15.66a20.25 20.25 0 0 0-6.75-15.66 36.225 36.225 0 0 0-20.16-6.705z" fill="#515151" ></path></symbol></svg>',(t=>{var c=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var e,s,n,i,o,a=function(c,l){l.parentNode.insertBefore(c,l)};if(c&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(c){console&&console.log(c)}}e=function(){var c,l=document.createElement("div");l.innerHTML=t._iconfont_svg_string_4957342,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(c=document.body).firstChild?a(l,c.firstChild):c.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(e,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),e()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(n=e,i=t.document,o=!1,h(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,d())})}function d(){o||(o=!0,n())}function h(){try{i.documentElement.doScroll("left")}catch(c){return void setTimeout(h,50)}d()}})(window);
1
+ window._iconfont_svg_string_4957342='<svg><symbol id="graph-branch" viewBox="0 0 1024 1024"><path d="M688.12457276 240.8608551c-47.73902893 0-86.51733398 38.77830505-86.51733399 86.51733399 0 38.70105743 25.56896211 71.53129578 60.63938141 82.57770539v74.08046721L363.68457031 581.83184815V362.21686554c34.14344787-11.58714294 58.70819092-43.95389558 58.70819092-81.95972442 0-47.73902893-38.77830505-86.51733398-86.51733399-86.51733399s-86.51733398 38.77830505-86.51733398 86.51733399c0 38.00582886 24.56474304 70.29533386 58.70819092 81.95972443V661.86038208c-34.14344787 11.58714294-58.70819092 43.95389558-58.70819092 81.95972443 0 47.73902893 38.77830505 86.51733398 86.51733398 86.51733398s86.51733398-38.77830505 86.51733399-86.51733399c0-38.00582886-24.56474304-70.29533386-58.70819092-81.95972442v-21.47483826l327.14366913-107.14244843c16.14475251-5.25283813 26.95941925-20.23887635 26.95941925-37.23335266V408.64268494c33.13922883-12.2051239 56.85424805-44.03114318 56.85424805-81.26449585 0-47.73902893-38.77830505-86.51733398-86.51733398-86.51733399z m-389.32800294 39.39628602c0-20.4706192 16.60823823-37.07885742 37.07885742-37.07885743s37.07885742 16.60823823 37.07885743 37.07885743-16.60823823 37.07885742-37.07885743 37.07885742-37.07885742-16.60823823-37.07885742-37.07885742z m74.15771485 463.48571776c0 20.4706192-16.60823823 37.07885742-37.07885743 37.07885743s-37.07885742-16.60823823-37.07885742-37.07885743 16.60823823-37.07885742 37.07885742-37.07885742 37.07885742 16.60823823 37.07885743 37.07885742z m315.17028809-379.28581237c-20.4706192 0-37.07885742-16.60823823-37.07885743-37.07885742s16.60823823-37.07885742 37.07885743-37.07885742 37.07885742 16.60823823 37.07885742 37.07885742-16.60823823 37.07885742-37.07885742 37.07885742z" fill="#515151" ></path></symbol><symbol id="graph-loading" viewBox="0 0 1024 1024"><path d="M512 195.28475976c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589v108.14666724c0 12.35961937 10.81466651 23.17428589 23.17428589 23.17428589s23.17428589-10.81466651 23.17428589-23.17428589V218.45904565c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428589zM643.32095313 403.85333276c6.17980933 0 12.35961937-1.54495216 16.99447656-6.17981005l75.702667-75.702667c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024-9.26971435-9.26971435-23.17428589-9.26971435-32.44400025 0l-75.70266699 75.702667c-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400024 3.08990502 4.63485718 9.26971435 6.17980933 15.44952368 6.17981005zM805.54095435 488.82571411h-108.14666724c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589s10.81466651 23.17428589 23.17428589 23.17428589h108.14666724c12.35961937 0 23.17428589-10.81466651 23.17428589-23.17428589s-10.81466651-23.17428589-23.17428589-23.17428589zM658.77047753 626.32647729c-9.26971435-9.26971435-23.17428589-9.26971435-32.44400024 0s-9.26971435 23.17428589 0 32.44400024l75.702667 75.702667c4.63485718 4.63485718 10.81466651 6.17980933 16.99447656 6.17980933s12.35961937-1.54495216 16.99447584-6.17980933c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024l-77.24761916-75.702667zM512 674.22000122c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589v108.14666724c0 12.35961937 10.81466651 23.17428589 23.17428589 23.17428589s23.17428589-10.81466651 23.17428589-23.17428589v-108.14666724c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428589zM365.22952247 626.32647729l-75.702667 75.702667c-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400024 4.63485718 4.63485718 10.81466651 6.17980933 16.99447655 6.17980933s12.35961937-1.54495216 16.99447585-6.17980933l75.7026677-75.702667c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024s-26.26419091-9.26971435-33.9889531 0zM349.77999878 512c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428589H218.45904565c-12.35961937 0-23.17428589 10.81466651-23.17428589 23.17428589s10.81466651 23.17428589 23.17428589 23.17428589h108.14666724c12.35961937 0 23.17428589-10.81466651 23.17428589-23.17428589zM320.42590356 287.98190331c-9.26971435-9.26971435-23.17428589-9.26971435-32.44400025 0-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400025l75.702667 75.70266699c4.63485718 4.63485718 10.81466651 6.17980933 16.99447656 6.17980934s12.35961937-1.54495216 16.99447584-6.17980934c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024l-77.24761915-75.702667z" fill="#515151" ></path></symbol><symbol id="graph-success" viewBox="0 0 1024 1024"><path d="M512 195.28475976C337.4203794 195.28475976 195.28475976 337.4203794 195.28475976 512S337.4203794 828.71524024 512 828.71524024 828.71524024 686.5796206 828.71524024 512 686.5796206 195.28475976 512 195.28475976z m0 587.08190871c-148.31542969 0-270.36666847-122.05123878-270.36666847-270.36666847S363.68457031 241.63333153 512 241.63333153 782.36666847 363.68457031 782.36666847 512 660.31542969 782.36666847 512 782.36666847z" fill="#515151" ></path><path d="M649.50076317 417.75790429L465.65142823 603.1521914 374.49923683 512c-9.26971435-9.26971435-23.17428589-9.26971435-32.44400025 0-9.26971435 9.26971435-9.26971435 23.17428589 0 32.44400024l108.14666795 108.14666724c4.63485718 4.63485718 10.81466651 6.17980933 16.99447585 6.17981005s12.35961937-1.54495216 16.99447655-6.17981005l200.8438108-200.84381079c9.26971435-9.26971435 9.26971435-23.17428589 0-32.44400024-10.81466651-9.26971435-26.26419091-9.26971435-35.53390455-1.54495216z" fill="#515151" ></path></symbol><symbol id="graph-warning" viewBox="0 0 1024 1024"><path d="M817.90057373 698.93923927L579.97790551 272.53237891C566.07333398 247.81314087 539.80914307 233.90856933 512 233.90856933c-27.80914307 0-54.07333398 15.44952368-67.97790551 38.62380958L206.09942627 698.93923927c-13.90457153 24.71923805-13.90457153 55.61828614 0 80.33752489S246.26818872 820.99047875 274.07733178 820.99047875h475.84533644c27.80914307 0 54.07333398-15.44952368 67.97790551-41.71371459 13.90457153-24.71923805 13.90457153-55.61828614 0-80.33752489z m-40.16876245 58.70819115c-6.17980933 10.81466651-16.99447656 16.99447656-27.80914306 16.99447655H274.07733178c-10.81466651 0-21.62933374-6.17980933-27.80914306-16.99447655-6.17980933-10.81466651-6.17980933-24.71923805 0-35.53390526L484.19085693 295.7066648c6.17980933-9.26971435 16.99447656-15.44952368 27.80914307-15.44952368s21.62933374 6.17980933 27.80914307 15.44952368l237.92266821 426.40686036c6.17980933 10.81466651 6.17980933 23.17428589 0 35.53390526z" fill="#515151" ></path><path d="M512 681.94476343m-30.89904809 0a30.89904809 30.89904809 0 1 0 61.79809618 0 30.89904809 30.89904809 0 1 0-61.79809618 0Z" fill="#515151" ></path><path d="M512 596.97238136c12.35961937 0 23.17428589-10.81466651 23.17428589-23.17428589v-139.04571534c0-12.35961937-10.81466651-23.17428589-23.17428589-23.17428588s-23.17428589 10.81466651-23.17428589 23.17428588v139.04571534c0 12.35961937 10.81466651 23.17428589 23.17428589 23.17428589z" fill="#515151" ></path></symbol><symbol id="graph-condition" viewBox="0 0 1024 1024"><path d="M605.73535156 552.73730469h-25.3125c-10.28320313 0-21.35742188-8.30566406-24.52148437-18.19335938l-13.05175781-31.640625c-4.74609375-9.09667969-2.76855469-22.93945313 4.35058593-30.05859375l17.79785156-17.79785155c3.1640625-3.1640625 4.74609375-7.11914063 4.74609376-11.8652344s-1.97753905-8.70117188-4.74609376-11.86523436l-30.45410156-30.45410156c-3.1640625-3.1640625-7.11914063-4.74609375-11.86523437-4.74609374s-8.70117188 1.97753905-11.86523439 4.74609374l-17.79785156 17.79785156c-7.51464844 7.51464844-20.96191406 9.4921875-30.05859374 4.35058595l-31.640625-13.05175783c-9.8876953-2.76855469-18.19335938-13.84277344-18.19335938-24.52148437v-25.3125c0-4.35058595-1.58203125-8.30566406-4.74609374-11.86523438-3.1640625-3.1640625-7.51464844-4.74609375-11.86523438-4.74609374H353.796875c-4.35058595 0-8.30566406 1.58203125-11.86523438 4.74609375-3.1640625 3.1640625-4.74609375 7.51464844-4.74609375 11.86523437V385.4375c0 10.28320313-8.30566406 21.35742188-18.19335937 24.52148438l-31.64062499 13.0517578c-9.09667969 5.14160156-22.93945313 2.76855469-30.05859376-4.35058593L239.09960935 400.86230469c-3.1640625-3.1640625-7.11914063-4.74609375-11.86523434-4.74609377s-8.70117188 1.97753905-11.86523437 4.74609377l-30.45410158 30.45410156c-3.1640625 3.1640625-4.74609375 7.11914063-4.74609375 11.86523436s1.97753905 8.70117188 4.74609375 11.86523438L203.50390625 472.44921875c7.51464844 7.51464844 9.4921875 20.96191406 4.35058594 30.05859375l-13.05175782 32.03613281c-3.1640625 9.8876953-14.23828125 18.19335938-24.52148436 18.19335938H144.96875001c-4.35058595 0-8.30566406 1.58203125-11.86523439 4.74609375-3.1640625 3.1640625-4.74609375 7.51464844-4.74609374 11.86523437v43.11035157c0 4.35058595 1.58203125 8.30566406 4.74609375 11.86523437 3.1640625 3.1640625 7.51464844 4.74609375 11.86523438 4.74609375h25.3125c10.28320313 0 21.35742188 8.30566406 24.52148437 18.19335938l13.05175781 31.64062498c4.74609375 9.09667969 2.76855469 22.93945313-4.35058594 30.05859379l-17.79785156 17.79785154c-3.1640625 3.1640625-4.74609375 7.11914063-4.74609375 11.86523436s1.97753905 8.70117188 4.74609375 11.86523439l30.45410157 30.45410156c3.1640625 3.1640625 7.11914063 4.74609375 11.86523437 4.74609376s8.70117188-1.97753905 11.86523437-4.74609376l17.79785157-17.79785156c7.51464844-7.51464844 20.96191406-9.4921875 30.05859374-4.35058592l32.03613282 13.05175779c9.8876953 3.1640625 18.19335938 14.23828125 18.19335937 24.52148438v25.3125c0 4.35058595 1.58203125 8.30566406 4.74609375 11.86523437 3.1640625 3.1640625 7.51464844 4.74609375 11.86523438 4.74609375h43.11035156c4.35058595 0 8.30566406-1.58203125 11.86523439-4.74609375 3.1640625-3.1640625 4.74609375-7.51464844 4.74609373-11.86523437v-25.3125c0-10.28320313 8.30566406-21.35742188 18.19335938-24.52148438l32.03613281-13.05175779c9.09667969-5.14160156 22.93945313-2.76855469 30.05859375 4.35058592l17.79785156 17.79785156c3.1640625 3.1640625 7.11914063 4.74609375 11.86523438 4.74609376s8.70117188-1.97753905 11.86523438-4.74609376l30.45410156-30.45410156c3.1640625-3.1640625 4.74609375-7.11914063 4.74609375-11.86523439s-1.97753905-8.70117188-4.74609375-11.86523436l-17.79785157-17.79785157c-7.51464844-7.51464844-9.4921875-20.96191406-4.35058593-30.05859376l13.05175781-31.64062498c3.1640625-9.8876953 14.23828125-18.19335938 24.52148437-18.19335938h25.3125c4.35058595 0 8.30566406-1.58203125 11.86523438-4.74609375 3.1640625-3.1640625 4.74609375-7.51464844 4.74609376-11.86523437v-43.11035157c0-4.35058595-1.58203125-8.30566406-4.74609376-11.86523437-4.74609375-3.1640625-9.09667969-4.74609375-13.44726563-4.74609375z m-230.18554687 132.89062498c-52.60253906 0-94.92187501-42.31933594-94.92187502-94.92187498s42.71484375-94.92187501 94.92187502-94.921875c52.60253906 0 94.92187501 42.71484375 94.921875 94.921875 0 52.60253906-42.71484375 94.92187501-94.921875 94.92187498z m520.48828125-344.48730466c-2.37304688-2.37304688-5.53710938-3.55957031-8.30566406-3.55957032h-18.19335938c-7.51464844 0-15.42480469-5.93261719-17.79785157-13.05175782l-9.4921875-22.93945312c-3.55957031-6.72363281-1.97753905-16.61132813 3.16406251-21.75292969l13.05175781-13.05175781c1.97753905-1.97753905 3.55957031-5.14160156 3.55957031-8.30566406s-1.18652345-6.328125-3.55957031-8.30566407l-22.1484375-22.1484375c-1.97753905-1.97753905-5.14160156-3.55957031-8.30566405-3.55957031s-6.328125 1.18652345-8.30566407 3.55957031l-13.05175782 13.05175782c-5.14160156 5.53710938-15.02929689 6.72363281-21.75292969 3.1640625l-22.93945312-9.49218749c-7.11914063-2.37304688-13.05175781-10.28320313-13.05175781-17.79785158v-18.19335937c0-3.1640625-1.18652345-5.93261719-3.55957031-8.30566406-2.37304688-2.37304688-5.53710938-3.55957031-8.30566407-3.55957032H705.79882813c-3.1640625 0-6.328125 1.18652345-8.30566407 3.55957032-2.37304688 2.37304688-3.55957031 5.53710938-3.55957031 8.30566406v18.19335937c0 7.51464844-5.93261719 15.42480469-13.05175781 17.79785158l-22.93945313 9.49218749c-6.72363281 3.55957031-16.61132813 1.97753905-21.75292969-3.1640625l-13.05175781-13.05175782c-1.97753905-1.97753905-5.14160156-3.55957031-8.30566406-3.55957031s-6.328125 1.18652345-8.30566406 3.55957031l-22.1484375 22.1484375c-1.97753905 1.97753905-3.55957031 5.14160156-3.55957032 8.30566407s1.18652345 6.328125 3.55957032 8.30566406l13.05175781 13.05175781c5.53710938 5.53710938 6.72363281 15.02929689 3.16406251 21.75292969l-9.49218751 22.93945312c-2.37304688 7.11914063-10.28320313 13.05175781-17.79785156 13.05175782h-18.19335938c-3.1640625 0-6.328125 1.18652345-8.30566406 3.55957032-2.37304688 2.37304688-3.55957031 5.53710938-3.55957031 8.30566405v31.2451172c0 3.1640625 1.18652345 6.328125 3.55957031 8.30566405 2.37304688 2.37304688 5.53710938 3.55957031 8.30566406 3.55957031h18.19335938c7.51464844 0 15.42480469 5.93261719 17.79785156 13.05175782l9.49218751 22.93945312c3.55957031 6.72363281 1.97753905 16.61132813-3.16406251 21.75292969l-13.05175781 13.05175781c-1.97753905 1.97753905-3.55957031 5.14160156-3.55957032 8.30566407s1.18652345 6.328125 3.55957032 8.30566406l22.1484375 22.14843751c1.97753905 1.97753905 5.14160156 3.55957031 8.30566406 3.5595703s6.328125-1.18652345 8.30566406-3.5595703l13.05175781-13.05175783c5.14160156-5.53710938 15.02929689-6.72363281 21.75292969-3.1640625l22.93945313 9.4921875c7.11914063 2.37304688 13.05175781 10.28320313 13.05175781 17.79785158v18.19335936c0 3.1640625 1.18652345 6.328125 3.55957031 8.30566406 2.37304688 2.37304688 5.53710938 3.55957031 8.30566405 3.55957032h31.2451172c3.1640625 0 6.328125-1.18652345 8.30566406-3.55957032 2.37304688-2.37304688 3.55957031-5.53710938 3.55957032-8.30566406v-18.19335936c0-7.51464844 5.93261719-15.42480469 13.05175781-17.79785158l22.93945315-9.4921875c6.72363281-3.55957031 16.61132813-1.97753905 21.75292966 3.1640625l13.05175781 13.05175783c1.97753905 2.37304688 5.14160156 3.55957031 8.30566406 3.5595703s6.328125-1.18652345 8.30566407-3.5595703l22.1484375-22.14843751c2.37304688-2.37304688 3.55957031-5.14160156 3.55957031-8.30566406s-1.18652345-6.328125-3.55957031-8.30566407l-13.05175781-13.05175781c-5.14160156-5.14160156-6.72363281-15.02929689-3.16406249-21.75292969l9.4921875-22.93945312c2.37304688-7.11914063 10.28320313-13.05175781 17.79785155-13.05175782h18.19335937c3.1640625 0 5.93261719-1.18652345 8.30566407-3.55957031 2.37304688-2.37304688 3.55957031-5.53710938 3.55957031-8.30566405V349.84179687c0-3.1640625-1.18652345-6.328125-3.55957031-8.70117188z m-175.20996095 92.94433594c-37.96875001 0-68.81835937-30.84960938-68.81835935-68.81835938 0-37.96875001 30.84960938-68.81835937 68.81835935-68.81835938 37.96875001 0 68.81835937 30.84960938 68.81835939 68.81835938 0 37.96875001-30.84960938 68.81835937-68.81835939 68.81835938z" ></path></symbol><symbol id="graph-execute" viewBox="0 0 1024 1024"><path d="M746.27 641.105c-4.5-4.5-11.205-8.955-17.91-6.75a24.84 24.84 0 0 0-24.66 24.66c0 6.705 4.5 13.41 9 17.865l29.115 29.07c-31.41-4.5-60.525-15.66-85.185-35.775-2.25 0-2.25-2.25-4.5-4.5l-264.6-277.29c-44.82-49.185-98.595-76.05-163.62-76.05a24.84 24.84 0 0 0-24.66 24.615c0 13.455 11.205 22.365 24.66 22.365 51.57 0 94.14 22.365 127.8 60.39l269.01 279.54 4.5 4.5a232.92 232.92 0 0 0 121.05 49.185l-33.615 31.275c-6.75 4.5-11.25 13.455-11.25 20.16 0 13.41 13.5 24.57 26.955 22.365 6.75 0 13.455-4.5 17.91-9l69.525-64.8a28.305 28.305 0 0 0 0-40.275l-69.525-71.55z m-2.25-389.115c-8.955-11.16-22.41-13.41-33.615-4.5-6.75 4.5-8.955 11.25-8.955 17.91 0 8.955 2.25 15.66 11.25 20.16l29.115 29.025c-51.57 6.75-98.64 26.865-134.55 62.64l-80.685 82.755a21.6 21.6 0 0 0 0 31.275c4.5 4.5 11.205 6.75 17.91 6.75 6.75 0 13.5-2.25 17.955-6.75l78.48-82.71c29.115-26.865 65.025-44.73 103.14-49.23l-31.41 31.32c-4.5 4.5-9 11.205-9 17.91 0 13.41 11.25 24.57 22.455 24.57 6.75 0 13.455-2.25 20.16-6.705l74.025-71.55a24.3 24.3 0 0 0 0-33.525l-76.23-69.345M436.85 565.055c-6.75 0-13.455 2.25-17.955 6.75L336.05 656.72c-33.615 31.32-67.275 46.935-112.095 46.935h-2.25a24.84 24.84 0 0 0-24.66 24.615c0 13.41 11.25 22.365 24.66 22.365h2.25c58.275 0 103.14-22.365 147.96-60.39l85.185-87.21c4.5-4.5 6.75-8.955 6.75-15.66a20.25 20.25 0 0 0-6.75-15.66 36.225 36.225 0 0 0-20.16-6.705z" fill="#515151" ></path></symbol></svg>',(t=>{var c=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var e,s,n,i,o,a=function(c,l){l.parentNode.insertBefore(c,l)};if(c&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(c){console&&console.log(c)}}e=function(){var c,l=document.createElement("div");l.innerHTML=t._iconfont_svg_string_4957342,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(c=document.body).firstChild?a(l,c.firstChild):c.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?window.setTimeout(e,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),e()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(n=e,i=t.document,o=!1,h(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,d())})}function d(){o||(o=!0,n())}function h(){try{i.documentElement.doScroll("left")}catch(c){return void window.setTimeout(h,50)}d()}})(window);
@@ -1,10 +1,10 @@
1
1
  import { Cell } from "@antv/x6";
2
- import { Descriptor } from "@vyr/engine";
2
+ import { ConditionScriptable, Descriptor } from "@vyr/engine";
3
3
  import { Unit, UnitMeta, UnitPartial, } from "./Unit";
4
4
 
5
5
  interface InteractionUnitMeta extends UnitMeta {
6
- url: string
7
- interaction: string
6
+ type: string
7
+ script: string
8
8
  input: { [param: string]: any }
9
9
  }
10
10
 
@@ -19,23 +19,9 @@ class InteractionUnit extends Unit {
19
19
 
20
20
  class ExecuteUnit extends InteractionUnit {
21
21
  constructor(vMeta: UnitPartial<InteractionUnitMeta>) {
22
- super({ ...vMeta, maxInCount: Infinity, icon: 'graphfont graph-execute' })
23
- this.vMeta.interaction = 'Execute'
24
- this.vMeta.url = vMeta.url ?? ''
25
- }
26
-
27
- isConnection(e: Element, source: Cell) {
28
- if (Unit.instanceOf(source, [ExecuteUnit, ConditionUnit]) === false) return false
29
- return super.isConnection(e, source)
30
- }
31
- }
32
-
33
- class BranchUnit extends InteractionUnit {
34
-
35
- constructor(vMeta: UnitPartial<InteractionUnitMeta>) {
36
- super({ ...vMeta, maxOutCount: Infinity, icon: 'graphfont graph-branch' })
37
- this.vMeta.interaction = 'Branch'
38
- this.vMeta.url = vMeta.url ?? ''
22
+ super({ ...vMeta, maxInCount: Infinity, maxOutCount: Infinity, icon: 'graphfont graph-execute' })
23
+ this.vMeta.type = 'Execute'
24
+ this.vMeta.script = vMeta.script ?? ''
39
25
  }
40
26
 
41
27
  isConnection(e: Element, source: Cell) {
@@ -46,13 +32,14 @@ class BranchUnit extends InteractionUnit {
46
32
 
47
33
  class ConditionUnit extends InteractionUnit {
48
34
  constructor(vMeta: UnitPartial<InteractionUnitMeta>) {
49
- super({ input: { value: { type: 'string', value: '' } }, ...vMeta, icon: 'graphfont graph-condition' })
50
- this.vMeta.interaction = 'Condition'
51
- this.vMeta.url = vMeta.url ?? ''
35
+ super({ ...vMeta, maxInCount: Infinity, icon: 'graphfont graph-condition' })
36
+ this.vMeta.type = 'Condition'
37
+ this.vMeta.script = vMeta.script ?? 'condition'
38
+ this.vMeta.input = vMeta.input ?? ConditionScriptable.inputSchame.parse({})
52
39
  }
53
40
 
54
41
  isConnection(e: Element, source: Cell) {
55
- if (Unit.instanceOf(source, [BranchUnit]) === false) return false
42
+ if (Unit.instanceOf(source, [ExecuteUnit, ConditionUnit]) === false) return false
56
43
  return super.isConnection(e, source)
57
44
  }
58
45
  }
@@ -60,6 +47,5 @@ class ConditionUnit extends InteractionUnit {
60
47
  export {
61
48
  InteractionUnit,
62
49
  ExecuteUnit,
63
- BranchUnit,
64
50
  ConditionUnit,
65
51
  }