@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,80 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { Contribution } from 'mana-syringe';
|
|
3
|
+
import { DisposableCollection } from '../common/disposable';
|
|
4
|
+
import { IFrontendApplicationContribution } from '../xflow-main/interface';
|
|
5
|
+
import type { NsModel } from '../common/rx-model';
|
|
6
|
+
import { RxModel } from '../common/rx-model';
|
|
7
|
+
import { IGraphCommandService } from '../command';
|
|
8
|
+
import { IModelService } from '../model-service';
|
|
9
|
+
import type { IToolbarItemOptions, IToolbarOptions, IToolbarGroupOptions, IRegisterToolbarItemFunction } from './interface';
|
|
10
|
+
import { IToolbarContribution } from './interface';
|
|
11
|
+
/**
|
|
12
|
+
* Main, shared registry for toolbar items.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ToolbarRegistry implements IFrontendApplicationContribution {
|
|
15
|
+
/** disposables */
|
|
16
|
+
protected readonly toDispose: DisposableCollection;
|
|
17
|
+
/** 储存所有toolbar items */
|
|
18
|
+
protected toolbarItems: Map<string, IToolbarItemOptions>;
|
|
19
|
+
/** CommandRegistry */
|
|
20
|
+
protected readonly commandService: IGraphCommandService;
|
|
21
|
+
/** IModelService */
|
|
22
|
+
protected readonly modelService: IModelService;
|
|
23
|
+
/** ToolbarItems的扩展 */
|
|
24
|
+
protected readonly contributionProvider: Contribution.Provider<IToolbarContribution>;
|
|
25
|
+
/** 注册ToolbarRegistry的onChange的事件 */
|
|
26
|
+
protected readonly onDidChangeEvent: RxModel<null>;
|
|
27
|
+
/** 通过ToolbarRegistry.onDidChange监听ToolbarRegistry items的变化 */
|
|
28
|
+
readonly onDidChange: NsModel.IWatch<void>;
|
|
29
|
+
/** debounce in order to avoid to fire more than once in the same tick */
|
|
30
|
+
protected fireOnDidChange: any;
|
|
31
|
+
/** App启动时,收集Toolbar扩展点的注册项 */
|
|
32
|
+
onStart(): void;
|
|
33
|
+
/**
|
|
34
|
+
* App 销毁时调用
|
|
35
|
+
* dispose toolbarProvider
|
|
36
|
+
*/
|
|
37
|
+
onStop(): void;
|
|
38
|
+
/**
|
|
39
|
+
* 注册ToolbarItem
|
|
40
|
+
* item所需的command需要提前在command registry注册
|
|
41
|
+
* @param config IToolbarItem
|
|
42
|
+
*/
|
|
43
|
+
registerItem(config: IToolbarItemOptions): DisposableCollection;
|
|
44
|
+
/**
|
|
45
|
+
* 批量注册可单独dispose的扩展项目
|
|
46
|
+
* @param externalRegisterFn IRegisterMenuFunction
|
|
47
|
+
*/
|
|
48
|
+
registerDisposableToolbar: (externalRegisterFn: IRegisterToolbarItemFunction) => DisposableCollection;
|
|
49
|
+
/**
|
|
50
|
+
* 获取 ToolbarModel
|
|
51
|
+
* @param toolbarConfig IToolbarOptions
|
|
52
|
+
*/
|
|
53
|
+
getToolbarModel: (toolbarConfig: IToolbarOptions) => RxModel<{
|
|
54
|
+
layout: import("./interface").IToolbarLayout;
|
|
55
|
+
mainGroups: {
|
|
56
|
+
items: IToolbarItemOptions[];
|
|
57
|
+
name?: string;
|
|
58
|
+
className?: string;
|
|
59
|
+
}[];
|
|
60
|
+
extraGroups: {
|
|
61
|
+
items: IToolbarItemOptions[];
|
|
62
|
+
name?: string;
|
|
63
|
+
className?: string;
|
|
64
|
+
}[];
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* 创建 ToolbarModel
|
|
68
|
+
* @param groups IToolbarGroupOptions[]
|
|
69
|
+
*/
|
|
70
|
+
protected createToolbarGroupModel: (groups: IToolbarGroupOptions[]) => {
|
|
71
|
+
items: IToolbarItemOptions[];
|
|
72
|
+
name?: string;
|
|
73
|
+
className?: string;
|
|
74
|
+
}[];
|
|
75
|
+
/**
|
|
76
|
+
* 创建 ToolbarModel
|
|
77
|
+
* @param option IToolbarItem
|
|
78
|
+
*/
|
|
79
|
+
protected createToolbarModel(option: Partial<IToolbarItemOptions>): IToolbarItemOptions;
|
|
80
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolbarRegistry = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
require("reflect-metadata");
|
|
6
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
7
|
+
var debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
8
|
+
var cloneDeep_1 = tslib_1.__importDefault(require("lodash/cloneDeep"));
|
|
9
|
+
var isBoolean_1 = tslib_1.__importDefault(require("lodash/isBoolean"));
|
|
10
|
+
var disposable_1 = require("../common/disposable");
|
|
11
|
+
var interface_1 = require("../xflow-main/interface");
|
|
12
|
+
var rx_model_1 = require("../common/rx-model");
|
|
13
|
+
var command_1 = require("../command");
|
|
14
|
+
var model_service_1 = require("../model-service");
|
|
15
|
+
var interface_2 = require("./interface");
|
|
16
|
+
/**
|
|
17
|
+
* Main, shared registry for toolbar items.
|
|
18
|
+
*/
|
|
19
|
+
var ToolbarRegistry = /** @class */ (function () {
|
|
20
|
+
function ToolbarRegistry() {
|
|
21
|
+
var _this = this;
|
|
22
|
+
/** disposables */
|
|
23
|
+
this.toDispose = new disposable_1.DisposableCollection();
|
|
24
|
+
/** 储存所有toolbar items */
|
|
25
|
+
this.toolbarItems = new Map();
|
|
26
|
+
/** 注册ToolbarRegistry的onChange的事件 */
|
|
27
|
+
this.onDidChangeEvent = new rx_model_1.RxModel(null);
|
|
28
|
+
/** 通过ToolbarRegistry.onDidChange监听ToolbarRegistry items的变化 */
|
|
29
|
+
this.onDidChange = this.onDidChangeEvent.watch;
|
|
30
|
+
/** debounce in order to avoid to fire more than once in the same tick */
|
|
31
|
+
this.fireOnDidChange = (0, debounce_1.default)(function () { return _this.onDidChangeEvent.setValue(undefined); }, 16);
|
|
32
|
+
/**
|
|
33
|
+
* 批量注册可单独dispose的扩展项目
|
|
34
|
+
* @param externalRegisterFn IRegisterMenuFunction
|
|
35
|
+
*/
|
|
36
|
+
this.registerDisposableToolbar = function (externalRegisterFn) {
|
|
37
|
+
var toDispose = new disposable_1.DisposableCollection();
|
|
38
|
+
var disposableRegistry = {
|
|
39
|
+
registerToolbarItem: function (config) {
|
|
40
|
+
var disposable = _this.registerItem(config);
|
|
41
|
+
toDispose.push(disposable);
|
|
42
|
+
return disposable;
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
externalRegisterFn(disposableRegistry);
|
|
46
|
+
_this.toDispose.push(toDispose);
|
|
47
|
+
return toDispose;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* 获取 ToolbarModel
|
|
51
|
+
* @param toolbarConfig IToolbarOptions
|
|
52
|
+
*/
|
|
53
|
+
this.getToolbarModel = function (toolbarConfig) {
|
|
54
|
+
var layout = toolbarConfig.layout, _a = toolbarConfig.mainGroups, mainGroups = _a === void 0 ? [] : _a, _b = toolbarConfig.extraGroups, extraGroups = _b === void 0 ? [] : _b;
|
|
55
|
+
return new rx_model_1.RxModel({
|
|
56
|
+
layout: layout,
|
|
57
|
+
mainGroups: _this.createToolbarGroupModel(mainGroups),
|
|
58
|
+
extraGroups: _this.createToolbarGroupModel(extraGroups),
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 创建 ToolbarModel
|
|
63
|
+
* @param groups IToolbarGroupOptions[]
|
|
64
|
+
*/
|
|
65
|
+
this.createToolbarGroupModel = function (groups) {
|
|
66
|
+
var groupModels = groups.map(function (group) {
|
|
67
|
+
var _a = group.items, items = _a === void 0 ? [] : _a;
|
|
68
|
+
return tslib_1.__assign(tslib_1.__assign({}, group), { items: items.map(function (item) { return _this.createToolbarModel({ id: item.id }); }).filter(function (i) { return !!i; }) });
|
|
69
|
+
});
|
|
70
|
+
return groupModels;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** App启动时,收集Toolbar扩展点的注册项 */
|
|
74
|
+
ToolbarRegistry.prototype.onStart = function () {
|
|
75
|
+
var contributions = this.contributionProvider.getContributions();
|
|
76
|
+
for (var _i = 0, contributions_1 = contributions; _i < contributions_1.length; _i++) {
|
|
77
|
+
var contribution = contributions_1[_i];
|
|
78
|
+
contribution.registerToolbarItems(this);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* App 销毁时调用
|
|
83
|
+
* dispose toolbarProvider
|
|
84
|
+
*/
|
|
85
|
+
ToolbarRegistry.prototype.onStop = function () {
|
|
86
|
+
this.toDispose.dispose();
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 注册ToolbarItem
|
|
90
|
+
* item所需的command需要提前在command registry注册
|
|
91
|
+
* @param config IToolbarItem
|
|
92
|
+
*/
|
|
93
|
+
ToolbarRegistry.prototype.registerItem = function (config) {
|
|
94
|
+
var _this = this;
|
|
95
|
+
if (this.toolbarItems.has(config.id)) {
|
|
96
|
+
console.warn("ToolbarRegistry ".concat(config.id, " is duplicated, in"), config);
|
|
97
|
+
}
|
|
98
|
+
/** 注册 */
|
|
99
|
+
this.toolbarItems.set(config.id, config);
|
|
100
|
+
/** 通知更新 */
|
|
101
|
+
this.fireOnDidChange();
|
|
102
|
+
var toDispose = new disposable_1.DisposableCollection(disposable_1.Disposable.create(function () { return _this.fireOnDidChange(); }), disposable_1.Disposable.create(function () { return _this.toolbarItems.delete(config.id); }));
|
|
103
|
+
return toDispose;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* 创建 ToolbarModel
|
|
107
|
+
* @param option IToolbarItem
|
|
108
|
+
*/
|
|
109
|
+
ToolbarRegistry.prototype.createToolbarModel = function (option) {
|
|
110
|
+
var item = (0, cloneDeep_1.default)(this.toolbarItems.get(option.id));
|
|
111
|
+
var isEnabled = (0, isBoolean_1.default)(item.isEnabled) ? item.isEnabled : true;
|
|
112
|
+
var isVisible = (0, isBoolean_1.default)(item.isVisible) ? item.isVisible : true;
|
|
113
|
+
var toolbarItem = tslib_1.__assign(tslib_1.__assign({}, item), { isEnabled: isEnabled, isVisible: isVisible, iconName: item.iconName, text: item.text });
|
|
114
|
+
return toolbarItem;
|
|
115
|
+
};
|
|
116
|
+
tslib_1.__decorate([
|
|
117
|
+
(0, mana_syringe_1.inject)(command_1.IGraphCommandService),
|
|
118
|
+
tslib_1.__metadata("design:type", Object)
|
|
119
|
+
], ToolbarRegistry.prototype, "commandService", void 0);
|
|
120
|
+
tslib_1.__decorate([
|
|
121
|
+
(0, mana_syringe_1.inject)(model_service_1.IModelService),
|
|
122
|
+
tslib_1.__metadata("design:type", Object)
|
|
123
|
+
], ToolbarRegistry.prototype, "modelService", void 0);
|
|
124
|
+
tslib_1.__decorate([
|
|
125
|
+
(0, mana_syringe_1.contrib)(interface_2.IToolbarContribution),
|
|
126
|
+
tslib_1.__metadata("design:type", Object)
|
|
127
|
+
], ToolbarRegistry.prototype, "contributionProvider", void 0);
|
|
128
|
+
ToolbarRegistry = tslib_1.__decorate([
|
|
129
|
+
(0, mana_syringe_1.singleton)({ contrib: [interface_1.IFrontendApplicationContribution, interface_2.IToolbarService] })
|
|
130
|
+
], ToolbarRegistry);
|
|
131
|
+
return ToolbarRegistry;
|
|
132
|
+
}());
|
|
133
|
+
exports.ToolbarRegistry = ToolbarRegistry;
|
|
134
|
+
//# sourceMappingURL=toolbar-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-registry.js","sourceRoot":"","sources":["../../src/toolbar/toolbar-registry.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
/** Application */
|
|
3
|
+
import { FrontendApplication } from './application';
|
|
4
|
+
/** Extension 注册中心 */
|
|
5
|
+
import { ExtensionRegistry } from './components/extension-registry';
|
|
6
|
+
export { ExtensionRegistry };
|
|
7
|
+
export type ICreateApp = (registry: ExtensionRegistry) => FrontendApplication;
|
|
8
|
+
export declare const initApp: ICreateApp;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initApp = exports.ExtensionRegistry = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
5
|
+
require("reflect-metadata");
|
|
6
|
+
/** Application */
|
|
7
|
+
var application_1 = require("./application");
|
|
8
|
+
/** Command 模块 */
|
|
9
|
+
var module_1 = require("../command/module");
|
|
10
|
+
var module_2 = require("../model-service/module");
|
|
11
|
+
/** Extension 注册中心 */
|
|
12
|
+
var extension_registry_1 = require("./components/extension-registry");
|
|
13
|
+
Object.defineProperty(exports, "ExtensionRegistry", { enumerable: true, get: function () { return extension_registry_1.ExtensionRegistry; } });
|
|
14
|
+
/** 类型定义 */
|
|
15
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
16
|
+
/** application */
|
|
17
|
+
var appMainModule = (0, mana_syringe_1.Module)(function (register) {
|
|
18
|
+
/** 声明IFrontendApplicationContribution扩展点*/
|
|
19
|
+
mana_syringe_1.Contribution.register(register, application_1.IFrontendApplicationContribution);
|
|
20
|
+
/** 声明 FrontendApplication */
|
|
21
|
+
register(application_1.FrontendApplication);
|
|
22
|
+
});
|
|
23
|
+
var initApp = function (moduleRegistry) {
|
|
24
|
+
var extensions = moduleRegistry.getAllExtensions();
|
|
25
|
+
var container = new mana_syringe_1.Container();
|
|
26
|
+
/** command */
|
|
27
|
+
/** react renderer */
|
|
28
|
+
/** 批量创建 extension module */
|
|
29
|
+
var modules = extensions.map(function (module) {
|
|
30
|
+
var createModule = module.createModule, config = module.config;
|
|
31
|
+
return createModule(config);
|
|
32
|
+
});
|
|
33
|
+
/** 单独加载 appMainModule */
|
|
34
|
+
container.load(appMainModule);
|
|
35
|
+
/** 单独加载 commandRegistryModule */
|
|
36
|
+
container.load(module_1.commandRegistryModule);
|
|
37
|
+
// /** 单独加载 modelServiceModule */
|
|
38
|
+
container.load(module_2.modelServiceModule);
|
|
39
|
+
/**
|
|
40
|
+
* 批量加载 extension module
|
|
41
|
+
* 包括:menu/toolbar/keybinding/graph
|
|
42
|
+
*/
|
|
43
|
+
modules.forEach(function (module) {
|
|
44
|
+
container.load(module);
|
|
45
|
+
});
|
|
46
|
+
var app = container.get(application_1.FrontendApplication);
|
|
47
|
+
return app;
|
|
48
|
+
};
|
|
49
|
+
exports.initApp = initApp;
|
|
50
|
+
//# sourceMappingURL=application-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-module.js","sourceRoot":"","sources":["../../src/xflow-main/application-module.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,4BAAyB;AAEzB,kBAAkB;AAClB,6CAAqF;AAErF,iBAAiB;AACjB,4CAAyD;AACzD,kDAA4D;AAE5D,qBAAqB;AACrB,sEAAmE;AAK1D,kGALA,sCAAiB,OAKA;AAH1B,WAAW;AACX,6CAA8D;AAM9D,kBAAkB;AAClB,IAAM,aAAa,GAAG,IAAA,qBAAM,EAAC,UAAA,QAAQ;IACnC,2CAA2C;IAC3C,2BAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,8CAAgC,CAAC,CAAA;IACjE,6BAA6B;IAC7B,QAAQ,CAAC,iCAAmB,CAAC,CAAA;AAC/B,CAAC,CAAC,CAAA;AAEK,IAAM,OAAO,GAAe,UAAC,cAAiC;IACnE,IAAM,UAAU,GAAG,cAAc,CAAC,gBAAgB,EAAE,CAAA;IACpD,IAAM,SAAS,GAAG,IAAI,wBAAS,EAAE,CAAA;IAEjC,cAAc;IACd,qBAAqB;IACrB,4BAA4B;IAC5B,IAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,UAAA,MAAM;QAC3B,IAAA,YAAY,GAAa,MAAM,aAAnB,EAAE,MAAM,GAAK,MAAM,OAAX,CAAW;QACvC,OAAO,YAAY,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC,CAAC,CAAA;IAEF,yBAAyB;IACzB,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC7B,iCAAiC;IACjC,SAAS,CAAC,IAAI,CAAC,8BAAqB,CAAC,CAAA;IACrC,iCAAiC;IACjC,SAAS,CAAC,IAAI,CAAC,2BAAkB,CAAC,CAAA;IAElC;;;OAGG;IACH,OAAO,CAAC,OAAO,CAAC,UAAA,MAAM;QACpB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACxB,CAAC,CAAC,CAAA;IAEF,IAAM,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,iCAAmB,CAAC,CAAA;IAC9C,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AA7BY,QAAA,OAAO,WA6BnB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Contribution } from 'mana-syringe';
|
|
2
|
+
import type { Registry } from '@antv/x6';
|
|
3
|
+
import { Node as X6Node, Edge as X6Edge } from '@antv/x6';
|
|
4
|
+
import type { IGraphPipelineCommand } from '../command/interface';
|
|
5
|
+
import type { MaybePromise } from '../common/types';
|
|
6
|
+
import type { IRuntimeHook } from '@sunspirytus/xflow-hook/es/interface';
|
|
7
|
+
import { IGraphProvider } from '../xflow-main/graph/graph-provider';
|
|
8
|
+
import { IGraphCommandService } from '../command/interface';
|
|
9
|
+
import { IModelService } from '../model-service';
|
|
10
|
+
import { IFrontendApplicationContribution } from './interface';
|
|
11
|
+
export { IFrontendApplicationContribution } from './interface';
|
|
12
|
+
export declare class FrontendApplication {
|
|
13
|
+
/** app的扩展 */
|
|
14
|
+
protected readonly contributions: Contribution.Provider<IFrontendApplicationContribution>;
|
|
15
|
+
/** graphProvider */
|
|
16
|
+
readonly graphProvider: IGraphProvider;
|
|
17
|
+
/** commandService */
|
|
18
|
+
readonly commandService: IGraphCommandService;
|
|
19
|
+
/** modelService */
|
|
20
|
+
readonly modelService: IModelService;
|
|
21
|
+
/** 启动app */
|
|
22
|
+
start(): Promise<void>;
|
|
23
|
+
/** 获取画布实例 */
|
|
24
|
+
getGraphInstance: () => Promise<import("@antv/x6").Graph>;
|
|
25
|
+
/** 获取画布配置项 */
|
|
26
|
+
getGraphConfig: () => Promise<import("./graph").IGraphConfig>;
|
|
27
|
+
/** 获取画布配置项 */
|
|
28
|
+
getGraphData: () => Promise<{
|
|
29
|
+
nodes: import("..").NsGraph.INodeConfig[];
|
|
30
|
+
edges: import("..").NsGraph.IEdgeConfig[];
|
|
31
|
+
}>;
|
|
32
|
+
/** 获取画布所有节点 */
|
|
33
|
+
getAllNodes: () => Promise<X6Node<X6Node.Properties>[]>;
|
|
34
|
+
/** 获取画布节点 */
|
|
35
|
+
getNodeById: (nodeId: string) => Promise<X6Node<X6Node.Properties>>;
|
|
36
|
+
/** 获取画布所有连线 */
|
|
37
|
+
getAllEdges: () => Promise<X6Edge<X6Edge.Properties>[]>;
|
|
38
|
+
/** 获取画布连线 */
|
|
39
|
+
getEdgeById: (edgeId: string) => Promise<X6Edge<X6Edge.Properties>>;
|
|
40
|
+
/** 更新节点样式 */
|
|
41
|
+
updateNodeAttrs: (node: string | X6Node, attrs: Registry.Attr.CellAttrs) => Promise<void>;
|
|
42
|
+
/** 更新连线样式 */
|
|
43
|
+
updateEdgeAttrs: (edge: string | X6Edge, attrs: Registry.Attr.CellAttrs) => Promise<void>;
|
|
44
|
+
/** 平移画布 */
|
|
45
|
+
translateGraph: (tx: number, ty: number) => Promise<void>;
|
|
46
|
+
/** 暴露命令的执行接口 */
|
|
47
|
+
executeCommand<Args = any, Result = any>(commandId: string, cmdArgs: Args, hook?: IRuntimeHook<Args, Result>): Promise<import("../command/interface").ICommandHandler<Args, Result, {
|
|
48
|
+
graphOptions: import("@sunspirytus/xflow-hook").HookHub<import("@antv/x6").Graph.Options, import("@antv/x6").Graph.Options>;
|
|
49
|
+
reactNodeRender: import("@sunspirytus/xflow-hook").HookHub<Map<string, React.ComponentType<import("..").NsGraph.IReactNodeProps<T>>>, Map<string, React.ComponentType<import("..").NsGraph.IReactNodeProps<T>>>>;
|
|
50
|
+
reactEdgeLabelRender: import("@sunspirytus/xflow-hook").HookHub<Map<string, React.ComponentType<import("..").NsGraph.IReactEdgeProps<T_1>>>, Map<string, React.ComponentType<import("..").NsGraph.IReactEdgeProps<T_1>>>>;
|
|
51
|
+
afterGraphInit: import("@sunspirytus/xflow-hook").HookHub<import("../hooks/interface").IGeneralAppService, import("../hooks/interface").IGeneralAppService>;
|
|
52
|
+
beforeGraphDestroy: import("@sunspirytus/xflow-hook").HookHub<import("../hooks/interface").IGeneralAppService, import("../hooks/interface").IGeneralAppService>;
|
|
53
|
+
x6Events: import("@sunspirytus/xflow-hook").HookHub<import("../hooks/interface").IEventCollection, import("../hooks/interface").IEventSubscription>;
|
|
54
|
+
}>>;
|
|
55
|
+
/** 暴露命令的批量执行接口 */
|
|
56
|
+
executeCommandPipeline(cmdOptions: IGraphPipelineCommand[]): Promise<import("../command/interface").ICommandHandler<any, any, {
|
|
57
|
+
graphOptions: import("@sunspirytus/xflow-hook").HookHub<import("@antv/x6").Graph.Options, import("@antv/x6").Graph.Options>;
|
|
58
|
+
reactNodeRender: import("@sunspirytus/xflow-hook").HookHub<Map<string, React.ComponentType<import("..").NsGraph.IReactNodeProps<T>>>, Map<string, React.ComponentType<import("..").NsGraph.IReactNodeProps<T>>>>;
|
|
59
|
+
reactEdgeLabelRender: import("@sunspirytus/xflow-hook").HookHub<Map<string, React.ComponentType<import("..").NsGraph.IReactEdgeProps<T_1>>>, Map<string, React.ComponentType<import("..").NsGraph.IReactEdgeProps<T_1>>>>;
|
|
60
|
+
afterGraphInit: import("@sunspirytus/xflow-hook").HookHub<import("../hooks/interface").IGeneralAppService, import("../hooks/interface").IGeneralAppService>;
|
|
61
|
+
beforeGraphDestroy: import("@sunspirytus/xflow-hook").HookHub<import("../hooks/interface").IGeneralAppService, import("../hooks/interface").IGeneralAppService>;
|
|
62
|
+
x6Events: import("@sunspirytus/xflow-hook").HookHub<import("../hooks/interface").IEventCollection, import("../hooks/interface").IEventSubscription>;
|
|
63
|
+
}>>;
|
|
64
|
+
/**
|
|
65
|
+
* Register global event listeners.
|
|
66
|
+
*/
|
|
67
|
+
protected registerEventListeners(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Initialize and start the frontend application contributions.
|
|
70
|
+
*/
|
|
71
|
+
protected startContributions(): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Stop the frontend application contributions. This is called when the window is unloaded.
|
|
74
|
+
*/
|
|
75
|
+
protected stopContributions(): void;
|
|
76
|
+
protected measure<T>(name: string, fn: () => MaybePromise<T>): Promise<T>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontendApplication = exports.IFrontendApplicationContribution = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
6
|
+
/* eslint-disable no-await-in-loop */
|
|
7
|
+
/* eslint-disable max-classes-per-file */
|
|
8
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
9
|
+
var x6_1 = require("@antv/x6");
|
|
10
|
+
var graph_provider_1 = require("../xflow-main/graph/graph-provider");
|
|
11
|
+
var interface_1 = require("../command/interface");
|
|
12
|
+
var model_service_1 = require("../model-service");
|
|
13
|
+
var interface_2 = require("./interface");
|
|
14
|
+
var graph_utils_1 = require("../common/graph-utils");
|
|
15
|
+
var interface_3 = require("./interface");
|
|
16
|
+
Object.defineProperty(exports, "IFrontendApplicationContribution", { enumerable: true, get: function () { return interface_3.IFrontendApplicationContribution; } });
|
|
17
|
+
var TIMER_WARNING_THRESHOLD = 100;
|
|
18
|
+
var FrontendApplication = /** @class */ (function () {
|
|
19
|
+
function FrontendApplication() {
|
|
20
|
+
var _this = this;
|
|
21
|
+
/** 获取画布实例 */
|
|
22
|
+
this.getGraphInstance = function () {
|
|
23
|
+
return _this.graphProvider.getGraphInstance();
|
|
24
|
+
};
|
|
25
|
+
/** 获取画布配置项 */
|
|
26
|
+
this.getGraphConfig = function () {
|
|
27
|
+
return _this.graphProvider.getGraphOptions();
|
|
28
|
+
};
|
|
29
|
+
/** 获取画布配置项 */
|
|
30
|
+
this.getGraphData = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
31
|
+
var graph, cells;
|
|
32
|
+
return tslib_1.__generator(this, function (_a) {
|
|
33
|
+
switch (_a.label) {
|
|
34
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
35
|
+
case 1:
|
|
36
|
+
graph = _a.sent();
|
|
37
|
+
cells = graph.getCells();
|
|
38
|
+
return [2 /*return*/, (0, graph_utils_1.cellsToJson)(cells)];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}); };
|
|
42
|
+
/** 获取画布所有节点 */
|
|
43
|
+
this.getAllNodes = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
44
|
+
var graph;
|
|
45
|
+
return tslib_1.__generator(this, function (_a) {
|
|
46
|
+
switch (_a.label) {
|
|
47
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
48
|
+
case 1:
|
|
49
|
+
graph = _a.sent();
|
|
50
|
+
return [2 /*return*/, graph.getNodes()];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}); };
|
|
54
|
+
/** 获取画布节点 */
|
|
55
|
+
this.getNodeById = function (nodeId) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
56
|
+
var graph;
|
|
57
|
+
return tslib_1.__generator(this, function (_a) {
|
|
58
|
+
switch (_a.label) {
|
|
59
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
60
|
+
case 1:
|
|
61
|
+
graph = _a.sent();
|
|
62
|
+
return [2 /*return*/, graph.getCellById(nodeId)];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}); };
|
|
66
|
+
/** 获取画布所有连线 */
|
|
67
|
+
this.getAllEdges = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
68
|
+
var graph;
|
|
69
|
+
return tslib_1.__generator(this, function (_a) {
|
|
70
|
+
switch (_a.label) {
|
|
71
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
72
|
+
case 1:
|
|
73
|
+
graph = _a.sent();
|
|
74
|
+
return [2 /*return*/, graph.getEdges()];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}); };
|
|
78
|
+
/** 获取画布连线 */
|
|
79
|
+
this.getEdgeById = function (edgeId) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
80
|
+
var graph;
|
|
81
|
+
return tslib_1.__generator(this, function (_a) {
|
|
82
|
+
switch (_a.label) {
|
|
83
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
84
|
+
case 1:
|
|
85
|
+
graph = _a.sent();
|
|
86
|
+
return [2 /*return*/, graph.getCellById(edgeId)];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}); };
|
|
90
|
+
/** 更新节点样式 */
|
|
91
|
+
this.updateNodeAttrs = function (node, attrs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
92
|
+
var x6Node;
|
|
93
|
+
return tslib_1.__generator(this, function (_a) {
|
|
94
|
+
switch (_a.label) {
|
|
95
|
+
case 0:
|
|
96
|
+
if (!(node instanceof x6_1.Node)) return [3 /*break*/, 1];
|
|
97
|
+
node.setAttrs(attrs);
|
|
98
|
+
return [3 /*break*/, 3];
|
|
99
|
+
case 1: return [4 /*yield*/, this.getNodeById(node)];
|
|
100
|
+
case 2:
|
|
101
|
+
x6Node = _a.sent();
|
|
102
|
+
x6Node.setAttrs(attrs);
|
|
103
|
+
_a.label = 3;
|
|
104
|
+
case 3: return [2 /*return*/];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}); };
|
|
108
|
+
/** 更新连线样式 */
|
|
109
|
+
this.updateEdgeAttrs = function (edge, attrs) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var x6Edge;
|
|
111
|
+
return tslib_1.__generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
if (!(edge instanceof x6_1.Edge)) return [3 /*break*/, 1];
|
|
115
|
+
edge.setAttrs(attrs);
|
|
116
|
+
return [3 /*break*/, 3];
|
|
117
|
+
case 1: return [4 /*yield*/, this.getEdgeById(edge)];
|
|
118
|
+
case 2:
|
|
119
|
+
x6Edge = _a.sent();
|
|
120
|
+
x6Edge.setAttrs(attrs);
|
|
121
|
+
_a.label = 3;
|
|
122
|
+
case 3: return [2 /*return*/];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}); };
|
|
126
|
+
/** 平移画布 */
|
|
127
|
+
this.translateGraph = function (tx, ty) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
128
|
+
var graph, currentTranslate;
|
|
129
|
+
return tslib_1.__generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
132
|
+
case 1:
|
|
133
|
+
graph = _a.sent();
|
|
134
|
+
currentTranslate = graph.translate();
|
|
135
|
+
graph.translate(currentTranslate.tx + tx, currentTranslate.ty + ty);
|
|
136
|
+
return [2 /*return*/];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}); };
|
|
140
|
+
}
|
|
141
|
+
/** 启动app */
|
|
142
|
+
FrontendApplication.prototype.start = function () {
|
|
143
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
144
|
+
return tslib_1.__generator(this, function (_a) {
|
|
145
|
+
switch (_a.label) {
|
|
146
|
+
case 0: return [4 /*yield*/, this.startContributions()];
|
|
147
|
+
case 1:
|
|
148
|
+
_a.sent();
|
|
149
|
+
this.registerEventListeners();
|
|
150
|
+
return [2 /*return*/];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
/** 暴露命令的执行接口 */
|
|
156
|
+
FrontendApplication.prototype.executeCommand = function (commandId, cmdArgs, hook) {
|
|
157
|
+
if (hook === void 0) { hook = []; }
|
|
158
|
+
return this.commandService.executeCommand(commandId, cmdArgs, hook);
|
|
159
|
+
};
|
|
160
|
+
/** 暴露命令的批量执行接口 */
|
|
161
|
+
FrontendApplication.prototype.executeCommandPipeline = function (cmdOptions) {
|
|
162
|
+
return this.commandService.executeCommandPipeline(cmdOptions);
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Register global event listeners.
|
|
166
|
+
*/
|
|
167
|
+
FrontendApplication.prototype.registerEventListeners = function () {
|
|
168
|
+
var _this = this;
|
|
169
|
+
/** 触发app的卸载逻辑 */
|
|
170
|
+
window.addEventListener('unload', function () {
|
|
171
|
+
_this.stopContributions();
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Initialize and start the frontend application contributions.
|
|
176
|
+
*/
|
|
177
|
+
FrontendApplication.prototype.startContributions = function () {
|
|
178
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
179
|
+
var _loop_1, this_1, _i, _a, contribution;
|
|
180
|
+
var _this = this;
|
|
181
|
+
return tslib_1.__generator(this, function (_b) {
|
|
182
|
+
switch (_b.label) {
|
|
183
|
+
case 0:
|
|
184
|
+
console.log(this.contributions.getContributions());
|
|
185
|
+
_loop_1 = function (contribution) {
|
|
186
|
+
var error_1;
|
|
187
|
+
return tslib_1.__generator(this, function (_c) {
|
|
188
|
+
switch (_c.label) {
|
|
189
|
+
case 0:
|
|
190
|
+
if (!contribution.onStart) return [3 /*break*/, 4];
|
|
191
|
+
_c.label = 1;
|
|
192
|
+
case 1:
|
|
193
|
+
_c.trys.push([1, 3, , 4]);
|
|
194
|
+
return [4 /*yield*/, this_1.measure("".concat(contribution.constructor.name, ".onStart"), function () {
|
|
195
|
+
return contribution.onStart(_this);
|
|
196
|
+
})];
|
|
197
|
+
case 2:
|
|
198
|
+
_c.sent();
|
|
199
|
+
return [3 /*break*/, 4];
|
|
200
|
+
case 3:
|
|
201
|
+
error_1 = _c.sent();
|
|
202
|
+
console.error('Could not start contribution', error_1);
|
|
203
|
+
return [3 /*break*/, 4];
|
|
204
|
+
case 4: return [2 /*return*/];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
this_1 = this;
|
|
209
|
+
_i = 0, _a = this.contributions.getContributions();
|
|
210
|
+
_b.label = 1;
|
|
211
|
+
case 1:
|
|
212
|
+
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
213
|
+
contribution = _a[_i];
|
|
214
|
+
return [5 /*yield**/, _loop_1(contribution)];
|
|
215
|
+
case 2:
|
|
216
|
+
_b.sent();
|
|
217
|
+
_b.label = 3;
|
|
218
|
+
case 3:
|
|
219
|
+
_i++;
|
|
220
|
+
return [3 /*break*/, 1];
|
|
221
|
+
case 4: return [2 /*return*/];
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Stop the frontend application contributions. This is called when the window is unloaded.
|
|
228
|
+
*/
|
|
229
|
+
FrontendApplication.prototype.stopContributions = function () {
|
|
230
|
+
console.info('>>> Stopping frontend contributions...');
|
|
231
|
+
for (var _i = 0, _a = this.contributions.getContributions(); _i < _a.length; _i++) {
|
|
232
|
+
var contribution = _a[_i];
|
|
233
|
+
if (contribution.onStop) {
|
|
234
|
+
try {
|
|
235
|
+
contribution.onStop(this);
|
|
236
|
+
}
|
|
237
|
+
catch (error) {
|
|
238
|
+
console.error('Could not stop contribution', error);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
console.info('<<< All frontend contributions have been stopped.');
|
|
243
|
+
};
|
|
244
|
+
FrontendApplication.prototype.measure = function (name, fn) {
|
|
245
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
246
|
+
var startMark, endMark, result, _i, _a, item, contribution;
|
|
247
|
+
return tslib_1.__generator(this, function (_b) {
|
|
248
|
+
switch (_b.label) {
|
|
249
|
+
case 0:
|
|
250
|
+
startMark = "".concat(name, "-start");
|
|
251
|
+
endMark = "".concat(name, "-end");
|
|
252
|
+
performance.mark(startMark);
|
|
253
|
+
return [4 /*yield*/, fn()];
|
|
254
|
+
case 1:
|
|
255
|
+
result = _b.sent();
|
|
256
|
+
performance.mark(endMark);
|
|
257
|
+
performance.measure(name, startMark, endMark);
|
|
258
|
+
for (_i = 0, _a = performance.getEntriesByName(name); _i < _a.length; _i++) {
|
|
259
|
+
item = _a[_i];
|
|
260
|
+
contribution = "Frontend ".concat(item.name);
|
|
261
|
+
if (item.duration > TIMER_WARNING_THRESHOLD) {
|
|
262
|
+
console.warn("".concat(contribution, " is slow, took: ").concat(item.duration.toFixed(1), " ms"));
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
console.debug("".concat(contribution, " took: ").concat(item.duration.toFixed(1), " ms"));
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
performance.clearMeasures(name);
|
|
269
|
+
return [2 /*return*/, result];
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
tslib_1.__decorate([
|
|
275
|
+
(0, mana_syringe_1.contrib)(interface_2.IFrontendApplicationContribution),
|
|
276
|
+
tslib_1.__metadata("design:type", Object)
|
|
277
|
+
], FrontendApplication.prototype, "contributions", void 0);
|
|
278
|
+
tslib_1.__decorate([
|
|
279
|
+
(0, mana_syringe_1.inject)(graph_provider_1.IGraphProvider),
|
|
280
|
+
tslib_1.__metadata("design:type", Object)
|
|
281
|
+
], FrontendApplication.prototype, "graphProvider", void 0);
|
|
282
|
+
tslib_1.__decorate([
|
|
283
|
+
(0, mana_syringe_1.inject)(interface_1.IGraphCommandService),
|
|
284
|
+
tslib_1.__metadata("design:type", Object)
|
|
285
|
+
], FrontendApplication.prototype, "commandService", void 0);
|
|
286
|
+
tslib_1.__decorate([
|
|
287
|
+
(0, mana_syringe_1.inject)(model_service_1.IModelService),
|
|
288
|
+
tslib_1.__metadata("design:type", Object)
|
|
289
|
+
], FrontendApplication.prototype, "modelService", void 0);
|
|
290
|
+
FrontendApplication = tslib_1.__decorate([
|
|
291
|
+
(0, mana_syringe_1.singleton)()
|
|
292
|
+
], FrontendApplication);
|
|
293
|
+
return FrontendApplication;
|
|
294
|
+
}());
|
|
295
|
+
exports.FrontendApplication = FrontendApplication;
|
|
296
|
+
//# sourceMappingURL=application.js.map
|