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.
- package/.fatherrc.ts +11 -26
- package/.umirc.ts +4 -0
- package/README.md +33 -33
- package/es/assets/decive.svg +1 -1
- package/es/assets/hand.svg +1 -1
- package/es/assets/lock.svg +8 -0
- package/es/components/canvas/component-tree-panel/category-tree/category-type.d.ts +1 -0
- package/es/{common/graph-common → components/canvas/component-tree-panel/category-tree}/category-type.js +28 -12
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.d.ts +17 -16
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.js +14 -14
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/index.less +36 -36
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.d.ts +12 -12
- package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.js +5 -3
- package/es/{pages → components/canvas}/component-tree-panel/index.d.ts +17 -17
- package/es/{pages → components/canvas}/component-tree-panel/index.js +1 -0
- package/es/{pages → components/canvas}/component-tree-panel/index.less +1 -0
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/data-origin.d.ts +49 -49
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/data-origin.js +26 -34
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/index.d.ts +11 -11
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/index.js +15 -23
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/configure-modal/style.less +1 -1
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/cross-line.js +6 -10
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.d.ts +10 -9
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/index.js +17 -13
- package/es/{pages → components/canvas}/config-panel/components/condition-configuration/style.less +74 -74
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/cycle-time.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/cycle-time.js +24 -33
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/time-horizon.d.ts +10 -10
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/components/time-horizon.js +18 -28
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/delay-time.d.ts +9 -9
- package/es/components/canvas/config-panel/components/time-trigger/effective-time.d.ts +7 -0
- package/es/components/canvas/config-panel/components/time-trigger/effective-time.js +43 -0
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/index.d.ts +9 -8
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/index.js +18 -17
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/interval-time.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/interval-time.js +4 -8
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/persistent-time.d.ts +9 -9
- package/es/components/canvas/config-panel/components/time-trigger/section-Detail.d.ts +10 -0
- package/es/components/canvas/config-panel/components/time-trigger/section-Detail.js +125 -0
- package/es/components/canvas/config-panel/components/time-trigger/section-time.d.ts +9 -0
- package/es/components/canvas/config-panel/components/time-trigger/section-time.js +81 -0
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.d.ts +9 -9
- package/es/{pages → components/canvas}/config-panel/components/time-trigger/timing-time.js +7 -11
- package/es/{pages → components/canvas}/config-panel/config-common.d.ts +38 -37
- package/es/{pages → components/canvas}/config-panel/config-common.js +9 -15
- package/es/{pages → components/canvas}/config-panel/index.d.ts +14 -13
- package/es/{pages → components/canvas}/config-panel/index.js +2 -2
- package/es/{pages → components/canvas}/config-panel/node-form.d.ts +23 -22
- package/es/{pages → components/canvas}/config-panel/node-form.js +14 -16
- package/es/{pages → components/canvas}/config-panel/style.less +90 -81
- package/es/{pages → components/canvas}/dag-canvas/canvas-content.d.ts +11 -10
- package/es/{pages → components/canvas}/dag-canvas/canvas-content.js +23 -12
- package/es/{pages → components/canvas}/dag-canvas/index.d.ts +23 -18
- package/es/{pages → components/canvas}/dag-canvas/index.js +5 -2
- package/es/{pages → components/canvas}/dag-canvas/preview.d.ts +10 -10
- package/es/components/canvas/dag-canvas/preview.js +53 -0
- package/es/{pages → components/canvas}/index.d.ts +48 -42
- package/es/{pages → components/canvas}/index.js +20 -10
- package/es/{pages → components/canvas}/index.less +2 -2
- package/es/{pages → components/canvas}/strategy-header/index.d.ts +48 -56
- package/es/components/canvas/strategy-header/index.js +210 -0
- package/es/{pages → components/canvas}/strategy-header/style.less +4 -3
- package/es/{pages → components/canvas}/strategy-header/theme-switch/index.d.ts +4 -4
- package/es/{pages → components/canvas}/strategy-header/theme-switch/index.js +2 -3
- package/es/index.d.ts +9 -8
- package/es/index.js +8 -7
- package/es/packages/graph-canvas/graph-common.d.ts +19 -0
- package/es/packages/graph-canvas/graph-common.js +19 -0
- package/es/packages/graph-canvas/graph-model/edge/group-edge/index.d.ts +4 -0
- package/es/packages/graph-canvas/graph-model/edge/group-edge/index.js +63 -0
- package/es/packages/graph-canvas/graph-model/edge/index.d.ts +2 -0
- package/es/packages/graph-canvas/graph-model/edge/index.js +2 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/application-element.d.ts +9 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/application-element.js +20 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/application-element.less +17 -0
- package/es/packages/graph-canvas/graph-model/node/application-node/index.d.ts +7 -0
- package/es/{common/graph-common/shape/nodes/GroupNode.js → packages/graph-canvas/graph-model/node/application-node/index.js} +42 -22
- package/es/{common/graph-common/shape/nodes/CommonNode.d.ts → packages/graph-canvas/graph-model/node/common-node/index.d.ts} +7 -5
- package/es/{common/graph-common/shape/nodes/CommonNode.js → packages/graph-canvas/graph-model/node/common-node/index.js} +8 -7
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.d.ts +9 -9
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.js +16 -14
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/common-node}/node-element.less +4 -4
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.d.ts +9 -9
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.js +20 -15
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/condition-node}/condition-element.less +76 -81
- package/es/packages/graph-canvas/graph-model/node/condition-node/images/rhombus.svg +3 -0
- package/es/{common/graph-common/shape/nodes/ConditionJudgment.d.ts → packages/graph-canvas/graph-model/node/condition-node/index.d.ts} +5 -5
- package/es/{common/graph-common/shape/nodes/ConditionJudgment.js → packages/graph-canvas/graph-model/node/condition-node/index.js} +7 -6
- package/es/packages/graph-canvas/graph-model/node/index.d.ts +5 -0
- package/es/packages/graph-canvas/graph-model/node/index.js +5 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/AND.svg +11 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/OR.svg +11 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/XOR.svg +11 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/locking.svg +5 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/images/unlock.svg +5 -0
- package/es/packages/graph-canvas/graph-model/node/logical-node/index.d.ts +6 -0
- package/es/{common/graph-common/shape/nodes/LogicalNode.js → packages/graph-canvas/graph-model/node/logical-node/index.js} +15 -15
- package/es/packages/graph-canvas/graph-model/node/logical-node/logical-element.d.ts +9 -0
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/logical-node}/logical-element.js +36 -19
- package/es/{common/graph-common/node-element → packages/graph-canvas/graph-model/node/logical-node}/logical-element.less +4 -9
- package/es/packages/graph-canvas/graph-model/node/style.less +8 -0
- package/es/{common → packages/graph-canvas}/graph-utils/graph.d.ts +87 -83
- package/es/{common → packages/graph-canvas}/graph-utils/graph.js +8 -4
- package/es/{pages/rx-models/experiment-graph.d.ts → packages/graph-canvas/index.d.ts} +79 -82
- package/es/{pages/rx-models/experiment-graph.js → packages/graph-canvas/index.js} +285 -252
- package/es/packages/graph-canvas/node-types.d.ts +6 -0
- package/es/packages/graph-canvas/node-types.js +54 -0
- package/es/packages/graph-canvas/typings.d.ts +5 -0
- package/es/{common/constants → packages/graph-common}/global.d.ts +1 -1
- package/es/{common/constants → packages/graph-common}/graph.d.ts +12 -10
- package/es/{common/constants → packages/graph-common}/graph.js +4 -2
- package/es/{pages/rx-models → packages/graph-core}/graph-util.d.ts +182 -186
- package/es/{pages/rx-models → packages/graph-core}/graph-util.js +8 -15
- package/es/{pages/rx-models/graph-core.d.ts → packages/graph-core/index.d.ts} +96 -96
- package/es/{pages/rx-models/graph-core.js → packages/graph-core/index.js} +119 -87
- package/es/packages/graph-core/typing.d.ts +107 -0
- package/es/{common/graph-common → packages/graph-model}/connector/index.d.ts +1 -1
- package/es/packages/graph-model/connector/index.js +14 -0
- package/es/packages/graph-model/edge/edge.less +8 -0
- package/es/packages/graph-model/edge/index.d.ts +5 -0
- package/es/{common/graph-common/shape/edge.js → packages/graph-model/edge/index.js} +10 -61
- package/es/packages/graph-model/node/index.d.ts +7 -0
- package/es/{common/graph-common/shape/nodes/BaseNode.js → packages/graph-model/node/index.js} +12 -3
- package/es/{common/graph-common/node-element/common-element.less → packages/graph-model/node/node-basic.less} +1 -0
- package/es/{hooks → packages/hooks}/useObservableState.d.ts +3 -3
- package/es/packages/hooks/withMode.d.ts +3 -0
- package/es/packages/hooks/withMode.js +12 -0
- package/es/style/default.less +8 -0
- package/es/style/svgRaw.d.ts +1 -0
- package/es/style/svgRaw.js +1 -0
- package/es/typings.d.ts +2 -8
- package/es/utils/utils.d.ts +1 -1
- package/lib/assets/AND.svg +11 -0
- package/lib/assets/OR.svg +11 -0
- package/lib/assets/XOR.svg +11 -0
- package/lib/assets/add.svg +13 -0
- package/lib/assets/alarm.svg +11 -0
- package/lib/assets/application.svg +11 -0
- package/lib/assets/cancel.svg +13 -0
- package/lib/assets/check.svg +12 -0
- package/lib/assets/condition.svg +12 -0
- package/lib/assets/control.svg +11 -0
- package/lib/assets/decive.svg +11 -0
- package/lib/assets/delete.svg +11 -0
- package/lib/assets/device.svg +11 -0
- package/lib/assets/edit.svg +11 -0
- package/lib/assets/hand.svg +11 -0
- package/lib/assets/link.svg +11 -0
- package/lib/assets/lock.svg +8 -0
- package/lib/assets/logical.svg +12 -0
- package/lib/assets/notice.svg +11 -0
- package/lib/assets/order.svg +11 -0
- package/lib/assets/relation.svg +11 -0
- package/lib/assets/rhombus.svg +3 -0
- package/lib/assets/save.svg +13 -0
- package/lib/assets/time.svg +11 -0
- package/lib/assets/variate.svg +12 -0
- package/lib/components/canvas/component-tree-panel/category-tree/category-type.d.ts +1 -0
- package/lib/components/canvas/component-tree-panel/category-tree/category-type.js +111 -0
- package/lib/components/canvas/component-tree-panel/category-tree/index.d.ts +17 -0
- package/lib/components/canvas/component-tree-panel/category-tree/index.js +115 -0
- package/lib/components/canvas/component-tree-panel/category-tree/index.less +36 -0
- package/lib/components/canvas/component-tree-panel/category-tree/node-title.d.ts +12 -0
- package/lib/components/canvas/component-tree-panel/category-tree/node-title.js +75 -0
- package/lib/components/canvas/component-tree-panel/category-tree/node-title.less +113 -0
- package/lib/components/canvas/component-tree-panel/index.d.ts +17 -0
- package/lib/components/canvas/component-tree-panel/index.js +33 -0
- package/lib/components/canvas/component-tree-panel/index.less +52 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/data-origin.d.ts +49 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/data-origin.js +229 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/index.d.ts +11 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/index.js +187 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/configure-modal/style.less +13 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/cross-line.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/cross-line.js +57 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/index.d.ts +10 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/index.js +216 -0
- package/lib/components/canvas/config-panel/components/condition-configuration/style.less +74 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/cycle-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/cycle-time.js +108 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/time-horizon.d.ts +10 -0
- package/lib/components/canvas/config-panel/components/time-trigger/components/time-horizon.js +78 -0
- package/lib/components/canvas/config-panel/components/time-trigger/delay-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/delay-time.js +33 -0
- package/lib/components/canvas/config-panel/components/time-trigger/effective-time.d.ts +7 -0
- package/lib/components/canvas/config-panel/components/time-trigger/effective-time.js +58 -0
- package/lib/components/canvas/config-panel/components/time-trigger/index.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/index.js +114 -0
- package/lib/components/canvas/config-panel/components/time-trigger/interval-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/interval-time.js +63 -0
- package/lib/components/canvas/config-panel/components/time-trigger/persistent-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/persistent-time.js +33 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-Detail.d.ts +10 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-Detail.js +140 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/section-time.js +96 -0
- package/lib/components/canvas/config-panel/components/time-trigger/timing-time.d.ts +9 -0
- package/lib/components/canvas/config-panel/components/time-trigger/timing-time.js +65 -0
- package/lib/components/canvas/config-panel/config-common.d.ts +38 -0
- package/lib/components/canvas/config-panel/config-common.js +152 -0
- package/lib/components/canvas/config-panel/index.d.ts +14 -0
- package/lib/components/canvas/config-panel/index.js +68 -0
- package/lib/components/canvas/config-panel/node-form.d.ts +23 -0
- package/lib/components/canvas/config-panel/node-form.js +97 -0
- package/lib/components/canvas/config-panel/style.less +90 -0
- package/lib/components/canvas/dag-canvas/canvas-content.d.ts +11 -0
- package/lib/components/canvas/dag-canvas/canvas-content.js +130 -0
- package/lib/components/canvas/dag-canvas/canvas-content.less +5 -0
- package/lib/components/canvas/dag-canvas/index.d.ts +23 -0
- package/lib/components/canvas/dag-canvas/index.js +53 -0
- package/lib/components/canvas/dag-canvas/index.less +11 -0
- package/lib/components/canvas/dag-canvas/preview.d.ts +10 -0
- package/lib/components/canvas/dag-canvas/preview.js +73 -0
- package/lib/components/canvas/index.d.ts +48 -0
- package/lib/components/canvas/index.js +107 -0
- package/lib/components/canvas/index.less +50 -0
- package/lib/components/canvas/strategy-header/index.d.ts +48 -0
- package/lib/components/canvas/strategy-header/index.js +229 -0
- package/lib/components/canvas/strategy-header/style.less +23 -0
- package/lib/components/canvas/strategy-header/theme-switch/index.d.ts +4 -0
- package/lib/components/canvas/strategy-header/theme-switch/index.js +30 -0
- package/lib/components/canvas/strategy-header/theme-switch/style.less +11 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +71 -0
- package/lib/packages/graph-canvas/graph-common.d.ts +19 -0
- package/lib/packages/graph-canvas/graph-common.js +27 -0
- package/lib/packages/graph-canvas/graph-model/edge/group-edge/edge.less +8 -0
- package/lib/packages/graph-canvas/graph-model/edge/group-edge/index.d.ts +4 -0
- package/lib/packages/graph-canvas/graph-model/edge/group-edge/index.js +74 -0
- package/lib/packages/graph-canvas/graph-model/edge/index.d.ts +2 -0
- package/lib/packages/graph-canvas/graph-model/edge/index.js +15 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.d.ts +9 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.js +31 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/application-element.less +17 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/index.d.ts +7 -0
- package/lib/packages/graph-canvas/graph-model/node/application-node/index.js +133 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/index.d.ts +7 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/index.js +133 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.d.ts +9 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.js +69 -0
- package/lib/packages/graph-canvas/graph-model/node/common-node/node-element.less +48 -0
- 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
- package/lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.js +81 -0
- package/lib/packages/graph-canvas/graph-model/node/condition-node/condition-element.less +76 -0
- package/lib/packages/graph-canvas/graph-model/node/condition-node/images/rhombus.svg +3 -0
- package/{es/common/graph-common/shape/nodes/LogicalNode.d.ts → lib/packages/graph-canvas/graph-model/node/condition-node/index.d.ts} +5 -5
- package/lib/packages/graph-canvas/graph-model/node/condition-node/index.js +143 -0
- package/lib/packages/graph-canvas/graph-model/node/index.d.ts +5 -0
- package/lib/packages/graph-canvas/graph-model/node/index.js +39 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/AND.svg +11 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/OR.svg +11 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/XOR.svg +11 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/locking.svg +5 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/images/unlock.svg +5 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/index.d.ts +6 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/index.js +143 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.d.ts +9 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.js +98 -0
- package/lib/packages/graph-canvas/graph-model/node/logical-node/logical-element.less +49 -0
- package/lib/packages/graph-canvas/graph-model/node/style.less +8 -0
- package/lib/packages/graph-canvas/graph-utils/graph.d.ts +87 -0
- package/lib/packages/graph-canvas/graph-utils/graph.js +124 -0
- package/lib/packages/graph-canvas/index.d.ts +79 -0
- package/lib/packages/graph-canvas/index.js +1292 -0
- package/lib/packages/graph-canvas/node-types.d.ts +6 -0
- package/lib/packages/graph-canvas/node-types.js +66 -0
- package/lib/packages/graph-canvas/typings.d.ts +5 -0
- package/lib/packages/graph-common/global.d.ts +1 -0
- package/lib/packages/graph-common/global.js +8 -0
- package/lib/packages/graph-common/graph.d.ts +12 -0
- package/lib/packages/graph-common/graph.js +37 -0
- package/lib/packages/graph-core/graph-util.d.ts +182 -0
- package/lib/packages/graph-core/graph-util.js +368 -0
- package/lib/packages/graph-core/index.d.ts +96 -0
- package/lib/packages/graph-core/index.js +798 -0
- package/lib/packages/graph-core/typing.d.ts +107 -0
- package/lib/packages/graph-model/connector/index.d.ts +1 -0
- package/lib/packages/graph-model/connector/index.js +17 -0
- package/lib/packages/graph-model/edge/edge.less +8 -0
- package/lib/packages/graph-model/edge/index.d.ts +5 -0
- package/lib/packages/graph-model/edge/index.js +73 -0
- package/lib/packages/graph-model/node/index.d.ts +7 -0
- package/lib/packages/graph-model/node/index.js +63 -0
- package/lib/packages/graph-model/node/node-basic.less +118 -0
- package/lib/packages/hooks/useObservableState.d.ts +3 -0
- package/lib/packages/hooks/useObservableState.js +55 -0
- package/lib/packages/hooks/withMode.d.ts +3 -0
- package/lib/packages/hooks/withMode.js +22 -0
- package/lib/style/basic.less +12 -0
- package/lib/style/default.less +10 -0
- package/lib/style/position.less +25 -0
- package/lib/style/svgRaw.d.ts +1 -0
- package/lib/style/svgRaw.js +8 -0
- package/lib/style/theme-light.less +7 -0
- package/lib/style/variable.less +3 -0
- package/lib/typings.d.ts +8 -0
- package/lib/utils/utils.d.ts +1 -0
- package/lib/utils/utils.js +13 -0
- package/package.json +38 -37
- package/tsconfig.json +1 -1
- package/es/common/graph-common/category-type.d.ts +0 -16
- package/es/common/graph-common/connector/index.js +0 -14
- package/es/common/graph-common/node-element/node-group.d.ts +0 -8
- package/es/common/graph-common/node-element/node-group.js +0 -395
- package/es/common/graph-common/node-element/node-group.less +0 -53
- package/es/common/graph-common/node-popover/index.d.ts +0 -7
- package/es/common/graph-common/node-popover/index.js +0 -11
- package/es/common/graph-common/node-popover/index.less +0 -5
- package/es/common/graph-common/node-types.d.ts +0 -28
- package/es/common/graph-common/node-types.js +0 -60
- package/es/common/graph-common/shape/edge.d.ts +0 -10
- package/es/common/graph-common/shape/node.d.ts +0 -6
- package/es/common/graph-common/shape/node.js +0 -6
- package/es/common/graph-common/shape/nodes/BaseNode.d.ts +0 -4
- package/es/common/graph-common/shape/nodes/GroupNode.d.ts +0 -4
- package/es/component/cut.d.ts +0 -10
- package/es/component/cut.js +0 -34
- package/es/component/cut.less +0 -6
- package/es/component/item-name.d.ts +0 -6
- package/es/component/item-name.js +0 -30
- package/es/component/keyword.d.ts +0 -9
- package/es/component/keyword.js +0 -26
- package/es/component/keyword.less +0 -11
- package/es/component/rx-component/rx-input.d.ts +0 -8
- package/es/component/rx-component/rx-input.js +0 -47
- package/es/hooks/withMode.d.ts +0 -1
- package/es/hooks/withMode.js +0 -16
- package/es/pages/dag-canvas/preview.js +0 -42
- package/es/pages/rx-models/graph-core.less +0 -14
- package/es/pages/rx-models/typing.d.ts +0 -126
- package/es/pages/strategy-header/index.js +0 -154
- /package/es/{pages → components/canvas}/component-tree-panel/category-tree/node-title.less +0 -0
- /package/es/{pages → components/canvas}/config-panel/components/time-trigger/delay-time.js +0 -0
- /package/es/{pages → components/canvas}/config-panel/components/time-trigger/persistent-time.js +0 -0
- /package/es/{pages → components/canvas}/dag-canvas/canvas-content.less +0 -0
- /package/es/{pages → components/canvas}/dag-canvas/index.less +0 -0
- /package/es/{pages → components/canvas}/strategy-header/theme-switch/style.less +0 -0
- /package/es/{common/graph-common/shape → packages/graph-canvas/graph-model/edge/group-edge}/edge.less +0 -0
- /package/es/{common/constants → packages/graph-common}/global.js +0 -0
- /package/es/{hooks → packages/hooks}/useObservableState.js +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export var SCENE_DISPLAY = {
|
|
2
|
+
EQUIPMENT: 'SCENE_DISPLAY_EQUIPMENT',
|
|
3
|
+
// 设备触发
|
|
4
|
+
TIME: 'SCENE_DISPLAY_TIME',
|
|
5
|
+
// 时间触发
|
|
6
|
+
MANUAL: 'SCENE_DISPLAY_MANUAL' // 手动触发
|
|
7
|
+
|
|
8
|
+
}; // 场景触发
|
|
9
|
+
|
|
10
|
+
export var COMPONENTS_TYPE = {
|
|
11
|
+
COMMONLY_USED: 'COMMONLY_USED',
|
|
12
|
+
// 通用组件
|
|
13
|
+
SCENE_DISPLAY: 'SCENE_DISPLAY',
|
|
14
|
+
// 场景触发
|
|
15
|
+
SIGN_OPERATION: 'SIGN_OPERATION',
|
|
16
|
+
// 运算符号
|
|
17
|
+
MOTION_OPERATION: 'MOTION_OPERATION',
|
|
18
|
+
// 运动符号
|
|
19
|
+
APPLICATION: 'APPLICATION' // 应用组件
|
|
20
|
+
|
|
21
|
+
};
|
|
22
|
+
export var COMMONLY_USED = {
|
|
23
|
+
VARIATE: 'COMMONLY_USED_VARIATE',
|
|
24
|
+
// 变量
|
|
25
|
+
LOCKED: 'COMMONLY_USED_SERVICE_LOCKING'
|
|
26
|
+
}; // 通用组件
|
|
27
|
+
|
|
28
|
+
export var SIGN_OPERATION = {
|
|
29
|
+
RELATION: 'SIGN_OPERATION_RELATION',
|
|
30
|
+
// 关系运算
|
|
31
|
+
LOGICAL: 'SIGN_OPERATION_LOGICAL',
|
|
32
|
+
// 逻辑运算
|
|
33
|
+
CONDITION: 'SIGN_OPERATION_CONDITION' // 条件判断
|
|
34
|
+
|
|
35
|
+
}; // 运算符号
|
|
36
|
+
|
|
37
|
+
export var MOTION_OPERATION = {
|
|
38
|
+
ALARM: 'MOTION_OPERATION_ALARM',
|
|
39
|
+
// 报警
|
|
40
|
+
NOTICE: 'MOTION_OPERATION_NOTICE',
|
|
41
|
+
// 通知
|
|
42
|
+
ORDER: 'MOTION_OPERATION_ORDER',
|
|
43
|
+
// 派发工单
|
|
44
|
+
CONTROL: 'MOTION_OPERATION_CONTROL' // 远程控制
|
|
45
|
+
|
|
46
|
+
}; // 运动符号
|
|
47
|
+
|
|
48
|
+
export var PanelType = {
|
|
49
|
+
COMMONLY_USED: COMMONLY_USED,
|
|
50
|
+
SCENE_DISPLAY: SCENE_DISPLAY,
|
|
51
|
+
SIGN_OPERATION: SIGN_OPERATION,
|
|
52
|
+
MOTION_OPERATION: MOTION_OPERATION,
|
|
53
|
+
COMPONENTS_TYPE: COMPONENTS_TYPE
|
|
54
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ANT_PREFIX = "ant";
|
|
1
|
+
export declare const ANT_PREFIX = "ant";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export declare const GROUP_HORIZONTAL__PADDING = 24;
|
|
2
|
-
export declare const GROUP_VERTICAL__PADDING = 40;
|
|
3
|
-
export declare const NODE_WIDTH = 180;
|
|
4
|
-
export declare const NODE_HEIGHT = 43;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
1
|
+
export declare const GROUP_HORIZONTAL__PADDING = 24;
|
|
2
|
+
export declare const GROUP_VERTICAL__PADDING = 40;
|
|
3
|
+
export declare const NODE_WIDTH = 180;
|
|
4
|
+
export declare const NODE_HEIGHT = 43;
|
|
5
|
+
export declare const APPLICATION_NODE_WIDTH = 400;
|
|
6
|
+
export declare const APPLICATION_NODE_HEIGHT = 300;
|
|
7
|
+
export declare const LOGICAL_EDG = 50;
|
|
8
|
+
export declare const CONDITION_WIDTH = 260;
|
|
9
|
+
export declare const CONDITION_HEIGHT = 107;
|
|
10
|
+
export declare const RERENDER_EVENT = "RERENDER_EVENT";
|
|
11
|
+
export declare const DRAGGABLE_ALGO_COMPONENT = "ALGO_COMPONENT";
|
|
12
|
+
export declare const DRAGGABLE_MODEL = "MODEL";
|
|
@@ -4,13 +4,15 @@ export var GROUP_VERTICAL__PADDING = 40; // 分组纵向 padding
|
|
|
4
4
|
|
|
5
5
|
export var NODE_WIDTH = 180;
|
|
6
6
|
export var NODE_HEIGHT = 43;
|
|
7
|
+
export var APPLICATION_NODE_WIDTH = 400;
|
|
8
|
+
export var APPLICATION_NODE_HEIGHT = 300;
|
|
7
9
|
export var LOGICAL_EDG = 50;
|
|
8
10
|
export var CONDITION_WIDTH = 260;
|
|
9
11
|
export var CONDITION_HEIGHT = 107; // 触发画布重新渲染事件
|
|
10
12
|
|
|
11
13
|
export var RERENDER_EVENT = 'RERENDER_EVENT';
|
|
12
|
-
/*
|
|
13
|
-
* 以下是拖拽相关
|
|
14
|
+
/*
|
|
15
|
+
* 以下是拖拽相关
|
|
14
16
|
*/
|
|
15
17
|
|
|
16
18
|
export var DRAGGABLE_ALGO_COMPONENT = 'ALGO_COMPONENT';
|
|
@@ -1,186 +1,182 @@
|
|
|
1
|
-
import type { NExperimentGraph } from '
|
|
2
|
-
import type BaseNode from '
|
|
3
|
-
import '
|
|
4
|
-
export declare function expandGroupAccordingToNodes(params: {
|
|
5
|
-
moveNodes: BaseNode[];
|
|
6
|
-
}): void;
|
|
7
|
-
export declare function formatNodeInfoToNodeMeta(nodeData: NExperimentGraph.Node, inputPortConnectedMap?: {
|
|
8
|
-
[k: string]: boolean;
|
|
9
|
-
}): {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
type: string;
|
|
13
|
-
id: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
outputPortId: number;
|
|
184
|
-
type?: string | undefined;
|
|
185
|
-
}[];
|
|
186
|
-
};
|
|
1
|
+
import type { NExperimentGraph } from './typing';
|
|
2
|
+
import type BaseNode from '../graph-model/node';
|
|
3
|
+
import '../graph-model/connector';
|
|
4
|
+
export declare function expandGroupAccordingToNodes(params: {
|
|
5
|
+
moveNodes: BaseNode[];
|
|
6
|
+
}): void;
|
|
7
|
+
export declare function formatNodeInfoToNodeMeta(nodeData: NExperimentGraph.Node, inputPortConnectedMap?: {
|
|
8
|
+
[k: string]: boolean;
|
|
9
|
+
}): {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
type: string;
|
|
13
|
+
id: string;
|
|
14
|
+
data: {
|
|
15
|
+
type: string;
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
id: string;
|
|
19
|
+
outPorts: NExperimentGraph.Port[];
|
|
20
|
+
inPorts: NExperimentGraph.Port[];
|
|
21
|
+
positionX: number;
|
|
22
|
+
positionY: number;
|
|
23
|
+
codeName?: string | undefined;
|
|
24
|
+
category?: string | undefined;
|
|
25
|
+
name: string;
|
|
26
|
+
nodeInstanceId?: number | undefined;
|
|
27
|
+
groupId?: number | undefined;
|
|
28
|
+
status?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
ports: {
|
|
31
|
+
items: any[];
|
|
32
|
+
};
|
|
33
|
+
zIndex: number;
|
|
34
|
+
outPorts: NExperimentGraph.Port[];
|
|
35
|
+
inPorts: NExperimentGraph.Port[];
|
|
36
|
+
positionX: number;
|
|
37
|
+
positionY: number;
|
|
38
|
+
codeName?: string | undefined;
|
|
39
|
+
category?: string | undefined;
|
|
40
|
+
name: string;
|
|
41
|
+
nodeInstanceId?: number | undefined;
|
|
42
|
+
groupId?: number | undefined;
|
|
43
|
+
status?: number | undefined;
|
|
44
|
+
};
|
|
45
|
+
export declare function calcNodeScale(groupData: NExperimentGraph.Group, children: any[]): {
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
};
|
|
51
|
+
export declare function formatGroupInfoToNodeMeta(groupData: NExperimentGraph.Group, nodeData: any[], edges?: any[]): {
|
|
52
|
+
id: string;
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
zIndex: number;
|
|
58
|
+
data: {
|
|
59
|
+
type: string;
|
|
60
|
+
includedNodes: any[];
|
|
61
|
+
id: string;
|
|
62
|
+
isCollapsed: boolean;
|
|
63
|
+
experimentId: number;
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
ports: {
|
|
67
|
+
items: {
|
|
68
|
+
group: string;
|
|
69
|
+
id: string;
|
|
70
|
+
connected: boolean;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
isCollapsed: boolean;
|
|
74
|
+
experimentId: number;
|
|
75
|
+
name: string;
|
|
76
|
+
type: string;
|
|
77
|
+
} | {
|
|
78
|
+
id: string;
|
|
79
|
+
x: number;
|
|
80
|
+
y: number;
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
|
+
zIndex: number;
|
|
84
|
+
data: {
|
|
85
|
+
type: string;
|
|
86
|
+
includedNodes: any[];
|
|
87
|
+
id: string;
|
|
88
|
+
isCollapsed: boolean;
|
|
89
|
+
experimentId: number;
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
isCollapsed: boolean;
|
|
93
|
+
experimentId: number;
|
|
94
|
+
name: string;
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
export declare function formatGraphData(graphData?: NExperimentGraph.ExperimentGraph): {
|
|
98
|
+
nodes: ({
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
type: string;
|
|
102
|
+
id: string;
|
|
103
|
+
data: {
|
|
104
|
+
type: string;
|
|
105
|
+
x: number;
|
|
106
|
+
y: number;
|
|
107
|
+
id: string;
|
|
108
|
+
outPorts: NExperimentGraph.Port[];
|
|
109
|
+
inPorts: NExperimentGraph.Port[];
|
|
110
|
+
positionX: number;
|
|
111
|
+
positionY: number;
|
|
112
|
+
codeName?: string | undefined;
|
|
113
|
+
category?: string | undefined;
|
|
114
|
+
name: string;
|
|
115
|
+
nodeInstanceId?: number | undefined;
|
|
116
|
+
groupId?: number | undefined;
|
|
117
|
+
status?: number | undefined;
|
|
118
|
+
};
|
|
119
|
+
ports: {
|
|
120
|
+
items: any[];
|
|
121
|
+
};
|
|
122
|
+
zIndex: number;
|
|
123
|
+
outPorts: NExperimentGraph.Port[];
|
|
124
|
+
inPorts: NExperimentGraph.Port[];
|
|
125
|
+
positionX: number;
|
|
126
|
+
positionY: number;
|
|
127
|
+
codeName?: string | undefined;
|
|
128
|
+
category?: string | undefined;
|
|
129
|
+
name: string;
|
|
130
|
+
nodeInstanceId?: number | undefined;
|
|
131
|
+
groupId?: number | undefined;
|
|
132
|
+
status?: number | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
id: string;
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
width: number;
|
|
138
|
+
height: number;
|
|
139
|
+
zIndex: number;
|
|
140
|
+
data: {
|
|
141
|
+
type: string;
|
|
142
|
+
includedNodes: any[];
|
|
143
|
+
id: string;
|
|
144
|
+
isCollapsed: boolean;
|
|
145
|
+
experimentId: number;
|
|
146
|
+
name: string;
|
|
147
|
+
};
|
|
148
|
+
isCollapsed: boolean;
|
|
149
|
+
experimentId: number;
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
})[];
|
|
153
|
+
edges: {
|
|
154
|
+
data: {
|
|
155
|
+
inputPortId: number;
|
|
156
|
+
outputPortId: number;
|
|
157
|
+
source: number;
|
|
158
|
+
type?: string | undefined;
|
|
159
|
+
target: number;
|
|
160
|
+
};
|
|
161
|
+
sourceAnchor: string;
|
|
162
|
+
source: {
|
|
163
|
+
cell: string;
|
|
164
|
+
port: string;
|
|
165
|
+
anchor: {
|
|
166
|
+
name: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
target: {
|
|
170
|
+
cell: string;
|
|
171
|
+
port: string;
|
|
172
|
+
anchor: {
|
|
173
|
+
name: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
label: string;
|
|
177
|
+
zIndex: number;
|
|
178
|
+
inputPortId: number;
|
|
179
|
+
outputPortId: number;
|
|
180
|
+
type?: string | undefined;
|
|
181
|
+
}[];
|
|
182
|
+
};
|
|
@@ -18,9 +18,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
18
18
|
|
|
19
19
|
/* eslint-disable class-methods-use-this */
|
|
20
20
|
import { minBy, maxBy, sortBy } from 'lodash-es';
|
|
21
|
-
import { GROUP_HORIZONTAL__PADDING, GROUP_VERTICAL__PADDING, NODE_WIDTH, NODE_HEIGHT } from "
|
|
22
|
-
import
|
|
23
|
-
import "../../common/graph-common/connector"; // group 范围适应内部节点变化
|
|
21
|
+
import { GROUP_HORIZONTAL__PADDING, GROUP_VERTICAL__PADDING, NODE_WIDTH, NODE_HEIGHT } from "../graph-common/graph";
|
|
22
|
+
import "../graph-model/connector"; // group 范围适应内部节点变化
|
|
24
23
|
|
|
25
24
|
export function expandGroupAccordingToNodes(params) {
|
|
26
25
|
var moveNodes = params.moveNodes;
|
|
@@ -44,7 +43,7 @@ export function expandGroupAccordingToNodes(params) {
|
|
|
44
43
|
return child.isNode();
|
|
45
44
|
});
|
|
46
45
|
|
|
47
|
-
if (childNodes
|
|
46
|
+
if (childNodes !== null && childNodes !== void 0 && childNodes.length) {
|
|
48
47
|
var _minBy, _minBy2, _maxBy, _maxBy2;
|
|
49
48
|
|
|
50
49
|
var positions = childNodes.map(function (childNode) {
|
|
@@ -76,8 +75,6 @@ export function expandGroupAccordingToNodes(params) {
|
|
|
76
75
|
} // 格式化单个节点,新增节点时复用
|
|
77
76
|
|
|
78
77
|
export function formatNodeInfoToNodeMeta(nodeData) {
|
|
79
|
-
var _id$split;
|
|
80
|
-
|
|
81
78
|
var inputPortConnectedMap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
82
79
|
console.log('formatNodeInfoToNodeMeta', nodeData);
|
|
83
80
|
var portItems = [];
|
|
@@ -91,27 +88,23 @@ export function formatNodeInfoToNodeMeta(nodeData) {
|
|
|
91
88
|
portItems.push(_objectSpread(_objectSpread({}, inPort), {}, {
|
|
92
89
|
group: 'in',
|
|
93
90
|
id: inPort.id.toString(),
|
|
94
|
-
connected:
|
|
91
|
+
connected: inputPortConnectedMap[inPort.id.toString()]
|
|
95
92
|
}));
|
|
96
93
|
});
|
|
97
94
|
sortBy(outPorts, 'sequence').forEach(function (outPort) {
|
|
98
95
|
portItems.push(_objectSpread(_objectSpread({}, outPort), {}, {
|
|
99
96
|
group: (outPort === null || outPort === void 0 ? void 0 : outPort.group) || 'out',
|
|
100
97
|
id: outPort.id.toString(),
|
|
101
|
-
connected:
|
|
98
|
+
connected: inputPortConnectedMap[outPort.id.toString()]
|
|
102
99
|
}));
|
|
103
100
|
});
|
|
104
|
-
var nodeType = id === null || id === void 0 ? void 0 : (_id$split = id.split('-')) === null || _id$split === void 0 ? void 0 : _id$split[0];
|
|
105
101
|
var x = positionX || 0;
|
|
106
102
|
var y = positionY || 0;
|
|
107
|
-
var nodeMeta = nodeTypeMeta === null || nodeTypeMeta === void 0 ? void 0 : nodeTypeMeta[nodeType];
|
|
108
103
|
return _objectSpread(_objectSpread({}, nodeData), {}, {
|
|
109
104
|
x: x,
|
|
110
105
|
y: y,
|
|
111
106
|
type: 'node',
|
|
112
107
|
id: (nodeInstanceId || id).toString(),
|
|
113
|
-
width: (nodeMeta === null || nodeMeta === void 0 ? void 0 : nodeMeta.width) || NODE_WIDTH,
|
|
114
|
-
height: (nodeMeta === null || nodeMeta === void 0 ? void 0 : nodeMeta.height) || NODE_HEIGHT,
|
|
115
108
|
data: _objectSpread(_objectSpread({}, nodeData), {}, {
|
|
116
109
|
type: 'node',
|
|
117
110
|
x: x,
|
|
@@ -192,7 +185,7 @@ export function formatGroupInfoToNodeMeta(groupData, nodeData, edges) {
|
|
|
192
185
|
});
|
|
193
186
|
var portItems = [];
|
|
194
187
|
|
|
195
|
-
if (edgesFromOutside
|
|
188
|
+
if (edgesFromOutside !== null && edgesFromOutside !== void 0 && edgesFromOutside.length) {
|
|
196
189
|
var portId = Date.now().toString();
|
|
197
190
|
portItems.push({
|
|
198
191
|
group: 'in',
|
|
@@ -226,7 +219,7 @@ export function formatGroupInfoToNodeMeta(groupData, nodeData, edges) {
|
|
|
226
219
|
});
|
|
227
220
|
}
|
|
228
221
|
|
|
229
|
-
if (edgesToOutside
|
|
222
|
+
if (edgesToOutside !== null && edgesToOutside !== void 0 && edgesToOutside.length) {
|
|
230
223
|
var _portId = (Date.now() + 1).toString();
|
|
231
224
|
|
|
232
225
|
portItems.push({
|
|
@@ -351,7 +344,7 @@ export function formatGraphData() {
|
|
|
351
344
|
nodes: [].concat(_toConsumableArray(formattedNodes), _toConsumableArray(formattedGroups.filter(function (group) {
|
|
352
345
|
var _group$data, _group$data$includedN;
|
|
353
346
|
|
|
354
|
-
return !!(group
|
|
347
|
+
return !!(group !== null && group !== void 0 && (_group$data = group.data) !== null && _group$data !== void 0 && (_group$data$includedN = _group$data.includedNodes) !== null && _group$data$includedN !== void 0 && _group$data$includedN.length);
|
|
355
348
|
}))),
|
|
356
349
|
edges: formattedEdges
|
|
357
350
|
};
|