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,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _reactSvg = require("react-svg");
|
|
13
|
+
|
|
14
|
+
var _ = require("../../..");
|
|
15
|
+
|
|
16
|
+
var _useObservableState3 = require("../../../../hooks/useObservableState");
|
|
17
|
+
|
|
18
|
+
require("./node-element.less");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
+
|
|
24
|
+
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."); }
|
|
25
|
+
|
|
26
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
|
+
|
|
28
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
29
|
+
|
|
30
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
31
|
+
|
|
32
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
|
+
|
|
34
|
+
var NodeElement = function NodeElement(props) {
|
|
35
|
+
var node = props.node,
|
|
36
|
+
experimentId = props.experimentId;
|
|
37
|
+
var data = (node === null || node === void 0 ? void 0 : node.getData()) || {};
|
|
38
|
+
var name = data.name,
|
|
39
|
+
imgUrl = data.imgUrl,
|
|
40
|
+
id = data.id,
|
|
41
|
+
nodeData = data.nodeData;
|
|
42
|
+
var expGraph = (0, _.useExperimentGraph)(experimentId);
|
|
43
|
+
|
|
44
|
+
var _useObservableState = (0, _useObservableState3.useObservableState)(function () {
|
|
45
|
+
return expGraph.activeNodeInstance$;
|
|
46
|
+
}),
|
|
47
|
+
_useObservableState2 = _slicedToArray(_useObservableState, 1),
|
|
48
|
+
activeNodeInstance = _useObservableState2[0];
|
|
49
|
+
|
|
50
|
+
var nodeId = activeNodeInstance && activeNodeInstance.id;
|
|
51
|
+
var nodeFormData = typeof nodeData === 'string' ? JSON.parse(nodeData) : nodeData;
|
|
52
|
+
console.log('NodeElement', data);
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
+
className: (0, _classnames.default)('node-element', {
|
|
55
|
+
selected: !!nodeId && nodeId === id
|
|
56
|
+
})
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
58
|
+
src: imgUrl,
|
|
59
|
+
beforeInjection: function beforeInjection(svg) {
|
|
60
|
+
svg.setAttribute('viewBox', '0 0 30 30');
|
|
61
|
+
},
|
|
62
|
+
className: "icon"
|
|
63
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
+
className: "name"
|
|
65
|
+
}, (nodeFormData === null || nodeFormData === void 0 ? void 0 : nodeFormData.realName) || name));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var _default = NodeElement;
|
|
69
|
+
exports.default = _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import "../style.less";
|
|
2
|
+
|
|
3
|
+
.node-element {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
width: 180px;
|
|
9
|
+
height: 43px;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
background-color: fade(@node-element-primary-color, 20%);
|
|
12
|
+
border: 1px solid @node-element-primary-color;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
|
|
15
|
+
&.selected,
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: @node-element-primary-color;
|
|
18
|
+
.icon {
|
|
19
|
+
svg path {
|
|
20
|
+
fill: #fff;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.name {
|
|
24
|
+
color: #ffffff;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.icon {
|
|
28
|
+
width: 20px !important;
|
|
29
|
+
height: 20px !important;
|
|
30
|
+
margin-right: 12px !important;
|
|
31
|
+
svg {
|
|
32
|
+
width: 20px;
|
|
33
|
+
height: 20px;
|
|
34
|
+
path {
|
|
35
|
+
fill: @node-element-primary-color;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.name {
|
|
41
|
+
overflow-x: hidden;
|
|
42
|
+
color: @node-element-primary-color;
|
|
43
|
+
//font-size: 12px;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Node } from '@antv/x6';
|
|
3
|
-
import './
|
|
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;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _reactSvg = require("react-svg");
|
|
13
|
+
|
|
14
|
+
var _ = require("../../..");
|
|
15
|
+
|
|
16
|
+
var _useObservableState3 = require("../../../../hooks/useObservableState");
|
|
17
|
+
|
|
18
|
+
var _rhombus = _interopRequireDefault(require("./images/rhombus.svg"));
|
|
19
|
+
|
|
20
|
+
require("./condition-element.less");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
|
|
26
|
+
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."); }
|
|
27
|
+
|
|
28
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
29
|
+
|
|
30
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
|
+
|
|
32
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
|
+
|
|
34
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
|
|
36
|
+
var ConditionElement = function ConditionElement(props) {
|
|
37
|
+
var node = props.node,
|
|
38
|
+
experimentId = props.experimentId;
|
|
39
|
+
var data = (node === null || node === void 0 ? void 0 : node.getData()) || {};
|
|
40
|
+
var name = data.name,
|
|
41
|
+
id = data.id,
|
|
42
|
+
imgUrl = data.imgUrl,
|
|
43
|
+
nodeData = data.nodeData;
|
|
44
|
+
var expGraph = (0, _.useExperimentGraph)(experimentId);
|
|
45
|
+
|
|
46
|
+
var _useObservableState = (0, _useObservableState3.useObservableState)(function () {
|
|
47
|
+
return expGraph.activeNodeInstance$;
|
|
48
|
+
}),
|
|
49
|
+
_useObservableState2 = _slicedToArray(_useObservableState, 1),
|
|
50
|
+
activeNodeInstance = _useObservableState2[0];
|
|
51
|
+
|
|
52
|
+
var nodeId = activeNodeInstance && activeNodeInstance.id;
|
|
53
|
+
var nodeFormData = typeof nodeData === 'string' ? JSON.parse(nodeData) : nodeData;
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
+
className: (0, _classnames.default)('node-rhombus-element', {
|
|
56
|
+
selected: !!nodeId && nodeId === id
|
|
57
|
+
})
|
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
59
|
+
src: _rhombus.default,
|
|
60
|
+
className: (0, _classnames.default)('node-rhombus-element-bg'),
|
|
61
|
+
beforeInjection: function beforeInjection(svg) {
|
|
62
|
+
svg.setAttribute('width', '259px');
|
|
63
|
+
svg.setAttribute('height', '110px'); // svg.setAttribute('viewBox', '0 0 120 800');
|
|
64
|
+
}
|
|
65
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
+
className: "rhombus-inner"
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
68
|
+
src: imgUrl,
|
|
69
|
+
className: "icon",
|
|
70
|
+
beforeInjection: function beforeInjection(svg) {
|
|
71
|
+
svg.setAttribute('width', '10px');
|
|
72
|
+
svg.setAttribute('height', '10px');
|
|
73
|
+
svg.setAttribute('viewBox', '0 0 30 30');
|
|
74
|
+
}
|
|
75
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
className: "name"
|
|
77
|
+
}, (nodeFormData === null || nodeFormData === void 0 ? void 0 : nodeFormData.realName) || name)));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var _default = ConditionElement;
|
|
81
|
+
exports.default = _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
|
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
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _x = require("@antv/x6");
|
|
11
|
+
|
|
12
|
+
var _node = _interopRequireDefault(require("../../../../graph-model/node"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
+
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
+
|
|
26
|
+
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); }; }
|
|
27
|
+
|
|
28
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
29
|
+
|
|
30
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
+
|
|
32
|
+
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; } }
|
|
33
|
+
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
+
|
|
36
|
+
var CONDITION_WIDTH = 260;
|
|
37
|
+
var CONDITION_HEIGHT = 107;
|
|
38
|
+
|
|
39
|
+
var ConditionJudgment = /*#__PURE__*/function (_BaseNode) {
|
|
40
|
+
_inherits(ConditionJudgment, _BaseNode);
|
|
41
|
+
|
|
42
|
+
var _super = _createSuper(ConditionJudgment);
|
|
43
|
+
|
|
44
|
+
function ConditionJudgment() {
|
|
45
|
+
_classCallCheck(this, ConditionJudgment);
|
|
46
|
+
|
|
47
|
+
return _super.apply(this, arguments);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_createClass(ConditionJudgment, [{
|
|
51
|
+
key: "getInPorts",
|
|
52
|
+
value: function getInPorts() {
|
|
53
|
+
return this.getPortsByGroup('in');
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
key: "getOutPorts",
|
|
57
|
+
value: function getOutPorts() {
|
|
58
|
+
return this.getPortsByGroup('out');
|
|
59
|
+
}
|
|
60
|
+
}]);
|
|
61
|
+
|
|
62
|
+
return ConditionJudgment;
|
|
63
|
+
}(_node.default);
|
|
64
|
+
|
|
65
|
+
exports.default = ConditionJudgment;
|
|
66
|
+
ConditionJudgment.config({
|
|
67
|
+
width: CONDITION_WIDTH,
|
|
68
|
+
height: CONDITION_HEIGHT,
|
|
69
|
+
shape: 'condition-judgement-element',
|
|
70
|
+
ports: {
|
|
71
|
+
groups: {
|
|
72
|
+
in: {
|
|
73
|
+
position: {
|
|
74
|
+
name: 'top'
|
|
75
|
+
},
|
|
76
|
+
zIndex: 2
|
|
77
|
+
},
|
|
78
|
+
out: {
|
|
79
|
+
position: {
|
|
80
|
+
name: 'bottom'
|
|
81
|
+
},
|
|
82
|
+
zIndex: 2
|
|
83
|
+
},
|
|
84
|
+
outLeft: {
|
|
85
|
+
position: {
|
|
86
|
+
name: 'left'
|
|
87
|
+
},
|
|
88
|
+
zIndex: 2
|
|
89
|
+
},
|
|
90
|
+
outRight: {
|
|
91
|
+
position: {
|
|
92
|
+
name: 'right'
|
|
93
|
+
},
|
|
94
|
+
zIndex: 2
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
attrs: {
|
|
99
|
+
body: {
|
|
100
|
+
magnet: false,
|
|
101
|
+
fill: 'none',
|
|
102
|
+
stroke: 'none',
|
|
103
|
+
refWidth: '100%',
|
|
104
|
+
refHeight: '100%',
|
|
105
|
+
zIndex: 1
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
portMarkup: [{
|
|
109
|
+
tagName: 'foreignObject',
|
|
110
|
+
selector: 'fo',
|
|
111
|
+
attrs: {
|
|
112
|
+
width: 8,
|
|
113
|
+
height: 8,
|
|
114
|
+
x: -4,
|
|
115
|
+
y: -4,
|
|
116
|
+
zIndex: 10,
|
|
117
|
+
// magnet决定是否可交互
|
|
118
|
+
magnet: 'true'
|
|
119
|
+
},
|
|
120
|
+
children: [{
|
|
121
|
+
ns: _x.Dom.ns.xhtml,
|
|
122
|
+
tagName: 'body',
|
|
123
|
+
selector: 'foBody',
|
|
124
|
+
attrs: {
|
|
125
|
+
xmlns: _x.Dom.ns.xhtml
|
|
126
|
+
},
|
|
127
|
+
style: {
|
|
128
|
+
width: '100%',
|
|
129
|
+
height: '100%'
|
|
130
|
+
},
|
|
131
|
+
children: [{
|
|
132
|
+
tagName: 'span',
|
|
133
|
+
selector: 'content',
|
|
134
|
+
style: {
|
|
135
|
+
width: '100%',
|
|
136
|
+
height: '100%'
|
|
137
|
+
}
|
|
138
|
+
}]
|
|
139
|
+
}]
|
|
140
|
+
}]
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
_x.Graph.registerNode('condition-judgement-element', ConditionJudgment);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ApplicationNode", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _applicationNode.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "CommonNode", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _commonNode.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ConditionJudgment", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _conditionNode.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "LogicalNode", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _logicalNode.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
var _applicationNode = _interopRequireDefault(require("./application-node"));
|
|
32
|
+
|
|
33
|
+
var _commonNode = _interopRequireDefault(require("./common-node"));
|
|
34
|
+
|
|
35
|
+
var _conditionNode = _interopRequireDefault(require("./condition-node"));
|
|
36
|
+
|
|
37
|
+
var _logicalNode = _interopRequireDefault(require("./logical-node"));
|
|
38
|
+
|
|
39
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -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
|
+
}
|