@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,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphSaveDataCommand = exports.NsGraphSaveData = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
6
|
+
var constant_1 = require("../constant");
|
|
7
|
+
var interface_1 = require("../../command/interface");
|
|
8
|
+
var NsGraphSaveData;
|
|
9
|
+
(function (NsGraphSaveData) {
|
|
10
|
+
/** Command Id: 用于注册named factory */
|
|
11
|
+
NsGraphSaveData.command = constant_1.XFlowGraphCommands.SAVE_GRAPH_DATA;
|
|
12
|
+
/** hookName */
|
|
13
|
+
NsGraphSaveData.hookKey = 'saveGraphData';
|
|
14
|
+
})(NsGraphSaveData = exports.NsGraphSaveData || (exports.NsGraphSaveData = {}));
|
|
15
|
+
var GraphSaveDataCommand = /** @class */ (function () {
|
|
16
|
+
/** 创建节点命令 */
|
|
17
|
+
function GraphSaveDataCommand() {
|
|
18
|
+
var _this = this;
|
|
19
|
+
/** 执行Cmd */
|
|
20
|
+
this.execute = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
21
|
+
var ctx, args, hooks;
|
|
22
|
+
var _this = this;
|
|
23
|
+
return tslib_1.__generator(this, function (_a) {
|
|
24
|
+
switch (_a.label) {
|
|
25
|
+
case 0:
|
|
26
|
+
ctx = this.ctx;
|
|
27
|
+
args = ctx.getArgs();
|
|
28
|
+
hooks = ctx.getHooks();
|
|
29
|
+
/** 执行hooks */
|
|
30
|
+
return [4 /*yield*/, hooks.saveGraphData.call(
|
|
31
|
+
/** 执行hooks pipeline处理args */
|
|
32
|
+
args.args,
|
|
33
|
+
/** 执行 callback */
|
|
34
|
+
function (handlerArgs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
35
|
+
var saveGraphDataService, includeAttrs, x6Graph, x6Nodes, x6Edges, nodes, edges, graphData, graphMeta, result;
|
|
36
|
+
return tslib_1.__generator(this, function (_a) {
|
|
37
|
+
switch (_a.label) {
|
|
38
|
+
case 0:
|
|
39
|
+
saveGraphDataService = handlerArgs.saveGraphDataService, includeAttrs = handlerArgs.includeAttrs;
|
|
40
|
+
return [4 /*yield*/, ctx.getX6Graph()];
|
|
41
|
+
case 1:
|
|
42
|
+
x6Graph = _a.sent();
|
|
43
|
+
x6Nodes = x6Graph.getNodes();
|
|
44
|
+
x6Edges = x6Graph.getEdges();
|
|
45
|
+
nodes = x6Nodes.map(function (node) {
|
|
46
|
+
var data = node.getData();
|
|
47
|
+
var position = node.position();
|
|
48
|
+
var size = node.size();
|
|
49
|
+
var model = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ id: node.id }, data), position), size);
|
|
50
|
+
if (includeAttrs) {
|
|
51
|
+
model.attrs = node.getAttrs();
|
|
52
|
+
}
|
|
53
|
+
return model;
|
|
54
|
+
});
|
|
55
|
+
edges = x6Edges.map(function (edge) {
|
|
56
|
+
var data = edge.getData();
|
|
57
|
+
var model = tslib_1.__assign({ id: edge.id }, data);
|
|
58
|
+
if (includeAttrs) {
|
|
59
|
+
model.attrs = edge.getAttrs();
|
|
60
|
+
}
|
|
61
|
+
return model;
|
|
62
|
+
});
|
|
63
|
+
graphData = { nodes: nodes, edges: edges };
|
|
64
|
+
return [4 /*yield*/, this.ctx.getGraphMeta()
|
|
65
|
+
/** 执行 service */
|
|
66
|
+
];
|
|
67
|
+
case 2:
|
|
68
|
+
graphMeta = _a.sent();
|
|
69
|
+
if (!saveGraphDataService) return [3 /*break*/, 4];
|
|
70
|
+
return [4 /*yield*/, saveGraphDataService(graphMeta, graphData)
|
|
71
|
+
/** 设置结果 */
|
|
72
|
+
];
|
|
73
|
+
case 3:
|
|
74
|
+
result = _a.sent();
|
|
75
|
+
/** 设置结果 */
|
|
76
|
+
if (result) {
|
|
77
|
+
this.ctx.setResult(result);
|
|
78
|
+
}
|
|
79
|
+
_a.label = 4;
|
|
80
|
+
case 4: return [2 /*return*/, {}];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}); },
|
|
84
|
+
/** 外部的 hook */
|
|
85
|
+
args.hooks)];
|
|
86
|
+
case 1:
|
|
87
|
+
/** 执行hooks */
|
|
88
|
+
_a.sent();
|
|
89
|
+
return [2 /*return*/, this];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}); };
|
|
93
|
+
/** undo cmd */
|
|
94
|
+
this.undo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
95
|
+
return tslib_1.__generator(this, function (_a) {
|
|
96
|
+
this.ctx.undo();
|
|
97
|
+
return [2 /*return*/, this];
|
|
98
|
+
});
|
|
99
|
+
}); };
|
|
100
|
+
/** redo cmd */
|
|
101
|
+
this.redo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
102
|
+
return tslib_1.__generator(this, function (_a) {
|
|
103
|
+
switch (_a.label) {
|
|
104
|
+
case 0:
|
|
105
|
+
if (!!this.ctx.isUndoable) return [3 /*break*/, 2];
|
|
106
|
+
return [4 /*yield*/, this.execute()];
|
|
107
|
+
case 1:
|
|
108
|
+
_a.sent();
|
|
109
|
+
_a.label = 2;
|
|
110
|
+
case 2: return [2 /*return*/, this];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}); };
|
|
114
|
+
}
|
|
115
|
+
GraphSaveDataCommand.prototype.init = function () {
|
|
116
|
+
this.ctx = this.contextProvider();
|
|
117
|
+
};
|
|
118
|
+
/** isUndoable */
|
|
119
|
+
GraphSaveDataCommand.prototype.isUndoable = function () {
|
|
120
|
+
return this.ctx.isUndoable();
|
|
121
|
+
};
|
|
122
|
+
tslib_1.__decorate([
|
|
123
|
+
(0, mana_syringe_1.inject)(interface_1.ICommandContextProvider),
|
|
124
|
+
tslib_1.__metadata("design:type", Object)
|
|
125
|
+
], GraphSaveDataCommand.prototype, "contextProvider", void 0);
|
|
126
|
+
tslib_1.__decorate([
|
|
127
|
+
(0, mana_syringe_1.postConstruct)(),
|
|
128
|
+
tslib_1.__metadata("design:type", Function),
|
|
129
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
130
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
131
|
+
], GraphSaveDataCommand.prototype, "init", null);
|
|
132
|
+
GraphSaveDataCommand = tslib_1.__decorate([
|
|
133
|
+
(0, mana_syringe_1.injectable)({
|
|
134
|
+
token: { token: interface_1.ICommandHandler, named: NsGraphSaveData.command.id },
|
|
135
|
+
})
|
|
136
|
+
/** 创建节点命令 */
|
|
137
|
+
], GraphSaveDataCommand);
|
|
138
|
+
return GraphSaveDataCommand;
|
|
139
|
+
}());
|
|
140
|
+
exports.GraphSaveDataCommand = GraphSaveDataCommand;
|
|
141
|
+
//# sourceMappingURL=graph-save-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-save-data.js","sourceRoot":"","sources":["../../../src/command-contributions/graph/graph-save-data.ts"],"names":[],"mappings":";;;;AAIA,6CAAgE;AAChE,wCAAgD;AAChD,qDAAkF;AAQlF,IAAiB,eAAe,CAoB/B;AApBD,WAAiB,eAAe;IAC9B,oCAAoC;IACvB,uBAAO,GAAG,6BAAkB,CAAC,eAAe,CAAA;IACzD,eAAe;IACF,uBAAO,GAAG,eAAe,CAAA;AAgBxC,CAAC,EApBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAoB/B;AAMD;IADA,aAAa;IACb;QAAA,iBA6FC;QAlFC,YAAY;QACZ,YAAO,GAAG;;;;;;wBACF,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;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,GAAE;;;;oDAGf;IATU,oBAAoB;QAJhC,IAAA,yBAAU,EAAC;YACV,KAAK,EAAE,EAAE,KAAK,EAAE,2BAAe,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;SACrE,CAAC;QACF,aAAa;OACA,oBAAoB,CA6FhC;IAAD,2BAAC;CAAA,AA7FD,IA6FC;AA7FY,oDAAoB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IContext, IArgsBase } from '../../command/interface';
|
|
2
|
+
import { ICommandHandler } from '../../command/interface';
|
|
3
|
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
4
|
+
import type { IHooks } from '../../hooks/interface';
|
|
5
|
+
type ICommand = ICommandHandler<NsGraphToggleMultiSelect.IArgs, NsGraphToggleMultiSelect.IResult, NsGraphToggleMultiSelect.ICmdHooks>;
|
|
6
|
+
export declare namespace NsGraphToggleMultiSelect {
|
|
7
|
+
/** Command: 用于注册named factory */
|
|
8
|
+
const command: import("../../command/interface").IGraphCommand;
|
|
9
|
+
/** hookName */
|
|
10
|
+
const hookKey = "toggleMultiSelect";
|
|
11
|
+
/** hook 参数类型 */
|
|
12
|
+
interface IArgs extends IArgsBase {
|
|
13
|
+
isEnable?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** hook handler 返回类型 */
|
|
16
|
+
interface IResult {
|
|
17
|
+
isEnable: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** hooks 类型 */
|
|
20
|
+
interface ICmdHooks extends IHooks {
|
|
21
|
+
toggleMultiSelect: HookHub<IArgs, IResult>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare class GraphToggleMultiSelectCommand implements ICommand {
|
|
25
|
+
/** api */
|
|
26
|
+
contextProvider: ICommand['contextProvider'];
|
|
27
|
+
ctx: IContext<NsGraphToggleMultiSelect.IArgs, NsGraphToggleMultiSelect.IResult, NsGraphToggleMultiSelect.ICmdHooks>;
|
|
28
|
+
init(): void;
|
|
29
|
+
/** 执行Cmd */
|
|
30
|
+
execute: () => Promise<this>;
|
|
31
|
+
/** undo cmd */
|
|
32
|
+
undo: () => Promise<this>;
|
|
33
|
+
/** redo cmd */
|
|
34
|
+
redo: () => Promise<this>;
|
|
35
|
+
/** isUndoable */
|
|
36
|
+
isUndoable(): boolean;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphToggleMultiSelectCommand = exports.NsGraphToggleMultiSelect = 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 model_service_1 = require("../../model-service");
|
|
8
|
+
var constant_1 = require("../constant");
|
|
9
|
+
var NsGraphToggleMultiSelect;
|
|
10
|
+
(function (NsGraphToggleMultiSelect) {
|
|
11
|
+
/** Command: 用于注册named factory */
|
|
12
|
+
NsGraphToggleMultiSelect.command = constant_1.XFlowGraphCommands.GRAPH_TOGGLE_MULTI_SELECT;
|
|
13
|
+
/** hookName */
|
|
14
|
+
NsGraphToggleMultiSelect.hookKey = 'toggleMultiSelect';
|
|
15
|
+
})(NsGraphToggleMultiSelect = exports.NsGraphToggleMultiSelect || (exports.NsGraphToggleMultiSelect = {}));
|
|
16
|
+
var GraphToggleMultiSelectCommand = /** @class */ (function () {
|
|
17
|
+
/** 画布缩放命令 */
|
|
18
|
+
function GraphToggleMultiSelectCommand() {
|
|
19
|
+
var _this = this;
|
|
20
|
+
/** 执行Cmd */
|
|
21
|
+
this.execute = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
22
|
+
var _a, args, runtimeHook, hooks, result;
|
|
23
|
+
var _this = this;
|
|
24
|
+
return tslib_1.__generator(this, function (_b) {
|
|
25
|
+
switch (_b.label) {
|
|
26
|
+
case 0:
|
|
27
|
+
_a = this.ctx.getArgs(), args = _a.args, runtimeHook = _a.hooks;
|
|
28
|
+
hooks = this.ctx.getHooks();
|
|
29
|
+
return [4 /*yield*/, hooks.toggleMultiSelect.call(
|
|
30
|
+
/** 执行hooks pipeline处理args */
|
|
31
|
+
args,
|
|
32
|
+
/** 执行 callback */
|
|
33
|
+
function (handlerArgs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
34
|
+
var x6Graph, config, isEnable, modelService, graphEnableMultiSelectModel, needEnableRubberBand;
|
|
35
|
+
return tslib_1.__generator(this, function (_a) {
|
|
36
|
+
switch (_a.label) {
|
|
37
|
+
case 0: return [4 /*yield*/, this.ctx.getX6Graph()];
|
|
38
|
+
case 1:
|
|
39
|
+
x6Graph = _a.sent();
|
|
40
|
+
return [4 /*yield*/, this.ctx.getGraphConfig()];
|
|
41
|
+
case 2:
|
|
42
|
+
config = _a.sent();
|
|
43
|
+
isEnable = handlerArgs.isEnable, modelService = handlerArgs.modelService;
|
|
44
|
+
return [4 /*yield*/, model_service_1.MODELS.GRAPH_ENABLE_MULTI_SELECT.getModel(modelService)];
|
|
45
|
+
case 3:
|
|
46
|
+
graphEnableMultiSelectModel = _a.sent();
|
|
47
|
+
needEnableRubberBand = typeof isEnable === 'boolean' ? isEnable : !x6Graph.isRubberbandEnabled();
|
|
48
|
+
if (needEnableRubberBand) {
|
|
49
|
+
x6Graph.enableRubberband();
|
|
50
|
+
if (x6Graph.scroller && x6Graph.scroller.widget) {
|
|
51
|
+
x6Graph.scroller.disablePanning();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
x6Graph.disablePanning();
|
|
55
|
+
}
|
|
56
|
+
config.graphContainer.style.cursor = 'crosshair';
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
x6Graph.disableRubberband();
|
|
60
|
+
if (x6Graph.scroller && x6Graph.scroller.widget) {
|
|
61
|
+
x6Graph.scroller.enablePanning();
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
x6Graph.enablePanning();
|
|
65
|
+
}
|
|
66
|
+
config.graphContainer.style.cursor = 'grab';
|
|
67
|
+
}
|
|
68
|
+
graphEnableMultiSelectModel.setValue({ isEnable: needEnableRubberBand });
|
|
69
|
+
return [2 /*return*/, { isEnable: needEnableRubberBand }];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}); },
|
|
73
|
+
/** execute command 时创建的hook */
|
|
74
|
+
runtimeHook)
|
|
75
|
+
/** 设置结果 */
|
|
76
|
+
];
|
|
77
|
+
case 1:
|
|
78
|
+
result = _b.sent();
|
|
79
|
+
/** 设置结果 */
|
|
80
|
+
this.ctx.setResult(result);
|
|
81
|
+
return [2 /*return*/, this];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}); };
|
|
85
|
+
/** undo cmd */
|
|
86
|
+
this.undo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
87
|
+
return tslib_1.__generator(this, function (_a) {
|
|
88
|
+
this.ctx.undo();
|
|
89
|
+
return [2 /*return*/, this];
|
|
90
|
+
});
|
|
91
|
+
}); };
|
|
92
|
+
/** redo cmd */
|
|
93
|
+
this.redo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
94
|
+
return tslib_1.__generator(this, function (_a) {
|
|
95
|
+
switch (_a.label) {
|
|
96
|
+
case 0:
|
|
97
|
+
if (!!this.ctx.isUndoable) return [3 /*break*/, 2];
|
|
98
|
+
return [4 /*yield*/, this.execute()];
|
|
99
|
+
case 1:
|
|
100
|
+
_a.sent();
|
|
101
|
+
_a.label = 2;
|
|
102
|
+
case 2: return [2 /*return*/, this];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}); };
|
|
106
|
+
}
|
|
107
|
+
GraphToggleMultiSelectCommand.prototype.init = function () {
|
|
108
|
+
this.ctx = this.contextProvider();
|
|
109
|
+
};
|
|
110
|
+
/** isUndoable */
|
|
111
|
+
GraphToggleMultiSelectCommand.prototype.isUndoable = function () {
|
|
112
|
+
return this.ctx.isUndoable();
|
|
113
|
+
};
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
(0, mana_syringe_1.inject)(interface_1.ICommandContextProvider),
|
|
116
|
+
tslib_1.__metadata("design:type", Object)
|
|
117
|
+
], GraphToggleMultiSelectCommand.prototype, "contextProvider", void 0);
|
|
118
|
+
tslib_1.__decorate([
|
|
119
|
+
(0, mana_syringe_1.postConstruct)(),
|
|
120
|
+
tslib_1.__metadata("design:type", Function),
|
|
121
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
122
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
123
|
+
], GraphToggleMultiSelectCommand.prototype, "init", null);
|
|
124
|
+
GraphToggleMultiSelectCommand = tslib_1.__decorate([
|
|
125
|
+
(0, mana_syringe_1.injectable)({
|
|
126
|
+
token: { token: interface_1.ICommandHandler, named: NsGraphToggleMultiSelect.command.id },
|
|
127
|
+
})
|
|
128
|
+
/** 画布缩放命令 */
|
|
129
|
+
], GraphToggleMultiSelectCommand);
|
|
130
|
+
return GraphToggleMultiSelectCommand;
|
|
131
|
+
}());
|
|
132
|
+
exports.GraphToggleMultiSelectCommand = GraphToggleMultiSelectCommand;
|
|
133
|
+
//# sourceMappingURL=graph-toggle-multi-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-toggle-multi-select.js","sourceRoot":"","sources":["../../../src/command-contributions/graph/graph-toggle-multi-select.ts"],"names":[],"mappings":";;;;AAAA,6CAAgE;AAEhE,qDAAkF;AAClF,qDAA4C;AAG5C,wCAAgD;AAQhD,IAAiB,wBAAwB,CAiBxC;AAjBD,WAAiB,wBAAwB;IACvC,iCAAiC;IACpB,gCAAO,GAAG,6BAAkB,CAAC,yBAAyB,CAAA;IACnE,eAAe;IACF,gCAAO,GAAG,mBAAmB,CAAA;AAa5C,CAAC,EAjBgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAiBxC;AAMD;IADA,aAAa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AK,EAAE,2BAAe,EAAE,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,EAAE,EAAE;SAC9E,CAAC;QACF,aAAa;OACA,6BAA6B,CA+EzC;IAAD,oCAAC;CAAA,AA/ED,IA+EC;AA/EY,sEAA6B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { NsGraph } from '../../interface';
|
|
2
|
+
import type { IContext, IArgsBase } from '../../command/interface';
|
|
3
|
+
import { ICommandHandler } from '../../command/interface';
|
|
4
|
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
5
|
+
import type { IHooks } from '../../hooks/interface';
|
|
6
|
+
type ICommand = ICommandHandler<NsGraphZoom.IArgs, NsGraphZoom.IResult, NsGraphZoom.ICmdHooks>;
|
|
7
|
+
export declare namespace NsGraphZoom {
|
|
8
|
+
/** Command: 用于注册named factory */
|
|
9
|
+
const command: import("../../command/interface").IGraphCommand;
|
|
10
|
+
/** zoom options */
|
|
11
|
+
const MAX_SCALE = 1.5;
|
|
12
|
+
const MIN_SCALE = 0.05;
|
|
13
|
+
/** default zoom options */
|
|
14
|
+
const defaultZoomOptions: NsGraphZoom.IArgs['zoomOptions'];
|
|
15
|
+
/** hookName */
|
|
16
|
+
const hookKey = "graphZoom";
|
|
17
|
+
/** hook 参数类型 */
|
|
18
|
+
interface IArgs extends IArgsBase {
|
|
19
|
+
/** 缩放因子 */
|
|
20
|
+
factor: number | 'fit' | 'real';
|
|
21
|
+
/** 缩放配置项 */
|
|
22
|
+
zoomOptions?: NsGraph.ZoomOptions;
|
|
23
|
+
/** 自适应Padding参数(边距) */
|
|
24
|
+
zoomFitPadding?: number;
|
|
25
|
+
}
|
|
26
|
+
/** hook handler 返回类型 */
|
|
27
|
+
interface IResult {
|
|
28
|
+
factor: number | 'fit' | 'real';
|
|
29
|
+
zoomOptions: NsGraph.ZoomOptions;
|
|
30
|
+
zoomFitPadding: number;
|
|
31
|
+
}
|
|
32
|
+
/** hooks 类型 */
|
|
33
|
+
interface ICmdHooks extends IHooks {
|
|
34
|
+
graphZoom: HookHub<IArgs, IResult>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export declare class GraphZoomCommand implements ICommand {
|
|
38
|
+
/** api */
|
|
39
|
+
contextProvider: ICommand['contextProvider'];
|
|
40
|
+
ctx: IContext<NsGraphZoom.IArgs, NsGraphZoom.IResult, NsGraphZoom.ICmdHooks>;
|
|
41
|
+
init(): void;
|
|
42
|
+
/** 执行Cmd */
|
|
43
|
+
execute: () => Promise<this>;
|
|
44
|
+
/** undo cmd */
|
|
45
|
+
undo: () => Promise<this>;
|
|
46
|
+
/** redo cmd */
|
|
47
|
+
redo: () => Promise<this>;
|
|
48
|
+
/** isUndoable */
|
|
49
|
+
isUndoable(): boolean;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphZoomCommand = exports.NsGraphZoom = 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 constant_1 = require("../constant");
|
|
8
|
+
var NsGraphZoom;
|
|
9
|
+
(function (NsGraphZoom) {
|
|
10
|
+
/** Command: 用于注册named factory */
|
|
11
|
+
NsGraphZoom.command = constant_1.XFlowGraphCommands.GRAPH_ZOOM;
|
|
12
|
+
/** zoom options */
|
|
13
|
+
NsGraphZoom.MAX_SCALE = 1.5;
|
|
14
|
+
NsGraphZoom.MIN_SCALE = 0.05;
|
|
15
|
+
/** default zoom options */
|
|
16
|
+
NsGraphZoom.defaultZoomOptions = {
|
|
17
|
+
maxScale: NsGraphZoom.MAX_SCALE,
|
|
18
|
+
minScale: NsGraphZoom.MIN_SCALE,
|
|
19
|
+
};
|
|
20
|
+
/** hookName */
|
|
21
|
+
NsGraphZoom.hookKey = 'graphZoom';
|
|
22
|
+
})(NsGraphZoom = exports.NsGraphZoom || (exports.NsGraphZoom = {}));
|
|
23
|
+
var GraphZoomCommand = /** @class */ (function () {
|
|
24
|
+
/** 画布缩放命令 */
|
|
25
|
+
function GraphZoomCommand() {
|
|
26
|
+
var _this = this;
|
|
27
|
+
/** 执行Cmd */
|
|
28
|
+
this.execute = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
29
|
+
var _a, args, runtimeHook, hooks, result;
|
|
30
|
+
var _this = this;
|
|
31
|
+
return tslib_1.__generator(this, function (_b) {
|
|
32
|
+
switch (_b.label) {
|
|
33
|
+
case 0:
|
|
34
|
+
_a = this.ctx.getArgs(), args = _a.args, runtimeHook = _a.hooks;
|
|
35
|
+
hooks = this.ctx.getHooks();
|
|
36
|
+
return [4 /*yield*/, hooks.graphZoom.call(
|
|
37
|
+
/** 执行hooks pipeline处理args */
|
|
38
|
+
args,
|
|
39
|
+
/** 执行 callback */
|
|
40
|
+
function (handlerArgs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
41
|
+
var x6Graph, factor, _a, zoomFitPadding, _b, zoomOptions;
|
|
42
|
+
return tslib_1.__generator(this, function (_c) {
|
|
43
|
+
switch (_c.label) {
|
|
44
|
+
case 0: return [4 /*yield*/, this.ctx.getX6Graph()];
|
|
45
|
+
case 1:
|
|
46
|
+
x6Graph = _c.sent();
|
|
47
|
+
factor = handlerArgs.factor, _a = handlerArgs.zoomFitPadding, zoomFitPadding = _a === void 0 ? 12 : _a, _b = handlerArgs.zoomOptions, zoomOptions = _b === void 0 ? NsGraphZoom.defaultZoomOptions : _b;
|
|
48
|
+
if (typeof factor === 'number') {
|
|
49
|
+
x6Graph === null || x6Graph === void 0 ? void 0 : x6Graph.zoom(factor, zoomOptions || {});
|
|
50
|
+
}
|
|
51
|
+
else if (factor === 'fit') {
|
|
52
|
+
x6Graph === null || x6Graph === void 0 ? void 0 : x6Graph.zoomToFit(tslib_1.__assign(tslib_1.__assign({}, zoomOptions), { padding: zoomFitPadding }));
|
|
53
|
+
}
|
|
54
|
+
else if (factor === 'real') {
|
|
55
|
+
x6Graph === null || x6Graph === void 0 ? void 0 : x6Graph.scale(1);
|
|
56
|
+
x6Graph === null || x6Graph === void 0 ? void 0 : x6Graph.centerContent();
|
|
57
|
+
}
|
|
58
|
+
return [2 /*return*/, { factor: factor, zoomFitPadding: zoomFitPadding, zoomOptions: zoomOptions }];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}); },
|
|
62
|
+
/** execute command 时创建的hook */
|
|
63
|
+
runtimeHook)
|
|
64
|
+
/** 设置结果 */
|
|
65
|
+
];
|
|
66
|
+
case 1:
|
|
67
|
+
result = _b.sent();
|
|
68
|
+
/** 设置结果 */
|
|
69
|
+
this.ctx.setResult(result);
|
|
70
|
+
return [2 /*return*/, this];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}); };
|
|
74
|
+
/** undo cmd */
|
|
75
|
+
this.undo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
76
|
+
return tslib_1.__generator(this, function (_a) {
|
|
77
|
+
this.ctx.undo();
|
|
78
|
+
return [2 /*return*/, this];
|
|
79
|
+
});
|
|
80
|
+
}); };
|
|
81
|
+
/** redo cmd */
|
|
82
|
+
this.redo = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
83
|
+
return tslib_1.__generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
if (!!this.ctx.isUndoable) return [3 /*break*/, 2];
|
|
87
|
+
return [4 /*yield*/, this.execute()];
|
|
88
|
+
case 1:
|
|
89
|
+
_a.sent();
|
|
90
|
+
_a.label = 2;
|
|
91
|
+
case 2: return [2 /*return*/, this];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}); };
|
|
95
|
+
}
|
|
96
|
+
GraphZoomCommand.prototype.init = function () {
|
|
97
|
+
this.ctx = this.contextProvider();
|
|
98
|
+
};
|
|
99
|
+
/** isUndoable */
|
|
100
|
+
GraphZoomCommand.prototype.isUndoable = function () {
|
|
101
|
+
return this.ctx.isUndoable();
|
|
102
|
+
};
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
(0, mana_syringe_1.inject)(interface_1.ICommandContextProvider),
|
|
105
|
+
tslib_1.__metadata("design:type", Object)
|
|
106
|
+
], GraphZoomCommand.prototype, "contextProvider", void 0);
|
|
107
|
+
tslib_1.__decorate([
|
|
108
|
+
(0, mana_syringe_1.postConstruct)(),
|
|
109
|
+
tslib_1.__metadata("design:type", Function),
|
|
110
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
111
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
112
|
+
], GraphZoomCommand.prototype, "init", null);
|
|
113
|
+
GraphZoomCommand = tslib_1.__decorate([
|
|
114
|
+
(0, mana_syringe_1.injectable)({
|
|
115
|
+
token: { token: interface_1.ICommandHandler, named: NsGraphZoom.command.id },
|
|
116
|
+
})
|
|
117
|
+
/** 画布缩放命令 */
|
|
118
|
+
], GraphZoomCommand);
|
|
119
|
+
return GraphZoomCommand;
|
|
120
|
+
}());
|
|
121
|
+
exports.GraphZoomCommand = GraphZoomCommand;
|
|
122
|
+
//# sourceMappingURL=graph-zoom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-zoom.js","sourceRoot":"","sources":["../../../src/command-contributions/graph/graph-zoom.ts"],"names":[],"mappings":";;;;AAAA,6CAAgE;AAGhE,qDAAkF;AAIlF,wCAAgD;AAIhD,IAAiB,WAAW,CAiC3B;AAjCD,WAAiB,WAAW;IAC1B,iCAAiC;IACpB,mBAAO,GAAG,6BAAkB,CAAC,UAAU,CAAA;IACpD,mBAAmB;IACN,qBAAS,GAAG,GAAG,CAAA;IACf,qBAAS,GAAG,IAAI,CAAA;IAC7B,2BAA2B;IACd,8BAAkB,GAAqC;QAClE,QAAQ,EAAE,WAAW,CAAC,SAAS;QAC/B,QA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
+
import type { HookHub } from '@sunspirytus/xflow-hook';
|
|
4
|
+
import type { IHooks } from '../../hooks/interface';
|
|
5
|
+
import type { Simplify } from '../../common/types';
|
|
6
|
+
import { NsGraphMeta } from './graph-meta';
|
|
7
|
+
import { NsGraphSaveData } from './graph-save-data';
|
|
8
|
+
import { NsGraphLoadData } from './graph-load-data';
|
|
9
|
+
import { NsGraphLayout } from './graph-layout';
|
|
10
|
+
import { NsGraphRender } from './graph-render';
|
|
11
|
+
import { NsGraphResize } from './graph-resize';
|
|
12
|
+
import { NsGraphFullscreen } from './graph-fulllscreen';
|
|
13
|
+
import { NsGraphZoom } from './graph-zoom';
|
|
14
|
+
import { NsGraphCopySelection } from './graph-copy';
|
|
15
|
+
import { NsGraphPasteSelection } from './graph-paste';
|
|
16
|
+
import { NsGraphToggleMultiSelect } from './graph-toggle-multi-select';
|
|
17
|
+
import { NsGraphHistoryUndo } from './graph-history-undo';
|
|
18
|
+
import { NsGraphHistoryRedo } from './graph-history-redo';
|
|
19
|
+
import { NsGraphHistoryToggle } from './graph-history-toggle';
|
|
20
|
+
import { NsGraphHistoryReset } from './graph-history-reset';
|
|
21
|
+
import { NsGraphAddTool } from './graph-add-tool';
|
|
22
|
+
import { NsGraphDelTool } from './graph-del-tool';
|
|
23
|
+
import { NsRedoCmd } from './graph-cmd-redo';
|
|
24
|
+
import { NsUndoCmd } from './graph-cmd-undo';
|
|
25
|
+
/** 注册Command Handler Class */
|
|
26
|
+
export declare const registerGraphCommand: (register: Syringe.Register) => void;
|
|
27
|
+
/** app onStart 时, 注册 Command Hooks */
|
|
28
|
+
export declare const hookhubList: {
|
|
29
|
+
command: IGraphCommand;
|
|
30
|
+
hookKey: string;
|
|
31
|
+
createHook?: () => HookHub;
|
|
32
|
+
}[];
|
|
33
|
+
/** Command hook类型*/
|
|
34
|
+
export interface ICmdHooks extends IHooks, NsGraphMeta.ICmdHooks, NsGraphLoadData.ICmdHooks, NsGraphSaveData.ICmdHooks, NsGraphLayout.ICmdHooks, NsGraphRender.ICmdHooks, NsGraphResize.ICmdHooks, NsGraphHistoryUndo.ICmdHooks, NsGraphHistoryRedo.ICmdHooks, NsGraphHistoryReset.ICmdHooks, NsGraphHistoryToggle.ICmdHooks, NsRedoCmd.ICmdHooks, NsUndoCmd.ICmdHooks, NsGraphZoom.ICmdHooks, NsGraphToggleMultiSelect.ICmdHooks, NsGraphCopySelection.ICmdHooks, NsGraphPasteSelection.ICmdHooks, NsGraphAddTool.ICmdHooks, NsGraphDelTool.ICmdHooks {
|
|
35
|
+
}
|
|
36
|
+
/** Command 参数类型*/
|
|
37
|
+
export declare namespace NsGraphCmd {
|
|
38
|
+
namespace GraphMeta {
|
|
39
|
+
type IArgs = Simplify<NsGraphMeta.IArgs>;
|
|
40
|
+
type IResult = Simplify<NsGraphMeta.IResult>;
|
|
41
|
+
}
|
|
42
|
+
namespace GraphLoadData {
|
|
43
|
+
type IArgs = Simplify<NsGraphLoadData.IArgs>;
|
|
44
|
+
type IResult = Simplify<NsGraphLoadData.IResult>;
|
|
45
|
+
}
|
|
46
|
+
namespace SaveGraphData {
|
|
47
|
+
type IArgs = Simplify<NsGraphSaveData.IArgs>;
|
|
48
|
+
type IResult = Simplify<NsGraphSaveData.IResult>;
|
|
49
|
+
}
|
|
50
|
+
namespace GraphRender {
|
|
51
|
+
type IArgs = Simplify<NsGraphRender.IArgs>;
|
|
52
|
+
type IResult = Simplify<NsGraphRender.IResult>;
|
|
53
|
+
}
|
|
54
|
+
namespace GraphLayout {
|
|
55
|
+
type IArgs = Simplify<NsGraphLayout.IArgs>;
|
|
56
|
+
type IResult = Simplify<NsGraphLayout.IResult>;
|
|
57
|
+
}
|
|
58
|
+
namespace GraphResize {
|
|
59
|
+
type IArgs = Simplify<NsGraphResize.IArgs>;
|
|
60
|
+
type IResult = Simplify<NsGraphResize.IResult>;
|
|
61
|
+
}
|
|
62
|
+
namespace GraphHistoryRedo {
|
|
63
|
+
type IArgs = Simplify<NsGraphHistoryRedo.IArgs>;
|
|
64
|
+
type IResult = Simplify<NsGraphHistoryRedo.IResult>;
|
|
65
|
+
}
|
|
66
|
+
namespace GraphHistoryUndo {
|
|
67
|
+
type IArgs = Simplify<NsGraphHistoryUndo.IArgs>;
|
|
68
|
+
type IResult = Simplify<NsGraphHistoryUndo.IResult>;
|
|
69
|
+
}
|
|
70
|
+
namespace GraphHistoryReset {
|
|
71
|
+
type IArgs = Simplify<NsGraphHistoryReset.IArgs>;
|
|
72
|
+
type IResult = Simplify<NsGraphHistoryReset.IResult>;
|
|
73
|
+
}
|
|
74
|
+
namespace GraphHistoryToggle {
|
|
75
|
+
type IArgs = Simplify<NsGraphHistoryToggle.IArgs>;
|
|
76
|
+
type IResult = Simplify<NsGraphHistoryToggle.IResult>;
|
|
77
|
+
}
|
|
78
|
+
namespace UndoCmd {
|
|
79
|
+
type IArgs = Simplify<NsUndoCmd.IArgs>;
|
|
80
|
+
type IResult = Simplify<NsUndoCmd.IResult>;
|
|
81
|
+
}
|
|
82
|
+
namespace RedoCmd {
|
|
83
|
+
type IArgs = Simplify<NsRedoCmd.IArgs>;
|
|
84
|
+
type IResult = Simplify<NsRedoCmd.IResult>;
|
|
85
|
+
}
|
|
86
|
+
namespace GraphZoom {
|
|
87
|
+
type IArgs = Simplify<NsGraphZoom.IArgs>;
|
|
88
|
+
type IResult = Simplify<NsGraphZoom.IResult>;
|
|
89
|
+
}
|
|
90
|
+
namespace GraphFullscreen {
|
|
91
|
+
type IArgs = Simplify<NsGraphFullscreen.IArgs>;
|
|
92
|
+
type IResult = Simplify<NsGraphFullscreen.IResult>;
|
|
93
|
+
}
|
|
94
|
+
namespace GraphToggleMultiSelect {
|
|
95
|
+
type IArgs = Simplify<NsGraphToggleMultiSelect.IArgs>;
|
|
96
|
+
type IResult = Simplify<NsGraphToggleMultiSelect.IResult>;
|
|
97
|
+
}
|
|
98
|
+
namespace GraphCopySelection {
|
|
99
|
+
type IArgs = Simplify<NsGraphCopySelection.IArgs>;
|
|
100
|
+
type IResult = Simplify<NsGraphCopySelection.IResult>;
|
|
101
|
+
}
|
|
102
|
+
namespace GraphPasteSelection {
|
|
103
|
+
type IArgs = Simplify<NsGraphPasteSelection.IArgs>;
|
|
104
|
+
type IResult = Simplify<NsGraphPasteSelection.IResult>;
|
|
105
|
+
}
|
|
106
|
+
namespace GraphAddTool {
|
|
107
|
+
type IArgs = Simplify<NsGraphAddTool.IArgs>;
|
|
108
|
+
type IResult = Simplify<NsGraphAddTool.IResult>;
|
|
109
|
+
}
|
|
110
|
+
namespace GraphDelTool {
|
|
111
|
+
type IArgs = Simplify<NsGraphDelTool.IArgs>;
|
|
112
|
+
type IResult = Simplify<NsGraphDelTool.IResult>;
|
|
113
|
+
}
|
|
114
|
+
}
|