liteflow-editor-process 1.0.0

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.
Files changed (281) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1020 -0
  3. package/dist/LiteFlowEditor/assets/and-icon.svg +20 -0
  4. package/dist/LiteFlowEditor/assets/catch-icon.svg +14 -0
  5. package/dist/LiteFlowEditor/assets/chain-icon.svg +11 -0
  6. package/dist/LiteFlowEditor/assets/common-icon.svg +18 -0
  7. package/dist/LiteFlowEditor/assets/end-icon.svg +14 -0
  8. package/dist/LiteFlowEditor/assets/for-icon.svg +20 -0
  9. package/dist/LiteFlowEditor/assets/if-icon.svg +14 -0
  10. package/dist/LiteFlowEditor/assets/indicator-icons.svg +16 -0
  11. package/dist/LiteFlowEditor/assets/intermediate-end-icon.svg +20 -0
  12. package/dist/LiteFlowEditor/assets/intermediate-event-catch-error.svg +40 -0
  13. package/dist/LiteFlowEditor/assets/iterator-icon.svg +7 -0
  14. package/dist/LiteFlowEditor/assets/little-warning-icon.svg +1 -0
  15. package/dist/LiteFlowEditor/assets/not-icon.svg +20 -0
  16. package/dist/LiteFlowEditor/assets/or-icon.svg +20 -0
  17. package/dist/LiteFlowEditor/assets/start-icon.svg +16 -0
  18. package/dist/LiteFlowEditor/assets/switch-icon.svg +15 -0
  19. package/dist/LiteFlowEditor/assets/then-icon.svg +23 -0
  20. package/dist/LiteFlowEditor/assets/virtual-icon.svg +21 -0
  21. package/dist/LiteFlowEditor/assets/warning-icon.svg +1 -0
  22. package/dist/LiteFlowEditor/assets/when-icon.svg +21 -0
  23. package/dist/LiteFlowEditor/assets/while-icon.svg +24 -0
  24. package/dist/LiteFlowEditor/cells/and.d.ts +2 -0
  25. package/dist/LiteFlowEditor/cells/and.js +8 -0
  26. package/dist/LiteFlowEditor/cells/catch.d.ts +2 -0
  27. package/dist/LiteFlowEditor/cells/catch.js +8 -0
  28. package/dist/LiteFlowEditor/cells/chain.d.ts +2 -0
  29. package/dist/LiteFlowEditor/cells/chain.js +8 -0
  30. package/dist/LiteFlowEditor/cells/common.d.ts +2 -0
  31. package/dist/LiteFlowEditor/cells/common.js +8 -0
  32. package/dist/LiteFlowEditor/cells/end.d.ts +2 -0
  33. package/dist/LiteFlowEditor/cells/end.js +11 -0
  34. package/dist/LiteFlowEditor/cells/for.d.ts +2 -0
  35. package/dist/LiteFlowEditor/cells/for.js +8 -0
  36. package/dist/LiteFlowEditor/cells/if.d.ts +2 -0
  37. package/dist/LiteFlowEditor/cells/if.js +9 -0
  38. package/dist/LiteFlowEditor/cells/index.d.ts +25 -0
  39. package/dist/LiteFlowEditor/cells/index.js +219 -0
  40. package/dist/LiteFlowEditor/cells/intermediate-end.d.ts +2 -0
  41. package/dist/LiteFlowEditor/cells/intermediate-end.js +11 -0
  42. package/dist/LiteFlowEditor/cells/iterator.d.ts +2 -0
  43. package/dist/LiteFlowEditor/cells/iterator.js +8 -0
  44. package/dist/LiteFlowEditor/cells/not.d.ts +2 -0
  45. package/dist/LiteFlowEditor/cells/not.js +8 -0
  46. package/dist/LiteFlowEditor/cells/or.d.ts +2 -0
  47. package/dist/LiteFlowEditor/cells/or.js +8 -0
  48. package/dist/LiteFlowEditor/cells/start.d.ts +2 -0
  49. package/dist/LiteFlowEditor/cells/start.js +11 -0
  50. package/dist/LiteFlowEditor/cells/switch.d.ts +2 -0
  51. package/dist/LiteFlowEditor/cells/switch.js +9 -0
  52. package/dist/LiteFlowEditor/cells/then.d.ts +2 -0
  53. package/dist/LiteFlowEditor/cells/then.js +11 -0
  54. package/dist/LiteFlowEditor/cells/virtual.d.ts +2 -0
  55. package/dist/LiteFlowEditor/cells/virtual.js +8 -0
  56. package/dist/LiteFlowEditor/cells/when.d.ts +2 -0
  57. package/dist/LiteFlowEditor/cells/when.js +11 -0
  58. package/dist/LiteFlowEditor/cells/while.d.ts +2 -0
  59. package/dist/LiteFlowEditor/cells/while.js +8 -0
  60. package/dist/LiteFlowEditor/common/anchor.d.ts +2 -0
  61. package/dist/LiteFlowEditor/common/anchor.js +10 -0
  62. package/dist/LiteFlowEditor/common/connector.d.ts +2 -0
  63. package/dist/LiteFlowEditor/common/connector.js +20 -0
  64. package/dist/LiteFlowEditor/common/edge.d.ts +61 -0
  65. package/dist/LiteFlowEditor/common/edge.js +57 -0
  66. package/dist/LiteFlowEditor/common/events.d.ts +4 -0
  67. package/dist/LiteFlowEditor/common/events.js +97 -0
  68. package/dist/LiteFlowEditor/common/index.d.ts +4 -0
  69. package/dist/LiteFlowEditor/common/index.js +11 -0
  70. package/dist/LiteFlowEditor/common/layout.d.ts +12 -0
  71. package/dist/LiteFlowEditor/common/layout.js +308 -0
  72. package/dist/LiteFlowEditor/common/router.d.ts +2 -0
  73. package/dist/LiteFlowEditor/common/router.js +40 -0
  74. package/dist/LiteFlowEditor/common/shortcuts.d.ts +10 -0
  75. package/dist/LiteFlowEditor/common/shortcuts.js +183 -0
  76. package/dist/LiteFlowEditor/components/NodeBadge/index.d.ts +6 -0
  77. package/dist/LiteFlowEditor/components/NodeBadge/index.js +24 -0
  78. package/dist/LiteFlowEditor/components/NodeBadge/index.module.less +10 -0
  79. package/dist/LiteFlowEditor/components/NodeToolBar/index.d.ts +6 -0
  80. package/dist/LiteFlowEditor/components/NodeToolBar/index.js +121 -0
  81. package/dist/LiteFlowEditor/components/NodeToolBar/index.module.less +133 -0
  82. package/dist/LiteFlowEditor/components/NodeView/index.d.ts +7 -0
  83. package/dist/LiteFlowEditor/components/NodeView/index.js +14 -0
  84. package/dist/LiteFlowEditor/components/NodeView/index.module.less +14 -0
  85. package/dist/LiteFlowEditor/components/index.d.ts +3 -0
  86. package/dist/LiteFlowEditor/components/index.js +3 -0
  87. package/dist/LiteFlowEditor/constant/index.d.ts +79 -0
  88. package/dist/LiteFlowEditor/constant/index.js +215 -0
  89. package/dist/LiteFlowEditor/context/GraphContext.d.ts +13 -0
  90. package/dist/LiteFlowEditor/context/GraphContext.js +10 -0
  91. package/dist/LiteFlowEditor/context/ScriptContext.d.ts +37 -0
  92. package/dist/LiteFlowEditor/context/ScriptContext.js +15 -0
  93. package/dist/LiteFlowEditor/hooks/index.d.ts +5 -0
  94. package/dist/LiteFlowEditor/hooks/index.js +5 -0
  95. package/dist/LiteFlowEditor/hooks/useClickAway.d.ts +5 -0
  96. package/dist/LiteFlowEditor/hooks/useClickAway.js +38 -0
  97. package/dist/LiteFlowEditor/hooks/useGraph.d.ts +1 -0
  98. package/dist/LiteFlowEditor/hooks/useGraph.js +7 -0
  99. package/dist/LiteFlowEditor/hooks/useGraphWrapper.d.ts +2 -0
  100. package/dist/LiteFlowEditor/hooks/useGraphWrapper.js +7 -0
  101. package/dist/LiteFlowEditor/hooks/useHistory.d.ts +2 -0
  102. package/dist/LiteFlowEditor/hooks/useHistory.js +69 -0
  103. package/dist/LiteFlowEditor/hooks/useModel.d.ts +3 -0
  104. package/dist/LiteFlowEditor/hooks/useModel.js +7 -0
  105. package/dist/LiteFlowEditor/hooks/useUpdateEffect.d.ts +7 -0
  106. package/dist/LiteFlowEditor/hooks/useUpdateEffect.js +17 -0
  107. package/dist/LiteFlowEditor/i18n/en_US/translation.json +138 -0
  108. package/dist/LiteFlowEditor/i18n/index.d.ts +2 -0
  109. package/dist/LiteFlowEditor/i18n/index.js +28 -0
  110. package/dist/LiteFlowEditor/i18n/zh_CN/translation.json +139 -0
  111. package/dist/LiteFlowEditor/i18n/zh_TW/translation.json +139 -0
  112. package/dist/LiteFlowEditor/index.d.ts +37 -0
  113. package/dist/LiteFlowEditor/index.js +299 -0
  114. package/dist/LiteFlowEditor/index.module.less +127 -0
  115. package/dist/LiteFlowEditor/mock/index.d.ts +2 -0
  116. package/dist/LiteFlowEditor/mock/index.js +272 -0
  117. package/dist/LiteFlowEditor/model/builder.d.ts +43 -0
  118. package/dist/LiteFlowEditor/model/builder.js +239 -0
  119. package/dist/LiteFlowEditor/model/chain.d.ts +83 -0
  120. package/dist/LiteFlowEditor/model/chain.js +278 -0
  121. package/dist/LiteFlowEditor/model/el/and-operator.d.ts +53 -0
  122. package/dist/LiteFlowEditor/model/el/and-operator.js +178 -0
  123. package/dist/LiteFlowEditor/model/el/catch-operator.d.ts +81 -0
  124. package/dist/LiteFlowEditor/model/el/catch-operator.js +338 -0
  125. package/dist/LiteFlowEditor/model/el/chain-operator.d.ts +53 -0
  126. package/dist/LiteFlowEditor/model/el/chain-operator.js +170 -0
  127. package/dist/LiteFlowEditor/model/el/for-operator.d.ts +56 -0
  128. package/dist/LiteFlowEditor/model/el/for-operator.js +171 -0
  129. package/dist/LiteFlowEditor/model/el/if-operator.d.ts +64 -0
  130. package/dist/LiteFlowEditor/model/el/if-operator.js +265 -0
  131. package/dist/LiteFlowEditor/model/el/index.d.ts +40 -0
  132. package/dist/LiteFlowEditor/model/el/index.js +47 -0
  133. package/dist/LiteFlowEditor/model/el/iterator-operator.d.ts +56 -0
  134. package/dist/LiteFlowEditor/model/el/iterator-operator.js +183 -0
  135. package/dist/LiteFlowEditor/model/el/node-operator.d.ts +62 -0
  136. package/dist/LiteFlowEditor/model/el/node-operator.js +136 -0
  137. package/dist/LiteFlowEditor/model/el/not-operator.d.ts +68 -0
  138. package/dist/LiteFlowEditor/model/el/not-operator.js +231 -0
  139. package/dist/LiteFlowEditor/model/el/or-operator.d.ts +53 -0
  140. package/dist/LiteFlowEditor/model/el/or-operator.js +178 -0
  141. package/dist/LiteFlowEditor/model/el/switch-operator.d.ts +56 -0
  142. package/dist/LiteFlowEditor/model/el/switch-operator.js +173 -0
  143. package/dist/LiteFlowEditor/model/el/then-operator.d.ts +66 -0
  144. package/dist/LiteFlowEditor/model/el/then-operator.js +159 -0
  145. package/dist/LiteFlowEditor/model/el/when-operator.d.ts +58 -0
  146. package/dist/LiteFlowEditor/model/el/when-operator.js +181 -0
  147. package/dist/LiteFlowEditor/model/el/while-operator.d.ts +56 -0
  148. package/dist/LiteFlowEditor/model/el/while-operator.js +171 -0
  149. package/dist/LiteFlowEditor/model/node.d.ts +182 -0
  150. package/dist/LiteFlowEditor/model/node.js +463 -0
  151. package/dist/LiteFlowEditor/model/utils/createTag.d.ts +1 -0
  152. package/dist/LiteFlowEditor/model/utils/createTag.js +5 -0
  153. package/dist/LiteFlowEditor/model/utils/end.d.ts +87 -0
  154. package/dist/LiteFlowEditor/model/utils/end.js +185 -0
  155. package/dist/LiteFlowEditor/model/utils/index.d.ts +7 -0
  156. package/dist/LiteFlowEditor/model/utils/index.js +10 -0
  157. package/dist/LiteFlowEditor/model/utils/start.d.ts +87 -0
  158. package/dist/LiteFlowEditor/model/utils/start.js +185 -0
  159. package/dist/LiteFlowEditor/model/utils/virtual.d.ts +78 -0
  160. package/dist/LiteFlowEditor/model/utils/virtual.js +167 -0
  161. package/dist/LiteFlowEditor/model-checker/checkers/AnalysisNodeChecker.d.ts +7 -0
  162. package/dist/LiteFlowEditor/model-checker/checkers/AnalysisNodeChecker.js +44 -0
  163. package/dist/LiteFlowEditor/model-checker/checkers/CurScheduleSetChecker.d.ts +7 -0
  164. package/dist/LiteFlowEditor/model-checker/checkers/CurScheduleSetChecker.js +26 -0
  165. package/dist/LiteFlowEditor/model-checker/checkers/InputListChecker.d.ts +7 -0
  166. package/dist/LiteFlowEditor/model-checker/checkers/InputListChecker.js +39 -0
  167. package/dist/LiteFlowEditor/model-checker/checkers/InputListValueChecker.d.ts +7 -0
  168. package/dist/LiteFlowEditor/model-checker/checkers/InputListValueChecker.js +154 -0
  169. package/dist/LiteFlowEditor/model-checker/checkers/IteratorBindChecker.d.ts +7 -0
  170. package/dist/LiteFlowEditor/model-checker/checkers/IteratorBindChecker.js +27 -0
  171. package/dist/LiteFlowEditor/model-checker/checkers/QueryDimensionChecker.d.ts +7 -0
  172. package/dist/LiteFlowEditor/model-checker/checkers/QueryDimensionChecker.js +33 -0
  173. package/dist/LiteFlowEditor/model-checker/checkers/QueryLogChecker.d.ts +7 -0
  174. package/dist/LiteFlowEditor/model-checker/checkers/QueryLogChecker.js +27 -0
  175. package/dist/LiteFlowEditor/model-checker/checkers/ReportTemplateChecker.d.ts +7 -0
  176. package/dist/LiteFlowEditor/model-checker/checkers/ReportTemplateChecker.js +27 -0
  177. package/dist/LiteFlowEditor/model-checker/checkers/UnconfiguredComponentChecker.d.ts +7 -0
  178. package/dist/LiteFlowEditor/model-checker/checkers/UnconfiguredComponentChecker.js +27 -0
  179. package/dist/LiteFlowEditor/model-checker/checkers/index.d.ts +14 -0
  180. package/dist/LiteFlowEditor/model-checker/checkers/index.js +38 -0
  181. package/dist/LiteFlowEditor/model-checker/index.d.ts +22 -0
  182. package/dist/LiteFlowEditor/model-checker/index.js +43 -0
  183. package/dist/LiteFlowEditor/model-checker/types.d.ts +11 -0
  184. package/dist/LiteFlowEditor/model-checker/types.js +1 -0
  185. package/dist/LiteFlowEditor/panels/breadcrumb/index.d.ts +7 -0
  186. package/dist/LiteFlowEditor/panels/breadcrumb/index.js +67 -0
  187. package/dist/LiteFlowEditor/panels/breadcrumb/index.module.less +23 -0
  188. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.d.ts +11 -0
  189. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.js +98 -0
  190. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.module.less +7 -0
  191. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/blank.d.ts +8 -0
  192. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/blank.js +18 -0
  193. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/index.d.ts +3 -0
  194. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/index.js +3 -0
  195. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/node.d.ts +9 -0
  196. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/node.js +10 -0
  197. package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.d.ts +14 -0
  198. package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.js +108 -0
  199. package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.module.less +81 -0
  200. package/dist/LiteFlowEditor/panels/flowGraph/createFlowGraph.d.ts +3 -0
  201. package/dist/LiteFlowEditor/panels/flowGraph/createFlowGraph.js +199 -0
  202. package/dist/LiteFlowEditor/panels/flowGraph/miniMapSimpleNode/index.d.ts +7 -0
  203. package/dist/LiteFlowEditor/panels/flowGraph/miniMapSimpleNode/index.js +42 -0
  204. package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.d.ts +8 -0
  205. package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.js +110 -0
  206. package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.module.less +11 -0
  207. package/dist/LiteFlowEditor/panels/layout/index.d.ts +16 -0
  208. package/dist/LiteFlowEditor/panels/layout/index.js +117 -0
  209. package/dist/LiteFlowEditor/panels/layout/index.module.less +30 -0
  210. package/dist/LiteFlowEditor/panels/settingBar/basic/index.d.ts +7 -0
  211. package/dist/LiteFlowEditor/panels/settingBar/basic/index.js +50 -0
  212. package/dist/LiteFlowEditor/panels/settingBar/basic/index.module.less +17 -0
  213. package/dist/LiteFlowEditor/panels/settingBar/index.d.ts +7 -0
  214. package/dist/LiteFlowEditor/panels/settingBar/index.js +219 -0
  215. package/dist/LiteFlowEditor/panels/settingBar/index.module.less +45 -0
  216. package/dist/LiteFlowEditor/panels/settingBar/outline/index.d.ts +7 -0
  217. package/dist/LiteFlowEditor/panels/settingBar/outline/index.js +124 -0
  218. package/dist/LiteFlowEditor/panels/settingBar/outline/index.module.less +39 -0
  219. package/dist/LiteFlowEditor/panels/settingBar/parameters/index.d.ts +6 -0
  220. package/dist/LiteFlowEditor/panels/settingBar/parameters/index.js +415 -0
  221. package/dist/LiteFlowEditor/panels/settingBar/parameters/index.module.less +4 -0
  222. package/dist/LiteFlowEditor/panels/settingBar/properties/CustomDropdown.d.ts +13 -0
  223. package/dist/LiteFlowEditor/panels/settingBar/properties/CustomDropdown.js +62 -0
  224. package/dist/LiteFlowEditor/panels/settingBar/properties/DraggableWrapper.d.ts +48 -0
  225. package/dist/LiteFlowEditor/panels/settingBar/properties/DraggableWrapper.js +94 -0
  226. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor-new.d.ts +33 -0
  227. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor-new.js +433 -0
  228. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor.d.ts +33 -0
  229. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor.js +195 -0
  230. package/dist/LiteFlowEditor/panels/settingBar/properties/component.d.ts +10 -0
  231. package/dist/LiteFlowEditor/panels/settingBar/properties/component.js +2780 -0
  232. package/dist/LiteFlowEditor/panels/settingBar/properties/condition.d.ts +7 -0
  233. package/dist/LiteFlowEditor/panels/settingBar/properties/condition.js +54 -0
  234. package/dist/LiteFlowEditor/panels/settingBar/properties/index.d.ts +2 -0
  235. package/dist/LiteFlowEditor/panels/settingBar/properties/index.js +2 -0
  236. package/dist/LiteFlowEditor/panels/settingBar/properties/index.module.less +149 -0
  237. package/dist/LiteFlowEditor/panels/sideBar/index.d.ts +7 -0
  238. package/dist/LiteFlowEditor/panels/sideBar/index.js +153 -0
  239. package/dist/LiteFlowEditor/panels/sideBar/index.module.less +48 -0
  240. package/dist/LiteFlowEditor/panels/toolBar/index.d.ts +8 -0
  241. package/dist/LiteFlowEditor/panels/toolBar/index.js +42 -0
  242. package/dist/LiteFlowEditor/panels/toolBar/index.module.less +19 -0
  243. package/dist/LiteFlowEditor/panels/toolBar/widgets/check.d.ts +7 -0
  244. package/dist/LiteFlowEditor/panels/toolBar/widgets/check.js +40 -0
  245. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/badge.d.ts +12 -0
  246. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/badge.js +46 -0
  247. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeBtnWidget.d.ts +15 -0
  248. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeBtnWidget.js +133 -0
  249. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeDropdownWidget.d.ts +14 -0
  250. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeDropdownWidget.js +38 -0
  251. package/dist/LiteFlowEditor/panels/toolBar/widgets/fitWindow.d.ts +7 -0
  252. package/dist/LiteFlowEditor/panels/toolBar/widgets/fitWindow.js +17 -0
  253. package/dist/LiteFlowEditor/panels/toolBar/widgets/fullscreen.d.ts +4 -0
  254. package/dist/LiteFlowEditor/panels/toolBar/widgets/fullscreen.js +104 -0
  255. package/dist/LiteFlowEditor/panels/toolBar/widgets/global.less +6 -0
  256. package/dist/LiteFlowEditor/panels/toolBar/widgets/index.d.ts +7 -0
  257. package/dist/LiteFlowEditor/panels/toolBar/widgets/index.js +12 -0
  258. package/dist/LiteFlowEditor/panels/toolBar/widgets/index.module.less +169 -0
  259. package/dist/LiteFlowEditor/panels/toolBar/widgets/mock.d.ts +7 -0
  260. package/dist/LiteFlowEditor/panels/toolBar/widgets/mock.js +83 -0
  261. package/dist/LiteFlowEditor/panels/toolBar/widgets/redo.d.ts +7 -0
  262. package/dist/LiteFlowEditor/panels/toolBar/widgets/redo.js +16 -0
  263. package/dist/LiteFlowEditor/panels/toolBar/widgets/save.d.ts +7 -0
  264. package/dist/LiteFlowEditor/panels/toolBar/widgets/save.js +12 -0
  265. package/dist/LiteFlowEditor/panels/toolBar/widgets/selection.d.ts +7 -0
  266. package/dist/LiteFlowEditor/panels/toolBar/widgets/selection.js +23 -0
  267. package/dist/LiteFlowEditor/panels/toolBar/widgets/undo.d.ts +7 -0
  268. package/dist/LiteFlowEditor/panels/toolBar/widgets/undo.js +16 -0
  269. package/dist/LiteFlowEditor/panels/toolBar/widgets/view.d.ts +7 -0
  270. package/dist/LiteFlowEditor/panels/toolBar/widgets/view.js +37 -0
  271. package/dist/LiteFlowEditor/panels/toolBar/widgets/zoom.d.ts +7 -0
  272. package/dist/LiteFlowEditor/panels/toolBar/widgets/zoom.js +67 -0
  273. package/dist/LiteFlowEditor/utils/eventBus.d.ts +34 -0
  274. package/dist/LiteFlowEditor/utils/eventBus.js +86 -0
  275. package/dist/LiteFlowEditor/utils/flowChartUtils.d.ts +9 -0
  276. package/dist/LiteFlowEditor/utils/flowChartUtils.js +34 -0
  277. package/dist/LiteFlowEditor/utils/index.d.ts +33 -0
  278. package/dist/LiteFlowEditor/utils/index.js +245 -0
  279. package/dist/index.d.ts +4 -0
  280. package/dist/index.js +4 -0
  281. package/package.json +97 -0
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>AND</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1290.000000, -485.000000)" stroke="#5B8FF9" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-3" transform="translate(12.000000, 289.000000)">
8
+ <g id="编组-16" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="加" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形" cx="9" cy="9" r="9"></circle>
12
+ <text x="2" y="2" font-size="12" text-anchor="middle" transform="translate(8, 10) scale(0.5)">AND</text>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Catch</title>
4
+ <g stroke="#FF4D4F" stroke-width="1.6" fill="none" fill-rule="evenodd">
5
+ <polygon stroke-width="1.6" points="12 5 22 12.5 12 20 2 12.5"></polygon>
6
+ <g id="编组" transform="translate(8, 9) scale(0.4)" stroke-width="3.2">
7
+ <path d="M13.5,5 C14.8807,5 16,3.8807 16,2.5 C16,1.11929 14.8807,0 13.5,0 C12.1193,0 11,1.11929 11,2.5 C11,3.8807 12.1193,5 13.5,5 Z" id="路径"></path>
8
+ <path d="M2.5,11.5 C3.8807,11.5 5,10.3807 5,9 C5,7.6193 3.8807,6.5 2.5,6.5 C1.1193,6.5 0,7.6193 0,9 C0,10.3807 1.1193,11.5 2.5,11.5 Z" id="路径"></path>
9
+ <line x1="11.0002" y1="3.78725" x2="4.66965" y2="7.6227" id="路径" stroke-linecap="round"></line>
10
+ <line x1="4.66925" y1="10.28195" x2="11.33945" y2="14.22345" id="路径" stroke-linecap="round"></line>
11
+ <path d="M13.5,13 C14.8807,13 16,14.1193 16,15.5 C16,16.8807 14.8807,18 13.5,18 C12.1193,18 11,16.8807 11,15.5 C11,14.1193 12.1193,13 13.5,13 Z" id="路径"></path>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Chain</title>
4
+ <g stroke="#FF4D4F" stroke-width="1.6" fill="none" fill-rule="evenodd">
5
+ <polygon stroke-width="1.6" points="12 5 22 12.5 12 20 2 12.5"></polygon>
6
+ <g id="编组" transform="translate(6.5, 7) scale(0.6)" stroke-width="3.2">
7
+ <line x1="4.15384615" y1="9" x2="13.6158601" y2="9" id="路径-3"></line>
8
+ <line x1="8.88485313" y1="13.731007" x2="8.88485313" y2="4.26899303" id="路径-3备份"></line>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>chayihua</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1293.000000, -331.000000)" fill="#0086FF" fill-rule="nonzero" stroke="#0086FF">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="差异化" transform="translate(0.000000, 135.000000)">
8
+ <g id="编组" transform="translate(24.000000, 0.000000)">
9
+ <g id="差异化" transform="translate(2.400000, 2.300000)">
10
+ <path d="M19.0680804,0.0266679067 L1.23325893,0.0266679067 C0.562115361,0.0275026635 0.0182631636,0.548694352 0.0173921131,1.1918736 L0.0173921131,18.2835775 C0.0182631636,18.9267567 0.562115361,19.4479484 1.23325893,19.4487832 L19.0680804,19.4487832 C19.7392239,19.4479484 20.2830761,18.9267567 20.2839472,18.2835775 L20.2839472,1.1918736 C20.2830761,0.548694352 19.7392239,0.0275026635 19.0680804,0.0266679067 Z M19.4734747,18.2835775 C19.4734747,18.4980724 19.2919012,18.6720804 19.0680804,18.6720804 L1.23325893,18.6720804 C1.00943809,18.6720804 0.827864583,18.4980724 0.827864583,18.2835775 L0.827864583,1.1918736 C0.827864583,0.977378631 1.00943809,0.803370691 1.23325893,0.803370691 L19.0680804,0.803370691 C19.2919012,0.803370691 19.4734747,0.977378631 19.4734747,1.1918736 L19.4734747,18.2835775 Z" id="形状"></path>
11
+ <path d="M15.0141369,11.2884037 L5.56737351,11.2884037 C5.3434804,11.2884037 5.16197917,11.4623424 5.16197917,11.6769066 C5.16197917,11.8914709 5.3434804,12.0654095 5.56737351,12.0654095 L14.1644531,12.0654095 L12.2924293,14.232177 C12.1495708,14.3974517 12.1735681,14.6424176 12.3460286,14.7793236 C12.5184892,14.9162297 12.7741058,14.8932323 12.9169643,14.7279576 L15.2759673,11.9972245 C15.4059363,11.8880696 15.4533585,11.7140231 15.3956669,11.5579088 C15.3379754,11.4017945 15.1868223,11.295143 15.0141369,11.2887068 L15.0141369,11.2884037 Z M14.7358631,8.23401925 C14.9597562,8.23401925 15.1412574,8.06008057 15.1412574,7.84551634 C15.1412574,7.6309521 14.9597562,7.45701342 14.7358631,7.45701342 L6.22479539,7.45701342 L8.3953311,5.31297433 C8.54620821,5.15827639 8.5400292,4.91628177 8.38143738,4.76884094 C8.22284556,4.62140011 7.97025821,4.62282288 7.81348586,4.77204009 L5.04908854,7.50277313 C4.90774461,7.60748424 4.84953129,7.78555358 4.90326492,7.9488345 C4.95699855,8.11211542 5.11127768,8.22596222 5.28973214,8.23401925 L14.7358631,8.23401925 Z" id="形状"></path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="23px" viewBox="0 0 24 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>图标</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1374.000000, -533.000000)">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="图标" transform="translate(106.000000, 337.000000)">
8
+ <ellipse id="椭圆形备份" stroke="#F56C6C" stroke-width="1.6" cx="12" cy="11.5" rx="10.8" ry="10.35"></ellipse>
9
+ <rect id="矩形" fill="#F56C6C" x="8.4" y="8.05" width="7.2" height="6.9"></rect>
10
+ </g>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1.6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
5
+ <g id="流程编排" transform="translate(-34, -314)" stroke="#0086FF">
6
+ <g id="编组-24" transform="translate(0, 128)">
7
+ <g id="编组-22" transform="translate(18, 59)">
8
+ <g id="编组-25备份-2" transform="translate(2, 113)">
9
+ <g id="编组" transform="translate(12, 15)">
10
+ <g transform="translate(5, 2) scale(0.8)" id="路径">
11
+ <path d="M2.63605,15.36395 C4.2647,16.99265 6.5147,18 9,18 C13.97055,18 18,13.97055 18,9 C18,4.02945 13.97055,0 9,0 C6.5147,0 4.2647,1.00736 2.63605,2.63605 C1.80705,3.46505 0,5.5 0,5.5"></path>
12
+ <polyline points="0 1.5 0 5.5 4 5.5"></polyline>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>结束备份 3</title>
4
+ <g id="结束备份-3" stroke="#EFA13B" stroke-width="1.6" fill="none" fill-rule="evenodd">
5
+ <polygon id="多边形" points="12 5 22 12.5 12 20 2 12.5"></polygon>
6
+ <g id="编组" transform="translate(8, 9) scale(0.4)" stroke-width="3.2">
7
+ <path d="M13.5,5 C14.8807,5 16,3.8807 16,2.5 C16,1.11929 14.8807,0 13.5,0 C12.1193,0 11,1.11929 11,2.5 C11,3.8807 12.1193,5 13.5,5 Z" id="路径"></path>
8
+ <path d="M2.5,11.5 C3.8807,11.5 5,10.3807 5,9 C5,7.6193 3.8807,6.5 2.5,6.5 C1.1193,6.5 0,7.6193 0,9 C0,10.3807 1.1193,11.5 2.5,11.5 Z" id="路径"></path>
9
+ <line x1="11.0002" y1="3.78725" x2="4.66965" y2="7.6227" id="路径" stroke-linecap="round"></line>
10
+ <line x1="4.66925" y1="10.28195" x2="11.33945" y2="14.22345" id="路径" stroke-linecap="round"></line>
11
+ <path d="M13.5,13 C14.8807,13 16,14.1193 16,15.5 C16,16.8807 14.8807,18 13.5,18 C12.1193,18 11,16.8807 11,15.5 C11,14.1193 12.1193,13 13.5,13 Z" id="路径"></path>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="36px" height="20px" viewBox="0 0 36 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch -->
4
+ <title>收起箭头</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="收起箭头" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="全部" transform="translate(10.000000, 10.000000) scale(-1, 1) translate(-10.000000, -10.000000) translate(4.000000, 4.000000)">
8
+ <rect id="矩形" x="0" y="0" width="12" height="12"></rect>
9
+ <path d="M6,4 L1,4 C0.44771525,4 0,3.55228475 0,3 C0,2.44771525 0.44771525,2 1,2 L7,2 C7.55228475,2 8,2.44771525 8,3 L8,9 C8,9.55228475 7.55228475,10 7,10 C6.44771525,10 6,9.55228475 6,9 L6,4 Z" id="Rectangle-2" fill="#1B2337" fill-rule="nonzero" transform="translate(4.000000, 6.000000) rotate(-315.000000) translate(-4.000000, -6.000000) "></path>
10
+ </g>
11
+ <g id="全部" transform="translate(20.000000, 4.000000)">
12
+ <rect id="矩形" x="0" y="0" width="12" height="12"></rect>
13
+ <path d="M6,4 L1,4 C0.44771525,4 0,3.55228475 0,3 C0,2.44771525 0.44771525,2 1,2 L7,2 C7.55228475,2 8,2.44771525 8,3 L8,9 C8,9.55228475 7.55228475,10 7,10 C6.44771525,10 6,9.55228475 6,9 L6,4 Z" id="Rectangle-2" fill="#1B2337" fill-rule="nonzero" transform="translate(4.000000, 6.000000) rotate(-315.000000) translate(-4.000000, -6.000000) "></path>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>huizong</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1372.000000, -430.000000)" stroke="#10B2CC" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-2" transform="translate(94.000000, 234.000000)">
8
+ <g id="编组-15" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="结束" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形备份" cx="9" cy="9" r="9"></circle>
12
+ <rect id="矩形" x="6" y="6" width="5.75" height="5.75"></rect>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ version="1.1"
9
+ id="svg3891"
10
+ width="24px"
11
+ height="24px"
12
+ viewBox="0 0 2048 2048"
13
+ >
14
+ <defs
15
+ id="defs3893" />
16
+ <metadata
17
+ id="metadata3896">
18
+ <rdf:RDF>
19
+ <cc:Work
20
+ rdf:about="">
21
+ <dc:format>image/svg+xml</dc:format>
22
+ <dc:type
23
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
24
+ <dc:title></dc:title>
25
+ </cc:Work>
26
+ </rdf:RDF>
27
+ </metadata>
28
+ <g
29
+ transform="translate(0,995.63783)"
30
+ id="layer1">
31
+ <g
32
+ id="layer1-6"
33
+ transform="matrix(96.752895,0,0,96.752895,55.328158,-100816.34)">
34
+ <path
35
+ id="path4481-5-4"
36
+ d="m 9.9937272,1032.7346 c -4.6538895,-0.095 -8.99662121,3.7306 -9.48071689,8.3635 -0.51158625,3.9182 1.63952539,8.051 5.22823049,9.7586 3.3886833,1.7028 7.7828562,1.19 10.5932512,-1.3942 2.838084,-2.4891 4.023843,-6.7246 2.710831,-10.2919 -1.20721,-3.5161 -4.583591,-6.194 -8.318067,-6.4082 -0.244049,-0.018 -0.488788,-0.028 -0.7335288,-0.028 z m -0.108342,1.0311 c 4.2674948,-0.1607 8.2783328,3.3978 8.6127338,7.659 0.410694,3.7581 -1.953842,7.6514 -5.552171,8.8899 -3.497904,1.2934 -7.7915669,0.036 -9.904171,-3.0752 -2.16828429,-3.0372 -2.08216685,-7.5204 0.37808,-10.3698 1.574648,-1.8967 3.9907323,-3.0947 6.4655282,-3.1039 z m 0.1694678,0.9294 c -3.9477165,-0.1256 -7.5796118,3.3403 -7.6509309,7.2882 -0.1740284,3.5675 2.4699914,7.0685 6.0020981,7.748 3.2727028,0.7164 6.9294358,-0.9649 8.3895778,-4.009 1.510113,-2.973 0.834747,-6.9294 -1.74181,-9.1011 -1.365218,-1.2093 -3.171013,-1.9241 -4.998935,-1.9261 z m -0.04645,1.0134 c 3.480081,-0.092 6.649592,3.0398 6.59378,6.5233 0.06151,3.2203 -2.53037,6.2809 -5.763742,6.6056 -3.035732,0.3986 -6.2364618,-1.548 -7.1092386,-4.5178 -0.9148439,-2.8295 0.2871045,-6.2375 2.9235876,-7.6944 1.0108587,-0.5955 2.1818378,-0.9186 3.355613,-0.9167 z m 3.667688,2.509 c -0.724307,1.4682 -1.448613,2.9365 -2.17292,4.4047 -0.900598,-1.1714 -1.8011959,-2.3428 -2.7017937,-3.5142 -0.8179464,2.4191 -1.635893,4.8382 -2.4538394,7.2573 0.9170163,-1.1787 1.8340325,-2.3574 2.7510488,-3.5361 0.9459233,1.0823 1.8918473,2.1647 2.8377713,3.2471 0.579911,-2.6196 1.159822,-5.2392 1.739733,-7.8588 z m -4.6344512,2.324 c 0.8563352,1.0856 1.7126692,2.1713 2.5690042,3.2569 0.213872,-0.4761 0.427744,-0.9521 0.641616,-1.4282 -0.204754,0.8238 -0.409509,1.6476 -0.614262,2.4714 -0.874032,-1.0282 -1.7480641,-2.0565 -2.6220962,-3.0847 -0.3546002,0.5482 -0.7092005,1.0964 -1.0638007,1.6447 0.3631795,-0.9534 0.7263591,-1.9068 1.0895387,-2.8601 z"
37
+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#FF4D4F;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.03356075;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
38
+ </g>
39
+ </g>
40
+ </svg>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
3
+ width="24px" height="24px">
4
+ <path
5
+ d="M896 684.8H275.2l57.6-57.6-44.8-44.8-112 112-22.4 22.4L288 854.4l44.8-44.8-57.6-57.6H960V464c0-19.2-12.8-32-32-32s-32 12.8-32 32v220.8zM691.2 358.4l44.8 44.8 112-112 22.4-22.4L736 134.4l-44.8 44.8 57.6 57.6H64v288c0 19.2 12.8 32 32 32s32-12.8 32-32v-224h620.8l-57.6 57.6z"
6
+ fill="#EFA13B"></path>
7
+ </svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="mr-2 mt-[3px] h-3 w-3 text-[#F79009]" data-icon="AlertTriangle" aria-hidden="true"><g id="alert-triangle"><path id="Icon" d="M7.99977 5.33314V7.99981M7.99977 10.6665H8.00644M6.85977 1.90648L1.2131 11.3331C1.09668 11.5348 1.03508 11.7633 1.03443 11.9962C1.03378 12.229 1.0941 12.4579 1.20939 12.6602C1.32468 12.8624 1.49092 13.031 1.69157 13.149C1.89223 13.2671 2.1203 13.3306 2.3531 13.3331H13.6464C13.8792 13.3306 14.1073 13.2671 14.308 13.149C14.5086 13.031 14.6749 12.8624 14.7902 12.6602C14.9054 12.4579 14.9658 12.229 14.9651 11.9962C14.9645 11.7633 14.9029 11.5348 14.7864 11.3331L9.13977 1.90648C9.02092 1.71055 8.85358 1.54856 8.6539 1.43613C8.45422 1.32371 8.22893 1.26465 7.99977 1.26465C7.77061 1.26465 7.54532 1.32371 7.34564 1.43613C7.14596 1.54856 6.97862 1.71055 6.85977 1.90648Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>NOT</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1290.000000, -485.000000)" stroke="#E86452" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-3" transform="translate(12.000000, 289.000000)">
8
+ <g id="编组-16" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="加" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形" cx="9" cy="9" r="9"></circle>
12
+ <text x="2" y="2" font-size="12" text-anchor="middle" transform="translate(8, 10) scale(0.5)">NOT</text>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>OR</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1290.000000, -485.000000)" stroke="#FF9845" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-3" transform="translate(12.000000, 289.000000)">
8
+ <g id="编组-16" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="加" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形" cx="9" cy="9" r="9"></circle>
12
+ <text x="2" y="2" font-size="12" text-anchor="middle" transform="translate(8, 10) scale(0.5)">OR</text>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>kaishi</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1292.000000, -587.000000)">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon" transform="translate(24.000000, 391.000000)">
8
+ <g id="图标" transform="translate(0.000000, 1.000000)">
9
+ <ellipse id="椭圆形" stroke="#43BA89" stroke-width="1.6" cx="12" cy="11.5" rx="10.8" ry="10.35"></ellipse>
10
+ <polygon id="三角形" fill="#43BA89" transform="translate(12.000000, 11.335714) rotate(-270.000000) translate(-12.000000, -11.335714) " points="12 7.90714286 16.6 14.7642857 7.4 14.7642857"></polygon>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>结束备份 3</title>
4
+ <g id="结束备份-3" stroke="#FF878D" stroke-width="1.6" fill="none" fill-rule="evenodd">
5
+ <polygon id="多边形" points="12 5 22 12.5 12 20 2 12.5"></polygon>
6
+ <g id="编组" transform="translate(8, 9) scale(0.4)" stroke-width="3.2">
7
+ <circle id="椭圆形" cx="2" cy="9" r="2"></circle>
8
+ <circle id="椭圆形" cx="16" cy="2" r="2"></circle>
9
+ <circle id="椭圆形" cx="16" cy="9" r="2"></circle>
10
+ <circle id="椭圆形" cx="16" cy="16" r="2"></circle>
11
+ <polyline id="路径" stroke-linecap="round" stroke-linejoin="round" points="14 16 8 16 8 2 14 2"></polyline>
12
+ <line x1="4" y1="9" x2="14" y2="9" id="路径" stroke-linecap="round" stroke-linejoin="round"></line>
13
+ </g>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Then</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1290.000000, -485.000000)" stroke="#0086FF" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-3" transform="translate(12.000000, 289.000000)">
8
+ <g id="编组-16" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="加" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形" cx="9" cy="9" r="9"></circle>
12
+ <g transform="translate(4, 6)" id="路径" stroke-linecap="round">
13
+ <line x1="8.99999" y1="3" x2="0" y2="3"></line>
14
+ <polyline points="6.000015 0 9.000015 3 6.000015 6"></polyline>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </svg>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>qishi</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1290.000000, -485.000000)" stroke="#10B2CC" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-3" transform="translate(12.000000, 289.000000)">
8
+ <g id="编组-16" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="加" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形" cx="9" cy="9" r="9" stroke-dasharray="1"></circle>
12
+ <line x1="4.15384615" y1="9" x2="13.6158601" y2="9" id="路径-3"></line>
13
+ <line x1="8.88485313" y1="13.731007" x2="8.88485313" y2="4.26899303" id="路径-3备份"></line>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </svg>
@@ -0,0 +1 @@
1
+ <svg t="1747362249951" class="icon" viewBox="0 0 1028 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6404" width="200" height="200"><path d="M1019.503177 880.932571L561.190034 86.966857a54.564571 54.564571 0 0 0-94.500571 0L7.35232 882.468571a54.564571 54.564571 0 0 0 47.323429 81.846858h918.528a54.564571 54.564571 0 0 0 46.299428-83.382858zM560.751177 797.842286a46.811429 46.811429 0 1 1-93.622857 0v-1.462857a46.811429 46.811429 0 1 1 93.622857 0v1.462857z m0-170.934857a46.811429 46.811429 0 1 1-93.622857 0v-248.685715a46.811429 46.811429 0 1 1 93.622857 0v248.685715z" fill="#FF7300" p-id="6405"></path></svg>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>qishi</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="策略项目管理" transform="translate(-1290.000000, -485.000000)" stroke="#10B2CC" stroke-width="1.6">
6
+ <g id="流程控制" transform="translate(1268.000000, 196.000000)">
7
+ <g id="icon备份-3" transform="translate(12.000000, 289.000000)">
8
+ <g id="编组-16" transform="translate(10.000000, 0.000000)">
9
+ <g id="编组" transform="translate(2.000000, 2.000000)">
10
+ <g id="加" transform="translate(1.000000, 1.000000)">
11
+ <circle id="椭圆形" cx="9" cy="9" r="9"></circle>
12
+ <line x1="4.15384615" y1="9" x2="13.6158601" y2="9" id="路径-3"></line>
13
+ <line x1="8.88485313" y1="13.731007" x2="8.88485313" y2="4.26899303" id="路径-3备份"></line>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 18 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1.6" fill="none" fill-rule="evenodd" stroke-linecap="round">
5
+ <g id="流程编排" transform="translate(-95, -314)" stroke="#10B2CC">
6
+ <g id="编组-24" transform="translate(0, 128)">
7
+ <g id="编组-22" transform="translate(18, 59)">
8
+ <g id="编组-25备份-3" transform="translate(56, 113)">
9
+ <g id="编组" transform="translate(0, 15)">
10
+ <g transform="translate(23, 2) scale(0.8)" id="路径">
11
+ <path d="M16.31005,5 C14.83735,2.03655 11.7793,0 8.2456,0 C4.71185,0 1.7227,2.03655 0.25,5"></path>
12
+ <line x1="0.25" y1="1" x2="0.25" y2="5"></line>
13
+ <line x1="3.64015" y1="5" x2="0.250065" y2="5"></line>
14
+ <path d="M0.25,13 C1.7227,15.96345 4.78075,18 8.3145,18 C11.8482,18 14.83735,15.96345 16.31005,13"></path>
15
+ <line x1="16.31005" y1="17" x2="16.31005" y2="13"></line>
16
+ <line x1="12.9199" y1="13" x2="16.31" y2="13"></line>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </svg>
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,8 @@
1
+ import { ConditionTypeEnum } from "../constant";
2
+ import icon from "../assets/and-icon.svg";
3
+ var config = {
4
+ label: 'node_and',
5
+ type: ConditionTypeEnum.AND,
6
+ icon: icon
7
+ };
8
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,8 @@
1
+ import { ConditionTypeEnum } from "../constant";
2
+ import icon from "../assets/catch-icon.svg";
3
+ var config = {
4
+ label: 'node_catch',
5
+ type: ConditionTypeEnum.CATCH,
6
+ icon: icon
7
+ };
8
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,8 @@
1
+ import { ConditionTypeEnum } from "../constant";
2
+ import icon from "../assets/chain-icon.svg";
3
+ var config = {
4
+ label: 'node_chain',
5
+ type: ConditionTypeEnum.CHAIN,
6
+ icon: icon
7
+ };
8
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,8 @@
1
+ import { NodeTypeEnum } from "../constant";
2
+ import icon from "../assets/common-icon.svg";
3
+ var config = {
4
+ label: 'node_common',
5
+ type: NodeTypeEnum.COMMON,
6
+ icon: icon
7
+ };
8
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,11 @@
1
+ import { NODE_TYPE_END } from "../constant";
2
+ import icon from "../assets/end-icon.svg";
3
+ var config = {
4
+ label: 'end',
5
+ type: NODE_TYPE_END,
6
+ icon: icon,
7
+ node: {
8
+ primer: 'circle'
9
+ }
10
+ };
11
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,8 @@
1
+ import { NodeTypeEnum } from "../constant";
2
+ import icon from "../assets/for-icon.svg";
3
+ var config = {
4
+ label: 'node_for',
5
+ type: NodeTypeEnum.FOR,
6
+ icon: icon
7
+ };
8
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,9 @@
1
+ import { NodeTypeEnum } from "../constant";
2
+ import icon from "../assets/if-icon.svg";
3
+ var config = {
4
+ label: 'node_if',
5
+ type: NodeTypeEnum.IF,
6
+ icon: icon,
7
+ disabled: true
8
+ };
9
+ export default config;
@@ -0,0 +1,25 @@
1
+ import '@antv/x6-react-shape';
2
+ import { ConditionTypeEnum, NodeTypeEnum } from '../constant';
3
+ /** AntV X6自定义节点 */
4
+ import { default as Start } from './start';
5
+ import { default as End } from './end';
6
+ import { default as Then } from './then';
7
+ import { default as When } from './when';
8
+ import { default as Common } from './common';
9
+ import { default as IntermediateEnd } from './intermediate-end';
10
+ import { default as Switch } from './switch';
11
+ import { default as If } from './if';
12
+ import { default as Iterator } from './iterator';
13
+ import { default as Virtual } from './virtual';
14
+ export { Start, End, Common, Then, When, IntermediateEnd, Switch, If, Iterator, Virtual, };
15
+ export interface IGroupItem {
16
+ key: string;
17
+ name: string;
18
+ cellTypes: LiteFlowNode[];
19
+ }
20
+ export declare const NODE_GROUP: IGroupItem;
21
+ export declare const SEQUENCE_GROUP: IGroupItem;
22
+ export declare const BRANCH_GROUP: IGroupItem;
23
+ export declare const CONTROL_GROUP: IGroupItem;
24
+ export declare const getIconByType: (nodeType: ConditionTypeEnum | NodeTypeEnum) => string;
25
+ export declare function getNodeShapeByType(nodeType: NodeTypeEnum): string;