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
|
@@ -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,25 +12,33 @@ 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 { COMMONLY_USED } from "../../../node-types";
|
|
19
|
+
import ORSvg from "./images/OR.svg";
|
|
20
|
+
import ANDSvg from "./images/AND.svg";
|
|
21
|
+
import XORSvg from "./images/XOR.svg";
|
|
22
|
+
import lockingSvg from "./images/locking.svg";
|
|
23
|
+
import unlockSvg from "./images/unlock.svg";
|
|
21
24
|
import "./logical-element.less";
|
|
22
|
-
import { useExperimentGraph } from "../../../pages/rx-models/experiment-graph";
|
|
23
|
-
import { useObservableState } from "../../../hooks/useObservableState";
|
|
24
25
|
var operatorUrl = {
|
|
25
|
-
'|':
|
|
26
|
-
'&':
|
|
27
|
-
'^':
|
|
26
|
+
'|': ORSvg,
|
|
27
|
+
'&': ANDSvg,
|
|
28
|
+
'^': XORSvg,
|
|
29
|
+
LOCK: lockingSvg,
|
|
30
|
+
UNLOCK: unlockSvg
|
|
28
31
|
};
|
|
29
32
|
|
|
30
|
-
var
|
|
33
|
+
var LogicalElement = function LogicalElement(props) {
|
|
34
|
+
var _data$id, _data$id$split;
|
|
35
|
+
|
|
31
36
|
var node = props.node,
|
|
32
37
|
experimentId = props.experimentId;
|
|
33
38
|
var data = (node === null || node === void 0 ? void 0 : node.getData()) || {};
|
|
34
39
|
var id = data.id,
|
|
35
|
-
imgUrl = data.imgUrl
|
|
36
|
-
|
|
40
|
+
imgUrl = data.imgUrl;
|
|
41
|
+
var nodeData = typeof (data === null || data === void 0 ? void 0 : data.nodeData) === 'string' ? JSON.parse(data.nodeData) : data.nodeData;
|
|
37
42
|
var operator = nodeData === null || nodeData === void 0 ? void 0 : nodeData.operator;
|
|
38
43
|
var expGraph = useExperimentGraph(experimentId);
|
|
39
44
|
|
|
@@ -44,16 +49,28 @@ var ConditionElement = function ConditionElement(props) {
|
|
|
44
49
|
activeNodeInstance = _useObservableState2[0];
|
|
45
50
|
|
|
46
51
|
var nodeId = activeNodeInstance && activeNodeInstance.id;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
var nodeType = data === null || data === void 0 ? void 0 : (_data$id = data.id) === null || _data$id === void 0 ? void 0 : (_data$id$split = _data$id.split('-')) === null || _data$id$split === void 0 ? void 0 : _data$id$split[0];
|
|
53
|
+
console.log('operatorxxxxxx666', nodeType, operator, data);
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
50
55
|
className: classNames('logical-element', {
|
|
51
56
|
selected: !!nodeId && nodeId === id
|
|
52
57
|
})
|
|
53
58
|
}, /*#__PURE__*/React.createElement(ReactSVG, {
|
|
54
59
|
src: operator ? (operatorUrl === null || operatorUrl === void 0 ? void 0 : operatorUrl[operator]) || imgUrl : imgUrl,
|
|
55
|
-
className: "icon"
|
|
56
|
-
|
|
60
|
+
className: "icon",
|
|
61
|
+
style: {
|
|
62
|
+
marginLeft: operator === 'UNLOCK' ? 4 : 0
|
|
63
|
+
},
|
|
64
|
+
beforeInjection: function beforeInjection(svg) {
|
|
65
|
+
if (nodeType === COMMONLY_USED.LOCKED) {
|
|
66
|
+
svg.setAttribute('width', operator === 'UNLOCK' ? '35px' : '25px');
|
|
67
|
+
svg.setAttribute('height', operator === 'UNLOCK' ? '35px' : '30px');
|
|
68
|
+
svg.setAttribute('viewBox', operator === 'UNLOCK' ? '0 0 35 35' : '0 0 25 30');
|
|
69
|
+
} else {
|
|
70
|
+
svg.setAttribute('viewBox', '0 0 28 28');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
57
74
|
};
|
|
58
75
|
|
|
59
|
-
export default
|
|
76
|
+
export default LogicalElement;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@node-element-primary-color: #00A6FF;
|
|
5
|
-
@logical-bg-edg: 50px;
|
|
6
|
-
@logical-edg: 30px;
|
|
1
|
+
@import "../style.less";
|
|
7
2
|
|
|
8
3
|
.logical-element {
|
|
9
4
|
display: flex;
|
|
@@ -22,7 +17,7 @@
|
|
|
22
17
|
background-color: @node-element-primary-color;
|
|
23
18
|
.icon {
|
|
24
19
|
svg path {
|
|
25
|
-
fill: #fff;
|
|
20
|
+
fill: #fff !important;
|
|
26
21
|
}
|
|
27
22
|
}
|
|
28
23
|
.name {
|
|
@@ -32,11 +27,11 @@
|
|
|
32
27
|
.icon {
|
|
33
28
|
width: @logical-edg;
|
|
34
29
|
height: @logical-edg;
|
|
35
|
-
svg {
|
|
30
|
+
div, svg {
|
|
36
31
|
width: @logical-edg;
|
|
37
32
|
height: @logical-edg;
|
|
38
33
|
path {
|
|
39
|
-
fill: @node-element-primary-color;
|
|
34
|
+
fill: @node-element-primary-color !important;
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
}
|
|
@@ -1,83 +1,87 @@
|
|
|
1
|
-
interface NodeParams {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
imgUrl: string;
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
1
|
+
interface NodeParams {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
imgUrl: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
applicationImgUrl?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const createNodePorts: (id: string, timestamp: string) => {
|
|
10
|
+
inPorts: {
|
|
11
|
+
id: string;
|
|
12
|
+
sequence: number;
|
|
13
|
+
}[];
|
|
14
|
+
outPorts: ({
|
|
15
|
+
id: string;
|
|
16
|
+
sequence: number;
|
|
17
|
+
group?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
sequence: number;
|
|
21
|
+
group: string;
|
|
22
|
+
})[];
|
|
23
|
+
};
|
|
24
|
+
export declare const createNode: ({ id, name, imgUrl, applicationImgUrl, x, y }: NodeParams) => {
|
|
25
|
+
inPorts: {
|
|
26
|
+
id: string;
|
|
27
|
+
sequence: number;
|
|
28
|
+
}[];
|
|
29
|
+
outPorts: ({
|
|
30
|
+
id: string;
|
|
31
|
+
sequence: number;
|
|
32
|
+
group?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
id: string;
|
|
35
|
+
sequence: number;
|
|
36
|
+
group: string;
|
|
37
|
+
})[];
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
imgUrl: string;
|
|
41
|
+
applicationImgUrl: string | undefined;
|
|
42
|
+
positionX: number;
|
|
43
|
+
positionY: number;
|
|
44
|
+
};
|
|
45
|
+
export declare const copyNode: ({ id, name, imgUrl, applicationImgUrl, x, y }: NodeParams) => {
|
|
46
|
+
inPorts: {
|
|
47
|
+
id: string;
|
|
48
|
+
sequence: number;
|
|
49
|
+
}[];
|
|
50
|
+
outPorts: ({
|
|
51
|
+
id: string;
|
|
52
|
+
sequence: number;
|
|
53
|
+
group?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
id: string;
|
|
56
|
+
sequence: number;
|
|
57
|
+
group: string;
|
|
58
|
+
})[];
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
imgUrl: string;
|
|
62
|
+
applicationImgUrl: string | undefined;
|
|
63
|
+
positionX: number;
|
|
64
|
+
positionY: number;
|
|
65
|
+
};
|
|
66
|
+
export declare const addNode: (params: NodeParams) => {
|
|
67
|
+
inPorts: {
|
|
68
|
+
id: string;
|
|
69
|
+
sequence: number;
|
|
70
|
+
}[];
|
|
71
|
+
outPorts: ({
|
|
72
|
+
id: string;
|
|
73
|
+
sequence: number;
|
|
74
|
+
group?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
id: string;
|
|
77
|
+
sequence: number;
|
|
78
|
+
group: string;
|
|
79
|
+
})[];
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
imgUrl: string;
|
|
83
|
+
applicationImgUrl: string | undefined;
|
|
84
|
+
positionX: number;
|
|
85
|
+
positionY: number;
|
|
86
|
+
};
|
|
87
|
+
export {};
|
|
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
7
|
import random from 'lodash/random';
|
|
8
|
-
import { SIGN_OPERATION } from "../
|
|
8
|
+
import { SIGN_OPERATION } from "../node-types";
|
|
9
9
|
export var createNodePorts = function createNodePorts(id, timestamp) {
|
|
10
10
|
// 条件判断
|
|
11
11
|
if (id === SIGN_OPERATION.CONDITION) {
|
|
@@ -15,14 +15,14 @@ export var createNodePorts = function createNodePorts(id, timestamp) {
|
|
|
15
15
|
sequence: 1
|
|
16
16
|
}],
|
|
17
17
|
outPorts: [{
|
|
18
|
-
id: id ? "".concat(id, "-
|
|
18
|
+
id: id ? "".concat(id, "-IS-").concat(timestamp) : "out-".concat(timestamp),
|
|
19
19
|
sequence: 1
|
|
20
20
|
}, {
|
|
21
|
-
id: id ? "".concat(id, "-
|
|
21
|
+
id: id ? "".concat(id, "-NOT-LEFT-").concat(timestamp) : "out-".concat(timestamp),
|
|
22
22
|
sequence: 2,
|
|
23
23
|
group: 'outLeft'
|
|
24
24
|
}, {
|
|
25
|
-
id: id ? "".concat(id, "-
|
|
25
|
+
id: id ? "".concat(id, "-NOT-RIGHT-").concat(timestamp) : "out-".concat(timestamp),
|
|
26
26
|
sequence: 3,
|
|
27
27
|
group: 'outRight'
|
|
28
28
|
}]
|
|
@@ -67,6 +67,7 @@ export var createNode = function createNode(_ref) {
|
|
|
67
67
|
var id = _ref.id,
|
|
68
68
|
name = _ref.name,
|
|
69
69
|
imgUrl = _ref.imgUrl,
|
|
70
|
+
applicationImgUrl = _ref.applicationImgUrl,
|
|
70
71
|
x = _ref.x,
|
|
71
72
|
y = _ref.y;
|
|
72
73
|
var timestamp = "".concat(Date.now());
|
|
@@ -75,6 +76,7 @@ export var createNode = function createNode(_ref) {
|
|
|
75
76
|
id: id ? "".concat(id, "-").concat(timestamp) : "".concat(timestamp),
|
|
76
77
|
name: name,
|
|
77
78
|
imgUrl: imgUrl,
|
|
79
|
+
applicationImgUrl: applicationImgUrl,
|
|
78
80
|
positionX: x,
|
|
79
81
|
positionY: y
|
|
80
82
|
}, portsParams);
|
|
@@ -83,12 +85,14 @@ export var copyNode = function copyNode(_ref2) {
|
|
|
83
85
|
var id = _ref2.id,
|
|
84
86
|
name = _ref2.name,
|
|
85
87
|
imgUrl = _ref2.imgUrl,
|
|
88
|
+
applicationImgUrl = _ref2.applicationImgUrl,
|
|
86
89
|
x = _ref2.x,
|
|
87
90
|
y = _ref2.y;
|
|
88
91
|
return createNode({
|
|
89
92
|
id: id,
|
|
90
93
|
name: name,
|
|
91
94
|
imgUrl: imgUrl,
|
|
95
|
+
applicationImgUrl: applicationImgUrl,
|
|
92
96
|
x: x + 200 + random(20, false),
|
|
93
97
|
y: y + 15 + random(20, false)
|
|
94
98
|
});
|
|
@@ -1,82 +1,79 @@
|
|
|
1
|
-
import type { Subscription } from 'rxjs';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import type { ConnectionRemovedArgs } from
|
|
4
|
-
import { GraphCore } from
|
|
5
|
-
import { CommonNode } from '
|
|
6
|
-
import
|
|
7
|
-
import type
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
declare
|
|
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
|
-
export
|
|
80
|
-
export declare const useExperimentGraph: (experimentId: string) => ExperimentGraph;
|
|
81
|
-
export declare const useUnmountExperimentGraph: (experimentId: string) => void;
|
|
82
|
-
export {};
|
|
1
|
+
import type { Subscription } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import type { ConnectionRemovedArgs } from "../graph-core";
|
|
4
|
+
import { GraphCore } from "../graph-core";
|
|
5
|
+
import { CommonNode } from './graph-model/node';
|
|
6
|
+
import type BaseNode from "../graph-model/node";
|
|
7
|
+
import type BaseEdge from "../graph-model/edge";
|
|
8
|
+
import GuideEdge from "../graph-model/edge";
|
|
9
|
+
import type { NExecutionStatus, NExperiment, NExperimentGraph } from "../graph-core/typing";
|
|
10
|
+
import { formatGraphData } from "../graph-core/graph-util";
|
|
11
|
+
declare type NodeMeta = ReturnType<typeof formatGraphData>['nodes'][number];
|
|
12
|
+
declare type EdgeMeta = ReturnType<typeof formatGraphData>['edges'][number];
|
|
13
|
+
declare class ExperimentGraph extends GraphCore<BaseNode, BaseEdge> {
|
|
14
|
+
nodeMetas?: NodeMeta[];
|
|
15
|
+
edgeMetas?: EdgeMeta[];
|
|
16
|
+
pendingNodes: BaseNode[];
|
|
17
|
+
experimentId: string;
|
|
18
|
+
loading$: BehaviorSubject<boolean>;
|
|
19
|
+
experiment$: BehaviorSubject<NExperiment.Experiment>;
|
|
20
|
+
experimentGraph$: BehaviorSubject<NExperimentGraph.ExperimentGraph>;
|
|
21
|
+
activeNodeInstance$: BehaviorSubject<NExecutionStatus.ActiveNode>;
|
|
22
|
+
experimentGraphSub?: Subscription;
|
|
23
|
+
executionStatusQuerySub?: Subscription;
|
|
24
|
+
reRenderSub?: Subscription;
|
|
25
|
+
constructor(expId: string);
|
|
26
|
+
initialize(): Promise<void>;
|
|
27
|
+
resetGraphData(): Promise<void>;
|
|
28
|
+
initPreviewData(graphRes: any): Promise<void>;
|
|
29
|
+
loadExperimentGraph(graphRes: any): Promise<void>;
|
|
30
|
+
updateExperimentGraph(nodes?: NExperimentGraph.Node[], links?: NExperimentGraph.Link[]): Promise<void>;
|
|
31
|
+
delExperimentGraphElement(nodes?: string[], links?: NExperimentGraph.Link[]): Promise<void>;
|
|
32
|
+
isGraphReady(): boolean;
|
|
33
|
+
renderGraph: (wrapper: HTMLElement, container: HTMLElement, options?: any) => void;
|
|
34
|
+
registerEdge: () => void;
|
|
35
|
+
createTypeNodeMeta: (nodeMeta: NodeMeta, nodeType: any, experimentId: string) => BaseNode | undefined;
|
|
36
|
+
renderNode(nodeMeta: NodeMeta): BaseNode | undefined;
|
|
37
|
+
afterLayout(): void;
|
|
38
|
+
renderEdge(edgeMeta: EdgeMeta): BaseEdge | undefined;
|
|
39
|
+
validateContextMenu: (info: NExperimentGraph.ContextMenuInfo) => boolean;
|
|
40
|
+
onSelectNodes(nodes: BaseNode[]): void;
|
|
41
|
+
onClearSelectNodes(): void;
|
|
42
|
+
handlerResize: (e: CustomEvent<string>) => void;
|
|
43
|
+
onConnectNode(args: any): Promise<{
|
|
44
|
+
success: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
onConnectionRemoved(args: ConnectionRemovedArgs): void;
|
|
47
|
+
onMoveNodeStart(args: any): void;
|
|
48
|
+
onMoveNodes(movedNodes: any[]): Promise<void>;
|
|
49
|
+
onDeleteNodeOrEdge(args: {
|
|
50
|
+
nodes: BaseNode[];
|
|
51
|
+
edges: GuideEdge[];
|
|
52
|
+
}): void;
|
|
53
|
+
validateNodeCopyable(cell: BaseNode): boolean;
|
|
54
|
+
onCopyNode(node: CommonNode): void;
|
|
55
|
+
setActiveAlgoData: (data: any) => void;
|
|
56
|
+
requestAddNode: (param: {
|
|
57
|
+
nodeMeta: any;
|
|
58
|
+
clientX: number;
|
|
59
|
+
clientY: number;
|
|
60
|
+
}) => Promise<any>;
|
|
61
|
+
requestDeleteNodes: (ids: string[] | string) => Promise<{
|
|
62
|
+
success: boolean;
|
|
63
|
+
}>;
|
|
64
|
+
requestDeleteEdges: (edges: BaseEdge | BaseEdge[]) => Promise<{
|
|
65
|
+
success: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
undoDeleteNode: () => Promise<void>;
|
|
68
|
+
updateNodeData: (nodeInstanceId: string, nodeData: any) => Promise<void>;
|
|
69
|
+
zoomGraph: (factor: number) => void;
|
|
70
|
+
zoomGraphToFit: () => void;
|
|
71
|
+
zoomGraphRealSize: () => void;
|
|
72
|
+
deleteEdgeFromContextMenu: (edge: BaseEdge) => Promise<void>;
|
|
73
|
+
unSelectNode: () => void;
|
|
74
|
+
dispose(): void;
|
|
75
|
+
}
|
|
76
|
+
export declare const gModelMap: Map<string, ExperimentGraph>;
|
|
77
|
+
export declare const useExperimentGraph: (experimentId: string) => ExperimentGraph;
|
|
78
|
+
export declare const useUnmountExperimentGraph: (experimentId: string) => void;
|
|
79
|
+
export {};
|