@sunspirytus/xflow-core 1.0.52
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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/index.css +108 -0
- package/dist/index.umd.js +35 -0
- package/dist/index.umd.js.map +1 -0
- package/es/antd-icons/index.d.ts +20 -0
- package/es/antd-icons/index.js +29 -0
- package/es/antd-icons/index.js.map +1 -0
- package/es/command/__test__/graph-command.spec.d.ts +1 -0
- package/es/command/__test__/graph-command.spec.js +109 -0
- package/es/command/__test__/graph-command.spec.js.map +1 -0
- package/es/command/graph-command.d.ts +177 -0
- package/es/command/graph-command.js +300 -0
- package/es/command/graph-command.js.map +1 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.js +6 -0
- package/es/command/index.js.map +1 -0
- package/es/command/interface.d.ts +221 -0
- package/es/command/interface.js +23 -0
- package/es/command/interface.js.map +1 -0
- package/es/command/module.d.ts +2 -0
- package/es/command/module.js +15 -0
- package/es/command/module.js.map +1 -0
- package/es/command-contributions/cmd-context.d.ts +76 -0
- package/es/command-contributions/cmd-context.js +123 -0
- package/es/command-contributions/cmd-context.js.map +1 -0
- package/es/command-contributions/command-contribution.d.ts +23 -0
- package/es/command-contributions/command-contribution.js +182 -0
- package/es/command-contributions/command-contribution.js.map +1 -0
- package/es/command-contributions/components/context.d.ts +11 -0
- package/es/command-contributions/components/context.js +86 -0
- package/es/command-contributions/components/context.js.map +1 -0
- package/es/command-contributions/components/index.d.ts +11 -0
- package/es/command-contributions/components/index.js +32 -0
- package/es/command-contributions/components/index.js.map +1 -0
- package/es/command-contributions/config.d.ts +39 -0
- package/es/command-contributions/config.js +64 -0
- package/es/command-contributions/config.js.map +1 -0
- package/es/command-contributions/constant.d.ts +98 -0
- package/es/command-contributions/constant.js +272 -0
- package/es/command-contributions/constant.js.map +1 -0
- package/es/command-contributions/edge/edge-add.d.ts +83 -0
- package/es/command-contributions/edge/edge-add.js +134 -0
- package/es/command-contributions/edge/edge-add.js.map +1 -0
- package/es/command-contributions/edge/edge-back.d.ts +27 -0
- package/es/command-contributions/edge/edge-back.js +72 -0
- package/es/command-contributions/edge/edge-back.js.map +1 -0
- package/es/command-contributions/edge/edge-del.d.ts +67 -0
- package/es/command-contributions/edge/edge-del.js +129 -0
- package/es/command-contributions/edge/edge-del.js.map +1 -0
- package/es/command-contributions/edge/edge-front.d.ts +27 -0
- package/es/command-contributions/edge/edge-front.js +72 -0
- package/es/command-contributions/edge/edge-front.js.map +1 -0
- package/es/command-contributions/edge/edge-highlight.d.ts +32 -0
- package/es/command-contributions/edge/edge-highlight.js +92 -0
- package/es/command-contributions/edge/edge-highlight.js.map +1 -0
- package/es/command-contributions/edge/edge-update.d.ts +46 -0
- package/es/command-contributions/edge/edge-update.js +99 -0
- package/es/command-contributions/edge/edge-update.js.map +1 -0
- package/es/command-contributions/edge/index.d.ts +50 -0
- package/es/command-contributions/edge/index.js +19 -0
- package/es/command-contributions/edge/index.js.map +1 -0
- package/es/command-contributions/graph/graph-add-tool.d.ts +49 -0
- package/es/command-contributions/graph/graph-add-tool.js +74 -0
- package/es/command-contributions/graph/graph-add-tool.js.map +1 -0
- package/es/command-contributions/graph/graph-cmd-redo.d.ts +40 -0
- package/es/command-contributions/graph/graph-cmd-redo.js +77 -0
- package/es/command-contributions/graph/graph-cmd-redo.js.map +1 -0
- package/es/command-contributions/graph/graph-cmd-undo.d.ts +36 -0
- package/es/command-contributions/graph/graph-cmd-undo.js +77 -0
- package/es/command-contributions/graph/graph-cmd-undo.js.map +1 -0
- package/es/command-contributions/graph/graph-copy.d.ts +39 -0
- package/es/command-contributions/graph/graph-copy.js +102 -0
- package/es/command-contributions/graph/graph-copy.js.map +1 -0
- package/es/command-contributions/graph/graph-del-tool.d.ts +47 -0
- package/es/command-contributions/graph/graph-del-tool.js +68 -0
- package/es/command-contributions/graph/graph-del-tool.js.map +1 -0
- package/es/command-contributions/graph/graph-fulllscreen.d.ts +37 -0
- package/es/command-contributions/graph/graph-fulllscreen.js +84 -0
- package/es/command-contributions/graph/graph-fulllscreen.js.map +1 -0
- package/es/command-contributions/graph/graph-history-redo.d.ts +33 -0
- package/es/command-contributions/graph/graph-history-redo.js +69 -0
- package/es/command-contributions/graph/graph-history-redo.js.map +1 -0
- package/es/command-contributions/graph/graph-history-reset.d.ts +33 -0
- package/es/command-contributions/graph/graph-history-reset.js +59 -0
- package/es/command-contributions/graph/graph-history-reset.js.map +1 -0
- package/es/command-contributions/graph/graph-history-toggle.d.ts +35 -0
- package/es/command-contributions/graph/graph-history-toggle.js +75 -0
- package/es/command-contributions/graph/graph-history-toggle.js.map +1 -0
- package/es/command-contributions/graph/graph-history-undo.d.ts +35 -0
- package/es/command-contributions/graph/graph-history-undo.js +69 -0
- package/es/command-contributions/graph/graph-history-undo.js.map +1 -0
- package/es/command-contributions/graph/graph-layout.d.ts +43 -0
- package/es/command-contributions/graph/graph-layout.js +71 -0
- package/es/command-contributions/graph/graph-layout.js.map +1 -0
- package/es/command-contributions/graph/graph-load-data.d.ts +37 -0
- package/es/command-contributions/graph/graph-load-data.js +68 -0
- package/es/command-contributions/graph/graph-load-data.js.map +1 -0
- package/es/command-contributions/graph/graph-meta.d.ts +47 -0
- package/es/command-contributions/graph/graph-meta.js +78 -0
- package/es/command-contributions/graph/graph-meta.js.map +1 -0
- package/es/command-contributions/graph/graph-paste.d.ts +52 -0
- package/es/command-contributions/graph/graph-paste.js +129 -0
- package/es/command-contributions/graph/graph-paste.js.map +1 -0
- package/es/command-contributions/graph/graph-render.d.ts +53 -0
- package/es/command-contributions/graph/graph-render.js +249 -0
- package/es/command-contributions/graph/graph-render.js.map +1 -0
- package/es/command-contributions/graph/graph-resize.d.ts +40 -0
- package/es/command-contributions/graph/graph-resize.js +75 -0
- package/es/command-contributions/graph/graph-resize.js.map +1 -0
- package/es/command-contributions/graph/graph-save-data.d.ts +43 -0
- package/es/command-contributions/graph/graph-save-data.js +101 -0
- package/es/command-contributions/graph/graph-save-data.js.map +1 -0
- package/es/command-contributions/graph/graph-toggle-multi-select.d.ts +38 -0
- package/es/command-contributions/graph/graph-toggle-multi-select.js +96 -0
- package/es/command-contributions/graph/graph-toggle-multi-select.js.map +1 -0
- package/es/command-contributions/graph/graph-zoom.d.ts +51 -0
- package/es/command-contributions/graph/graph-zoom.js +89 -0
- package/es/command-contributions/graph/graph-zoom.js.map +1 -0
- package/es/command-contributions/graph/index.d.ts +114 -0
- package/es/command-contributions/graph/index.js +83 -0
- package/es/command-contributions/graph/index.js.map +1 -0
- package/es/command-contributions/group/group-add.d.ts +56 -0
- package/es/command-contributions/group/group-add.js +114 -0
- package/es/command-contributions/group/group-add.js.map +1 -0
- package/es/command-contributions/group/group-del.d.ts +43 -0
- package/es/command-contributions/group/group-del.js +100 -0
- package/es/command-contributions/group/group-del.js.map +1 -0
- package/es/command-contributions/group/group-init.d.ts +40 -0
- package/es/command-contributions/group/group-init.js +97 -0
- package/es/command-contributions/group/group-init.js.map +1 -0
- package/es/command-contributions/group/group-toggle-collapse.d.ts +47 -0
- package/es/command-contributions/group/group-toggle-collapse.js +123 -0
- package/es/command-contributions/group/group-toggle-collapse.js.map +1 -0
- package/es/command-contributions/group/index.d.ts +39 -0
- package/es/command-contributions/group/index.js +14 -0
- package/es/command-contributions/group/index.js.map +1 -0
- package/es/command-contributions/index.d.ts +10 -0
- package/es/command-contributions/index.js +13 -0
- package/es/command-contributions/index.js.map +1 -0
- package/es/command-contributions/interface.d.ts +17 -0
- package/es/command-contributions/interface.js +2 -0
- package/es/command-contributions/interface.js.map +1 -0
- package/es/command-contributions/mapping-service.d.ts +20 -0
- package/es/command-contributions/mapping-service.js +91 -0
- package/es/command-contributions/mapping-service.js.map +1 -0
- package/es/command-contributions/models/index.d.ts +24 -0
- package/es/command-contributions/models/index.js +9 -0
- package/es/command-contributions/models/index.js.map +1 -0
- package/es/command-contributions/models/update-model.d.ts +45 -0
- package/es/command-contributions/models/update-model.js +70 -0
- package/es/command-contributions/models/update-model.js.map +1 -0
- package/es/command-contributions/module.d.ts +5 -0
- package/es/command-contributions/module.js +45 -0
- package/es/command-contributions/module.js.map +1 -0
- package/es/command-contributions/node/index.d.ts +70 -0
- package/es/command-contributions/node/index.js +38 -0
- package/es/command-contributions/node/index.js.map +1 -0
- package/es/command-contributions/node/node-add.d.ts +58 -0
- package/es/command-contributions/node/node-add.js +131 -0
- package/es/command-contributions/node/node-add.js.map +1 -0
- package/es/command-contributions/node/node-back.d.ts +32 -0
- package/es/command-contributions/node/node-back.js +74 -0
- package/es/command-contributions/node/node-back.js.map +1 -0
- package/es/command-contributions/node/node-center.d.ts +30 -0
- package/es/command-contributions/node/node-center.js +60 -0
- package/es/command-contributions/node/node-center.js.map +1 -0
- package/es/command-contributions/node/node-del.d.ts +51 -0
- package/es/command-contributions/node/node-del.js +102 -0
- package/es/command-contributions/node/node-del.js.map +1 -0
- package/es/command-contributions/node/node-front.d.ts +27 -0
- package/es/command-contributions/node/node-front.js +73 -0
- package/es/command-contributions/node/node-front.js.map +1 -0
- package/es/command-contributions/node/node-highlight.d.ts +39 -0
- package/es/command-contributions/node/node-highlight.js +85 -0
- package/es/command-contributions/node/node-highlight.js.map +1 -0
- package/es/command-contributions/node/node-move.d.ts +51 -0
- package/es/command-contributions/node/node-move.js +94 -0
- package/es/command-contributions/node/node-move.js.map +1 -0
- package/es/command-contributions/node/node-select.d.ts +30 -0
- package/es/command-contributions/node/node-select.js +73 -0
- package/es/command-contributions/node/node-select.js.map +1 -0
- package/es/command-contributions/node/node-update-port.d.ts +54 -0
- package/es/command-contributions/node/node-update-port.js +105 -0
- package/es/command-contributions/node/node-update-port.js.map +1 -0
- package/es/command-contributions/node/node-update.d.ts +53 -0
- package/es/command-contributions/node/node-update.js +122 -0
- package/es/command-contributions/node/node-update.js.map +1 -0
- package/es/common/deferred.d.ts +8 -0
- package/es/common/deferred.js +17 -0
- package/es/common/deferred.js.map +1 -0
- package/es/common/delay.d.ts +1 -0
- package/es/common/delay.js +5 -0
- package/es/common/delay.js.map +1 -0
- package/es/common/disposable.d.ts +28 -0
- package/es/common/disposable.js +81 -0
- package/es/common/disposable.js.map +1 -0
- package/es/common/event-helper.d.ts +7 -0
- package/es/common/event-helper.js +8 -0
- package/es/common/event-helper.js.map +1 -0
- package/es/common/graph-utils.d.ts +22 -0
- package/es/common/graph-utils.js +34 -0
- package/es/common/graph-utils.js.map +1 -0
- package/es/common/position.d.ts +10 -0
- package/es/common/position.js +12 -0
- package/es/common/position.js.map +1 -0
- package/es/common/rx-model-hook.d.ts +16 -0
- package/es/common/rx-model-hook.js +92 -0
- package/es/common/rx-model-hook.js.map +1 -0
- package/es/common/rx-model.d.ts +66 -0
- package/es/common/rx-model.js +101 -0
- package/es/common/rx-model.js.map +1 -0
- package/es/common/safe-json.d.ts +1 -0
- package/es/common/safe-json.js +12 -0
- package/es/common/safe-json.js.map +1 -0
- package/es/common/types.d.ts +15 -0
- package/es/common/types.js +2 -0
- package/es/common/types.js.map +1 -0
- package/es/common/utils.d.ts +11 -0
- package/es/common/utils.js +48 -0
- package/es/common/utils.js.map +1 -0
- package/es/common/uuid.d.ts +2 -0
- package/es/common/uuid.js +8 -0
- package/es/common/uuid.js.map +1 -0
- package/es/constants.d.ts +31 -0
- package/es/constants.js +26 -0
- package/es/constants.js.map +1 -0
- package/es/hooks/components/index.d.ts +13 -0
- package/es/hooks/components/index.js +36 -0
- package/es/hooks/components/index.js.map +1 -0
- package/es/hooks/config.d.ts +41 -0
- package/es/hooks/config.js +35 -0
- package/es/hooks/config.js.map +1 -0
- package/es/hooks/contributions/default.d.ts +19 -0
- package/es/hooks/contributions/default.js +41 -0
- package/es/hooks/contributions/default.js.map +1 -0
- package/es/hooks/contributions/graph.d.ts +19 -0
- package/es/hooks/contributions/graph.js +96 -0
- package/es/hooks/contributions/graph.js.map +1 -0
- package/es/hooks/hook-registry.d.ts +27 -0
- package/es/hooks/hook-registry.js +51 -0
- package/es/hooks/hook-registry.js.map +1 -0
- package/es/hooks/index.d.ts +4 -0
- package/es/hooks/index.js +9 -0
- package/es/hooks/index.js.map +1 -0
- package/es/hooks/interface.d.ts +62 -0
- package/es/hooks/interface.js +19 -0
- package/es/hooks/interface.js.map +1 -0
- package/es/hooks/module.d.ts +8 -0
- package/es/hooks/module.js +26 -0
- package/es/hooks/module.js.map +1 -0
- package/es/index.d.ts +85 -0
- package/es/index.js +97 -0
- package/es/index.js.map +1 -0
- package/es/interface.d.ts +161 -0
- package/es/interface.js +21 -0
- package/es/interface.js.map +1 -0
- package/es/keybinding/components/index.d.ts +13 -0
- package/es/keybinding/components/index.js +36 -0
- package/es/keybinding/components/index.js.map +1 -0
- package/es/keybinding/config.d.ts +23 -0
- package/es/keybinding/config.js +36 -0
- package/es/keybinding/config.js.map +1 -0
- package/es/keybinding/index.d.ts +4 -0
- package/es/keybinding/index.js +5 -0
- package/es/keybinding/index.js.map +1 -0
- package/es/keybinding/interface.d.ts +52 -0
- package/es/keybinding/interface.js +6 -0
- package/es/keybinding/interface.js.map +1 -0
- package/es/keybinding/keybinding-registry.d.ts +52 -0
- package/es/keybinding/keybinding-registry.js +129 -0
- package/es/keybinding/keybinding-registry.js.map +1 -0
- package/es/keybinding/module.d.ts +8 -0
- package/es/keybinding/module.js +33 -0
- package/es/keybinding/module.js.map +1 -0
- package/es/menu/components/index.d.ts +4 -0
- package/es/menu/components/index.js +22 -0
- package/es/menu/components/index.js.map +1 -0
- package/es/menu/index.d.ts +3 -0
- package/es/menu/index.js +10 -0
- package/es/menu/index.js.map +1 -0
- package/es/menu/interface.d.ts +114 -0
- package/es/menu/interface.js +18 -0
- package/es/menu/interface.js.map +1 -0
- package/es/menu/menu-registry.d.ts +32 -0
- package/es/menu/menu-registry.js +65 -0
- package/es/menu/menu-registry.js.map +1 -0
- package/es/menu/module.d.ts +3 -0
- package/es/menu/module.js +17 -0
- package/es/menu/module.js.map +1 -0
- package/es/model-service/components/index.d.ts +12 -0
- package/es/model-service/components/index.js +40 -0
- package/es/model-service/components/index.js.map +1 -0
- package/es/model-service/config.d.ts +20 -0
- package/es/model-service/config.js +36 -0
- package/es/model-service/config.js.map +1 -0
- package/es/model-service/constant.d.ts +174 -0
- package/es/model-service/constant.js +162 -0
- package/es/model-service/constant.js.map +1 -0
- package/es/model-service/contributions/command-model.d.ts +9 -0
- package/es/model-service/contributions/command-model.js +48 -0
- package/es/model-service/contributions/command-model.js.map +1 -0
- package/es/model-service/contributions/graph-model.d.ts +12 -0
- package/es/model-service/contributions/graph-model.js +250 -0
- package/es/model-service/contributions/graph-model.js.map +1 -0
- package/es/model-service/index.d.ts +6 -0
- package/es/model-service/index.js +7 -0
- package/es/model-service/index.js.map +1 -0
- package/es/model-service/interface.d.ts +66 -0
- package/es/model-service/interface.js +11 -0
- package/es/model-service/interface.js.map +1 -0
- package/es/model-service/model-registry.d.ts +49 -0
- package/es/model-service/model-registry.js +117 -0
- package/es/model-service/model-registry.js.map +1 -0
- package/es/model-service/module.d.ts +9 -0
- package/es/model-service/module.js +42 -0
- package/es/model-service/module.js.map +1 -0
- package/es/model-service/utils.d.ts +5 -0
- package/es/model-service/utils.js +52 -0
- package/es/model-service/utils.js.map +1 -0
- package/es/style/components.css +108 -0
- package/es/style/components.less +1 -0
- package/es/style/index.css +0 -0
- package/es/style/index.less +1 -0
- package/es/style/themes/default.css +0 -0
- package/es/style/themes/default.less +2 -0
- package/es/style/themes/index.css +0 -0
- package/es/style/themes/index.less +1 -0
- package/es/toolbar/components/index.d.ts +4 -0
- package/es/toolbar/components/index.js +21 -0
- package/es/toolbar/components/index.js.map +1 -0
- package/es/toolbar/index.d.ts +3 -0
- package/es/toolbar/index.js +8 -0
- package/es/toolbar/index.js.map +1 -0
- package/es/toolbar/interface.d.ts +104 -0
- package/es/toolbar/interface.js +8 -0
- package/es/toolbar/interface.js.map +1 -0
- package/es/toolbar/module.d.ts +8 -0
- package/es/toolbar/module.js +18 -0
- package/es/toolbar/module.js.map +1 -0
- package/es/toolbar/toolbar-registry.d.ts +80 -0
- package/es/toolbar/toolbar-registry.js +127 -0
- package/es/toolbar/toolbar-registry.js.map +1 -0
- package/es/xflow-main/application-module.d.ts +8 -0
- package/es/xflow-main/application-module.js +46 -0
- package/es/xflow-main/application-module.js.map +1 -0
- package/es/xflow-main/application.d.ts +77 -0
- package/es/xflow-main/application.js +178 -0
- package/es/xflow-main/application.js.map +1 -0
- package/es/xflow-main/components/app-context.d.ts +14 -0
- package/es/xflow-main/components/app-context.js +75 -0
- package/es/xflow-main/components/app-context.js.map +1 -0
- package/es/xflow-main/components/app-extension-module.d.ts +7 -0
- package/es/xflow-main/components/app-extension-module.js +32 -0
- package/es/xflow-main/components/app-extension-module.js.map +1 -0
- package/es/xflow-main/components/canvas.d.ts +11 -0
- package/es/xflow-main/components/canvas.js +62 -0
- package/es/xflow-main/components/canvas.js.map +1 -0
- package/es/xflow-main/components/extension-context.d.ts +5 -0
- package/es/xflow-main/components/extension-context.js +9 -0
- package/es/xflow-main/components/extension-context.js.map +1 -0
- package/es/xflow-main/components/extension-registry.d.ts +22 -0
- package/es/xflow-main/components/extension-registry.js +61 -0
- package/es/xflow-main/components/extension-registry.js.map +1 -0
- package/es/xflow-main/components/global-config-context.d.ts +3 -0
- package/es/xflow-main/components/global-config-context.js +31 -0
- package/es/xflow-main/components/global-config-context.js.map +1 -0
- package/es/xflow-main/components/index.d.ts +58 -0
- package/es/xflow-main/components/index.js +116 -0
- package/es/xflow-main/components/index.js.map +1 -0
- package/es/xflow-main/graph/config.d.ts +102 -0
- package/es/xflow-main/graph/config.js +233 -0
- package/es/xflow-main/graph/config.js.map +1 -0
- package/es/xflow-main/graph/graph-provider.d.ts +47 -0
- package/es/xflow-main/graph/graph-provider.js +196 -0
- package/es/xflow-main/graph/graph-provider.js.map +1 -0
- package/es/xflow-main/graph/index.d.ts +4 -0
- package/es/xflow-main/graph/index.js +5 -0
- package/es/xflow-main/graph/index.js.map +1 -0
- package/es/xflow-main/graph/module.d.ts +4 -0
- package/es/xflow-main/graph/module.js +16 -0
- package/es/xflow-main/graph/module.js.map +1 -0
- package/es/xflow-main/graph/react-group-node/index.css +44 -0
- package/es/xflow-main/graph/react-group-node/index.d.ts +2 -0
- package/es/xflow-main/graph/react-group-node/index.js +32 -0
- package/es/xflow-main/graph/react-group-node/index.js.map +1 -0
- package/es/xflow-main/graph/react-group-node/index.less +50 -0
- package/es/xflow-main/graph/react-node/index.css +42 -0
- package/es/xflow-main/graph/react-node/index.d.ts +20 -0
- package/es/xflow-main/graph/react-node/index.js +50 -0
- package/es/xflow-main/graph/react-node/index.js.map +1 -0
- package/es/xflow-main/graph/react-node/index.less +49 -0
- package/es/xflow-main/index.d.ts +19 -0
- package/es/xflow-main/index.js +26 -0
- package/es/xflow-main/index.js.map +1 -0
- package/es/xflow-main/interface.d.ts +33 -0
- package/es/xflow-main/interface.js +3 -0
- package/es/xflow-main/interface.js.map +1 -0
- package/es/xflow-main/style/index.css +108 -0
- package/es/xflow-main/style/index.less +31 -0
- package/lib/antd-icons/index.d.ts +20 -0
- package/lib/antd-icons/index.js +34 -0
- package/lib/antd-icons/index.js.map +1 -0
- package/lib/command/__test__/graph-command.spec.d.ts +1 -0
- package/lib/command/__test__/graph-command.spec.js +136 -0
- package/lib/command/__test__/graph-command.spec.js.map +1 -0
- package/lib/command/graph-command.d.ts +177 -0
- package/lib/command/graph-command.js +390 -0
- package/lib/command/graph-command.js.map +1 -0
- package/lib/command/index.d.ts +7 -0
- package/lib/command/index.js +15 -0
- package/lib/command/index.js.map +1 -0
- package/lib/command/interface.d.ts +221 -0
- package/lib/command/interface.js +26 -0
- package/lib/command/interface.js.map +1 -0
- package/lib/command/module.d.ts +2 -0
- package/lib/command/module.js +18 -0
- package/lib/command/module.js.map +1 -0
- package/lib/command-contributions/cmd-context.d.ts +76 -0
- package/lib/command-contributions/cmd-context.js +160 -0
- package/lib/command-contributions/cmd-context.js.map +1 -0
- package/lib/command-contributions/command-contribution.d.ts +23 -0
- package/lib/command-contributions/command-contribution.js +205 -0
- package/lib/command-contributions/command-contribution.js.map +1 -0
- package/lib/command-contributions/components/context.d.ts +11 -0
- package/lib/command-contributions/components/context.js +95 -0
- package/lib/command-contributions/components/context.js.map +1 -0
- package/lib/command-contributions/components/index.d.ts +11 -0
- package/lib/command-contributions/components/index.js +40 -0
- package/lib/command-contributions/components/index.js.map +1 -0
- package/lib/command-contributions/config.d.ts +39 -0
- package/lib/command-contributions/config.js +79 -0
- package/lib/command-contributions/config.js.map +1 -0
- package/lib/command-contributions/constant.d.ts +98 -0
- package/lib/command-contributions/constant.js +275 -0
- package/lib/command-contributions/constant.js.map +1 -0
- package/lib/command-contributions/edge/edge-add.d.ts +83 -0
- package/lib/command-contributions/edge/edge-add.js +179 -0
- package/lib/command-contributions/edge/edge-add.js.map +1 -0
- package/lib/command-contributions/edge/edge-back.d.ts +27 -0
- package/lib/command-contributions/edge/edge-back.js +107 -0
- package/lib/command-contributions/edge/edge-back.js.map +1 -0
- package/lib/command-contributions/edge/edge-del.d.ts +67 -0
- package/lib/command-contributions/edge/edge-del.js +170 -0
- package/lib/command-contributions/edge/edge-del.js.map +1 -0
- package/lib/command-contributions/edge/edge-front.d.ts +27 -0
- package/lib/command-contributions/edge/edge-front.js +107 -0
- package/lib/command-contributions/edge/edge-front.js.map +1 -0
- package/lib/command-contributions/edge/edge-highlight.d.ts +32 -0
- package/lib/command-contributions/edge/edge-highlight.js +121 -0
- package/lib/command-contributions/edge/edge-highlight.js.map +1 -0
- package/lib/command-contributions/edge/edge-update.d.ts +46 -0
- package/lib/command-contributions/edge/edge-update.js +148 -0
- package/lib/command-contributions/edge/edge-update.js.map +1 -0
- package/lib/command-contributions/edge/index.d.ts +50 -0
- package/lib/command-contributions/edge/index.js +23 -0
- package/lib/command-contributions/edge/index.js.map +1 -0
- package/lib/command-contributions/graph/graph-add-tool.d.ts +49 -0
- package/lib/command-contributions/graph/graph-add-tool.js +111 -0
- package/lib/command-contributions/graph/graph-add-tool.js.map +1 -0
- package/lib/command-contributions/graph/graph-cmd-redo.d.ts +40 -0
- package/lib/command-contributions/graph/graph-cmd-redo.js +104 -0
- package/lib/command-contributions/graph/graph-cmd-redo.js.map +1 -0
- package/lib/command-contributions/graph/graph-cmd-undo.d.ts +36 -0
- package/lib/command-contributions/graph/graph-cmd-undo.js +104 -0
- package/lib/command-contributions/graph/graph-cmd-undo.js.map +1 -0
- package/lib/command-contributions/graph/graph-copy.d.ts +39 -0
- package/lib/command-contributions/graph/graph-copy.js +137 -0
- package/lib/command-contributions/graph/graph-copy.js.map +1 -0
- package/lib/command-contributions/graph/graph-del-tool.d.ts +47 -0
- package/lib/command-contributions/graph/graph-del-tool.js +101 -0
- package/lib/command-contributions/graph/graph-del-tool.js.map +1 -0
- package/lib/command-contributions/graph/graph-fulllscreen.d.ts +37 -0
- package/lib/command-contributions/graph/graph-fulllscreen.js +116 -0
- package/lib/command-contributions/graph/graph-fulllscreen.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-redo.d.ts +33 -0
- package/lib/command-contributions/graph/graph-history-redo.js +106 -0
- package/lib/command-contributions/graph/graph-history-redo.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-reset.d.ts +33 -0
- package/lib/command-contributions/graph/graph-history-reset.js +91 -0
- package/lib/command-contributions/graph/graph-history-reset.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-toggle.d.ts +35 -0
- package/lib/command-contributions/graph/graph-history-toggle.js +112 -0
- package/lib/command-contributions/graph/graph-history-toggle.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-undo.d.ts +35 -0
- package/lib/command-contributions/graph/graph-history-undo.js +106 -0
- package/lib/command-contributions/graph/graph-history-undo.js.map +1 -0
- package/lib/command-contributions/graph/graph-layout.d.ts +43 -0
- package/lib/command-contributions/graph/graph-layout.js +104 -0
- package/lib/command-contributions/graph/graph-layout.js.map +1 -0
- package/lib/command-contributions/graph/graph-load-data.d.ts +37 -0
- package/lib/command-contributions/graph/graph-load-data.js +104 -0
- package/lib/command-contributions/graph/graph-load-data.js.map +1 -0
- package/lib/command-contributions/graph/graph-meta.d.ts +47 -0
- package/lib/command-contributions/graph/graph-meta.js +116 -0
- package/lib/command-contributions/graph/graph-meta.js.map +1 -0
- package/lib/command-contributions/graph/graph-paste.d.ts +52 -0
- package/lib/command-contributions/graph/graph-paste.js +196 -0
- package/lib/command-contributions/graph/graph-paste.js.map +1 -0
- package/lib/command-contributions/graph/graph-render.d.ts +53 -0
- package/lib/command-contributions/graph/graph-render.js +360 -0
- package/lib/command-contributions/graph/graph-render.js.map +1 -0
- package/lib/command-contributions/graph/graph-resize.d.ts +40 -0
- package/lib/command-contributions/graph/graph-resize.js +110 -0
- package/lib/command-contributions/graph/graph-resize.js.map +1 -0
- package/lib/command-contributions/graph/graph-save-data.d.ts +43 -0
- package/lib/command-contributions/graph/graph-save-data.js +141 -0
- package/lib/command-contributions/graph/graph-save-data.js.map +1 -0
- package/lib/command-contributions/graph/graph-toggle-multi-select.d.ts +38 -0
- package/lib/command-contributions/graph/graph-toggle-multi-select.js +133 -0
- package/lib/command-contributions/graph/graph-toggle-multi-select.js.map +1 -0
- package/lib/command-contributions/graph/graph-zoom.d.ts +51 -0
- package/lib/command-contributions/graph/graph-zoom.js +122 -0
- package/lib/command-contributions/graph/graph-zoom.js.map +1 -0
- package/lib/command-contributions/graph/index.d.ts +114 -0
- package/lib/command-contributions/graph/index.js +87 -0
- package/lib/command-contributions/graph/index.js.map +1 -0
- package/lib/command-contributions/group/group-add.d.ts +56 -0
- package/lib/command-contributions/group/group-add.js +156 -0
- package/lib/command-contributions/group/group-add.js.map +1 -0
- package/lib/command-contributions/group/group-del.d.ts +43 -0
- package/lib/command-contributions/group/group-del.js +146 -0
- package/lib/command-contributions/group/group-del.js.map +1 -0
- package/lib/command-contributions/group/group-init.d.ts +40 -0
- package/lib/command-contributions/group/group-init.js +139 -0
- package/lib/command-contributions/group/group-init.js.map +1 -0
- package/lib/command-contributions/group/group-toggle-collapse.d.ts +47 -0
- package/lib/command-contributions/group/group-toggle-collapse.js +161 -0
- package/lib/command-contributions/group/group-toggle-collapse.js.map +1 -0
- package/lib/command-contributions/group/index.d.ts +39 -0
- package/lib/command-contributions/group/index.js +18 -0
- package/lib/command-contributions/group/index.js.map +1 -0
- package/lib/command-contributions/index.d.ts +10 -0
- package/lib/command-contributions/index.js +25 -0
- package/lib/command-contributions/index.js.map +1 -0
- package/lib/command-contributions/interface.d.ts +17 -0
- package/lib/command-contributions/interface.js +3 -0
- package/lib/command-contributions/interface.js.map +1 -0
- package/lib/command-contributions/mapping-service.d.ts +20 -0
- package/lib/command-contributions/mapping-service.js +96 -0
- package/lib/command-contributions/mapping-service.js.map +1 -0
- package/lib/command-contributions/models/index.d.ts +24 -0
- package/lib/command-contributions/models/index.js +13 -0
- package/lib/command-contributions/models/index.js.map +1 -0
- package/lib/command-contributions/models/update-model.d.ts +45 -0
- package/lib/command-contributions/models/update-model.js +110 -0
- package/lib/command-contributions/models/update-model.js.map +1 -0
- package/lib/command-contributions/module.d.ts +5 -0
- package/lib/command-contributions/module.js +49 -0
- package/lib/command-contributions/module.js.map +1 -0
- package/lib/command-contributions/node/index.d.ts +70 -0
- package/lib/command-contributions/node/index.js +42 -0
- package/lib/command-contributions/node/index.js.map +1 -0
- package/lib/command-contributions/node/node-add.d.ts +58 -0
- package/lib/command-contributions/node/node-add.js +192 -0
- package/lib/command-contributions/node/node-add.js.map +1 -0
- package/lib/command-contributions/node/node-back.d.ts +32 -0
- package/lib/command-contributions/node/node-back.js +109 -0
- package/lib/command-contributions/node/node-back.js.map +1 -0
- package/lib/command-contributions/node/node-center.d.ts +30 -0
- package/lib/command-contributions/node/node-center.js +91 -0
- package/lib/command-contributions/node/node-center.js.map +1 -0
- package/lib/command-contributions/node/node-del.d.ts +51 -0
- package/lib/command-contributions/node/node-del.js +145 -0
- package/lib/command-contributions/node/node-del.js.map +1 -0
- package/lib/command-contributions/node/node-front.d.ts +27 -0
- package/lib/command-contributions/node/node-front.js +108 -0
- package/lib/command-contributions/node/node-front.js.map +1 -0
- package/lib/command-contributions/node/node-highlight.d.ts +39 -0
- package/lib/command-contributions/node/node-highlight.js +116 -0
- package/lib/command-contributions/node/node-highlight.js.map +1 -0
- package/lib/command-contributions/node/node-move.d.ts +51 -0
- package/lib/command-contributions/node/node-move.js +130 -0
- package/lib/command-contributions/node/node-move.js.map +1 -0
- package/lib/command-contributions/node/node-select.d.ts +30 -0
- package/lib/command-contributions/node/node-select.js +104 -0
- package/lib/command-contributions/node/node-select.js.map +1 -0
- package/lib/command-contributions/node/node-update-port.d.ts +54 -0
- package/lib/command-contributions/node/node-update-port.js +147 -0
- package/lib/command-contributions/node/node-update-port.js.map +1 -0
- package/lib/command-contributions/node/node-update.d.ts +53 -0
- package/lib/command-contributions/node/node-update.js +159 -0
- package/lib/command-contributions/node/node-update.js.map +1 -0
- package/lib/common/deferred.d.ts +8 -0
- package/lib/common/deferred.js +31 -0
- package/lib/common/deferred.js.map +1 -0
- package/lib/common/delay.d.ts +1 -0
- package/lib/common/delay.js +9 -0
- package/lib/common/delay.js.map +1 -0
- package/lib/common/disposable.d.ts +28 -0
- package/lib/common/disposable.js +116 -0
- package/lib/common/disposable.js.map +1 -0
- package/lib/common/event-helper.d.ts +7 -0
- package/lib/common/event-helper.js +12 -0
- package/lib/common/event-helper.js.map +1 -0
- package/lib/common/graph-utils.d.ts +22 -0
- package/lib/common/graph-utils.js +41 -0
- package/lib/common/graph-utils.js.map +1 -0
- package/lib/common/position.d.ts +10 -0
- package/lib/common/position.js +18 -0
- package/lib/common/position.js.map +1 -0
- package/lib/common/rx-model-hook.d.ts +16 -0
- package/lib/common/rx-model-hook.js +108 -0
- package/lib/common/rx-model-hook.js.map +1 -0
- package/lib/common/rx-model.d.ts +66 -0
- package/lib/common/rx-model.js +112 -0
- package/lib/common/rx-model.js.map +1 -0
- package/lib/common/safe-json.d.ts +1 -0
- package/lib/common/safe-json.js +17 -0
- package/lib/common/safe-json.js.map +1 -0
- package/lib/common/types.d.ts +15 -0
- package/lib/common/types.js +3 -0
- package/lib/common/types.js.map +1 -0
- package/lib/common/utils.d.ts +11 -0
- package/lib/common/utils.js +58 -0
- package/lib/common/utils.js.map +1 -0
- package/lib/common/uuid.d.ts +2 -0
- package/lib/common/uuid.js +12 -0
- package/lib/common/uuid.js.map +1 -0
- package/lib/constants.d.ts +31 -0
- package/lib/constants.js +29 -0
- package/lib/constants.js.map +1 -0
- package/lib/hooks/components/index.d.ts +13 -0
- package/lib/hooks/components/index.js +44 -0
- package/lib/hooks/components/index.js.map +1 -0
- package/lib/hooks/config.d.ts +41 -0
- package/lib/hooks/config.js +45 -0
- package/lib/hooks/config.js.map +1 -0
- package/lib/hooks/contributions/default.d.ts +19 -0
- package/lib/hooks/contributions/default.js +60 -0
- package/lib/hooks/contributions/default.js.map +1 -0
- package/lib/hooks/contributions/graph.d.ts +19 -0
- package/lib/hooks/contributions/graph.js +133 -0
- package/lib/hooks/contributions/graph.js.map +1 -0
- package/lib/hooks/hook-registry.d.ts +27 -0
- package/lib/hooks/hook-registry.js +62 -0
- package/lib/hooks/hook-registry.js.map +1 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/index.js +12 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/interface.d.ts +62 -0
- package/lib/hooks/interface.js +23 -0
- package/lib/hooks/interface.js.map +1 -0
- package/lib/hooks/module.d.ts +8 -0
- package/lib/hooks/module.js +32 -0
- package/lib/hooks/module.js.map +1 -0
- package/lib/index.d.ts +85 -0
- package/lib/index.js +155 -0
- package/lib/index.js.map +1 -0
- package/lib/interface.d.ts +161 -0
- package/lib/interface.js +24 -0
- package/lib/interface.js.map +1 -0
- package/lib/keybinding/components/index.d.ts +13 -0
- package/lib/keybinding/components/index.js +44 -0
- package/lib/keybinding/components/index.js.map +1 -0
- package/lib/keybinding/config.d.ts +23 -0
- package/lib/keybinding/config.js +48 -0
- package/lib/keybinding/config.js.map +1 -0
- package/lib/keybinding/index.d.ts +4 -0
- package/lib/keybinding/index.js +11 -0
- package/lib/keybinding/index.js.map +1 -0
- package/lib/keybinding/interface.d.ts +52 -0
- package/lib/keybinding/interface.js +9 -0
- package/lib/keybinding/interface.js.map +1 -0
- package/lib/keybinding/keybinding-registry.d.ts +52 -0
- package/lib/keybinding/keybinding-registry.js +166 -0
- package/lib/keybinding/keybinding-registry.js.map +1 -0
- package/lib/keybinding/module.d.ts +8 -0
- package/lib/keybinding/module.js +40 -0
- package/lib/keybinding/module.js.map +1 -0
- package/lib/menu/components/index.d.ts +4 -0
- package/lib/menu/components/index.js +28 -0
- package/lib/menu/components/index.js.map +1 -0
- package/lib/menu/index.d.ts +3 -0
- package/lib/menu/index.js +10 -0
- package/lib/menu/index.js.map +1 -0
- package/lib/menu/interface.d.ts +114 -0
- package/lib/menu/interface.js +21 -0
- package/lib/menu/interface.js.map +1 -0
- package/lib/menu/menu-registry.d.ts +32 -0
- package/lib/menu/menu-registry.js +72 -0
- package/lib/menu/menu-registry.js.map +1 -0
- package/lib/menu/module.d.ts +3 -0
- package/lib/menu/module.js +21 -0
- package/lib/menu/module.js.map +1 -0
- package/lib/model-service/components/index.d.ts +12 -0
- package/lib/model-service/components/index.js +48 -0
- package/lib/model-service/components/index.js.map +1 -0
- package/lib/model-service/config.d.ts +20 -0
- package/lib/model-service/config.js +48 -0
- package/lib/model-service/config.js.map +1 -0
- package/lib/model-service/constant.d.ts +174 -0
- package/lib/model-service/constant.js +186 -0
- package/lib/model-service/constant.js.map +1 -0
- package/lib/model-service/contributions/command-model.d.ts +9 -0
- package/lib/model-service/contributions/command-model.js +63 -0
- package/lib/model-service/contributions/command-model.js.map +1 -0
- package/lib/model-service/contributions/graph-model.d.ts +12 -0
- package/lib/model-service/contributions/graph-model.js +370 -0
- package/lib/model-service/contributions/graph-model.js.map +1 -0
- package/lib/model-service/index.d.ts +6 -0
- package/lib/model-service/index.js +17 -0
- package/lib/model-service/index.js.map +1 -0
- package/lib/model-service/interface.d.ts +66 -0
- package/lib/model-service/interface.js +14 -0
- package/lib/model-service/interface.js.map +1 -0
- package/lib/model-service/model-registry.d.ts +49 -0
- package/lib/model-service/model-registry.js +133 -0
- package/lib/model-service/model-registry.js.map +1 -0
- package/lib/model-service/module.d.ts +9 -0
- package/lib/model-service/module.js +49 -0
- package/lib/model-service/module.js.map +1 -0
- package/lib/model-service/utils.d.ts +5 -0
- package/lib/model-service/utils.js +58 -0
- package/lib/model-service/utils.js.map +1 -0
- package/lib/style/components.css +108 -0
- package/lib/style/components.less +1 -0
- package/lib/style/index.css +0 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default.css +0 -0
- package/lib/style/themes/default.less +2 -0
- package/lib/style/themes/index.css +0 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/toolbar/components/index.d.ts +4 -0
- package/lib/toolbar/components/index.js +27 -0
- package/lib/toolbar/components/index.js.map +1 -0
- package/lib/toolbar/index.d.ts +3 -0
- package/lib/toolbar/index.js +9 -0
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/interface.d.ts +104 -0
- package/lib/toolbar/interface.js +11 -0
- package/lib/toolbar/interface.js.map +1 -0
- package/lib/toolbar/module.d.ts +8 -0
- package/lib/toolbar/module.js +23 -0
- package/lib/toolbar/module.js.map +1 -0
- package/lib/toolbar/toolbar-registry.d.ts +80 -0
- package/lib/toolbar/toolbar-registry.js +134 -0
- package/lib/toolbar/toolbar-registry.js.map +1 -0
- package/lib/xflow-main/application-module.d.ts +8 -0
- package/lib/xflow-main/application-module.js +50 -0
- package/lib/xflow-main/application-module.js.map +1 -0
- package/lib/xflow-main/application.d.ts +77 -0
- package/lib/xflow-main/application.js +296 -0
- package/lib/xflow-main/application.js.map +1 -0
- package/lib/xflow-main/components/app-context.d.ts +14 -0
- package/lib/xflow-main/components/app-context.js +87 -0
- package/lib/xflow-main/components/app-context.js.map +1 -0
- package/lib/xflow-main/components/app-extension-module.d.ts +7 -0
- package/lib/xflow-main/components/app-extension-module.js +39 -0
- package/lib/xflow-main/components/app-extension-module.js.map +1 -0
- package/lib/xflow-main/components/canvas.d.ts +11 -0
- package/lib/xflow-main/components/canvas.js +69 -0
- package/lib/xflow-main/components/canvas.js.map +1 -0
- package/lib/xflow-main/components/extension-context.d.ts +5 -0
- package/lib/xflow-main/components/extension-context.js +14 -0
- package/lib/xflow-main/components/extension-context.js.map +1 -0
- package/lib/xflow-main/components/extension-registry.d.ts +22 -0
- package/lib/xflow-main/components/extension-registry.js +69 -0
- package/lib/xflow-main/components/extension-registry.js.map +1 -0
- package/lib/xflow-main/components/global-config-context.d.ts +3 -0
- package/lib/xflow-main/components/global-config-context.js +39 -0
- package/lib/xflow-main/components/global-config-context.js.map +1 -0
- package/lib/xflow-main/components/index.d.ts +58 -0
- package/lib/xflow-main/components/index.js +153 -0
- package/lib/xflow-main/components/index.js.map +1 -0
- package/lib/xflow-main/graph/config.d.ts +102 -0
- package/lib/xflow-main/graph/config.js +266 -0
- package/lib/xflow-main/graph/config.js.map +1 -0
- package/lib/xflow-main/graph/graph-provider.d.ts +47 -0
- package/lib/xflow-main/graph/graph-provider.js +259 -0
- package/lib/xflow-main/graph/graph-provider.js.map +1 -0
- package/lib/xflow-main/graph/index.d.ts +4 -0
- package/lib/xflow-main/graph/index.js +11 -0
- package/lib/xflow-main/graph/index.js.map +1 -0
- package/lib/xflow-main/graph/module.d.ts +4 -0
- package/lib/xflow-main/graph/module.js +20 -0
- package/lib/xflow-main/graph/module.js.map +1 -0
- package/lib/xflow-main/graph/react-group-node/index.css +44 -0
- package/lib/xflow-main/graph/react-group-node/index.d.ts +2 -0
- package/lib/xflow-main/graph/react-group-node/index.js +37 -0
- package/lib/xflow-main/graph/react-group-node/index.js.map +1 -0
- package/lib/xflow-main/graph/react-group-node/index.less +50 -0
- package/lib/xflow-main/graph/react-node/index.css +42 -0
- package/lib/xflow-main/graph/react-node/index.d.ts +20 -0
- package/lib/xflow-main/graph/react-node/index.js +56 -0
- package/lib/xflow-main/graph/react-node/index.js.map +1 -0
- package/lib/xflow-main/graph/react-node/index.less +49 -0
- package/lib/xflow-main/index.d.ts +19 -0
- package/lib/xflow-main/index.js +35 -0
- package/lib/xflow-main/index.js.map +1 -0
- package/lib/xflow-main/interface.d.ts +33 -0
- package/lib/xflow-main/interface.js +6 -0
- package/lib/xflow-main/interface.js.map +1 -0
- package/lib/xflow-main/style/index.css +108 -0
- package/lib/xflow-main/style/index.less +31 -0
- package/package.json +119 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Syringe } from 'mana-syringe';
|
|
2
|
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
3
|
+
import type { IHooks } from '../../hooks/interface';
|
|
4
|
+
import type { IGraphCommand } from '../../command/interface';
|
|
5
|
+
/** commands */
|
|
6
|
+
import { NsUpdateModelCommand } from './update-model';
|
|
7
|
+
/** 注册Command Handler Class */
|
|
8
|
+
export declare const registerModelServiceCommand: (register: Syringe.Register) => void;
|
|
9
|
+
/** app onStart 时, 注册 Command Hooks */
|
|
10
|
+
export declare const hookhubList: {
|
|
11
|
+
command: IGraphCommand;
|
|
12
|
+
hookKey: string;
|
|
13
|
+
createHook?: () => HookHub;
|
|
14
|
+
}[];
|
|
15
|
+
/** 扩展 Command Hooks 类型*/
|
|
16
|
+
export interface ICmdHooks extends NsUpdateModelCommand.ICmdHooks, IHooks {
|
|
17
|
+
}
|
|
18
|
+
/** Command 参数类型*/
|
|
19
|
+
export declare namespace NsModelServiceCmd {
|
|
20
|
+
namespace UpdateModelCommand {
|
|
21
|
+
type IArgs<T> = NsUpdateModelCommand.IArgs<T>;
|
|
22
|
+
type IResult<T> = NsUpdateModelCommand.IResult<T>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hookhubList = exports.registerModelServiceCommand = void 0;
|
|
4
|
+
/** commands */
|
|
5
|
+
var update_model_1 = require("./update-model");
|
|
6
|
+
/** 注册Command Handler Class */
|
|
7
|
+
var registerModelServiceCommand = function (register) {
|
|
8
|
+
register(update_model_1.UpdateModelCommand);
|
|
9
|
+
};
|
|
10
|
+
exports.registerModelServiceCommand = registerModelServiceCommand;
|
|
11
|
+
/** app onStart 时, 注册 Command Hooks */
|
|
12
|
+
exports.hookhubList = [update_model_1.NsUpdateModelCommand];
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command-contributions/models/index.ts"],"names":[],"mappings":";;;AAKA,eAAe;AACf,+CAAyE;AAEzE,8BAA8B;AACvB,IAAM,2BAA2B,GAAG,UAAC,QAA0B;IACpE,QAAQ,CAAC,iCAAkB,CAAC,CAAA;AAC9B,CAAC,CAAA;AAFY,QAAA,2BAA2B,+BAEvC;AAED,sCAAsC;AACzB,QAAA,WAAW,GAIlB,CAAC,mCAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
2
|
+
import type { IArgsBase } from '../../command/interface';
|
|
3
|
+
import { ICommandHandler } from '../../command/interface';
|
|
4
|
+
import type { IHooks } from '../../hooks/interface';
|
|
5
|
+
import type { NsModel } from '../../common/rx-model';
|
|
6
|
+
import type { IModelService } from '../../model-service';
|
|
7
|
+
type ICommand = ICommandHandler<NsUpdateModelCommand.IArgs, NsUpdateModelCommand.IResult, NsUpdateModelCommand.ICmdHooks>;
|
|
8
|
+
export declare namespace NsUpdateModelCommand {
|
|
9
|
+
/** Command: 用于注册named factory */
|
|
10
|
+
const command: import("../../command/interface").IGraphCommand;
|
|
11
|
+
/** hookName */
|
|
12
|
+
const hookKey = "updateModel";
|
|
13
|
+
/** hook 参数类型 */
|
|
14
|
+
interface IArgs<T = any> extends IArgsBase {
|
|
15
|
+
getModel: (modelService: IModelService) => Promise<NsModel.IModel<T>>;
|
|
16
|
+
updateModel: ISetValue<T>;
|
|
17
|
+
}
|
|
18
|
+
/** hook handler 返回类型 */
|
|
19
|
+
interface IResult<T = any> {
|
|
20
|
+
model: NsModel.IModel<T>;
|
|
21
|
+
/** X6的Cell */
|
|
22
|
+
value: T;
|
|
23
|
+
}
|
|
24
|
+
/** add node api service 类型 */
|
|
25
|
+
interface ISetValue<T> {
|
|
26
|
+
(value: T): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
/** hooks 类型 */
|
|
29
|
+
interface ICmdHooks extends IHooks {
|
|
30
|
+
updateModel: HookHub<IArgs, IResult>;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export declare class UpdateModelCommand implements ICommand {
|
|
34
|
+
/** api */
|
|
35
|
+
contextProvider: ICommand['contextProvider'];
|
|
36
|
+
/** 执行Cmd */
|
|
37
|
+
execute: () => Promise<this>;
|
|
38
|
+
/** undo cmd */
|
|
39
|
+
undo: () => Promise<this>;
|
|
40
|
+
/** redo cmd */
|
|
41
|
+
redo: () => Promise<this>;
|
|
42
|
+
isUndoable(): boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare const execCmd: () => void;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execCmd = exports.UpdateModelCommand = exports.NsUpdateModelCommand = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
6
|
+
var immer_1 = require("immer");
|
|
7
|
+
var interface_1 = require("../../command/interface");
|
|
8
|
+
var constant_1 = require("../constant");
|
|
9
|
+
var disposable_1 = require("../../common/disposable");
|
|
10
|
+
var NsUpdateModelCommand;
|
|
11
|
+
(function (NsUpdateModelCommand) {
|
|
12
|
+
/** Command: 用于注册named factory */
|
|
13
|
+
NsUpdateModelCommand.command = constant_1.XFlowModelCommands.UPDATE_MODEL;
|
|
14
|
+
/** hookName */
|
|
15
|
+
NsUpdateModelCommand.hookKey = 'updateModel';
|
|
16
|
+
})(NsUpdateModelCommand = exports.NsUpdateModelCommand || (exports.NsUpdateModelCommand = {}));
|
|
17
|
+
var UpdateModelCommand = /** @class */ (function () {
|
|
18
|
+
/** 创建节点命令 */
|
|
19
|
+
function UpdateModelCommand() {
|
|
20
|
+
var _this = this;
|
|
21
|
+
/** 执行Cmd */
|
|
22
|
+
this.execute = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
23
|
+
var ctx, _a, args, runtimeHook, hooks, result;
|
|
24
|
+
var _this = this;
|
|
25
|
+
return tslib_1.__generator(this, function (_b) {
|
|
26
|
+
switch (_b.label) {
|
|
27
|
+
case 0:
|
|
28
|
+
ctx = this.contextProvider();
|
|
29
|
+
_a = ctx.getArgs(), args = _a.args, runtimeHook = _a.hooks;
|
|
30
|
+
hooks = ctx.getHooks();
|
|
31
|
+
return [4 /*yield*/, hooks.updateModel.call(args, function (handlerArgs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
32
|
+
var updateModel, getModel, modelService, model, currentValue, draft, newValue;
|
|
33
|
+
var _this = this;
|
|
34
|
+
return tslib_1.__generator(this, function (_a) {
|
|
35
|
+
switch (_a.label) {
|
|
36
|
+
case 0:
|
|
37
|
+
updateModel = handlerArgs.updateModel, getModel = handlerArgs.getModel, modelService = handlerArgs.modelService;
|
|
38
|
+
return [4 /*yield*/, getModel(modelService)];
|
|
39
|
+
case 1:
|
|
40
|
+
model = _a.sent();
|
|
41
|
+
currentValue = model.getValue();
|
|
42
|
+
draft = (0, immer_1.createDraft)(currentValue);
|
|
43
|
+
return [4 /*yield*/, updateModel(draft)];
|
|
44
|
+
case 2:
|
|
45
|
+
_a.sent();
|
|
46
|
+
newValue = (0, immer_1.finishDraft)(draft);
|
|
47
|
+
model.setValue(newValue);
|
|
48
|
+
ctx.addUndo(disposable_1.Disposable.create(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
49
|
+
return tslib_1.__generator(this, function (_a) {
|
|
50
|
+
model.setValue(newValue);
|
|
51
|
+
return [2 /*return*/];
|
|
52
|
+
});
|
|
53
|
+
}); }));
|
|
54
|
+
return [2 /*return*/, { model: model, value: newValue }];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}); }, runtimeHook)];
|
|
58
|
+
case 1:
|
|
59
|
+
result = _b.sent();
|
|
60
|
+
ctx.setResult(result);
|
|
61
|
+
return [2 /*return*/, this];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}); };
|
|
65
|
+
/** undo cmd */
|
|
66
|
+
this.undo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
67
|
+
var ctx;
|
|
68
|
+
return tslib_1.__generator(this, function (_a) {
|
|
69
|
+
ctx = this.contextProvider();
|
|
70
|
+
if (this.isUndoable()) {
|
|
71
|
+
ctx.undo();
|
|
72
|
+
}
|
|
73
|
+
return [2 /*return*/, this];
|
|
74
|
+
});
|
|
75
|
+
}); };
|
|
76
|
+
/** redo cmd */
|
|
77
|
+
this.redo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
78
|
+
return tslib_1.__generator(this, function (_a) {
|
|
79
|
+
switch (_a.label) {
|
|
80
|
+
case 0:
|
|
81
|
+
if (!!this.isUndoable()) return [3 /*break*/, 2];
|
|
82
|
+
return [4 /*yield*/, this.execute()];
|
|
83
|
+
case 1:
|
|
84
|
+
_a.sent();
|
|
85
|
+
_a.label = 2;
|
|
86
|
+
case 2: return [2 /*return*/, this];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}); };
|
|
90
|
+
}
|
|
91
|
+
UpdateModelCommand.prototype.isUndoable = function () {
|
|
92
|
+
var ctx = this.contextProvider();
|
|
93
|
+
return ctx.isUndoable();
|
|
94
|
+
};
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, mana_syringe_1.inject)(interface_1.ICommandContextProvider),
|
|
97
|
+
tslib_1.__metadata("design:type", Object)
|
|
98
|
+
], UpdateModelCommand.prototype, "contextProvider", void 0);
|
|
99
|
+
UpdateModelCommand = tslib_1.__decorate([
|
|
100
|
+
(0, mana_syringe_1.injectable)({
|
|
101
|
+
token: { token: interface_1.ICommandHandler, named: NsUpdateModelCommand.command.id },
|
|
102
|
+
})
|
|
103
|
+
/** 创建节点命令 */
|
|
104
|
+
], UpdateModelCommand);
|
|
105
|
+
return UpdateModelCommand;
|
|
106
|
+
}());
|
|
107
|
+
exports.UpdateModelCommand = UpdateModelCommand;
|
|
108
|
+
var execCmd = function () { };
|
|
109
|
+
exports.execCmd = execCmd;
|
|
110
|
+
//# sourceMappingURL=update-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-model.js","sourceRoot":"","sources":["../../../src/command-contributions/models/update-model.ts"],"names":[],"mappings":";;;;AAAA,6CAAiD;AACjD,+BAAgD;AAGhD,qDAAkF;AAClF,wCAAgD;AAChD,sDAAoD;AAYpD,IAAiB,oBAAoB,CAwBpC;AAxBD,WAAiB,oBAAoB;IACnC,iCAAiC;IACpB,4BAAO,GAAG,6BAAkB,CAAC,YAAY,CAAA;IACtD,eAAe;IACF,4BAAO,GAAG,aAAa,CAAA;AAoBtC,CAAC,EAxBgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAwBpC;AAMD;IADA,aAAa;IACb;QAAA,iBAsDC;QAlDC,YAAY;QACZ,YAAO,GAAG;;;;;;wBACF,GAAG,GAAG,IAAI,CAAC,eAAe,EAAE,CAAA;wBAC5B,KAA+B,GAAG,CAAC,OAAO,EAAE,EAA1C,IAAI,UAAA,EAAS,WAAW,WAAA,CAAkB;wBAC5C,KAAK,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAA;wBAEb,qBAAM,KAAK,CAAC,WAAW,CAAC,IAAI,CACzC,IAAI,EACJ,UAAM,WAAW;;;;;;4CACP,WAAW,GAA6B,WAAW,YAAxC,EAAE,QAAQ,GAAmB,WAAW,SAA9B,EAAE,YAAY,GA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AG,CAAC,UAAU,EAAE,CAAA;IACzB,CAAC;IAnDD;QAAC,IAAA,qBAAM,EAAC,mCAAuB,CAAC;;+DAA6C;IAFlE,kBAAkB;QAJ9B,IAAA,yBAAU,EAAC;YACV,KAAK,EAAE,EAAE,KAAK,EAAE,2BAAe,EAAE,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,EAAE;SAC1E,CAAC;QACF,aAAa;OACA,kBAAkB,CAsD9B;IAAD,yBAAC;CAAA,AAtDD,IAsDC;AAtDY,gDAAkB;AAwDxB,IAAM,OAAO,GAAG,cAAO,CAAC,CAAA;AAAlB,QAAA,OAAO,WAAW"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createModule = void 0;
|
|
4
|
+
require("reflect-metadata");
|
|
5
|
+
/** Application 扩展依赖 */
|
|
6
|
+
var interface_1 = require("../command/interface");
|
|
7
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
8
|
+
var cmd_context_1 = require("./cmd-context");
|
|
9
|
+
var config_1 = require("./config");
|
|
10
|
+
var command_contribution_1 = require("./command-contribution");
|
|
11
|
+
var mapping_service_1 = require("./mapping-service");
|
|
12
|
+
/** 依赖扩展模块,必须要加载 */
|
|
13
|
+
var createModule = function (commandConfig) {
|
|
14
|
+
return (0, mana_syringe_1.Module)(function (register) {
|
|
15
|
+
/** 注册 mapping helper */
|
|
16
|
+
register(mapping_service_1.GraphMappingHelper);
|
|
17
|
+
/** 注册 CommandConfig */
|
|
18
|
+
(0, config_1.registerCommandConfig)(register, commandConfig);
|
|
19
|
+
/** 注册 Command扩展 */
|
|
20
|
+
(0, command_contribution_1.registerXFlowCommandContribution)(register, commandConfig);
|
|
21
|
+
/** 注册 Context Clz */
|
|
22
|
+
register(cmd_context_1.CmdContext);
|
|
23
|
+
/** ICommandHandler 工厂 */
|
|
24
|
+
register(interface_1.IGraphCommandFactory, {
|
|
25
|
+
useFactory: function (context) {
|
|
26
|
+
return function (commandId, args, hook) {
|
|
27
|
+
var child = context.container.createChild();
|
|
28
|
+
/** 实例化 Context */
|
|
29
|
+
var cmdContext = child.get(cmd_context_1.CmdContext);
|
|
30
|
+
/** 绑定 CommandContext 工厂类 */
|
|
31
|
+
child.register(interface_1.ICommandContextProvider, {
|
|
32
|
+
useDynamic: function () {
|
|
33
|
+
return function () { return cmdContext; };
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
/** 实例化CommandHandler */
|
|
37
|
+
var commandHandler = child.getNamed(interface_1.ICommandHandler, commandId);
|
|
38
|
+
/** 设置参数 */
|
|
39
|
+
cmdContext.setArgs(args, hook);
|
|
40
|
+
/** 绑定关系 */
|
|
41
|
+
cmdContext.handlerInstance = commandHandler;
|
|
42
|
+
return commandHandler;
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
exports.createModule = createModule;
|
|
49
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/command-contributions/module.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,uBAAuB;AACvB,kDAI6B;AAC7B,6CAAqC;AACrC,6CAA0C;AAK1C,mCAAgD;AAChD,+DAAyE;AACzE,qDAAsD;AAEtD,mBAAmB;AACZ,IAAM,YAAY,GAAG,UAAC,aAA4B;IACvD,OAAO,IAAA,qBAAM,EAAC,UAAA,QAAQ;QACpB,wBAAwB;QACxB,QAAQ,CAAC,oCAAkB,CAAC,CAAA;QAE5B,uBAAuB;QACvB,IAAA,8BAAqB,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAA;QAE9C,mBAAmB;QACnB,IAAA,uDAAgC,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAA;QAEzD,qBAAqB;QACrB,QAAQ,CAAa,wBAAU,CAAC,CAAA;QAEhC,yBAAyB;QACzB,QAAQ,CAAkB,gCAAoB,EAAE;YAC9C,UAAU,EAAE,UAAA,OAAO;gBACjB,OAAO,UAAC,SAAiB,EAAE,IAAS,EAAE,IAAkB;oBACtD,IAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,CAAA;oBAC7C,kBAAkB;oBAClB,IAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAa,wBAAU,CAAC,CAAA;oBACpD,4BAA4B;oBAC5B,KAAK,CAAC,QAAQ,CAA0B,mCAAuB,EAAE;wBAC/D,UAAU,EAAE;4BACV,OAAO,cAAM,OAAA,UAAU,EAAV,CAAU,CAAA;wBACzB,CAAC;qBACF,CAAC,CAAA;oBACF,wBAAwB;oBACxB,IAAM,cAAc,GAAG,KAAK,CAAC,QAAQ,CAAkB,2BAAe,EAAE,SAAS,CAAC,CAAA;oBAClF,WAAW;oBACX,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;oBAC9B,WAAW;oBACX,UAAU,CAAC,eAAe,GAAG,cAAc,CAAA;oBAC3C,OAAO,cAAc,CAAA;gBACvB,CAAC,CAAA;YACH,CAAC;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAtCY,QAAA,YAAY,gBAsCxB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Syringe } from 'mana-syringe';
|
|
2
|
+
import type { IGraphCommand } from '../../command/interface';
|
|
3
|
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
4
|
+
import type { IHooks } from '../../hooks/interface';
|
|
5
|
+
import type { Simplify } from '../../common/types';
|
|
6
|
+
/** commands */
|
|
7
|
+
import { NsAddNode } from './node-add';
|
|
8
|
+
import { NsDelNode } from './node-del';
|
|
9
|
+
import { NsSelectNode } from './node-select';
|
|
10
|
+
import { NsMoveNode } from './node-move';
|
|
11
|
+
import { NsUpdateNode } from './node-update';
|
|
12
|
+
import { NsCenterNode } from './node-center';
|
|
13
|
+
import { NsFrontNode } from './node-front';
|
|
14
|
+
import { NsBackNode } from './node-back';
|
|
15
|
+
import { NsHighlightNode } from './node-highlight';
|
|
16
|
+
import { NsUpdateNodePort } from './node-update-port';
|
|
17
|
+
/** 注册Command Handler Class */
|
|
18
|
+
export declare const registerNodeCommand: (register: Syringe.Register) => void;
|
|
19
|
+
/** app onStart 时, 注册 Command Hooks */
|
|
20
|
+
export declare const hookhubList: {
|
|
21
|
+
command: IGraphCommand;
|
|
22
|
+
hookKey: string;
|
|
23
|
+
createHook?: () => HookHub;
|
|
24
|
+
}[];
|
|
25
|
+
/** 扩展 Command Hooks 类型*/
|
|
26
|
+
export interface ICmdHooks extends NsAddNode.ICmdHooks, NsDelNode.ICmdHooks, NsSelectNode.ICmdHooks, NsMoveNode.ICmdHooks, NsUpdateNode.ICmdHooks, NsCenterNode.ICmdHooks, NsFrontNode.ICmdHooks, NsBackNode.ICmdHooks, NsHighlightNode.ICmdHooks, NsUpdateNodePort.ICmdHooks, IHooks {
|
|
27
|
+
}
|
|
28
|
+
/** Command 参数类型*/
|
|
29
|
+
export declare namespace NsNodeCmd {
|
|
30
|
+
namespace AddNode {
|
|
31
|
+
type IArgs = Simplify<NsAddNode.IArgs>;
|
|
32
|
+
type IResult = Simplify<NsAddNode.IResult>;
|
|
33
|
+
}
|
|
34
|
+
namespace DelNode {
|
|
35
|
+
type IArgs = Simplify<NsDelNode.IArgs>;
|
|
36
|
+
type IResult = Simplify<NsDelNode.IResult>;
|
|
37
|
+
}
|
|
38
|
+
namespace SelectNode {
|
|
39
|
+
type IArgs = Simplify<NsSelectNode.IArgs>;
|
|
40
|
+
type IResult = Simplify<NsSelectNode.IResult>;
|
|
41
|
+
}
|
|
42
|
+
namespace MoveNode {
|
|
43
|
+
type IArgs = Simplify<NsMoveNode.IArgs>;
|
|
44
|
+
type IResult = Simplify<NsMoveNode.IResult>;
|
|
45
|
+
}
|
|
46
|
+
namespace UpdateNodePort {
|
|
47
|
+
type IArgs = Simplify<NsUpdateNodePort.IArgs>;
|
|
48
|
+
type IResult = Simplify<NsUpdateNodePort.IResult>;
|
|
49
|
+
}
|
|
50
|
+
namespace UpdateNode {
|
|
51
|
+
type IArgs = Simplify<NsUpdateNode.IArgs>;
|
|
52
|
+
type IResult = Simplify<NsUpdateNode.IResult>;
|
|
53
|
+
}
|
|
54
|
+
namespace CenterNode {
|
|
55
|
+
type IArgs = Simplify<NsCenterNode.IArgs>;
|
|
56
|
+
type IResult = Simplify<NsCenterNode.IResult>;
|
|
57
|
+
}
|
|
58
|
+
namespace FrontNode {
|
|
59
|
+
type IArgs = Simplify<NsFrontNode.IArgs>;
|
|
60
|
+
type IResult = Simplify<NsFrontNode.IResult>;
|
|
61
|
+
}
|
|
62
|
+
namespace BackNode {
|
|
63
|
+
type IArgs = Simplify<NsBackNode.IArgs>;
|
|
64
|
+
type IResult = Simplify<NsBackNode.IResult>;
|
|
65
|
+
}
|
|
66
|
+
namespace HighlightNode {
|
|
67
|
+
type IArgs = Simplify<NsHighlightNode.IArgs>;
|
|
68
|
+
type IResult = Simplify<NsHighlightNode.IResult>;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hookhubList = exports.registerNodeCommand = void 0;
|
|
4
|
+
/** commands */
|
|
5
|
+
var node_add_1 = require("./node-add");
|
|
6
|
+
var node_del_1 = require("./node-del");
|
|
7
|
+
var node_select_1 = require("./node-select");
|
|
8
|
+
var node_move_1 = require("./node-move");
|
|
9
|
+
var node_update_1 = require("./node-update");
|
|
10
|
+
var node_center_1 = require("./node-center");
|
|
11
|
+
var node_front_1 = require("./node-front");
|
|
12
|
+
var node_back_1 = require("./node-back");
|
|
13
|
+
var node_highlight_1 = require("./node-highlight");
|
|
14
|
+
var node_update_port_1 = require("./node-update-port");
|
|
15
|
+
/** 注册Command Handler Class */
|
|
16
|
+
var registerNodeCommand = function (register) {
|
|
17
|
+
register(node_add_1.AddNodeCommand);
|
|
18
|
+
register(node_del_1.DelNodeCommand);
|
|
19
|
+
register(node_select_1.SelectNodeCommand);
|
|
20
|
+
register(node_move_1.MoveNodeCommand);
|
|
21
|
+
register(node_update_1.UpdateNodeCommand);
|
|
22
|
+
register(node_center_1.CenterNodeCommand);
|
|
23
|
+
register(node_front_1.FrontNodeCommand);
|
|
24
|
+
register(node_back_1.BackNodeCommand);
|
|
25
|
+
register(node_highlight_1.HighlightNodeCommand);
|
|
26
|
+
register(node_update_port_1.UpdateNodePort);
|
|
27
|
+
};
|
|
28
|
+
exports.registerNodeCommand = registerNodeCommand;
|
|
29
|
+
/** app onStart 时, 注册 Command Hooks */
|
|
30
|
+
exports.hookhubList = [
|
|
31
|
+
node_add_1.NsAddNode,
|
|
32
|
+
node_del_1.NsDelNode,
|
|
33
|
+
node_select_1.NsSelectNode,
|
|
34
|
+
node_move_1.NsMoveNode,
|
|
35
|
+
node_update_1.NsUpdateNode,
|
|
36
|
+
node_center_1.NsCenterNode,
|
|
37
|
+
node_front_1.NsFrontNode,
|
|
38
|
+
node_back_1.NsBackNode,
|
|
39
|
+
node_highlight_1.NsHighlightNode,
|
|
40
|
+
node_update_port_1.NsUpdateNodePort,
|
|
41
|
+
];
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command-contributions/node/index.ts"],"names":[],"mappings":";;;AAKA,eAAe;AACf,uCAAsD;AACtD,uCAAsD;AACtD,6CAA+D;AAC/D,yCAAyD;AACzD,6CAA+D;AAC/D,6CAA+D;AAC/D,2CAA4D;AAC5D,yCAAyD;AACzD,mDAAwE;AACxE,uDAAqE;AAErE,8BAA8B;AACvB,IAAM,mBAAmB,GAAG,UAAC,QAA0B;IAC5D,QAAQ,CAAC,yBAAc,CAAC,CAAA;IACxB,QAAQ,CAAC,yBAAc,CAAC,CAAA;IACxB,QAAQ,CAAC,+BAAiB,CAAC,CAAA;IAC3B,QAAQ,CAAC,2BAAe,CAAC,CAAA;IACzB,QAAQ,CAAC,+BAAiB,CAAC,CAAA;IAC3B,QAAQ,CAAC,+BAAiB,CAAC,CAAA;IAC3B,QAAQ,CAAC,6BAAgB,CAAC,CAAA;IAC1B,QAAQ,CAAC,2BAAe,CAAC,CAAA;IACzB,QAAQ,CAAC,qCAAoB,CAAC,CAAA;IAC9B,QAAQ,CAAC,iCAAc,CAAC,CAAA;AAC1B,CAAC,CAAA;AAXY,QAAA,mBAAmB,uBAW/B;AAED,sCAAsC;AACzB,QAAA,WAAW,GAIlB;IACJ,oBAAS;IACT,oBAAS;IACT,0BAAY;IACZ,sBAAU;IACV,0BAAY;IACZ,0BAAY;IACZ,wBAAW;IACX,sBAAU;IACV,gCAAe;IACf,mCAAgB;CACjB,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Model, Node } from '@antv/x6';
|
|
2
|
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
3
|
+
import type { NsGraph } from '../../interface';
|
|
4
|
+
import type { IHooks } from '../../hooks/interface';
|
|
5
|
+
import type { IArgsBase } from '../../command/interface';
|
|
6
|
+
import { ICommandHandler } from '../../command/interface';
|
|
7
|
+
type ICommand = ICommandHandler<NsAddNode.IArgs, NsAddNode.IResult, NsAddNode.ICmdHooks>;
|
|
8
|
+
export declare namespace NsAddNode {
|
|
9
|
+
/** Command: 用于注册named factory */
|
|
10
|
+
const command: import("../../command/interface").IGraphCommand;
|
|
11
|
+
/** hookName */
|
|
12
|
+
const hookKey = "addNode";
|
|
13
|
+
/** hook 参数类型 */
|
|
14
|
+
interface IArgs extends IArgsBase {
|
|
15
|
+
/** 节点的元数据 */
|
|
16
|
+
nodeConfig: NsGraph.INodeConfig;
|
|
17
|
+
/** X6 Model Options:https://x6.antv.vision/zh/docs/api/graph/model/#addnode */
|
|
18
|
+
options?: Model.AddOptions;
|
|
19
|
+
/** 创建X6 Node Cell的工厂方法 */
|
|
20
|
+
cellFactory?: INodeCellFactory;
|
|
21
|
+
/** 创建Node的服务 */
|
|
22
|
+
createNodeService?: ICreateNodeService;
|
|
23
|
+
}
|
|
24
|
+
/** hook handler 返回类型 */
|
|
25
|
+
interface IResult {
|
|
26
|
+
err?: string;
|
|
27
|
+
/** 节点的元数据 */
|
|
28
|
+
nodeConfig?: NsGraph.INodeConfig;
|
|
29
|
+
/** X6的Cell */
|
|
30
|
+
nodeCell?: Node;
|
|
31
|
+
}
|
|
32
|
+
/** add node api service 类型 */
|
|
33
|
+
interface ICreateNodeService {
|
|
34
|
+
(args: IArgs): Promise<NsGraph.INodeConfig | boolean>;
|
|
35
|
+
}
|
|
36
|
+
/** 创建X6 Node Cell的工厂方法 */
|
|
37
|
+
interface INodeCellFactory {
|
|
38
|
+
(args: NsGraph.INodeConfig, self: AddNodeCommand): Promise<Node>;
|
|
39
|
+
}
|
|
40
|
+
/** hooks 类型 */
|
|
41
|
+
interface ICmdHooks extends IHooks {
|
|
42
|
+
addNode: HookHub<IArgs, IResult>;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export declare class AddNodeCommand implements ICommand {
|
|
46
|
+
/** api */
|
|
47
|
+
contextProvider: ICommand['contextProvider'];
|
|
48
|
+
/** 执行Cmd */
|
|
49
|
+
execute: () => Promise<this>;
|
|
50
|
+
processNodeConfig: (nodeConfig: NsGraph.INodeConfig) => Promise<NsGraph.INodeConfig>;
|
|
51
|
+
getNodeReactComponent: (nodeConfig: NsGraph.INodeConfig) => Promise<React.ComponentType<NsGraph.IReactNodeProps<T>>>;
|
|
52
|
+
/** undo cmd */
|
|
53
|
+
undo: () => Promise<this>;
|
|
54
|
+
/** redo cmd */
|
|
55
|
+
redo: () => Promise<this>;
|
|
56
|
+
isUndoable(): boolean;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddNodeCommand = exports.NsAddNode = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
6
|
+
var interface_1 = require("../../command/interface");
|
|
7
|
+
var context_1 = require("../components/context");
|
|
8
|
+
var constant_1 = require("../constant");
|
|
9
|
+
var disposable_1 = require("../../common/disposable");
|
|
10
|
+
var constants_1 = require("../../constants");
|
|
11
|
+
var NsAddNode;
|
|
12
|
+
(function (NsAddNode) {
|
|
13
|
+
/** Command: 用于注册named factory */
|
|
14
|
+
NsAddNode.command = constant_1.XFlowNodeCommands.ADD_NODE;
|
|
15
|
+
/** hookName */
|
|
16
|
+
NsAddNode.hookKey = 'addNode';
|
|
17
|
+
})(NsAddNode = exports.NsAddNode || (exports.NsAddNode = {}));
|
|
18
|
+
var AddNodeCommand = /** @class */ (function () {
|
|
19
|
+
/** 创建节点命令 */
|
|
20
|
+
function AddNodeCommand() {
|
|
21
|
+
var _this = this;
|
|
22
|
+
/** 执行Cmd */
|
|
23
|
+
this.execute = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
24
|
+
var ctx, _a, args, runtimeHook, hooks, result;
|
|
25
|
+
var _this = this;
|
|
26
|
+
return tslib_1.__generator(this, function (_b) {
|
|
27
|
+
switch (_b.label) {
|
|
28
|
+
case 0:
|
|
29
|
+
ctx = this.contextProvider();
|
|
30
|
+
_a = ctx.getArgs(), args = _a.args, runtimeHook = _a.hooks;
|
|
31
|
+
hooks = ctx.getHooks();
|
|
32
|
+
return [4 /*yield*/, hooks.addNode.call(args, function (handlerArgs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
33
|
+
var createNodeService, cellFactory, commandService, options, graph, rawNode, res, nodeConfig, x6NodeCell, eventOptions, cell;
|
|
34
|
+
var _this = this;
|
|
35
|
+
return tslib_1.__generator(this, function (_a) {
|
|
36
|
+
switch (_a.label) {
|
|
37
|
+
case 0:
|
|
38
|
+
createNodeService = handlerArgs.createNodeService, cellFactory = handlerArgs.cellFactory, commandService = handlerArgs.commandService, options = handlerArgs.options;
|
|
39
|
+
return [4 /*yield*/, ctx.getX6Graph()];
|
|
40
|
+
case 1:
|
|
41
|
+
graph = _a.sent();
|
|
42
|
+
rawNode = handlerArgs.nodeConfig;
|
|
43
|
+
if (!createNodeService) return [3 /*break*/, 3];
|
|
44
|
+
return [4 /*yield*/, createNodeService(handlerArgs)];
|
|
45
|
+
case 2:
|
|
46
|
+
res = _a.sent();
|
|
47
|
+
if (typeof res === 'boolean') {
|
|
48
|
+
return [2 /*return*/, { err: 'createNodeService rejected' }];
|
|
49
|
+
}
|
|
50
|
+
rawNode = res;
|
|
51
|
+
_a.label = 3;
|
|
52
|
+
case 3: return [4 /*yield*/, this.processNodeConfig(rawNode)];
|
|
53
|
+
case 4:
|
|
54
|
+
nodeConfig = _a.sent();
|
|
55
|
+
eventOptions = tslib_1.__assign(tslib_1.__assign({}, options), { isCommand: true });
|
|
56
|
+
if (!cellFactory) return [3 /*break*/, 6];
|
|
57
|
+
return [4 /*yield*/, cellFactory(nodeConfig, this)];
|
|
58
|
+
case 5:
|
|
59
|
+
cell = _a.sent();
|
|
60
|
+
x6NodeCell = graph.addNode(cell, eventOptions);
|
|
61
|
+
return [3 /*break*/, 7];
|
|
62
|
+
case 6:
|
|
63
|
+
x6NodeCell = graph.addNode(nodeConfig, eventOptions);
|
|
64
|
+
_a.label = 7;
|
|
65
|
+
case 7:
|
|
66
|
+
/** add undo: delete node */
|
|
67
|
+
ctx.addUndo(disposable_1.Disposable.create(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
68
|
+
var nodeData;
|
|
69
|
+
return tslib_1.__generator(this, function (_a) {
|
|
70
|
+
nodeData = tslib_1.__assign({ id: x6NodeCell.id }, x6NodeCell.getData());
|
|
71
|
+
commandService.executeCommand(constant_1.XFlowNodeCommands.DEL_NODE.id, {
|
|
72
|
+
nodeConfig: nodeData,
|
|
73
|
+
});
|
|
74
|
+
return [2 /*return*/];
|
|
75
|
+
});
|
|
76
|
+
}); }));
|
|
77
|
+
return [2 /*return*/, { nodeConfig: nodeConfig, nodeCell: x6NodeCell }];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}); }, runtimeHook)];
|
|
81
|
+
case 1:
|
|
82
|
+
result = _b.sent();
|
|
83
|
+
ctx.setResult(result);
|
|
84
|
+
return [2 /*return*/, this];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}); };
|
|
88
|
+
this.processNodeConfig = function (nodeConfig) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
89
|
+
var ctx, graphConfig, reactComponent, commands, modelService;
|
|
90
|
+
return tslib_1.__generator(this, function (_a) {
|
|
91
|
+
switch (_a.label) {
|
|
92
|
+
case 0:
|
|
93
|
+
ctx = this.contextProvider();
|
|
94
|
+
/**
|
|
95
|
+
* 1. react shape node 逻辑
|
|
96
|
+
* 2. X6不会处理data数据, 仅透传。可以通过x6Node?.getData()方法获取这份数据
|
|
97
|
+
*/
|
|
98
|
+
nodeConfig.data = tslib_1.__assign({}, nodeConfig);
|
|
99
|
+
/** 非 react shape */
|
|
100
|
+
if (nodeConfig.shape) {
|
|
101
|
+
return [2 /*return*/, nodeConfig];
|
|
102
|
+
}
|
|
103
|
+
if (!!nodeConfig.view) return [3 /*break*/, 2];
|
|
104
|
+
return [4 /*yield*/, ctx.getGraphConfig()];
|
|
105
|
+
case 1:
|
|
106
|
+
graphConfig = _a.sent();
|
|
107
|
+
nodeConfig.view = graphConfig.graphId;
|
|
108
|
+
_a.label = 2;
|
|
109
|
+
case 2:
|
|
110
|
+
if (!!nodeConfig.component) return [3 /*break*/, 4];
|
|
111
|
+
return [4 /*yield*/, this.getNodeReactComponent(nodeConfig)];
|
|
112
|
+
case 3:
|
|
113
|
+
reactComponent = _a.sent();
|
|
114
|
+
commands = ctx.getCommands();
|
|
115
|
+
modelService = ctx.getModelService();
|
|
116
|
+
nodeConfig.shape = 'react-shape';
|
|
117
|
+
nodeConfig.component = (0, context_1.getNodeReactComponent)(reactComponent, commands, modelService);
|
|
118
|
+
_a.label = 4;
|
|
119
|
+
case 4: return [2 /*return*/, nodeConfig];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}); };
|
|
123
|
+
this.getNodeReactComponent = function (nodeConfig) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
124
|
+
var ctx, hooks, graphConfig, renderMap, renderKey, reactComponent;
|
|
125
|
+
return tslib_1.__generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0:
|
|
128
|
+
ctx = this.contextProvider();
|
|
129
|
+
hooks = ctx.getHooks();
|
|
130
|
+
return [4 /*yield*/, ctx.getGraphConfig()
|
|
131
|
+
/** 通过hooks获取更多的组件 */
|
|
132
|
+
];
|
|
133
|
+
case 1:
|
|
134
|
+
graphConfig = _a.sent();
|
|
135
|
+
return [4 /*yield*/, hooks.reactNodeRender.call(graphConfig.nodeRender)
|
|
136
|
+
/** 获取renderKey,没有renderKey时使用默认Key */
|
|
137
|
+
];
|
|
138
|
+
case 2:
|
|
139
|
+
renderMap = _a.sent();
|
|
140
|
+
renderKey = graphConfig.nodeTypeParser(nodeConfig) || constants_1.XFLOW_DEFAULT_NODE;
|
|
141
|
+
reactComponent = renderMap.get(renderKey);
|
|
142
|
+
if (!reactComponent) {
|
|
143
|
+
console.error('react node component is missing:', graphConfig.nodeRender, renderKey, reactComponent);
|
|
144
|
+
}
|
|
145
|
+
return [2 /*return*/, reactComponent];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
/** undo cmd */
|
|
150
|
+
this.undo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
151
|
+
var ctx;
|
|
152
|
+
return tslib_1.__generator(this, function (_a) {
|
|
153
|
+
ctx = this.contextProvider();
|
|
154
|
+
if (this.isUndoable()) {
|
|
155
|
+
ctx.undo();
|
|
156
|
+
}
|
|
157
|
+
return [2 /*return*/, this];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
/** redo cmd */
|
|
161
|
+
this.redo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
162
|
+
return tslib_1.__generator(this, function (_a) {
|
|
163
|
+
switch (_a.label) {
|
|
164
|
+
case 0:
|
|
165
|
+
if (!!this.isUndoable()) return [3 /*break*/, 2];
|
|
166
|
+
return [4 /*yield*/, this.execute()];
|
|
167
|
+
case 1:
|
|
168
|
+
_a.sent();
|
|
169
|
+
_a.label = 2;
|
|
170
|
+
case 2: return [2 /*return*/, this];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}); };
|
|
174
|
+
}
|
|
175
|
+
AddNodeCommand.prototype.isUndoable = function () {
|
|
176
|
+
var ctx = this.contextProvider();
|
|
177
|
+
return ctx.isUndoable();
|
|
178
|
+
};
|
|
179
|
+
tslib_1.__decorate([
|
|
180
|
+
(0, mana_syringe_1.inject)(interface_1.ICommandContextProvider),
|
|
181
|
+
tslib_1.__metadata("design:type", Object)
|
|
182
|
+
], AddNodeCommand.prototype, "contextProvider", void 0);
|
|
183
|
+
AddNodeCommand = tslib_1.__decorate([
|
|
184
|
+
(0, mana_syringe_1.injectable)({
|
|
185
|
+
token: { token: interface_1.ICommandHandler, named: NsAddNode.command.id },
|
|
186
|
+
})
|
|
187
|
+
/** 创建节点命令 */
|
|
188
|
+
], AddNodeCommand);
|
|
189
|
+
return AddNodeCommand;
|
|
190
|
+
}());
|
|
191
|
+
exports.AddNodeCommand = AddNodeCommand;
|
|
192
|
+
//# sourceMappingURL=node-add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-add.js","sourceRoot":"","sources":["../../../src/command-contributions/node/node-add.ts"],"names":[],"mappings":";;;;AAOA,6CAAiD;AACjD,qDAAkF;AAClF,iDAA6D;AAC7D,wCAA+C;AAC/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