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,219 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import React from 'react';
3
+ import { Graph } from '@antv/x6';
4
+ import '@antv/x6-react-shape';
5
+ import { ConditionTypeEnum, NODE_HEIGHT, NODE_TYPE_INTERMEDIATE_END, NODE_WIDTH, NodeTypeEnum } from "../constant";
6
+ /** AntV X6自定义节点 */
7
+ // 开始 & 结束
8
+ import { default as Start } from "./start";
9
+ import { default as End } from "./end";
10
+ // 顺序:串行、并行
11
+ import { default as Then } from "./then";
12
+ import { default as When } from "./when";
13
+ import { default as Common } from "./common";
14
+ import { default as IntermediateEnd } from "./intermediate-end";
15
+ // 分支:选择、条件
16
+ import { default as Switch } from "./switch";
17
+ import { default as If } from "./if";
18
+ // 循环:For、While
19
+ // import {default as For} from './for';
20
+ // import {default as While} from './while';
21
+ import { default as Iterator } from "./iterator";
22
+ // 捕获异常:Catch
23
+ // import {default as Catch} from './catch';
24
+ // 运算符:与或非
25
+ // import {default as And} from './and';
26
+ // import {default as Or} from './or';
27
+ // import {default as Not} from './not';
28
+ // 子流程:Chain
29
+ // import {default as Chain} from './chain';
30
+ // 其他辅助节点:虚节点
31
+ import { default as Virtual } from "./virtual";
32
+
33
+ // AntV X6自定义节点的视图:使用React组件
34
+ import { NodeBadge, NodeToolBar, NodeView } from "../components";
35
+ import i18n from "../i18n";
36
+
37
+ /** 注册自定义节点到AntV X6 */
38
+ [Start, End, Then, When, Common, IntermediateEnd, If, Switch,
39
+ // For,
40
+ // While,
41
+ Iterator,
42
+ // Catch,
43
+ // And,
44
+ // Or,
45
+ // Not,
46
+ Virtual
47
+ // Chain,
48
+ ].forEach(function (cell) {
49
+ // 注册AntV X6节点
50
+ var type = cell.type,
51
+ label = cell.label,
52
+ icon = cell.icon,
53
+ _cell$node = cell.node,
54
+ node = _cell$node === void 0 ? {} : _cell$node;
55
+ Graph.registerNode(type, _objectSpread({
56
+ // primer: 'circle',
57
+ inherit: 'react-shape',
58
+ component: function component(node) {
59
+ return /*#__PURE__*/React.createElement(NodeView, {
60
+ node: node,
61
+ icon: icon
62
+ }, /*#__PURE__*/React.createElement(NodeBadge, {
63
+ node: node
64
+ }), /*#__PURE__*/React.createElement(NodeToolBar, {
65
+ node: node
66
+ }));
67
+ },
68
+ width: NODE_WIDTH,
69
+ height: NODE_HEIGHT,
70
+ attrs: {
71
+ label: {
72
+ refX: 0.5,
73
+ refY: '100%',
74
+ refY2: 20,
75
+ text: i18n.t(label),
76
+ fill: '#333',
77
+ fontSize: 13,
78
+ textAnchor: 'middle',
79
+ textVerticalAnchor: 'middle',
80
+ textWrap: {
81
+ width: 80,
82
+ height: 60,
83
+ ellipsis: true,
84
+ breakWord: true
85
+ }
86
+ }
87
+ }
88
+ }, node));
89
+ });
90
+ export { Start, End, Common, Then, When, IntermediateEnd, Switch, If,
91
+ // For,
92
+ // While,
93
+ Iterator,
94
+ // Catch,
95
+ // And,
96
+ // Or,
97
+ // Not,
98
+ Virtual
99
+ // Chain,
100
+ };
101
+ export var NODE_GROUP = {
102
+ key: 'node',
103
+ name: 'node_class',
104
+ cellTypes: [_objectSpread(_objectSpread({}, Common), {}, {
105
+ type: NodeTypeEnum.COMMON,
106
+ shape: Common.type
107
+ })]
108
+ };
109
+ export var SEQUENCE_GROUP = {
110
+ key: 'sequence',
111
+ name: 'sequential_class',
112
+ cellTypes: [_objectSpread(_objectSpread({}, Then), {}, {
113
+ type: ConditionTypeEnum.THEN,
114
+ shape: Then.type
115
+ }), _objectSpread(_objectSpread({}, When), {}, {
116
+ type: ConditionTypeEnum.WHEN,
117
+ shape: When.type
118
+ })]
119
+ };
120
+ export var BRANCH_GROUP = {
121
+ key: 'branch',
122
+ name: 'branch_class',
123
+ cellTypes: [_objectSpread(_objectSpread({}, Switch), {}, {
124
+ type: ConditionTypeEnum.SWITCH,
125
+ shape: Switch.type
126
+ }), _objectSpread(_objectSpread({}, If), {}, {
127
+ type: ConditionTypeEnum.IF,
128
+ shape: If.type
129
+ })]
130
+ };
131
+ export var CONTROL_GROUP = {
132
+ key: 'control',
133
+ name: 'loop_class',
134
+ cellTypes: [// {...For, type: ConditionTypeEnum.FOR, shape: For.type},
135
+ // {...While, type: ConditionTypeEnum.WHILE, shape: While.type},
136
+ _objectSpread(_objectSpread({}, Iterator), {}, {
137
+ type: ConditionTypeEnum.ITERATOR,
138
+ shape: Iterator.type
139
+ })]
140
+ };
141
+
142
+ // export const OTHER_GROUP: IGroupItem = {
143
+ // key: 'other',
144
+ // name: '其他类',
145
+ // cellTypes: [
146
+ // {...Catch, type: ConditionTypeEnum.CATCH, shape: Catch.type},
147
+ // {...And, type: ConditionTypeEnum.AND, shape: And.type},
148
+ // {...Or, type: ConditionTypeEnum.OR, shape: Or.type},
149
+ // {...Not, type: ConditionTypeEnum.NOT, shape: Not.type},
150
+ // {...Chain, type: ConditionTypeEnum.CHAIN, shape: Chain.type},
151
+ // ],
152
+ // };
153
+
154
+ export var getIconByType = function getIconByType(nodeType) {
155
+ switch (nodeType) {
156
+ case ConditionTypeEnum.THEN:
157
+ return Then.icon;
158
+ case ConditionTypeEnum.WHEN:
159
+ return When.icon;
160
+ case ConditionTypeEnum.SWITCH:
161
+ case NodeTypeEnum.SWITCH:
162
+ return Switch.icon;
163
+ case ConditionTypeEnum.IF:
164
+ case NodeTypeEnum.IF:
165
+ return If.icon;
166
+ // case ConditionTypeEnum.FOR:
167
+ // case NodeTypeEnum.FOR:
168
+ // return For.icon;
169
+ // case ConditionTypeEnum.WHILE:
170
+ // case NodeTypeEnum.WHILE:
171
+ // return While.icon;
172
+ case ConditionTypeEnum.ITERATOR:
173
+ case NodeTypeEnum.ITERATOR:
174
+ return Iterator.icon;
175
+ // case ConditionTypeEnum.CHAIN:
176
+ // return Chain.icon;
177
+ // case ConditionTypeEnum.CATCH:
178
+ // return Catch.icon;
179
+ // case ConditionTypeEnum.AND:
180
+ // return And.icon;
181
+ // case ConditionTypeEnum.OR:
182
+ // return Or.icon;
183
+ // case ConditionTypeEnum.NOT:
184
+ // return Not.icon;
185
+ case NodeTypeEnum.COMMON:
186
+ default:
187
+ return Common.icon;
188
+ }
189
+ };
190
+ export function getNodeShapeByType(nodeType) {
191
+ switch (nodeType) {
192
+ case NodeTypeEnum.BOOLEAN:
193
+ case NodeTypeEnum.BOOLEAN_SCRIPT:
194
+ case NodeTypeEnum.IF:
195
+ case NodeTypeEnum.IF_SCRIPT:
196
+ return NodeTypeEnum.IF;
197
+ case NodeTypeEnum.SWITCH:
198
+ case NodeTypeEnum.SWITCH_SCRIPT:
199
+ return NodeTypeEnum.SWITCH;
200
+ case NodeTypeEnum.FOR:
201
+ case NodeTypeEnum.FOR_SCRIPT:
202
+ return NodeTypeEnum.FOR;
203
+ case NodeTypeEnum.WHILE:
204
+ case NodeTypeEnum.WHILE_SCRIPT:
205
+ return NodeTypeEnum.WHILE;
206
+ case NodeTypeEnum.ITERATOR:
207
+ return NodeTypeEnum.ITERATOR;
208
+ case NodeTypeEnum.BREAK:
209
+ case NodeTypeEnum.BREAK_SCRIPT:
210
+ return NODE_TYPE_INTERMEDIATE_END;
211
+ case NodeTypeEnum.VIRTUAL:
212
+ return NodeTypeEnum.VIRTUAL;
213
+ case NodeTypeEnum.COMMON:
214
+ case NodeTypeEnum.FALLBACK:
215
+ case NodeTypeEnum.SCRIPT:
216
+ default:
217
+ return NodeTypeEnum.COMMON;
218
+ }
219
+ }
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,11 @@
1
+ import { NODE_TYPE_INTERMEDIATE_END } from "../constant";
2
+ import icon from "../assets/intermediate-end-icon.svg";
3
+ var config = {
4
+ label: 'node_intermediate_end',
5
+ type: NODE_TYPE_INTERMEDIATE_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/iterator-icon.svg";
3
+ var config = {
4
+ label: 'node_iterator',
5
+ type: NodeTypeEnum.ITERATOR,
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/not-icon.svg";
3
+ var config = {
4
+ label: 'node_not',
5
+ type: ConditionTypeEnum.NOT,
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/or-icon.svg";
3
+ var config = {
4
+ label: 'node_or',
5
+ type: ConditionTypeEnum.OR,
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_START } from "../constant";
2
+ import icon from "../assets/start-icon.svg";
3
+ var config = {
4
+ label: 'start',
5
+ type: NODE_TYPE_START,
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,9 @@
1
+ import { NodeTypeEnum } from "../constant";
2
+ import icon from "../assets/switch-icon.svg";
3
+ var config = {
4
+ label: 'node_switch',
5
+ type: NodeTypeEnum.SWITCH,
6
+ icon: icon,
7
+ disabled: true
8
+ };
9
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const config: LiteFlowNode;
2
+ export default config;
@@ -0,0 +1,11 @@
1
+ import { ConditionTypeEnum } from "../constant";
2
+ import icon from "../assets/then-icon.svg";
3
+ var config = {
4
+ label: 'node_then',
5
+ type: ConditionTypeEnum.THEN,
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/virtual-icon.svg";
3
+ var config = {
4
+ label: 'node_virtual',
5
+ type: NodeTypeEnum.VIRTUAL,
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 { ConditionTypeEnum } from "../constant";
2
+ import icon from "../assets/when-icon.svg";
3
+ var config = {
4
+ label: 'node_when',
5
+ type: ConditionTypeEnum.WHEN,
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/while-icon.svg";
3
+ var config = {
4
+ label: 'node_while',
5
+ type: NodeTypeEnum.WHILE,
6
+ icon: icon
7
+ };
8
+ export default config;
@@ -0,0 +1,2 @@
1
+ import { Point, NodeView } from '@antv/x6';
2
+ export default function anchor(view: NodeView): Point;
@@ -0,0 +1,10 @@
1
+ import { Point } from '@antv/x6';
2
+ export default function anchor(view) {
3
+ var _view$cell$position = view.cell.position(),
4
+ x = _view$cell$position.x,
5
+ y = _view$cell$position.y;
6
+ var _view$cell$size = view.cell.size(),
7
+ width = _view$cell$size.width,
8
+ height = _view$cell$size.height;
9
+ return Point.create(x + width / 2, y + height / 2);
10
+ }
@@ -0,0 +1,2 @@
1
+ import { Point } from '@antv/x6';
2
+ export default function connector(sourcePoint: Point.PointLike, targetPoint: Point.PointLike, routePoints: Point.PointLike[], args: any): string;
@@ -0,0 +1,20 @@
1
+ import { Path, Point } from '@antv/x6';
2
+ import { NODE_HEIGHT } from "../constant";
3
+ export default function connector(sourcePoint, targetPoint, routePoints, args) {
4
+ var path;
5
+ var _args$side = args.side,
6
+ side = _args$side === void 0 ? 'left' : _args$side,
7
+ _args$height = args.height,
8
+ height = _args$height === void 0 ? NODE_HEIGHT : _args$height;
9
+ var radius = height / 2;
10
+ if (side === 'right') {
11
+ var prev = Point.create(sourcePoint.x + radius, sourcePoint.y - radius);
12
+ path = new Path(Path.createSegment('M', prev));
13
+ path.arcTo(12, 12, 0, 1, 1, targetPoint.x + radius, targetPoint.y + radius);
14
+ } else {
15
+ var _prev = Point.create(sourcePoint.x - radius, sourcePoint.y - radius);
16
+ path = new Path(Path.createSegment('M', _prev));
17
+ path.arcTo(12, 12, 0, 1, 1, targetPoint.x - radius, targetPoint.y + radius);
18
+ }
19
+ return path.serialize();
20
+ }
@@ -0,0 +1,61 @@
1
+ import { Markup } from '@antv/x6';
2
+ declare const _default: {
3
+ inherit: string;
4
+ markup: ({
5
+ tagName: string;
6
+ selector: string;
7
+ groupSelector: string;
8
+ attrs: {
9
+ fill: string;
10
+ cursor: string;
11
+ stroke: string;
12
+ strokeLinecap: string;
13
+ pointerEvents?: undefined;
14
+ };
15
+ } | {
16
+ tagName: string;
17
+ selector: string;
18
+ groupSelector: string;
19
+ attrs: {
20
+ fill: string;
21
+ pointerEvents: string;
22
+ cursor?: undefined;
23
+ stroke?: undefined;
24
+ strokeLinecap?: undefined;
25
+ };
26
+ })[];
27
+ attrs: {
28
+ wrap: {
29
+ fill: string;
30
+ cursor: string;
31
+ stroke: string;
32
+ strokeLinecap: string;
33
+ };
34
+ line: {
35
+ stroke: string;
36
+ strokeWidth: number;
37
+ fill: string;
38
+ pointerEvents: string;
39
+ };
40
+ };
41
+ label: string;
42
+ defaultLabel: {
43
+ markup: Markup.JSONMarkup;
44
+ attrs: {
45
+ fo: {
46
+ width: number;
47
+ height: number;
48
+ x: number;
49
+ y: number;
50
+ };
51
+ };
52
+ position: {
53
+ distance: number;
54
+ options: {
55
+ keepGradient: boolean;
56
+ ensureLegibility: boolean;
57
+ };
58
+ };
59
+ };
60
+ };
61
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import { Markup } from '@antv/x6';
2
+ import { LINE_COLOR } from "../constant";
3
+ export default {
4
+ inherit: 'edge',
5
+ markup: [{
6
+ tagName: 'path',
7
+ selector: 'wrap',
8
+ groupSelector: 'lines',
9
+ attrs: {
10
+ fill: 'none',
11
+ cursor: 'pointer',
12
+ stroke: 'transparent',
13
+ strokeLinecap: 'round'
14
+ }
15
+ }, {
16
+ tagName: 'path',
17
+ selector: 'line',
18
+ groupSelector: 'lines',
19
+ attrs: {
20
+ fill: 'none',
21
+ pointerEvents: 'none'
22
+ }
23
+ }],
24
+ attrs: {
25
+ wrap: {
26
+ fill: 'none',
27
+ cursor: 'pointer',
28
+ stroke: 'transparent',
29
+ strokeLinecap: 'round'
30
+ },
31
+ line: {
32
+ stroke: LINE_COLOR,
33
+ strokeWidth: 2,
34
+ fill: 'none',
35
+ pointerEvents: 'none'
36
+ }
37
+ },
38
+ label: '+',
39
+ defaultLabel: {
40
+ markup: Markup.getForeignObjectMarkup(),
41
+ attrs: {
42
+ fo: {
43
+ width: 30,
44
+ height: 30,
45
+ x: -15,
46
+ y: -15
47
+ }
48
+ },
49
+ position: {
50
+ distance: 0.5,
51
+ options: {
52
+ keepGradient: true,
53
+ ensureLegibility: true
54
+ }
55
+ }
56
+ }
57
+ };
@@ -0,0 +1,4 @@
1
+ import { Graph } from '@antv/x6';
2
+ export declare function findViewsFromPoint(flowGraph: Graph, x: number, y: number): any[];
3
+ declare const registerEvents: (flowGraph: Graph) => void;
4
+ export default registerEvents;
@@ -0,0 +1,97 @@
1
+ import { Dom, Rectangle } from '@antv/x6';
2
+ import { getSelectedEdges } from "../utils/flowChartUtils";
3
+ export function findViewsFromPoint(flowGraph, x, y) {
4
+ var flowGraphCellList = flowGraph.getCells(); // 获取所有的节点和边
5
+ var flowGraphViewList = flowGraphCellList.map(function (cell) {
6
+ return flowGraph.findViewByCell(cell);
7
+ }); // 获取所有的节点和边的view
8
+ var flowGraphViewFilterList = flowGraphViewList.filter(function (view) {
9
+ if (view != null) {
10
+ // console.log(view.container,'view.container');
11
+ // console.log(flowGraph.view.stage)
12
+ var bBox = Dom.getBBox(view.container, {
13
+ target: flowGraph.view.stage
14
+ });
15
+ // console.log(bBox,'bBox');
16
+ if (bBox.height < 16) {
17
+ bBox = Rectangle.create({
18
+ x: bBox.x,
19
+ y: bBox.y - 8 + bBox.height / 2,
20
+ width: bBox.width,
21
+ height: 16
22
+ });
23
+ }
24
+ // console.log(bBox.containsPoint({ x, y }),'containsPoint');
25
+ return bBox.containsPoint({
26
+ x: x,
27
+ y: y
28
+ });
29
+ }
30
+ return false;
31
+ });
32
+ return flowGraphViewFilterList;
33
+ }
34
+ var registerEvents = function registerEvents(flowGraph) {
35
+ flowGraph.on('selection:changed', function () {
36
+ flowGraph.trigger('toolBar:forceUpdate');
37
+ flowGraph.trigger('settingBar:forceUpdate');
38
+ });
39
+ flowGraph.on('edge:selected', function (args) {
40
+ args.edge.attr('line/stroke', '#feb663', {
41
+ ignore: true
42
+ });
43
+ });
44
+ flowGraph.on('edge:unselected', function (args) {
45
+ args.edge.attr('line/stroke', '#c1c1c1', {
46
+ ignore: true
47
+ });
48
+ });
49
+ flowGraph.on('edge:mouseover', function (args) {
50
+ args.edge.attr('line/stroke', '#feb663', {
51
+ ignore: true
52
+ });
53
+ });
54
+ flowGraph.on('edge:mouseleave', function (args) {
55
+ var edge = args.edge;
56
+ var selectedEdges = getSelectedEdges(flowGraph);
57
+ if (selectedEdges[0] !== edge) {
58
+ args.edge.attr('line/stroke', '#c1c1c1', {
59
+ ignore: true
60
+ });
61
+ }
62
+ });
63
+ flowGraph.on('node:dblclick', function () {
64
+ flowGraph.trigger('graph:editNode');
65
+ });
66
+ flowGraph.on('blank:contextmenu', function (args) {
67
+ var _args$e = args.e,
68
+ clientX = _args$e.clientX,
69
+ clientY = _args$e.clientY;
70
+ flowGraph.cleanSelection();
71
+ flowGraph.trigger('graph:showContextMenu', {
72
+ x: clientX,
73
+ y: clientY,
74
+ scene: 'blank'
75
+ });
76
+ });
77
+ flowGraph.on('node:contextmenu', function (args) {
78
+ var _args$e2 = args.e,
79
+ clientX = _args$e2.clientX,
80
+ clientY = _args$e2.clientY,
81
+ node = args.node;
82
+ // NOTE: if the clicked node is not in the selected nodes, then clear selection
83
+ if (!flowGraph.getSelectedCells().includes(node)) {
84
+ flowGraph.cleanSelection();
85
+ flowGraph.select(node);
86
+ }
87
+ flowGraph.trigger('graph:showContextMenu', {
88
+ x: clientX,
89
+ y: clientY,
90
+ scene: 'node'
91
+ });
92
+ });
93
+ flowGraph.on('blank:mousedown', function () {
94
+ flowGraph.cleanSelection();
95
+ });
96
+ };
97
+ export default registerEvents;
@@ -0,0 +1,4 @@
1
+ export { default as registerEvents } from './events';
2
+ export { default as registerShortcuts } from './shortcuts';
3
+ import { LITEFLOW_ANCHOR, LITEFLOW_EDGE, LITEFLOW_ROUTER } from '../constant';
4
+ export { LITEFLOW_EDGE, LITEFLOW_ROUTER, LITEFLOW_ANCHOR };
@@ -0,0 +1,11 @@
1
+ export { default as registerEvents } from "./events";
2
+ export { default as registerShortcuts } from "./shortcuts";
3
+ import { Graph } from '@antv/x6';
4
+ import { LITEFLOW_ANCHOR, LITEFLOW_EDGE, LITEFLOW_ROUTER } from "../constant";
5
+ import { default as liteflowEdge } from "./edge";
6
+ import { default as liteflowRouter } from "./router";
7
+ import { default as liteflowAnchor } from "./anchor";
8
+ Graph.registerEdge(LITEFLOW_EDGE, liteflowEdge);
9
+ Graph.registerRouter(LITEFLOW_ROUTER, liteflowRouter);
10
+ Graph.registerAnchor(LITEFLOW_ANCHOR, liteflowAnchor);
11
+ export { LITEFLOW_EDGE, LITEFLOW_ROUTER, LITEFLOW_ANCHOR };
@@ -0,0 +1,12 @@
1
+ import { Graph } from '@antv/x6';
2
+ export declare const forceLayout: (flowGraph: Graph, cfg?: any) => void;
3
+ /**
4
+ * 使用Dagre原始包实现布局
5
+ * @param flowGraph 图实例
6
+ * @param cfg 配置
7
+ */
8
+ /**
9
+ * 使用ELK实现布局
10
+ * @param flowGraph 图实例
11
+ * @param cfg 配置
12
+ */