strategy-panel 1.0.1 → 1.0.2

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 (341) hide show
  1. package/.fatherrc.ts +11 -26
  2. package/.umirc.ts +4 -0
  3. package/README.md +33 -33
  4. package/es/assets/decive.svg +1 -1
  5. package/es/assets/hand.svg +1 -1
  6. package/es/assets/lock.svg +8 -0
  7. package/es/components/canvas/component-tree-panel/category-tree/category-type.d.ts +1 -0
  8. package/es/{common/graph-common → components/canvas/component-tree-panel/category-tree}/category-type.js +28 -12
  9. package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.d.ts +17 -16
  10. package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.js +14 -14
  11. package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.less +36 -36
  12. package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.d.ts +12 -12
  13. package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.js +5 -3
  14. package/es/{pages → components/canvas}/component-tree-panel/index.d.ts +17 -17
  15. package/es/{pages → components/canvas}/component-tree-panel/index.js +1 -0
  16. package/es/{pages → components/canvas}/component-tree-panel/index.less +1 -0
  17. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/data-origin.d.ts +49 -49
  18. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/data-origin.js +26 -34
  19. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/index.d.ts +11 -11
  20. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/index.js +15 -23
  21. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/style.less +1 -1
  22. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.d.ts +9 -9
  23. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.js +6 -10
  24. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.d.ts +10 -9
  25. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.js +17 -13
  26. package/es/{pages → components/canvas}/config-panel/components/condition-configuration/style.less +74 -74
  27. package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/cycle-time.d.ts +9 -9
  28. package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/cycle-time.js +24 -33
  29. package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/time-horizon.d.ts +10 -10
  30. package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/time-horizon.js +18 -28
  31. package/es/{pages → components/canvas}/config-panel/components/time-trigger/delay-time.d.ts +9 -9
  32. package/es/components/canvas/config-panel/components/time-trigger/effective-time.d.ts +7 -0
  33. package/es/components/canvas/config-panel/components/time-trigger/effective-time.js +43 -0
  34. package/es/{pages → components/canvas}/config-panel/components/time-trigger/index.d.ts +9 -8
  35. package/es/{pages → components/canvas}/config-panel/components/time-trigger/index.js +18 -17
  36. package/es/{pages → components/canvas}/config-panel/components/time-trigger/interval-time.d.ts +9 -9
  37. package/es/{pages → components/canvas}/config-panel/components/time-trigger/interval-time.js +4 -8
  38. package/es/{pages → components/canvas}/config-panel/components/time-trigger/persistent-time.d.ts +9 -9
  39. package/es/components/canvas/config-panel/components/time-trigger/section-Detail.d.ts +10 -0
  40. package/es/components/canvas/config-panel/components/time-trigger/section-Detail.js +125 -0
  41. package/es/components/canvas/config-panel/components/time-trigger/section-time.d.ts +9 -0
  42. package/es/components/canvas/config-panel/components/time-trigger/section-time.js +81 -0
  43. package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.d.ts +9 -9
  44. package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.js +7 -11
  45. package/es/{pages → components/canvas}/config-panel/config-common.d.ts +38 -37
  46. package/es/{pages → components/canvas}/config-panel/config-common.js +9 -15
  47. package/es/{pages → components/canvas}/config-panel/index.d.ts +14 -13
  48. package/es/{pages → components/canvas}/config-panel/index.js +2 -2
  49. package/es/{pages → components/canvas}/config-panel/node-form.d.ts +23 -22
  50. package/es/{pages → components/canvas}/config-panel/node-form.js +14 -16
  51. package/es/{pages → components/canvas}/config-panel/style.less +90 -81
  52. package/es/{pages → components/canvas}/dag-canvas/canvas-content.d.ts +11 -10
  53. package/es/{pages → components/canvas}/dag-canvas/canvas-content.js +23 -12
  54. package/es/{pages → components/canvas}/dag-canvas/index.d.ts +23 -18
  55. package/es/{pages → components/canvas}/dag-canvas/index.js +5 -2
  56. package/es/{pages → components/canvas}/dag-canvas/preview.d.ts +10 -10
  57. package/es/components/canvas/dag-canvas/preview.js +53 -0
  58. package/es/{pages → components/canvas}/index.d.ts +48 -42
  59. package/es/{pages → components/canvas}/index.js +20 -10
  60. package/es/{pages → components/canvas}/index.less +2 -2
  61. package/es/{pages → components/canvas}/strategy-header/index.d.ts +48 -56
  62. package/es/components/canvas/strategy-header/index.js +210 -0
  63. package/es/{pages → components/canvas}/strategy-header/style.less +4 -3
  64. package/es/{pages → components/canvas}/strategy-header/theme-switch/index.d.ts +4 -4
  65. package/es/{pages → components/canvas}/strategy-header/theme-switch/index.js +2 -3
  66. package/es/index.d.ts +9 -8
  67. package/es/index.js +8 -7
  68. package/es/packages/graph-canvas/graph-common.d.ts +19 -0
  69. package/es/packages/graph-canvas/graph-common.js +19 -0
  70. package/es/packages/graph-canvas/graph-model/edge/group-edge/index.d.ts +4 -0
  71. package/es/packages/graph-canvas/graph-model/edge/group-edge/index.js +63 -0
  72. package/es/packages/graph-canvas/graph-model/edge/index.d.ts +2 -0
  73. package/es/packages/graph-canvas/graph-model/edge/index.js +2 -0
  74. package/es/packages/graph-canvas/graph-model/node/application-node/application-element.d.ts +9 -0
  75. package/es/packages/graph-canvas/graph-model/node/application-node/application-element.js +20 -0
  76. package/es/packages/graph-canvas/graph-model/node/application-node/application-element.less +17 -0
  77. package/es/packages/graph-canvas/graph-model/node/application-node/index.d.ts +7 -0
  78. package/es/{common/graph-common/shape/nodes/GroupNode.js → packages/graph-canvas/graph-model/node/application-node/index.js} +42 -22
  79. package/es/{common/graph-common/shape/nodes/CommonNode.d.ts → packages/graph-canvas/graph-model/node/common-node/index.d.ts} +7 -5
  80. package/es/{common/graph-common/shape/nodes/CommonNode.js → packages/graph-canvas/graph-model/node/common-node/index.js} +8 -7
  81. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.d.ts +9 -9
  82. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.js +16 -14
  83. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.less +4 -4
  84. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.d.ts +9 -9
  85. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.js +20 -15
  86. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.less +76 -81
  87. package/es/packages/graph-canvas/graph-model/node/condition-node/images/rhombus.svg +3 -0
  88. package/es/{common/graph-common/shape/nodes/ConditionJudgment.d.ts → packages/graph-canvas/graph-model/node/condition-node/index.d.ts} +5 -5
  89. package/es/{common/graph-common/shape/nodes/ConditionJudgment.js → packages/graph-canvas/graph-model/node/condition-node/index.js} +7 -6
  90. package/es/packages/graph-canvas/graph-model/node/index.d.ts +5 -0
  91. package/es/packages/graph-canvas/graph-model/node/index.js +5 -0
  92. package/es/packages/graph-canvas/graph-model/node/logical-node/images/AND.svg +11 -0
  93. package/es/packages/graph-canvas/graph-model/node/logical-node/images/OR.svg +11 -0
  94. package/es/packages/graph-canvas/graph-model/node/logical-node/images/XOR.svg +11 -0
  95. package/es/packages/graph-canvas/graph-model/node/logical-node/images/locking.svg +5 -0
  96. package/es/packages/graph-canvas/graph-model/node/logical-node/images/unlock.svg +5 -0
  97. package/es/packages/graph-canvas/graph-model/node/logical-node/index.d.ts +6 -0
  98. package/es/{common/graph-common/shape/nodes/LogicalNode.js → packages/graph-canvas/graph-model/node/logical-node/index.js} +15 -15
  99. package/es/packages/graph-canvas/graph-model/node/logical-node/logical-element.d.ts +9 -0
  100. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/logical-node}/logical-element.js +36 -19
  101. package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/logical-node}/logical-element.less +4 -9
  102. package/es/packages/graph-canvas/graph-model/node/style.less +8 -0
  103. package/es/{common → packages/graph-canvas}/graph-utils/graph.d.ts +87 -83
  104. package/es/{common → packages/graph-canvas}/graph-utils/graph.js +8 -4
  105. package/es/{pages/rx-models/experiment-graph.d.ts → packages/graph-canvas/index.d.ts} +79 -82
  106. package/es/{pages/rx-models/experiment-graph.js → packages/graph-canvas/index.js} +285 -252
  107. package/es/packages/graph-canvas/node-types.d.ts +6 -0
  108. package/es/packages/graph-canvas/node-types.js +54 -0
  109. package/es/packages/graph-canvas/typings.d.ts +5 -0
  110. package/es/{common/constants → packages/graph-common}/global.d.ts +1 -1
  111. package/es/{common/constants → packages/graph-common}/graph.d.ts +12 -10
  112. package/es/{common/constants → packages/graph-common}/graph.js +4 -2
  113. package/es/{pages/rx-models → packages/graph-core}/graph-util.d.ts +182 -186
  114. package/es/{pages/rx-models → packages/graph-core}/graph-util.js +8 -15
  115. package/es/{pages/rx-models/graph-core.d.ts → packages/graph-core/index.d.ts} +96 -96
  116. package/es/{pages/rx-models/graph-core.js → packages/graph-core/index.js} +119 -87
  117. package/es/packages/graph-core/typing.d.ts +107 -0
  118. package/es/{common/graph-common → packages/graph-model}/connector/index.d.ts +1 -1
  119. package/es/packages/graph-model/connector/index.js +14 -0
  120. package/es/packages/graph-model/edge/edge.less +8 -0
  121. package/es/packages/graph-model/edge/index.d.ts +5 -0
  122. package/es/{common/graph-common/shape/edge.js → packages/graph-model/edge/index.js} +10 -61
  123. package/es/packages/graph-model/node/index.d.ts +7 -0
  124. package/es/{common/graph-common/shape/nodes/BaseNode.js → packages/graph-model/node/index.js} +12 -3
  125. package/es/{common/graph-common/node-element/common-element.less → packages/graph-model/node/node-basic.less} +1 -0
  126. package/es/{hooks → packages/hooks}/useObservableState.d.ts +3 -3
  127. package/es/packages/hooks/withMode.d.ts +3 -0
  128. package/es/packages/hooks/withMode.js +12 -0
  129. package/es/style/default.less +8 -0
  130. package/es/style/svgRaw.d.ts +1 -0
  131. package/es/style/svgRaw.js +1 -0
  132. package/es/typings.d.ts +2 -8
  133. package/es/utils/utils.d.ts +1 -1
  134. package/lib/assets/AND.svg +11 -0
  135. package/lib/assets/OR.svg +11 -0
  136. package/lib/assets/XOR.svg +11 -0
  137. package/lib/assets/add.svg +13 -0
  138. package/lib/assets/alarm.svg +11 -0
  139. package/lib/assets/application.svg +11 -0
  140. package/lib/assets/cancel.svg +13 -0
  141. package/lib/assets/check.svg +12 -0
  142. package/lib/assets/condition.svg +12 -0
  143. package/lib/assets/control.svg +11 -0
  144. package/lib/assets/decive.svg +11 -0
  145. package/lib/assets/delete.svg +11 -0
  146. package/lib/assets/device.svg +11 -0
  147. package/lib/assets/edit.svg +11 -0
  148. package/lib/assets/hand.svg +11 -0
  149. package/lib/assets/link.svg +11 -0
  150. package/lib/assets/lock.svg +8 -0
  151. package/lib/assets/logical.svg +12 -0
  152. package/lib/assets/notice.svg +11 -0
  153. package/lib/assets/order.svg +11 -0
  154. package/lib/assets/relation.svg +11 -0
  155. package/lib/assets/rhombus.svg +3 -0
  156. package/lib/assets/save.svg +13 -0
  157. package/lib/assets/time.svg +11 -0
  158. package/lib/assets/variate.svg +12 -0
  159. package/lib/components/canvas/component-tree-panel/category-tree/category-type.d.ts +1 -0
  160. package/lib/components/canvas/component-tree-panel/category-tree/category-type.js +111 -0
  161. package/lib/components/canvas/component-tree-panel/category-tree/index.d.ts +17 -0
  162. package/lib/components/canvas/component-tree-panel/category-tree/index.js +115 -0
  163. package/lib/components/canvas/component-tree-panel/category-tree/index.less +36 -0
  164. package/lib/components/canvas/component-tree-panel/category-tree/node-title.d.ts +12 -0
  165. package/lib/components/canvas/component-tree-panel/category-tree/node-title.js +75 -0
  166. package/lib/components/canvas/component-tree-panel/category-tree/node-title.less +113 -0
  167. package/lib/components/canvas/component-tree-panel/index.d.ts +17 -0
  168. package/lib/components/canvas/component-tree-panel/index.js +33 -0
  169. package/lib/components/canvas/component-tree-panel/index.less +52 -0
  170. package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/data-origin.d.ts +49 -0
  171. package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/data-origin.js +229 -0
  172. package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/index.d.ts +11 -0
  173. package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/index.js +187 -0
  174. package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/style.less +13 -0
  175. package/lib/components/canvas/config-panel/components/condition-configuration/cross-line.d.ts +9 -0
  176. package/lib/components/canvas/config-panel/components/condition-configuration/cross-line.js +57 -0
  177. package/lib/components/canvas/config-panel/components/condition-configuration/index.d.ts +10 -0
  178. package/lib/components/canvas/config-panel/components/condition-configuration/index.js +216 -0
  179. package/lib/components/canvas/config-panel/components/condition-configuration/style.less +74 -0
  180. package/lib/components/canvas/config-panel/components/time-trigger/components/cycle-time.d.ts +9 -0
  181. package/lib/components/canvas/config-panel/components/time-trigger/components/cycle-time.js +108 -0
  182. package/lib/components/canvas/config-panel/components/time-trigger/components/time-horizon.d.ts +10 -0
  183. package/lib/components/canvas/config-panel/components/time-trigger/components/time-horizon.js +78 -0
  184. package/lib/components/canvas/config-panel/components/time-trigger/delay-time.d.ts +9 -0
  185. package/lib/components/canvas/config-panel/components/time-trigger/delay-time.js +33 -0
  186. package/lib/components/canvas/config-panel/components/time-trigger/effective-time.d.ts +7 -0
  187. package/lib/components/canvas/config-panel/components/time-trigger/effective-time.js +58 -0
  188. package/lib/components/canvas/config-panel/components/time-trigger/index.d.ts +9 -0
  189. package/lib/components/canvas/config-panel/components/time-trigger/index.js +114 -0
  190. package/lib/components/canvas/config-panel/components/time-trigger/interval-time.d.ts +9 -0
  191. package/lib/components/canvas/config-panel/components/time-trigger/interval-time.js +63 -0
  192. package/lib/components/canvas/config-panel/components/time-trigger/persistent-time.d.ts +9 -0
  193. package/lib/components/canvas/config-panel/components/time-trigger/persistent-time.js +33 -0
  194. package/lib/components/canvas/config-panel/components/time-trigger/section-Detail.d.ts +10 -0
  195. package/lib/components/canvas/config-panel/components/time-trigger/section-Detail.js +140 -0
  196. package/lib/components/canvas/config-panel/components/time-trigger/section-time.d.ts +9 -0
  197. package/lib/components/canvas/config-panel/components/time-trigger/section-time.js +96 -0
  198. package/lib/components/canvas/config-panel/components/time-trigger/timing-time.d.ts +9 -0
  199. package/lib/components/canvas/config-panel/components/time-trigger/timing-time.js +65 -0
  200. package/lib/components/canvas/config-panel/config-common.d.ts +38 -0
  201. package/lib/components/canvas/config-panel/config-common.js +152 -0
  202. package/lib/components/canvas/config-panel/index.d.ts +14 -0
  203. package/lib/components/canvas/config-panel/index.js +68 -0
  204. package/lib/components/canvas/config-panel/node-form.d.ts +23 -0
  205. package/lib/components/canvas/config-panel/node-form.js +97 -0
  206. package/lib/components/canvas/config-panel/style.less +90 -0
  207. package/lib/components/canvas/dag-canvas/canvas-content.d.ts +11 -0
  208. package/lib/components/canvas/dag-canvas/canvas-content.js +130 -0
  209. package/lib/components/canvas/dag-canvas/canvas-content.less +5 -0
  210. package/lib/components/canvas/dag-canvas/index.d.ts +23 -0
  211. package/lib/components/canvas/dag-canvas/index.js +53 -0
  212. package/lib/components/canvas/dag-canvas/index.less +11 -0
  213. package/lib/components/canvas/dag-canvas/preview.d.ts +10 -0
  214. package/lib/components/canvas/dag-canvas/preview.js +73 -0
  215. package/lib/components/canvas/index.d.ts +48 -0
  216. package/lib/components/canvas/index.js +107 -0
  217. package/lib/components/canvas/index.less +50 -0
  218. package/lib/components/canvas/strategy-header/index.d.ts +48 -0
  219. package/lib/components/canvas/strategy-header/index.js +229 -0
  220. package/lib/components/canvas/strategy-header/style.less +23 -0
  221. package/lib/components/canvas/strategy-header/theme-switch/index.d.ts +4 -0
  222. package/lib/components/canvas/strategy-header/theme-switch/index.js +30 -0
  223. package/lib/components/canvas/strategy-header/theme-switch/style.less +11 -0
  224. package/lib/index.d.ts +9 -0
  225. package/lib/index.js +71 -0
  226. package/lib/packages/graph-canvas/graph-common.d.ts +19 -0
  227. package/lib/packages/graph-canvas/graph-common.js +27 -0
  228. package/lib/packages/graph-canvas/graph-model/edge/group-edge/edge.less +8 -0
  229. package/lib/packages/graph-canvas/graph-model/edge/group-edge/index.d.ts +4 -0
  230. package/lib/packages/graph-canvas/graph-model/edge/group-edge/index.js +74 -0
  231. package/lib/packages/graph-canvas/graph-model/edge/index.d.ts +2 -0
  232. package/lib/packages/graph-canvas/graph-model/edge/index.js +15 -0
  233. package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.d.ts +9 -0
  234. package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.js +31 -0
  235. package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.less +17 -0
  236. package/lib/packages/graph-canvas/graph-model/node/application-node/index.d.ts +7 -0
  237. package/lib/packages/graph-canvas/graph-model/node/application-node/index.js +133 -0
  238. package/lib/packages/graph-canvas/graph-model/node/common-node/index.d.ts +7 -0
  239. package/lib/packages/graph-canvas/graph-model/node/common-node/index.js +133 -0
  240. package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.d.ts +9 -0
  241. package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.js +69 -0
  242. package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.less +48 -0
  243. package/{es/common/graph-common/node-element/logical-element.d.ts → lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.d.ts} +9 -9
  244. package/lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.js +81 -0
  245. package/lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.less +76 -0
  246. package/lib/packages/graph-canvas/graph-model/node/condition-node/images/rhombus.svg +3 -0
  247. package/{es/common/graph-common/shape/nodes/LogicalNode.d.ts → lib/packages/graph-canvas/graph-model/node/condition-node/index.d.ts} +5 -5
  248. package/lib/packages/graph-canvas/graph-model/node/condition-node/index.js +143 -0
  249. package/lib/packages/graph-canvas/graph-model/node/index.d.ts +5 -0
  250. package/lib/packages/graph-canvas/graph-model/node/index.js +39 -0
  251. package/lib/packages/graph-canvas/graph-model/node/logical-node/images/AND.svg +11 -0
  252. package/lib/packages/graph-canvas/graph-model/node/logical-node/images/OR.svg +11 -0
  253. package/lib/packages/graph-canvas/graph-model/node/logical-node/images/XOR.svg +11 -0
  254. package/lib/packages/graph-canvas/graph-model/node/logical-node/images/locking.svg +5 -0
  255. package/lib/packages/graph-canvas/graph-model/node/logical-node/images/unlock.svg +5 -0
  256. package/lib/packages/graph-canvas/graph-model/node/logical-node/index.d.ts +6 -0
  257. package/lib/packages/graph-canvas/graph-model/node/logical-node/index.js +143 -0
  258. package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.d.ts +9 -0
  259. package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.js +98 -0
  260. package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.less +49 -0
  261. package/lib/packages/graph-canvas/graph-model/node/style.less +8 -0
  262. package/lib/packages/graph-canvas/graph-utils/graph.d.ts +87 -0
  263. package/lib/packages/graph-canvas/graph-utils/graph.js +124 -0
  264. package/lib/packages/graph-canvas/index.d.ts +79 -0
  265. package/lib/packages/graph-canvas/index.js +1292 -0
  266. package/lib/packages/graph-canvas/node-types.d.ts +6 -0
  267. package/lib/packages/graph-canvas/node-types.js +66 -0
  268. package/lib/packages/graph-canvas/typings.d.ts +5 -0
  269. package/lib/packages/graph-common/global.d.ts +1 -0
  270. package/lib/packages/graph-common/global.js +8 -0
  271. package/lib/packages/graph-common/graph.d.ts +12 -0
  272. package/lib/packages/graph-common/graph.js +37 -0
  273. package/lib/packages/graph-core/graph-util.d.ts +182 -0
  274. package/lib/packages/graph-core/graph-util.js +368 -0
  275. package/lib/packages/graph-core/index.d.ts +96 -0
  276. package/lib/packages/graph-core/index.js +798 -0
  277. package/lib/packages/graph-core/typing.d.ts +107 -0
  278. package/lib/packages/graph-model/connector/index.d.ts +1 -0
  279. package/lib/packages/graph-model/connector/index.js +17 -0
  280. package/lib/packages/graph-model/edge/edge.less +8 -0
  281. package/lib/packages/graph-model/edge/index.d.ts +5 -0
  282. package/lib/packages/graph-model/edge/index.js +73 -0
  283. package/lib/packages/graph-model/node/index.d.ts +7 -0
  284. package/lib/packages/graph-model/node/index.js +63 -0
  285. package/lib/packages/graph-model/node/node-basic.less +118 -0
  286. package/lib/packages/hooks/useObservableState.d.ts +3 -0
  287. package/lib/packages/hooks/useObservableState.js +55 -0
  288. package/lib/packages/hooks/withMode.d.ts +3 -0
  289. package/lib/packages/hooks/withMode.js +22 -0
  290. package/lib/style/basic.less +12 -0
  291. package/lib/style/default.less +10 -0
  292. package/lib/style/position.less +25 -0
  293. package/lib/style/svgRaw.d.ts +1 -0
  294. package/lib/style/svgRaw.js +8 -0
  295. package/lib/style/theme-light.less +7 -0
  296. package/lib/style/variable.less +3 -0
  297. package/lib/typings.d.ts +8 -0
  298. package/lib/utils/utils.d.ts +1 -0
  299. package/lib/utils/utils.js +13 -0
  300. package/package.json +38 -37
  301. package/tsconfig.json +1 -1
  302. package/es/common/graph-common/category-type.d.ts +0 -16
  303. package/es/common/graph-common/connector/index.js +0 -14
  304. package/es/common/graph-common/node-element/node-group.d.ts +0 -8
  305. package/es/common/graph-common/node-element/node-group.js +0 -395
  306. package/es/common/graph-common/node-element/node-group.less +0 -53
  307. package/es/common/graph-common/node-popover/index.d.ts +0 -7
  308. package/es/common/graph-common/node-popover/index.js +0 -11
  309. package/es/common/graph-common/node-popover/index.less +0 -5
  310. package/es/common/graph-common/node-types.d.ts +0 -28
  311. package/es/common/graph-common/node-types.js +0 -60
  312. package/es/common/graph-common/shape/edge.d.ts +0 -10
  313. package/es/common/graph-common/shape/node.d.ts +0 -6
  314. package/es/common/graph-common/shape/node.js +0 -6
  315. package/es/common/graph-common/shape/nodes/BaseNode.d.ts +0 -4
  316. package/es/common/graph-common/shape/nodes/GroupNode.d.ts +0 -4
  317. package/es/component/cut.d.ts +0 -10
  318. package/es/component/cut.js +0 -34
  319. package/es/component/cut.less +0 -6
  320. package/es/component/item-name.d.ts +0 -6
  321. package/es/component/item-name.js +0 -30
  322. package/es/component/keyword.d.ts +0 -9
  323. package/es/component/keyword.js +0 -26
  324. package/es/component/keyword.less +0 -11
  325. package/es/component/rx-component/rx-input.d.ts +0 -8
  326. package/es/component/rx-component/rx-input.js +0 -47
  327. package/es/hooks/withMode.d.ts +0 -1
  328. package/es/hooks/withMode.js +0 -16
  329. package/es/pages/dag-canvas/preview.js +0 -42
  330. package/es/pages/rx-models/graph-core.less +0 -14
  331. package/es/pages/rx-models/typing.d.ts +0 -126
  332. package/es/pages/strategy-header/index.js +0 -154
  333. /package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.less +0 -0
  334. /package/es/{pages → components/canvas}/config-panel/components/time-trigger/delay-time.js +0 -0
  335. /package/es/{pages → components/canvas}/config-panel/components/time-trigger/persistent-time.js +0 -0
  336. /package/es/{pages → components/canvas}/dag-canvas/canvas-content.less +0 -0
  337. /package/es/{pages → components/canvas}/dag-canvas/index.less +0 -0
  338. /package/es/{pages → components/canvas}/strategy-header/theme-switch/style.less +0 -0
  339. /package/es/{common/graph-common/shape → packages/graph-canvas/graph-model/edge/group-edge}/edge.less +0 -0
  340. /package/es/{common/constants → packages/graph-common}/global.js +0 -0
  341. /package/es/{hooks → packages/hooks}/useObservableState.js +0 -0
@@ -8,7 +8,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8
8
 
9
9
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
10
 
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -18,11 +18,12 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
18
18
 
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
- import BaseNode from "./BaseNode";
24
- import { NODE_HEIGHT, NODE_WIDTH } from "../../../constants/graph";
25
- import { Dom, Node } from '@antv/x6';
23
+ import { Dom, Graph } from '@antv/x6';
24
+ import BaseNode from "../../../../graph-model/node";
25
+ export var NODE_WIDTH = 180;
26
+ export var NODE_HEIGHT = 43;
26
27
 
27
28
  var CommonNode = /*#__PURE__*/function (_BaseNode) {
28
29
  _inherits(CommonNode, _BaseNode);
@@ -54,7 +55,7 @@ export { CommonNode as default };
54
55
  CommonNode.config({
55
56
  width: NODE_WIDTH,
56
57
  height: NODE_HEIGHT,
57
- shape: 'base-rect-node',
58
+ inherit: 'react-shape',
58
59
  ports: {
59
60
  groups: {
60
61
  in: {
@@ -115,4 +116,4 @@ CommonNode.config({
115
116
  }]
116
117
  }]
117
118
  });
118
- Node.registry.register('base-rect-node', CommonNode);
119
+ Graph.registerNode('base-rect-node', CommonNode);
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import type { Node } from '@antv/x6';
3
- import './node-element.less';
4
- interface Props {
5
- node?: Node;
6
- experimentId: string;
7
- }
8
- export declare const NodeElement: React.FC<Props>;
9
- export {};
1
+ import React from 'react';
2
+ import type { Node } from '@antv/x6';
3
+ import './node-element.less';
4
+ interface Props {
5
+ node?: Node;
6
+ experimentId: string;
7
+ }
8
+ declare const NodeElement: React.FC<Props>;
9
+ export default NodeElement;
@@ -1,6 +1,3 @@
1
- import "antd/es/config-provider/style";
2
- import _ConfigProvider from "antd/es/config-provider";
3
-
4
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
2
 
6
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -15,19 +12,19 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
12
 
16
13
  import React from 'react';
17
14
  import classNames from 'classnames';
18
- import { ANT_PREFIX } from "../../constants/global";
19
- import { NodePopover } from "../node-popover";
20
15
  import { ReactSVG } from 'react-svg';
16
+ import { useExperimentGraph } from "../../..";
17
+ import { useObservableState } from "../../../../hooks/useObservableState";
21
18
  import "./node-element.less";
22
- import { useExperimentGraph } from "../../../pages/rx-models/experiment-graph";
23
- import { useObservableState } from "../../../hooks/useObservableState";
24
- export var NodeElement = function NodeElement(props) {
19
+
20
+ var NodeElement = function NodeElement(props) {
25
21
  var node = props.node,
26
22
  experimentId = props.experimentId;
27
23
  var data = (node === null || node === void 0 ? void 0 : node.getData()) || {};
28
24
  var name = data.name,
29
25
  imgUrl = data.imgUrl,
30
- id = data.id;
26
+ id = data.id,
27
+ nodeData = data.nodeData;
31
28
  var expGraph = useExperimentGraph(experimentId);
32
29
 
33
30
  var _useObservableState = useObservableState(function () {
@@ -37,16 +34,21 @@ export var NodeElement = function NodeElement(props) {
37
34
  activeNodeInstance = _useObservableState2[0];
38
35
 
39
36
  var nodeId = activeNodeInstance && activeNodeInstance.id;
40
- return /*#__PURE__*/React.createElement(_ConfigProvider, {
41
- prefixCls: ANT_PREFIX
42
- }, /*#__PURE__*/React.createElement(NodePopover, null, /*#__PURE__*/React.createElement("div", {
37
+ var nodeFormData = typeof nodeData === 'string' ? JSON.parse(nodeData) : nodeData;
38
+ console.log('NodeElement', data);
39
+ return /*#__PURE__*/React.createElement("div", {
43
40
  className: classNames('node-element', {
44
41
  selected: !!nodeId && nodeId === id
45
42
  })
46
43
  }, /*#__PURE__*/React.createElement(ReactSVG, {
47
44
  src: imgUrl,
45
+ beforeInjection: function beforeInjection(svg) {
46
+ svg.setAttribute('viewBox', '0 0 30 30');
47
+ },
48
48
  className: "icon"
49
49
  }), /*#__PURE__*/React.createElement("div", {
50
50
  className: "name"
51
- }, name))));
52
- };
51
+ }, (nodeFormData === null || nodeFormData === void 0 ? void 0 : nodeFormData.realName) || name));
52
+ };
53
+
54
+ export default NodeElement;
@@ -1,4 +1,4 @@
1
- @import "./common-element.less";
1
+ @import "../style.less";
2
2
 
3
3
  .node-element {
4
4
  display: flex;
@@ -25,9 +25,9 @@
25
25
  }
26
26
  }
27
27
  .icon {
28
- width: 20px;
29
- height: 20px;
30
- margin-right: 12px;
28
+ width: 20px !important;
29
+ height: 20px !important;
30
+ margin-right: 12px !important;
31
31
  svg {
32
32
  width: 20px;
33
33
  height: 20px;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import type { Node } from '@antv/x6';
3
- import './condition-element.less';
4
- interface Props {
5
- node?: Node;
6
- experimentId: string;
7
- }
8
- declare const ConditionElement: React.FC<Props>;
9
- export default ConditionElement;
1
+ import React from 'react';
2
+ import type { Node } from '@antv/x6';
3
+ import './condition-element.less';
4
+ interface Props {
5
+ node?: Node;
6
+ experimentId: string;
7
+ }
8
+ declare const ConditionElement: React.FC<Props>;
9
+ export default ConditionElement;
@@ -1,6 +1,3 @@
1
- import "antd/es/config-provider/style";
2
- import _ConfigProvider from "antd/es/config-provider";
3
-
4
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
2
 
6
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -15,12 +12,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
12
 
16
13
  import React from 'react';
17
14
  import classNames from 'classnames';
18
- import { ANT_PREFIX } from "../../constants/global";
19
- import { NodePopover } from "../node-popover";
20
15
  import { ReactSVG } from 'react-svg';
16
+ import { useExperimentGraph } from "../../..";
17
+ import { useObservableState } from "../../../../hooks/useObservableState";
18
+ import rhombus from "./images/rhombus.svg";
21
19
  import "./condition-element.less";
22
- import { useExperimentGraph } from "../../../pages/rx-models/experiment-graph";
23
- import { useObservableState } from "../../../hooks/useObservableState";
24
20
 
25
21
  var ConditionElement = function ConditionElement(props) {
26
22
  var node = props.node,
@@ -28,7 +24,8 @@ var ConditionElement = function ConditionElement(props) {
28
24
  var data = (node === null || node === void 0 ? void 0 : node.getData()) || {};
29
25
  var name = data.name,
30
26
  id = data.id,
31
- imgUrl = data.imgUrl;
27
+ imgUrl = data.imgUrl,
28
+ nodeData = data.nodeData;
32
29
  var expGraph = useExperimentGraph(experimentId);
33
30
 
34
31
  var _useObservableState = useObservableState(function () {
@@ -38,23 +35,31 @@ var ConditionElement = function ConditionElement(props) {
38
35
  activeNodeInstance = _useObservableState2[0];
39
36
 
40
37
  var nodeId = activeNodeInstance && activeNodeInstance.id;
41
- return /*#__PURE__*/React.createElement(_ConfigProvider, {
42
- prefixCls: ANT_PREFIX
43
- }, /*#__PURE__*/React.createElement(NodePopover, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
38
+ var nodeFormData = typeof nodeData === 'string' ? JSON.parse(nodeData) : nodeData;
39
+ return /*#__PURE__*/React.createElement("div", {
44
40
  className: classNames('node-rhombus-element', {
45
41
  selected: !!nodeId && nodeId === id
46
42
  })
47
43
  }, /*#__PURE__*/React.createElement(ReactSVG, {
48
- src: require("../../../assets/rhombus.svg"),
49
- className: classNames('node-rhombus-element-bg')
44
+ src: rhombus,
45
+ className: classNames('node-rhombus-element-bg'),
46
+ beforeInjection: function beforeInjection(svg) {
47
+ svg.setAttribute('width', '259px');
48
+ svg.setAttribute('height', '110px'); // svg.setAttribute('viewBox', '0 0 120 800');
49
+ }
50
50
  }), /*#__PURE__*/React.createElement("div", {
51
51
  className: "rhombus-inner"
52
52
  }, /*#__PURE__*/React.createElement(ReactSVG, {
53
53
  src: imgUrl,
54
- className: "icon"
54
+ className: "icon",
55
+ beforeInjection: function beforeInjection(svg) {
56
+ svg.setAttribute('width', '10px');
57
+ svg.setAttribute('height', '10px');
58
+ svg.setAttribute('viewBox', '0 0 30 30');
59
+ }
55
60
  }), /*#__PURE__*/React.createElement("div", {
56
61
  className: "name"
57
- }, name))))));
62
+ }, (nodeFormData === null || nodeFormData === void 0 ? void 0 : nodeFormData.realName) || name)));
58
63
  };
59
64
 
60
65
  export default ConditionElement;
@@ -1,81 +1,76 @@
1
- @import "./common-element.less";
2
-
3
- @node-element-primary-color: #00A6FF;
4
- @condition-element-width: 260px;
5
- @condition-element-height: 107px;
6
- @condition-element-name-max-width: 144px;
7
-
8
- .node-rhombus-element {
9
- display: flex;
10
- flex-direction: row;
11
- box-sizing: border-box;
12
- width: @condition-element-width;
13
- height: @condition-element-height;
14
- overflow: hidden;
15
- //
16
- //background-color: fade(@node-element-primary-color, 20%);
17
- //border: 1px solid @node-element-primary-color;
18
-
19
- & .node-rhombus-element-bg{
20
- position: absolute;
21
- z-index: -1;
22
- div{
23
- width: @condition-element-width;
24
- height: @condition-element-height;
25
- svg path {
26
- width: @condition-element-width;
27
- height: @condition-element-height;
28
- fill: fade(@node-element-primary-color, 20%);
29
- stroke: @node-element-primary-color
30
- }
31
- }
32
- }
33
-
34
-
35
- & .rhombus-inner{
36
- display: flex;
37
- flex: 1;
38
- align-items: center;
39
- justify-content: center;
40
- }
41
-
42
- &.selected,
43
- &:hover {
44
- .node-rhombus-element-bg{
45
- svg path {
46
- fill: @node-element-primary-color;
47
- }
48
- }
49
- .icon {
50
- svg path {
51
- fill: #fff;
52
- }
53
- }
54
- .name {
55
- color: #ffffff;
56
- }
57
- }
58
-
59
- .icon {
60
- width: 20px;
61
- height: 20px;
62
- margin-right: 12px;
63
- svg {
64
- width: 20px;
65
- height: 20px;
66
- path {
67
- fill: @node-element-primary-color;
68
- }
69
- }
70
- }
71
-
72
- .name {
73
- overflow-x: hidden;
74
- color: @node-element-primary-color;
75
- //font-size: 12px;
76
- white-space: nowrap;
77
- text-overflow: ellipsis;
78
- vertical-align: middle;
79
- max-width: @condition-element-name-max-width;
80
- }
81
- }
1
+ @import "../style.less";
2
+
3
+ .node-rhombus-element {
4
+ display: flex;
5
+ flex-direction: row;
6
+ box-sizing: border-box;
7
+ width: @condition-element-width;
8
+ height: @condition-element-height;
9
+ overflow: hidden;
10
+ //
11
+ //background-color: fade(@node-element-primary-color, 20%);
12
+ //border: 1px solid @node-element-primary-color;
13
+
14
+ & .node-rhombus-element-bg{
15
+ position: absolute;
16
+ z-index: -1;
17
+ div{
18
+ width: @condition-element-width;
19
+ height: @condition-element-height;
20
+ svg path {
21
+ width: @condition-element-width;
22
+ height: @condition-element-height;
23
+ fill: fade(@node-element-primary-color, 20%);
24
+ stroke: @node-element-primary-color
25
+ }
26
+ }
27
+ }
28
+
29
+
30
+ & .rhombus-inner{
31
+ display: flex;
32
+ flex: 1;
33
+ align-items: center;
34
+ justify-content: center;
35
+ }
36
+
37
+ &.selected,
38
+ &:hover {
39
+ .node-rhombus-element-bg{
40
+ div svg path {
41
+ fill: @node-element-primary-color;
42
+ }
43
+ }
44
+ .icon {
45
+ div svg path {
46
+ fill: #fff !important;
47
+ }
48
+ }
49
+ .name {
50
+ color: #ffffff;
51
+ }
52
+ }
53
+
54
+ .icon {
55
+ width: 20px;
56
+ height: 20px;
57
+ margin-right: 12px !important;
58
+ svg {
59
+ width: 20px;
60
+ height: 20px;
61
+ path {
62
+ fill: @node-element-primary-color !important;
63
+ }
64
+ }
65
+ }
66
+
67
+ .name {
68
+ overflow-x: hidden;
69
+ color: @node-element-primary-color;
70
+ //font-size: 12px;
71
+ white-space: nowrap;
72
+ text-overflow: ellipsis;
73
+ vertical-align: middle;
74
+ max-width: @condition-element-name-max-width;
75
+ }
76
+ }
@@ -0,0 +1,3 @@
1
+ <svg width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 167 90" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path vector-effect="non-scaling-stroke" d="M2.10786 45L83.5 1.13597L164.892 45L83.5 88.864L2.10786 45Z" fill="#FFECC7" stroke="#FFB200" stroke-width="1"/>
3
+ </svg>
@@ -1,5 +1,5 @@
1
- import BaseNode from './BaseNode';
2
- export default class ConditionJudgment extends BaseNode {
3
- getInPorts(): import("@antv/x6/lib/model/port").PortManager.PortMetadata[];
4
- getOutPorts(): import("@antv/x6/lib/model/port").PortManager.PortMetadata[];
5
- }
1
+ import BaseNode from "../../../../graph-model/node";
2
+ export default class ConditionJudgment extends BaseNode {
3
+ getInPorts(): import("@antv/x6/lib/model/port").PortManager.PortMetadata[];
4
+ getOutPorts(): import("@antv/x6/lib/model/port").PortManager.PortMetadata[];
5
+ }
@@ -8,7 +8,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8
8
 
9
9
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
10
 
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -18,11 +18,12 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
18
18
 
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
- import BaseNode from "./BaseNode";
24
- import { CONDITION_HEIGHT, CONDITION_WIDTH } from "../../../constants/graph";
25
- import { Dom, Node } from '@antv/x6';
23
+ import { Dom, Graph } from '@antv/x6';
24
+ import BaseNode from "../../../../graph-model/node";
25
+ var CONDITION_WIDTH = 260;
26
+ var CONDITION_HEIGHT = 107;
26
27
 
27
28
  var ConditionJudgment = /*#__PURE__*/function (_BaseNode) {
28
29
  _inherits(ConditionJudgment, _BaseNode);
@@ -127,4 +128,4 @@ ConditionJudgment.config({
127
128
  }]
128
129
  }]
129
130
  });
130
- Node.registry.register('condition-judgement-element', ConditionJudgment);
131
+ Graph.registerNode('condition-judgement-element', ConditionJudgment);
@@ -0,0 +1,5 @@
1
+ import ApplicationNode from './application-node';
2
+ import CommonNode from './common-node';
3
+ import ConditionJudgment from './condition-node';
4
+ import LogicalNode from './logical-node';
5
+ export { ApplicationNode, ConditionJudgment, CommonNode, LogicalNode };
@@ -0,0 +1,5 @@
1
+ import ApplicationNode from "./application-node";
2
+ import CommonNode from "./common-node";
3
+ import ConditionJudgment from "./condition-node";
4
+ import LogicalNode from "./logical-node";
5
+ export { ApplicationNode, ConditionJudgment, CommonNode, LogicalNode };
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 28 28" version="1.1">
3
+ <title>运算符</title>
4
+ <g id="全局样式" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Icons" transform="translate(-506.000000, -1299.000000)" fill="#5B5B5B">
6
+ <g id="运算符" transform="translate(506.000000, 1299.000000)">
7
+ <path d="M28,0 L28,28 L0,28 L0,0 L28,0 Z M24.5,5.25 L3.5,5.25 L3.5,24.5 L24.5,24.5 L24.5,5.25 Z M10.1323,7 L12.3103,7.166 L12.1203,8.905 L20.9723,8.905 L20.9723,11.006 L11.8893,11.006 L11.7213,12.522 L20.5243,12.522 L20.5243,12.772 C20.5243,17.563 20.2523,20.279 19.6943,21.075 C19.1143,21.87 17.9543,22.254 16.1463,22.254 C15.6637286,22.254 15.0812388,22.2341633 14.4095362,22.1944898 L14.0663,22.173 L13.8913,22.162 L13.2913,20.126 L13.6533,20.154 C14.7513,20.239 15.4763,20.282 15.8103,20.282 C17.0173,20.282 17.7373,20.036 17.9493,19.552 C18.1196226,19.1707097 18.3199139,18.0533111 18.3417219,14.9110259 L18.3433,14.59 L9.2903,14.59 L10.1323,7 Z M17.612,16.2333 L17.612,18.3343 L7,18.3343 L7,16.2333 L17.612,16.2333 Z M12.25,1.75 L10.5,1.75 L10.5,3.5 L12.25,3.5 L12.25,1.75 Z M8.75,1.75 L7,1.75 L7,3.5 L8.75,3.5 L8.75,1.75 Z M5.25,1.75 L3.5,1.75 L3.5,3.5 L5.25,3.5 L5.25,1.75 Z" id="形状结合"></path>
8
+ </g>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 28 28" version="1.1">
3
+ <title>运算符-或</title>
4
+ <g id="全局样式" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Icons" transform="translate(-664.000000, -1299.000000)" fill="#5B5B5B" fill-rule="nonzero">
6
+ <g id="运算符-或" transform="translate(664.000000, 1299.000000)">
7
+ <path d="M28,0 L28,28 L0,28 L0,0 L28,0 Z M24.5,5.25 L3.5,5.25 L3.5,24.5 L24.5,24.5 L24.5,5.25 Z M16.143,7 L16.143,8.872 L17.211,8.872 C17.047,8.567 16.863,8.263 16.662,7.965 L16.662,7.965 L16.443,7.641 L18.687,7.278 L18.771,7.438 C19.004,7.886 19.224,8.368 19.424,8.872 L19.424,8.872 L20.975,8.872 L20.975,11.004 L16.165,11.004 C16.204,12.679 16.335,14.151 16.555,15.382 C16.577,15.495 16.598,15.603 16.618,15.707 C17.229,14.528 17.764,13.174 18.214,11.674 L18.214,11.674 L18.301,11.382 L20.225,12.407 L20.164,12.604 C19.453,14.882 18.556,16.853 17.496,18.465 L17.496,18.465 L17.714,18.877 C18.281,19.775 18.651,19.912 18.821,19.912 C18.825,19.889 19.067,19.63 19.309,17.682 L19.309,17.682 L19.359,17.282 L21.259,18.543 L21.226,18.707 C20.747,21.092 20.023,22.252 19.013,22.252 C18.079,22.24 17.195,21.684 16.381,20.6 C16.283,20.47 16.194,20.346 16.114,20.226 C15.354,21.059 14.485,21.776 13.527,22.36 L13.527,22.36 L13.319,22.486 L12.118,20.622 L12.343,20.49 C12.858,20.187 13.348,19.832 13.811,19.426 L13.811,19.426 L13.752,19.443 C11.562,20.051 9.207,20.57 6.75,20.984 L6.75,20.984 L6.521,21.023 L6,18.858 L6.28,18.826 C8.696,18.545 11.132,18.06 13.522,17.387 L13.522,17.387 L6.859,17.387 L6.859,11.752 L13.567,11.752 L13.567,17.375 C13.583,17.37 13.6,17.366 13.617,17.361 L13.617,17.361 L13.935,17.27 L13.935,19.316 C14.339,18.95 14.722,18.545 15.08,18.102 C14.884,17.59 14.715,17.009 14.577,16.376 C14.217,14.821 14.012,13.013 13.967,11.004 L13.967,11.004 L6.123,11.004 L6.123,8.872 L13.963,8.872 L13.963,7 L16.143,7 Z M11.419,13.788 L9.023,13.788 L9.023,15.384 L11.419,15.384 L11.419,13.788 Z M12.25,1.75 L10.5,1.75 L10.5,3.5 L12.25,3.5 L12.25,1.75 Z M8.75,1.75 L7,1.75 L7,3.5 L8.75,3.5 L8.75,1.75 Z M5.25,1.75 L3.5,1.75 L3.5,3.5 L5.25,3.5 L5.25,1.75 Z" id="形状结合"></path>
8
+ </g>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 28 28" version="1.1">
3
+ <title>运算符-异</title>
4
+ <g id="全局样式" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Icons" transform="translate(-664.000000, -1343.000000)" fill="#5B5B5B" fill-rule="nonzero">
6
+ <g id="运算符-异" transform="translate(664.000000, 1343.000000)">
7
+ <path d="M28,0 L28,28 L0,28 L0,0 L28,0 Z M24.5,5.25 L3.5,5.25 L3.5,24.5 L24.5,24.5 L24.5,5.25 Z M18.868,8 L18.868,12.627 L9.748,12.627 L9.748,13.082 C9.748,13.424 9.876,13.551 10.218,13.551 L10.218,13.551 L18.506,13.551 C18.698,13.533 18.735,13.459 18.747,13.434 C18.763,13.403 18.828,13.244 18.914,12.416 L18.914,12.416 L18.946,12.106 L20.94,12.764 L20.914,12.968 C20.814,13.755 20.704,14.289 20.578,14.599 C20.349,15.195 19.828,15.518 19.03,15.555 L19.03,15.555 L17.444,15.555 L17.444,17.023 L21.252,17.023 L21.252,19.044 L17.444,19.044 L17.444,22.755 L15.28,22.755 L15.28,19.044 L11.786,19.044 C11.265,20.875 10.04,22.14 8.141,22.806 L8.141,22.806 L7.947,22.874 L6.811,20.939 L7.131,20.855 C8.381,20.53 9.196,19.935 9.611,19.044 L9.611,19.044 L6,19.044 L6,17.023 L9.939,17.023 L9.955,15.555 L9.546,15.555 C7.938,15.555 7.6,14.567 7.6,13.738 L7.6,13.738 L7.6,8 L18.868,8 Z M15.28,15.555 L12.116,15.555 L12.116,15.769 C12.116,16.18 12.109,16.598 12.094,17.023 L12.094,17.023 L15.28,17.023 L15.28,15.555 Z M16.752,10.003 L9.748,10.003 L9.748,10.655 L16.752,10.655 L16.752,10.003 Z M12.25,1.75 L10.5,1.75 L10.5,3.5 L12.25,3.5 L12.25,1.75 Z M8.75,1.75 L7,1.75 L7,3.5 L8.75,3.5 L8.75,1.75 Z M5.25,1.75 L3.5,1.75 L3.5,3.5 L5.25,3.5 L5.25,1.75 Z" id="形状结合"></path>
8
+ </g>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24.744" height="31.16" viewBox="0 0 24.744 31.16">
2
+ <path fill="#595959" d="M46.413,18.491V16.044a5.769,5.769,0,0,0-1.6-4.286,5.734,5.734,0,0,0-4.189-1.57,5.251,5.251,0,0,0-3.955,1.6,5.925,5.925,0,0,0-1.505,4.255v2.446H33.975V15.118a5.507,5.507,0,0,1,.493-2.34,6.22,6.22,0,0,1,1.4-1.949,6.7,6.7,0,0,1,2.141-1.338A7.431,7.431,0,0,1,40.755,9a6.645,6.645,0,0,1,2.5.487,7.207,7.207,0,0,1,2.167,1.356,6.658,6.658,0,0,1,1.488,1.974,5.076,5.076,0,0,1,.524,2.3v3.373Z" transform="translate(-28.35 -7.51)"></path>
3
+ <path fill="#595959" d="M33.245,0a8.872,8.872,0,0,0-3.291.6A8.147,8.147,0,0,0,27.34,2.233,7.665,7.665,0,0,0,25.6,4.648a7.026,7.026,0,0,0-.628,2.961v4.863h4.168V8.534a4.48,4.48,0,0,1,1.092-3.225,3.8,3.8,0,0,1,2.878-1.141,4.282,4.282,0,0,1,3.143,1.141,4.325,4.325,0,0,1,1.158,3.225v3.936h4V7.608a6.6,6.6,0,0,0-.678-2.961,8.107,8.107,0,0,0-1.819-2.415A8.656,8.656,0,0,0,36.3.6a8.087,8.087,0,0,0-3.06-.6" transform="translate(-20.84)"></path>
4
+ <path fill="#595959" d="M21.764,90.293v9.458a1.457,1.457,0,0,1-.1.554,1.351,1.351,0,0,1-.266.429,1,1,0,0,1-.332.231,1.048,1.048,0,0,1-.427.074H3.937a.962.962,0,0,1-.388-.064.936.936,0,0,1-.3-.2.913.913,0,0,1-.186-.307,1.315,1.315,0,0,1-.081-.481V90.293H21.764m.8-2.98H2.15a2.047,2.047,0,0,0-1.522.645A2.128,2.128,0,0,0,0,89.5V99.982a4.273,4.273,0,0,0,.281,1.555,3.846,3.846,0,0,0,3.655,2.481H20.642a3.945,3.945,0,0,0,2.928-1.24,4.311,4.311,0,0,0,.86-1.356,4.412,4.412,0,0,0,.314-1.67V89.5a2.2,2.2,0,0,0-2.183-2.183" transform="translate(0 -72.858)"></path>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 33 33">
2
+ <g transform="translate(-1.496 -1.733)">
3
+ <path fill="#595959" d="M30.765,26.483V35.9a1.557,1.557,0,0,1-.1.582,1,1,0,0,1-.579.612,1.028,1.028,0,0,1-.419.072h-16.7a1.118,1.118,0,0,1-.431-.068.878.878,0,0,1-.293-.194.756.756,0,0,1-.166-.266,1.3,1.3,0,0,1-.08-.473V26.483H30.765M33.822,9a8.852,8.852,0,0,0-3.284.594,8.126,8.126,0,0,0-2.608,1.634A7.593,7.593,0,0,0,26.2,13.655a7.123,7.123,0,0,0-.627,2.971v4.951h4.159V17.55a4.529,4.529,0,0,1,1.089-3.235A3.763,3.763,0,0,1,33.69,13.16a4.294,4.294,0,0,1,3.152,1.155,4.337,4.337,0,0,1,1.172,3.235v3.961h3.994V16.626a6.551,6.551,0,0,0-.693-2.971,8.251,8.251,0,0,0-1.832-2.426,8.633,8.633,0,0,0-2.608-1.634A8.069,8.069,0,0,0,33.822,9M31.578,23.492H11.146A2.17,2.17,0,0,0,9,25.67v10.5a4.269,4.269,0,0,0,.281,1.551,3.741,3.741,0,0,0,.809,1.271,3.853,3.853,0,0,0,1.254.858,4.039,4.039,0,0,0,1.617.314h16.7a3.98,3.98,0,0,0,1.634-.33,3.987,3.987,0,0,0,2.145-2.244,4.535,4.535,0,0,0,.313-1.683V25.67a2.142,2.142,0,0,0-2.179-2.179" transform="translate(-7.504 -7.268)"></path>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ import BaseNode from "../../../../graph-model/node";
2
+ export declare const LOGICAL_EDG = 50;
3
+ export default class LogicalNode extends BaseNode {
4
+ getInPorts(): import("@antv/x6/lib/model/port").PortManager.PortMetadata[];
5
+ getOutPorts(): import("@antv/x6/lib/model/port").PortManager.PortMetadata[];
6
+ }
@@ -8,7 +8,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8
8
 
9
9
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
10
10
 
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -18,24 +18,24 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
18
18
 
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
20
 
21
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
- import BaseNode from "./BaseNode";
24
- import { LOGICAL_EDG } from "../../../constants/graph";
25
- import { Dom, Node } from '@antv/x6';
23
+ import { Dom, Graph } from '@antv/x6';
24
+ import BaseNode from "../../../../graph-model/node";
25
+ export var LOGICAL_EDG = 50;
26
26
 
27
- var ConditionJudgment = /*#__PURE__*/function (_BaseNode) {
28
- _inherits(ConditionJudgment, _BaseNode);
27
+ var LogicalNode = /*#__PURE__*/function (_BaseNode) {
28
+ _inherits(LogicalNode, _BaseNode);
29
29
 
30
- var _super = _createSuper(ConditionJudgment);
30
+ var _super = _createSuper(LogicalNode);
31
31
 
32
- function ConditionJudgment() {
33
- _classCallCheck(this, ConditionJudgment);
32
+ function LogicalNode() {
33
+ _classCallCheck(this, LogicalNode);
34
34
 
35
35
  return _super.apply(this, arguments);
36
36
  }
37
37
 
38
- _createClass(ConditionJudgment, [{
38
+ _createClass(LogicalNode, [{
39
39
  key: "getInPorts",
40
40
  value: function getInPorts() {
41
41
  return this.getPortsByGroup('in');
@@ -47,11 +47,11 @@ var ConditionJudgment = /*#__PURE__*/function (_BaseNode) {
47
47
  }
48
48
  }]);
49
49
 
50
- return ConditionJudgment;
50
+ return LogicalNode;
51
51
  }(BaseNode);
52
52
 
53
- export { ConditionJudgment as default };
54
- ConditionJudgment.config({
53
+ export { LogicalNode as default };
54
+ LogicalNode.config({
55
55
  width: LOGICAL_EDG,
56
56
  height: LOGICAL_EDG,
57
57
  shape: 'logical-element',
@@ -127,4 +127,4 @@ ConditionJudgment.config({
127
127
  }]
128
128
  }]
129
129
  });
130
- Node.registry.register('logical-element', ConditionJudgment);
130
+ Graph.registerNode('logical-node', LogicalNode);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { Node } from '@antv/x6';
3
+ import './logical-element.less';
4
+ interface Props {
5
+ node?: Node;
6
+ experimentId: string;
7
+ }
8
+ declare const LogicalElement: React.FC<Props>;
9
+ export default LogicalElement;