@opentiny/fluent-editor 4.0.0-beta.0 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/config/i18n/en-us.es.js +0 -2
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js +0 -2
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/fluent-editor.es.js +0 -6
- package/es/fluent-editor.es.js.map +1 -1
- package/es/index.es.js +0 -4
- package/es/index.es.js.map +1 -1
- package/es/modules/index.es.js +0 -4
- package/es/modules/index.es.js.map +1 -1
- package/es/modules/shortcut-key/index.es.js +0 -16
- package/es/modules/shortcut-key/index.es.js.map +1 -1
- package/es/ui/icons.config.es.js +0 -4
- package/es/ui/icons.config.es.js.map +1 -1
- package/es/ui/icons.es.js +2 -4
- package/es/ui/icons.es.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js +0 -2
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js +0 -2
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +2 -8
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/index.cjs.js +5 -9
- package/lib/index.cjs.js.map +1 -1
- package/lib/modules/index.cjs.js +5 -9
- package/lib/modules/index.cjs.js.map +1 -1
- package/lib/modules/shortcut-key/index.cjs.js +0 -16
- package/lib/modules/shortcut-key/index.cjs.js.map +1 -1
- package/lib/ui/icons.cjs.js +1 -3
- package/lib/ui/icons.cjs.js.map +1 -1
- package/lib/ui/icons.config.cjs.js +0 -4
- package/lib/ui/icons.config.cjs.js.map +1 -1
- package/package.json +1 -3
- package/types/config/i18n/en-us.d.ts +0 -2
- package/types/config/i18n/zh-cn.d.ts +0 -2
- package/types/config/types/editor-modules.interface.d.ts +0 -4
- package/types/modules/index.d.ts +0 -2
- package/types/ui/icons.config.d.ts +0 -2
- package/es/modules/ai/constants.es.js +0 -50
- package/es/modules/ai/constants.es.js.map +0 -1
- package/es/modules/ai/icons.es.js +0 -319
- package/es/modules/ai/icons.es.js.map +0 -1
- package/es/modules/ai/index.es.js +0 -670
- package/es/modules/ai/index.es.js.map +0 -1
- package/es/modules/flow-chart/config-utils.es.js +0 -102
- package/es/modules/flow-chart/config-utils.es.js.map +0 -1
- package/es/modules/flow-chart/formats/flow-chart-blot.es.js +0 -369
- package/es/modules/flow-chart/formats/flow-chart-blot.es.js.map +0 -1
- package/es/modules/flow-chart/i18n/en-us.es.js +0 -30
- package/es/modules/flow-chart/i18n/en-us.es.js.map +0 -1
- package/es/modules/flow-chart/i18n/index.es.js +0 -12
- package/es/modules/flow-chart/i18n/index.es.js.map +0 -1
- package/es/modules/flow-chart/i18n/zh-cn.es.js +0 -30
- package/es/modules/flow-chart/i18n/zh-cn.es.js.map +0 -1
- package/es/modules/flow-chart/icons.es.js +0 -27
- package/es/modules/flow-chart/icons.es.js.map +0 -1
- package/es/modules/flow-chart/index.es.js +0 -45
- package/es/modules/flow-chart/index.es.js.map +0 -1
- package/es/modules/flow-chart/modules/context-menu.es.js +0 -184
- package/es/modules/flow-chart/modules/context-menu.es.js.map +0 -1
- package/es/modules/flow-chart/modules/control-panel.es.js +0 -286
- package/es/modules/flow-chart/modules/control-panel.es.js.map +0 -1
- package/es/modules/flow-chart/modules/custom-resize-action.es.js +0 -150
- package/es/modules/flow-chart/modules/custom-resize-action.es.js.map +0 -1
- package/es/modules/mind-map/config-utils.es.js +0 -108
- package/es/modules/mind-map/config-utils.es.js.map +0 -1
- package/es/modules/mind-map/formats/mind-map-blot.es.js +0 -356
- package/es/modules/mind-map/formats/mind-map-blot.es.js.map +0 -1
- package/es/modules/mind-map/i18n/en-us.es.js +0 -29
- package/es/modules/mind-map/i18n/en-us.es.js.map +0 -1
- package/es/modules/mind-map/i18n/index.es.js +0 -12
- package/es/modules/mind-map/i18n/index.es.js.map +0 -1
- package/es/modules/mind-map/i18n/zh-cn.es.js +0 -29
- package/es/modules/mind-map/i18n/zh-cn.es.js.map +0 -1
- package/es/modules/mind-map/icons.es.js +0 -45
- package/es/modules/mind-map/icons.es.js.map +0 -1
- package/es/modules/mind-map/index.es.js +0 -56
- package/es/modules/mind-map/index.es.js.map +0 -1
- package/es/modules/mind-map/modules/context-menu.es.js +0 -128
- package/es/modules/mind-map/modules/context-menu.es.js.map +0 -1
- package/es/modules/mind-map/modules/control-panel.es.js +0 -425
- package/es/modules/mind-map/modules/control-panel.es.js.map +0 -1
- package/es/modules/mind-map/modules/custom-resize-action.es.js +0 -161
- package/es/modules/mind-map/modules/custom-resize-action.es.js.map +0 -1
- package/flow-chart.css +0 -185
- package/lib/modules/ai/constants.cjs.js +0 -50
- package/lib/modules/ai/constants.cjs.js.map +0 -1
- package/lib/modules/ai/icons.cjs.js +0 -319
- package/lib/modules/ai/icons.cjs.js.map +0 -1
- package/lib/modules/ai/index.cjs.js +0 -670
- package/lib/modules/ai/index.cjs.js.map +0 -1
- package/lib/modules/flow-chart/config-utils.cjs.js +0 -102
- package/lib/modules/flow-chart/config-utils.cjs.js.map +0 -1
- package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js +0 -369
- package/lib/modules/flow-chart/formats/flow-chart-blot.cjs.js.map +0 -1
- package/lib/modules/flow-chart/i18n/en-us.cjs.js +0 -30
- package/lib/modules/flow-chart/i18n/en-us.cjs.js.map +0 -1
- package/lib/modules/flow-chart/i18n/index.cjs.js +0 -12
- package/lib/modules/flow-chart/i18n/index.cjs.js.map +0 -1
- package/lib/modules/flow-chart/i18n/zh-cn.cjs.js +0 -30
- package/lib/modules/flow-chart/i18n/zh-cn.cjs.js.map +0 -1
- package/lib/modules/flow-chart/icons.cjs.js +0 -27
- package/lib/modules/flow-chart/icons.cjs.js.map +0 -1
- package/lib/modules/flow-chart/index.cjs.js +0 -45
- package/lib/modules/flow-chart/index.cjs.js.map +0 -1
- package/lib/modules/flow-chart/modules/context-menu.cjs.js +0 -184
- package/lib/modules/flow-chart/modules/context-menu.cjs.js.map +0 -1
- package/lib/modules/flow-chart/modules/control-panel.cjs.js +0 -286
- package/lib/modules/flow-chart/modules/control-panel.cjs.js.map +0 -1
- package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js +0 -150
- package/lib/modules/flow-chart/modules/custom-resize-action.cjs.js.map +0 -1
- package/lib/modules/mind-map/config-utils.cjs.js +0 -108
- package/lib/modules/mind-map/config-utils.cjs.js.map +0 -1
- package/lib/modules/mind-map/formats/mind-map-blot.cjs.js +0 -356
- package/lib/modules/mind-map/formats/mind-map-blot.cjs.js.map +0 -1
- package/lib/modules/mind-map/i18n/en-us.cjs.js +0 -29
- package/lib/modules/mind-map/i18n/en-us.cjs.js.map +0 -1
- package/lib/modules/mind-map/i18n/index.cjs.js +0 -12
- package/lib/modules/mind-map/i18n/index.cjs.js.map +0 -1
- package/lib/modules/mind-map/i18n/zh-cn.cjs.js +0 -29
- package/lib/modules/mind-map/i18n/zh-cn.cjs.js.map +0 -1
- package/lib/modules/mind-map/icons.cjs.js +0 -45
- package/lib/modules/mind-map/icons.cjs.js.map +0 -1
- package/lib/modules/mind-map/index.cjs.js +0 -56
- package/lib/modules/mind-map/index.cjs.js.map +0 -1
- package/lib/modules/mind-map/modules/context-menu.cjs.js +0 -128
- package/lib/modules/mind-map/modules/context-menu.cjs.js.map +0 -1
- package/lib/modules/mind-map/modules/control-panel.cjs.js +0 -425
- package/lib/modules/mind-map/modules/control-panel.cjs.js.map +0 -1
- package/lib/modules/mind-map/modules/custom-resize-action.cjs.js +0 -161
- package/lib/modules/mind-map/modules/custom-resize-action.cjs.js.map +0 -1
- package/mind-map.css +0 -224
- package/types/modules/ai/constants.d.ts +0 -30
- package/types/modules/ai/icons.d.ts +0 -21
- package/types/modules/ai/index.d.ts +0 -96
- package/types/modules/ai/types.d.ts +0 -16
- package/types/modules/flow-chart/config-utils.d.ts +0 -10
- package/types/modules/flow-chart/formats/flow-chart-blot.d.ts +0 -43
- package/types/modules/flow-chart/i18n/en-us.d.ts +0 -26
- package/types/modules/flow-chart/i18n/index.d.ts +0 -1
- package/types/modules/flow-chart/i18n/zh-cn.d.ts +0 -26
- package/types/modules/flow-chart/icons.d.ts +0 -12
- package/types/modules/flow-chart/index.d.ts +0 -10
- package/types/modules/flow-chart/modules/context-menu.d.ts +0 -3
- package/types/modules/flow-chart/modules/control-panel.d.ts +0 -3
- package/types/modules/flow-chart/modules/custom-resize-action.d.ts +0 -22
- package/types/modules/flow-chart/options.d.ts +0 -29
- package/types/modules/mind-map/config-utils.d.ts +0 -12
- package/types/modules/mind-map/formats/mind-map-blot.d.ts +0 -44
- package/types/modules/mind-map/i18n/en-us.d.ts +0 -25
- package/types/modules/mind-map/i18n/index.d.ts +0 -1
- package/types/modules/mind-map/i18n/zh-cn.d.ts +0 -25
- package/types/modules/mind-map/icons.d.ts +0 -21
- package/types/modules/mind-map/index.d.ts +0 -10
- package/types/modules/mind-map/modules/context-menu.d.ts +0 -3
- package/types/modules/mind-map/modules/control-panel.d.ts +0 -3
- package/types/modules/mind-map/modules/custom-resize-action.d.ts +0 -23
- package/types/modules/mind-map/options.d.ts +0 -27
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const FLOW_CHART_EN_US = {
|
|
2
|
-
"flowChart.controlPanel.export": "Export",
|
|
3
|
-
"flowChart.controlPanel.import": "Import",
|
|
4
|
-
"flowChart.controlPanel.setEdgeTypeTitle": "Set Edge Type",
|
|
5
|
-
"flowChart.dndPanel.selection": "Selection",
|
|
6
|
-
"flowChart.dndPanel.rectangle": "Rectangle",
|
|
7
|
-
"flowChart.dndPanel.circle": "Circle",
|
|
8
|
-
"flowChart.dndPanel.ellipse": "Ellipse",
|
|
9
|
-
"flowChart.dndPanel.diamond": "Diamond",
|
|
10
|
-
"flowChart.controlPanel.zoomOut": "Out",
|
|
11
|
-
"flowChart.controlPanel.zoomIn": "In",
|
|
12
|
-
"flowChart.controlPanel.fit": "Fit",
|
|
13
|
-
"flowChart.controlPanel.back": "Back",
|
|
14
|
-
"flowChart.controlPanel.forward": "Forward",
|
|
15
|
-
"flowChart.controlPanel.zoomOutTitle": "Zoom Out View",
|
|
16
|
-
"flowChart.controlPanel.zoomInTitle": "Zoom In View",
|
|
17
|
-
"flowChart.controlPanel.fitTitle": "Fit View Size",
|
|
18
|
-
"flowChart.controlPanel.backTitle": "Step Back",
|
|
19
|
-
"flowChart.controlPanel.forwardTitle": "Step Forward",
|
|
20
|
-
"flowChart.contextMenu.copy": "Copy",
|
|
21
|
-
"flowChart.contextMenu.deleteContent": "Delete",
|
|
22
|
-
"flowChart.contextMenu.deleteNode": "Delete Node",
|
|
23
|
-
"flowChart.contextMenu.deleteEdge": "Delete Edge",
|
|
24
|
-
"flowChart.controlPanel.panelStatusTitle": "Panel Status",
|
|
25
|
-
"flowChart.controlPanel.screenTypeTitle": "Screen Type"
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
FLOW_CHART_EN_US
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=en-us.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-us.es.js","sources":["../../../../../src/modules/flow-chart/i18n/en-us.ts"],"sourcesContent":["export const FLOW_CHART_EN_US = {\n 'flowChart.controlPanel.export': 'Export',\n 'flowChart.controlPanel.import': 'Import',\n 'flowChart.controlPanel.setEdgeTypeTitle': 'Set Edge Type',\n 'flowChart.dndPanel.selection': 'Selection',\n 'flowChart.dndPanel.rectangle': 'Rectangle',\n 'flowChart.dndPanel.circle': 'Circle',\n 'flowChart.dndPanel.ellipse': 'Ellipse',\n 'flowChart.dndPanel.diamond': 'Diamond',\n 'flowChart.controlPanel.zoomOut': 'Out',\n 'flowChart.controlPanel.zoomIn': 'In',\n 'flowChart.controlPanel.fit': 'Fit',\n 'flowChart.controlPanel.back': 'Back',\n 'flowChart.controlPanel.forward': 'Forward',\n 'flowChart.controlPanel.zoomOutTitle': 'Zoom Out View',\n 'flowChart.controlPanel.zoomInTitle': 'Zoom In View',\n 'flowChart.controlPanel.fitTitle': 'Fit View Size',\n 'flowChart.controlPanel.backTitle': 'Step Back',\n 'flowChart.controlPanel.forwardTitle': 'Step Forward',\n 'flowChart.contextMenu.copy': 'Copy',\n 'flowChart.contextMenu.deleteContent': 'Delete',\n 'flowChart.contextMenu.deleteNode': 'Delete Node',\n 'flowChart.contextMenu.deleteEdge': 'Delete Edge',\n 'flowChart.controlPanel.panelStatusTitle': 'Panel Status',\n 'flowChart.controlPanel.screenTypeTitle': 'Screen Type',\n}\n"],"names":[],"mappings":"AAAO,MAAM,mBAAmB;AAAA,EAC9B,iCAAiC;AAAA,EACjC,iCAAiC;AAAA,EACjC,2CAA2C;AAAA,EAC3C,gCAAgC;AAAA,EAChC,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,kCAAkC;AAAA,EAClC,iCAAiC;AAAA,EACjC,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,kCAAkC;AAAA,EAClC,uCAAuC;AAAA,EACvC,sCAAsC;AAAA,EACtC,mCAAmC;AAAA,EACnC,oCAAoC;AAAA,EACpC,uCAAuC;AAAA,EACvC,8BAA8B;AAAA,EAC9B,uCAAuC;AAAA,EACvC,oCAAoC;AAAA,EACpC,oCAAoC;AAAA,EACpC,2CAA2C;AAAA,EAC3C,0CAA0C;AAC5C;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FLOW_CHART_EN_US } from "./en-us.es.js";
|
|
2
|
-
import { FLOW_CHART_ZH_CN } from "./zh-cn.es.js";
|
|
3
|
-
function registerFlowChartI18N(I18N) {
|
|
4
|
-
I18N.register({
|
|
5
|
-
"en-US": FLOW_CHART_EN_US,
|
|
6
|
-
"zh-CN": FLOW_CHART_ZH_CN
|
|
7
|
-
}, false);
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
registerFlowChartI18N
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/modules/flow-chart/i18n/index.ts"],"sourcesContent":["import { FLOW_CHART_EN_US } from './en-us'\nimport { FLOW_CHART_ZH_CN } from './zh-cn'\n\nexport function registerFlowChartI18N(I18N: any) {\n I18N.register({\n 'en-US': FLOW_CHART_EN_US,\n 'zh-CN': FLOW_CHART_ZH_CN,\n }, false)\n}\n"],"names":[],"mappings":";;AAGO,SAAS,sBAAsB,MAAW;AAC/C,OAAK,SAAS;AAAA,IACZ,SAAS;AAAA,IACT,SAAS;AAAA,EAAA,GACR,KAAK;AACV;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const FLOW_CHART_ZH_CN = {
|
|
2
|
-
"flowChart.controlPanel.export": "导出",
|
|
3
|
-
"flowChart.controlPanel.import": "导入",
|
|
4
|
-
"flowChart.controlPanel.setEdgeTypeTitle": "设置边类型",
|
|
5
|
-
"flowChart.dndPanel.selection": "选区",
|
|
6
|
-
"flowChart.dndPanel.rectangle": "矩形",
|
|
7
|
-
"flowChart.dndPanel.circle": "圆形",
|
|
8
|
-
"flowChart.dndPanel.ellipse": "椭圆",
|
|
9
|
-
"flowChart.dndPanel.diamond": "菱形",
|
|
10
|
-
"flowChart.controlPanel.zoomOut": "缩小",
|
|
11
|
-
"flowChart.controlPanel.zoomIn": "放大",
|
|
12
|
-
"flowChart.controlPanel.fit": "适应",
|
|
13
|
-
"flowChart.controlPanel.back": "上一步",
|
|
14
|
-
"flowChart.controlPanel.forward": "下一步",
|
|
15
|
-
"flowChart.controlPanel.zoomOutTitle": "缩小视图",
|
|
16
|
-
"flowChart.controlPanel.zoomInTitle": "放大视图",
|
|
17
|
-
"flowChart.controlPanel.fitTitle": "适应视图大小",
|
|
18
|
-
"flowChart.controlPanel.backTitle": "上一步",
|
|
19
|
-
"flowChart.controlPanel.forwardTitle": "下一步",
|
|
20
|
-
"flowChart.contextMenu.copy": "复制",
|
|
21
|
-
"flowChart.contextMenu.deleteContent": "删除",
|
|
22
|
-
"flowChart.contextMenu.deleteNode": "删除节点",
|
|
23
|
-
"flowChart.contextMenu.deleteEdge": "删除边",
|
|
24
|
-
"flowChart.controlPanel.panelStatusTitle": "面板状态",
|
|
25
|
-
"flowChart.controlPanel.screenTypeTitle": "屏幕类型"
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
FLOW_CHART_ZH_CN
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=zh-cn.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-cn.es.js","sources":["../../../../../src/modules/flow-chart/i18n/zh-cn.ts"],"sourcesContent":["export const FLOW_CHART_ZH_CN = {\n 'flowChart.controlPanel.export': '导出',\n 'flowChart.controlPanel.import': '导入',\n 'flowChart.controlPanel.setEdgeTypeTitle': '设置边类型',\n 'flowChart.dndPanel.selection': '选区',\n 'flowChart.dndPanel.rectangle': '矩形',\n 'flowChart.dndPanel.circle': '圆形',\n 'flowChart.dndPanel.ellipse': '椭圆',\n 'flowChart.dndPanel.diamond': '菱形',\n 'flowChart.controlPanel.zoomOut': '缩小',\n 'flowChart.controlPanel.zoomIn': '放大',\n 'flowChart.controlPanel.fit': '适应',\n 'flowChart.controlPanel.back': '上一步',\n 'flowChart.controlPanel.forward': '下一步',\n 'flowChart.controlPanel.zoomOutTitle': '缩小视图',\n 'flowChart.controlPanel.zoomInTitle': '放大视图',\n 'flowChart.controlPanel.fitTitle': '适应视图大小',\n 'flowChart.controlPanel.backTitle': '上一步',\n 'flowChart.controlPanel.forwardTitle': '下一步',\n 'flowChart.contextMenu.copy': '复制',\n 'flowChart.contextMenu.deleteContent': '删除',\n 'flowChart.contextMenu.deleteNode': '删除节点',\n 'flowChart.contextMenu.deleteEdge': '删除边',\n 'flowChart.controlPanel.panelStatusTitle': '面板状态',\n 'flowChart.controlPanel.screenTypeTitle': '屏幕类型',\n}\n"],"names":[],"mappings":"AAAO,MAAM,mBAAmB;AAAA,EAC9B,iCAAiC;AAAA,EACjC,iCAAiC;AAAA,EACjC,2CAA2C;AAAA,EAC3C,gCAAgC;AAAA,EAChC,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,8BAA8B;AAAA,EAC9B,kCAAkC;AAAA,EAClC,iCAAiC;AAAA,EACjC,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,kCAAkC;AAAA,EAClC,uCAAuC;AAAA,EACvC,sCAAsC;AAAA,EACtC,mCAAmC;AAAA,EACnC,oCAAoC;AAAA,EACpC,uCAAuC;AAAA,EACvC,8BAA8B;AAAA,EAC9B,uCAAuC;AAAA,EACvC,oCAAoC;AAAA,EACpC,oCAAoC;AAAA,EACpC,2CAA2C;AAAA,EAC3C,0CAA0C;AAC5C;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const backIcon = `<svg t="1761403103969" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4781" width="20" height="20"><path d="M995.648 459.296C684.448 281.568 406.08 318.656 171.232 567.904L32 416v384h352l-160.736-175.328c211.168-227.072 452.192-259.776 734.304-98.688a38.4 38.4 0 0 0 38.08-66.688z" p-id="4782" fill="#2c2c2c" data-spm-anchor-id="a313x.collections_detail.0.i0.26dd3a81klL5t6" class="selected"></path></svg>`;
|
|
2
|
-
const forwardIcon = `<svg t="1761403135994" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5138" width="20" height="20"><path d="M860.992 558.912C627.904 317.536 352.384 283.648 44.8 459.296a38.4 38.4 0 1 0 38.08 66.688c278.432-159.008 516.896-129.408 726.08 89.696L640 800h352V416l-131.008 142.912z" p-id="5139"></path></svg>`;
|
|
3
|
-
const zoomOutIcon = `<svg t="1761403245796" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8340" width="20" height="20"><path d="M170.666667 469.333333h682.666666v85.333334H170.666667z" fill="#2c2c2c" p-id="8341" data-spm-anchor-id="a313x.collections_detail.0.i0.466d3a81c91yTh" class="selected"></path></svg>`;
|
|
4
|
-
const zoomInIcon = `<svg t="1761403317929" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8601" width="20" height="20"><path d="M469.333333 469.333333V170.666667h85.333334v298.666666h298.666666v85.333334h-298.666666v298.666666h-85.333334v-298.666666H170.666667v-85.333334h298.666666z" fill="#2c2c2c" p-id="8602" data-spm-anchor-id="a313x.collections_detail.0.i3.466d3a81c91yTh" class="selected"></path></svg>`;
|
|
5
|
-
const fitIcon = `<svg t="1761403396579" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5306" width="20" height="20"><path d="M921.6 64c20.48 0 38.4 17.92 38.4 38.4v819.2c0 20.48-17.92 38.4-38.4 38.4H102.4c-20.48 0-38.4-17.92-38.4-38.4V102.4c0-20.48 17.92-38.4 38.4-38.4h819.2z m-38.4 76.8H140.8v742.4h742.4V140.8z m-640 478.72c17.92 0 33.28 15.36 33.28 33.28v94.72H371.2c17.92 0 33.28 15.36 33.28 33.28s-15.36 33.28-33.28 33.28h-128a33.92 33.92 0 0 1-33.28-33.28v-128c0-17.92 15.36-33.28 33.28-33.28z m537.6 0c17.92 0 33.28 15.36 33.28 33.28v128c0 17.92-15.36 33.28-33.28 33.28h-128a33.92 33.92 0 0 1-33.28-33.28c0-17.92 15.36-33.28 33.28-33.28h94.72V652.8c0-17.92 15.36-33.28 33.28-33.28z m0-409.6c17.92 0 33.28 15.36 33.28 33.28v128c0 17.92-15.36 33.28-33.28 33.28a33.92 33.92 0 0 1-33.28-33.28V276.48H652.8a33.92 33.92 0 0 1-33.28-33.28c0-17.92 15.36-33.28 33.28-33.28h128z m-409.6 0c17.92 0 33.28 15.36 33.28 33.28s-15.36 33.28-33.28 33.28H276.48V371.2c0 17.92-15.36 33.28-33.28 33.28a33.92 33.92 0 0 1-33.28-33.28v-128c0-17.92 15.36-33.28 33.28-33.28h128z" fill="#2c2c2c" p-id="5307" data-spm-anchor-id="a313x.search_index.0.i0.4ac53a81alttUW" class="selected"></path></svg>`;
|
|
6
|
-
const screenTypeIcon = `<svg t="1761452295156" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1999" width="20" height="20"><path d="M163.2 94.08a48 48 0 0 0-67.84 0 48 48 0 0 0 0 67.84l67.84-67.84z m145.28 279.04a48 48 0 0 0 67.84 0 48 48 0 0 0 0-67.84L308.48 373.12z m-213.12-211.2l213.12 211.2 67.84-67.84-213.12-211.2-67.84 67.84zM95.36 859.52a48 48 0 0 0 67.84 68.48l-67.84-68.48z m280.96-142.72a48 48 0 0 0-67.84-68.48l67.84 68.48z m-213.12 211.2l213.12-211.2-67.84-68.48-213.12 211.2 67.84 68.48zM863.36 928a48 48 0 0 0 67.84-67.84l-67.84 67.84z m-143.36-279.04a47.36 47.36 0 0 0-67.84 0 48 48 0 0 0 0 67.84l67.84-67.84z m211.2 211.2l-211.2-211.2-67.84 67.84 211.2 211.2 67.84-67.84zM929.28 161.92a48 48 0 0 0 0-67.84 49.28 49.28 0 0 0-68.48 0l68.48 67.84z m-279.68 143.36a48 48 0 0 0 0 67.84 49.28 49.28 0 0 0 68.48 0l-68.48-67.84z m211.2-211.2l-211.2 211.2 68.48 67.84 211.2-211.2-68.48-67.84z" fill="#2c2c2c" p-id="2000" data-spm-anchor-id="a313x.collections_detail.0.i1.6af43a81bnfxmJ" class="selected"></path><path d="M704 80a48 48 0 0 0 0 96v-96zM896 128h48a48.64 48.64 0 0 0-48-48V128z m-48 192a48 48 0 0 0 96 0zM704 176h192v-96h-192v96zM849.28 128v192h96V128zM945.28 704a48 48 0 0 0-96 0zM896 896v48a48.64 48.64 0 0 0 48-48z m-192-48a48 48 0 0 0 0 96v-96zM849.28 704v192h96v-192z m46.72 144h-192v96h192v-96zM320 944a48 48 0 0 0 0-96v96zM128 896h-46.72a48 48 0 0 0 48 48V896z m48-192a48 48 0 0 0-96 0zM320 848H128v96h192v-96zM177.28 896v-192h-96v192zM81.28 320a48 48 0 0 0 96 0zM128 128v-48a48 48 0 0 0-46.72 48z m192 48a48 48 0 0 0 0-96v96zM177.28 320V128h-96v192zM128 176h192v-96H128v96z" fill="#2c2c2c" p-id="2001" data-spm-anchor-id="a313x.collections_detail.0.i0.6af43a81bnfxmJ" class="selected"></path></svg>`;
|
|
7
|
-
const screenReduceIcon = `<svg t="1761452375205" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2267" data-spm-anchor-id="a313x.collections_detail.0.i9.6af43a81bnfxmJ" width="20" height="20"><path d="M308.48 373.12a48 48 0 0 0 67.84 0 48 48 0 0 0 0-67.84L308.48 373.12zM163.2 94.08a48 48 0 0 0-67.84 0 48 48 0 0 0 0 67.84l67.84-67.84z m213.12 211.2l-213.12-211.2-67.84 67.84 213.12 211.2 67.84-67.84zM720 650.88a48 48 0 1 0-67.84 67.84l67.84-67.84z m143.36 279.04a48 48 0 0 0 67.84-67.84l-67.84 67.84z m-211.2-211.2l211.2 211.2 67.84-67.84-211.2-211.2-67.84 67.84zM652.16 305.28a48 48 0 1 0 67.84 67.84l-67.84-67.84z m279.04-143.36a48 48 0 0 0-67.84-67.84l67.84 67.84z m-211.2 211.2l211.2-211.2-67.84-67.84-211.2 211.2 67.84 67.84z" fill="#2c2c2c" p-id="2268" data-spm-anchor-id="a313x.collections_detail.0.i4.6af43a81bnfxmJ" class="selected"></path><path d="M875.52 387.2a48 48 0 0 0 0-96v96z m-192-48h-48a48.64 48.64 0 0 0 48 48V339.2z m48-192a48 48 0 1 0-96 0z m144 144h-192v96h192v-96z m-144 48v-192h-96v192zM640 874.88a48 48 0 0 0 96 0z m48-192v-48a47.36 47.36 0 0 0-48 48z m192 48a48 48 0 0 0 0-96v96z m-144 144v-192H640v192z m-48-144h192v-96h-192v96zM376.32 718.72a48 48 0 0 0 0-67.84 48 48 0 0 0-67.84 0l67.84 67.84z m-280.96 143.36a48 48 0 0 0 0 67.84 48 48 0 0 0 67.84 0l-67.84-67.84z m213.12-211.2l-213.12 211.2 67.84 67.84 213.12-211.2-67.84-67.84zM150.4 634.88a48 48 0 1 0 0 96v-96z" fill="#2c2c2c" p-id="2269" data-spm-anchor-id="a313x.collections_detail.0.i5.6af43a81bnfxmJ" class="selected"></path><path d="M342.4 682.88h48a47.36 47.36 0 0 0-48-48v48zM294.4 874.88a48 48 0 0 0 96 0zM150.4 730.88h192v-96h-192v96z" fill="#2c2c2c" p-id="2270" data-spm-anchor-id="a313x.collections_detail.0.i8.6af43a81bnfxmJ" class="selected"></path><path d="M294.4 682.88v192h96v-192H294.4zM390.4 147.2a48 48 0 0 0-96 0z m-48 192v48a48 48 0 0 0 48-48z m-192-48a48 48 0 0 0 0 96v-96zM294.4 147.2v192h96v-192z m48 144h-192v96h192v-96z" fill="#2c2c2c" p-id="2271" data-spm-anchor-id="a313x.collections_detail.0.i6.6af43a81bnfxmJ" class="selected"></path></svg>`;
|
|
8
|
-
const contractIcon = `<svg t="1761655211386" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1193" width="20" height="20"><path d="M325.504 148.992a32.256 32.256 0 0 0-8.96 22.016 28.8 28.8 0 0 0 8.96 20.992L637.44 512l-312 320a28.8 28.8 0 0 0 0 41.984 28.8 28.8 0 0 0 20.992 8.96 30.592 30.592 0 0 0 20.992-7.936l331.008-340.992a29.952 29.952 0 0 0 8.96-22.016 29.952 29.952 0 0 0-8.96-22.016L367.488 148.992a30.592 30.592 0 0 0-20.992-8 30.592 30.592 0 0 0-20.992 8z" fill="#2c2c2c" p-id="1194" data-spm-anchor-id="a313x.manage_type_mylikes.0.i5.38213a81adgpe6" class="selected"></path></svg>`;
|
|
9
|
-
const expandIcon = `<svg t="1761655175337" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="972" data-spm-anchor-id="a313x.manage_type_mylikes.0.i0.38213a81adgpe6" width="20" height="20"><path d="M656.512 148.992L325.504 489.984a29.376 29.376 0 0 0-8.96 21.504c0 8.32 2.944 15.808 8.96 22.464l331.008 341.056a30.592 30.592 0 0 0 20.992 7.936 28.8 28.8 0 0 0 20.992-8.96 28.8 28.8 0 0 0 8.96-20.992 28.8 28.8 0 0 0-8.96-20.992L386.496 512l312-320a28.8 28.8 0 0 0 8.96-20.992 28.8 28.8 0 0 0-8.96-20.992 28.8 28.8 0 0 0-20.992-8.96 30.592 30.592 0 0 0-20.992 7.936z" fill="#2c2c2c" p-id="973" data-spm-anchor-id="a313x.manage_type_mylikes.0.i1.38213a81adgpe6" class="selected"></path></svg>`;
|
|
10
|
-
const polyLineIcon = `<svg t="1761572159464" class="icon" viewBox="0 0 1536 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8186" width="20" height="20"><path d="M1536 998.4H593.92v-921.6H0v-51.2h645.12v921.6H1536z" p-id="8187" fill="#2c2c2c" data-spm-anchor-id="a313x.search_index.0.i0.2bc03a810V44kl" class="selected"></path></svg>`;
|
|
11
|
-
const bezierIcon = `<svg t="1761570981381" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2048" data-spm-anchor-id="a313x.collections_detail.0.i0.189b3a81Nmah5F" width="20" height="20"><path d="M310.1 863.9c-124 0-218-4.2-219.3-4.3-12.7-0.6-22.5-11.3-21.9-24 0.6-12.7 11.5-22.6 24-21.9 193.3 8.8 714.8 12.7 805.6-74.1 8.5-8.1 9.5-14.1 9.5-18 0-15-16.7-48.1-128.7-101.8C696.2 580.2 586.1 541 479.6 503 241.6 418 107 366.7 107 300.4c0-43.3 43.6-96.5 383.5-123.4 180-14.3 362.3-14.4 364.1-14.4 12.7 0 22.9 10.3 22.9 22.9s-10.3 22.9-22.9 22.9c-1.8 0-182.5 0.2-360.7 14.3-337.1 26.8-341 77.2-341 77.7 0 0.9 1.1 21.4 96 64.9 65.3 29.9 153.2 61.3 246.2 94.5 277.1 98.9 458.8 170.6 458.8 262.1 0 18.9-8 36.1-23.7 51.1-53.8 51.4-207.7 80.4-470.5 88.7-52 1.6-102.9 2.2-149.6 2.2z" fill="#2c2c2c" p-id="2049" data-spm-anchor-id="a313x.collections_detail.0.i1.189b3a81Nmah5F" class="selected"></path></svg>`;
|
|
12
|
-
const lineIcon = `<svg t="1761571015001" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2261" width="20" height="20"><path d="M89.4 959c-5.9 0-11.8-2.3-16.3-6.8-9-9-9-23.7 0-32.7L918.3 74.2c9-9 23.7-9 32.7 0 9 9 9 23.7 0 32.7L105.7 952.2c-4.5 4.5-10.4 6.8-16.3 6.8z" fill="#2c2c2c" p-id="2262" data-spm-anchor-id="a313x.collections_detail.0.i6.189b3a81Nmah5F" class="selected"></path></svg>`;
|
|
13
|
-
export {
|
|
14
|
-
backIcon,
|
|
15
|
-
bezierIcon,
|
|
16
|
-
contractIcon,
|
|
17
|
-
expandIcon,
|
|
18
|
-
fitIcon,
|
|
19
|
-
forwardIcon,
|
|
20
|
-
lineIcon,
|
|
21
|
-
polyLineIcon,
|
|
22
|
-
screenReduceIcon,
|
|
23
|
-
screenTypeIcon,
|
|
24
|
-
zoomInIcon,
|
|
25
|
-
zoomOutIcon
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=icons.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.es.js","sources":["../../../../src/modules/flow-chart/icons.ts"],"sourcesContent":["export const backIcon = `<svg t=\"1761403103969\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4781\" width=\"20\" height=\"20\"><path d=\"M995.648 459.296C684.448 281.568 406.08 318.656 171.232 567.904L32 416v384h352l-160.736-175.328c211.168-227.072 452.192-259.776 734.304-98.688a38.4 38.4 0 0 0 38.08-66.688z\" p-id=\"4782\" fill=\"#2c2c2c\" data-spm-anchor-id=\"a313x.collections_detail.0.i0.26dd3a81klL5t6\" class=\"selected\"></path></svg>`\nexport const forwardIcon = `<svg t=\"1761403135994\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5138\" width=\"20\" height=\"20\"><path d=\"M860.992 558.912C627.904 317.536 352.384 283.648 44.8 459.296a38.4 38.4 0 1 0 38.08 66.688c278.432-159.008 516.896-129.408 726.08 89.696L640 800h352V416l-131.008 142.912z\" p-id=\"5139\"></path></svg>`\nexport const zoomOutIcon = `<svg t=\"1761403245796\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"8340\" width=\"20\" height=\"20\"><path d=\"M170.666667 469.333333h682.666666v85.333334H170.666667z\" fill=\"#2c2c2c\" p-id=\"8341\" data-spm-anchor-id=\"a313x.collections_detail.0.i0.466d3a81c91yTh\" class=\"selected\"></path></svg>`\nexport const zoomInIcon = `<svg t=\"1761403317929\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"8601\" width=\"20\" height=\"20\"><path d=\"M469.333333 469.333333V170.666667h85.333334v298.666666h298.666666v85.333334h-298.666666v298.666666h-85.333334v-298.666666H170.666667v-85.333334h298.666666z\" fill=\"#2c2c2c\" p-id=\"8602\" data-spm-anchor-id=\"a313x.collections_detail.0.i3.466d3a81c91yTh\" class=\"selected\"></path></svg>`\nexport const fitIcon = `<svg t=\"1761403396579\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5306\" width=\"20\" height=\"20\"><path d=\"M921.6 64c20.48 0 38.4 17.92 38.4 38.4v819.2c0 20.48-17.92 38.4-38.4 38.4H102.4c-20.48 0-38.4-17.92-38.4-38.4V102.4c0-20.48 17.92-38.4 38.4-38.4h819.2z m-38.4 76.8H140.8v742.4h742.4V140.8z m-640 478.72c17.92 0 33.28 15.36 33.28 33.28v94.72H371.2c17.92 0 33.28 15.36 33.28 33.28s-15.36 33.28-33.28 33.28h-128a33.92 33.92 0 0 1-33.28-33.28v-128c0-17.92 15.36-33.28 33.28-33.28z m537.6 0c17.92 0 33.28 15.36 33.28 33.28v128c0 17.92-15.36 33.28-33.28 33.28h-128a33.92 33.92 0 0 1-33.28-33.28c0-17.92 15.36-33.28 33.28-33.28h94.72V652.8c0-17.92 15.36-33.28 33.28-33.28z m0-409.6c17.92 0 33.28 15.36 33.28 33.28v128c0 17.92-15.36 33.28-33.28 33.28a33.92 33.92 0 0 1-33.28-33.28V276.48H652.8a33.92 33.92 0 0 1-33.28-33.28c0-17.92 15.36-33.28 33.28-33.28h128z m-409.6 0c17.92 0 33.28 15.36 33.28 33.28s-15.36 33.28-33.28 33.28H276.48V371.2c0 17.92-15.36 33.28-33.28 33.28a33.92 33.92 0 0 1-33.28-33.28v-128c0-17.92 15.36-33.28 33.28-33.28h128z\" fill=\"#2c2c2c\" p-id=\"5307\" data-spm-anchor-id=\"a313x.search_index.0.i0.4ac53a81alttUW\" class=\"selected\"></path></svg>`\nexport const screenTypeIcon = `<svg t=\"1761452295156\" class=\"icon\" viewBox=\"0 0 1026 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1999\" width=\"20\" height=\"20\"><path d=\"M163.2 94.08a48 48 0 0 0-67.84 0 48 48 0 0 0 0 67.84l67.84-67.84z m145.28 279.04a48 48 0 0 0 67.84 0 48 48 0 0 0 0-67.84L308.48 373.12z m-213.12-211.2l213.12 211.2 67.84-67.84-213.12-211.2-67.84 67.84zM95.36 859.52a48 48 0 0 0 67.84 68.48l-67.84-68.48z m280.96-142.72a48 48 0 0 0-67.84-68.48l67.84 68.48z m-213.12 211.2l213.12-211.2-67.84-68.48-213.12 211.2 67.84 68.48zM863.36 928a48 48 0 0 0 67.84-67.84l-67.84 67.84z m-143.36-279.04a47.36 47.36 0 0 0-67.84 0 48 48 0 0 0 0 67.84l67.84-67.84z m211.2 211.2l-211.2-211.2-67.84 67.84 211.2 211.2 67.84-67.84zM929.28 161.92a48 48 0 0 0 0-67.84 49.28 49.28 0 0 0-68.48 0l68.48 67.84z m-279.68 143.36a48 48 0 0 0 0 67.84 49.28 49.28 0 0 0 68.48 0l-68.48-67.84z m211.2-211.2l-211.2 211.2 68.48 67.84 211.2-211.2-68.48-67.84z\" fill=\"#2c2c2c\" p-id=\"2000\" data-spm-anchor-id=\"a313x.collections_detail.0.i1.6af43a81bnfxmJ\" class=\"selected\"></path><path d=\"M704 80a48 48 0 0 0 0 96v-96zM896 128h48a48.64 48.64 0 0 0-48-48V128z m-48 192a48 48 0 0 0 96 0zM704 176h192v-96h-192v96zM849.28 128v192h96V128zM945.28 704a48 48 0 0 0-96 0zM896 896v48a48.64 48.64 0 0 0 48-48z m-192-48a48 48 0 0 0 0 96v-96zM849.28 704v192h96v-192z m46.72 144h-192v96h192v-96zM320 944a48 48 0 0 0 0-96v96zM128 896h-46.72a48 48 0 0 0 48 48V896z m48-192a48 48 0 0 0-96 0zM320 848H128v96h192v-96zM177.28 896v-192h-96v192zM81.28 320a48 48 0 0 0 96 0zM128 128v-48a48 48 0 0 0-46.72 48z m192 48a48 48 0 0 0 0-96v96zM177.28 320V128h-96v192zM128 176h192v-96H128v96z\" fill=\"#2c2c2c\" p-id=\"2001\" data-spm-anchor-id=\"a313x.collections_detail.0.i0.6af43a81bnfxmJ\" class=\"selected\"></path></svg>`\nexport const screenReduceIcon = `<svg t=\"1761452375205\" class=\"icon\" viewBox=\"0 0 1026 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"2267\" data-spm-anchor-id=\"a313x.collections_detail.0.i9.6af43a81bnfxmJ\" width=\"20\" height=\"20\"><path d=\"M308.48 373.12a48 48 0 0 0 67.84 0 48 48 0 0 0 0-67.84L308.48 373.12zM163.2 94.08a48 48 0 0 0-67.84 0 48 48 0 0 0 0 67.84l67.84-67.84z m213.12 211.2l-213.12-211.2-67.84 67.84 213.12 211.2 67.84-67.84zM720 650.88a48 48 0 1 0-67.84 67.84l67.84-67.84z m143.36 279.04a48 48 0 0 0 67.84-67.84l-67.84 67.84z m-211.2-211.2l211.2 211.2 67.84-67.84-211.2-211.2-67.84 67.84zM652.16 305.28a48 48 0 1 0 67.84 67.84l-67.84-67.84z m279.04-143.36a48 48 0 0 0-67.84-67.84l67.84 67.84z m-211.2 211.2l211.2-211.2-67.84-67.84-211.2 211.2 67.84 67.84z\" fill=\"#2c2c2c\" p-id=\"2268\" data-spm-anchor-id=\"a313x.collections_detail.0.i4.6af43a81bnfxmJ\" class=\"selected\"></path><path d=\"M875.52 387.2a48 48 0 0 0 0-96v96z m-192-48h-48a48.64 48.64 0 0 0 48 48V339.2z m48-192a48 48 0 1 0-96 0z m144 144h-192v96h192v-96z m-144 48v-192h-96v192zM640 874.88a48 48 0 0 0 96 0z m48-192v-48a47.36 47.36 0 0 0-48 48z m192 48a48 48 0 0 0 0-96v96z m-144 144v-192H640v192z m-48-144h192v-96h-192v96zM376.32 718.72a48 48 0 0 0 0-67.84 48 48 0 0 0-67.84 0l67.84 67.84z m-280.96 143.36a48 48 0 0 0 0 67.84 48 48 0 0 0 67.84 0l-67.84-67.84z m213.12-211.2l-213.12 211.2 67.84 67.84 213.12-211.2-67.84-67.84zM150.4 634.88a48 48 0 1 0 0 96v-96z\" fill=\"#2c2c2c\" p-id=\"2269\" data-spm-anchor-id=\"a313x.collections_detail.0.i5.6af43a81bnfxmJ\" class=\"selected\"></path><path d=\"M342.4 682.88h48a47.36 47.36 0 0 0-48-48v48zM294.4 874.88a48 48 0 0 0 96 0zM150.4 730.88h192v-96h-192v96z\" fill=\"#2c2c2c\" p-id=\"2270\" data-spm-anchor-id=\"a313x.collections_detail.0.i8.6af43a81bnfxmJ\" class=\"selected\"></path><path d=\"M294.4 682.88v192h96v-192H294.4zM390.4 147.2a48 48 0 0 0-96 0z m-48 192v48a48 48 0 0 0 48-48z m-192-48a48 48 0 0 0 0 96v-96zM294.4 147.2v192h96v-192z m48 144h-192v96h192v-96z\" fill=\"#2c2c2c\" p-id=\"2271\" data-spm-anchor-id=\"a313x.collections_detail.0.i6.6af43a81bnfxmJ\" class=\"selected\"></path></svg>`\nexport const contractIcon = `<svg t=\"1761655211386\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1193\" width=\"20\" height=\"20\"><path d=\"M325.504 148.992a32.256 32.256 0 0 0-8.96 22.016 28.8 28.8 0 0 0 8.96 20.992L637.44 512l-312 320a28.8 28.8 0 0 0 0 41.984 28.8 28.8 0 0 0 20.992 8.96 30.592 30.592 0 0 0 20.992-7.936l331.008-340.992a29.952 29.952 0 0 0 8.96-22.016 29.952 29.952 0 0 0-8.96-22.016L367.488 148.992a30.592 30.592 0 0 0-20.992-8 30.592 30.592 0 0 0-20.992 8z\" fill=\"#2c2c2c\" p-id=\"1194\" data-spm-anchor-id=\"a313x.manage_type_mylikes.0.i5.38213a81adgpe6\" class=\"selected\"></path></svg>`\nexport const expandIcon = `<svg t=\"1761655175337\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"972\" data-spm-anchor-id=\"a313x.manage_type_mylikes.0.i0.38213a81adgpe6\" width=\"20\" height=\"20\"><path d=\"M656.512 148.992L325.504 489.984a29.376 29.376 0 0 0-8.96 21.504c0 8.32 2.944 15.808 8.96 22.464l331.008 341.056a30.592 30.592 0 0 0 20.992 7.936 28.8 28.8 0 0 0 20.992-8.96 28.8 28.8 0 0 0 8.96-20.992 28.8 28.8 0 0 0-8.96-20.992L386.496 512l312-320a28.8 28.8 0 0 0 8.96-20.992 28.8 28.8 0 0 0-8.96-20.992 28.8 28.8 0 0 0-20.992-8.96 30.592 30.592 0 0 0-20.992 7.936z\" fill=\"#2c2c2c\" p-id=\"973\" data-spm-anchor-id=\"a313x.manage_type_mylikes.0.i1.38213a81adgpe6\" class=\"selected\"></path></svg>`\nexport const polyLineIcon = `<svg t=\"1761572159464\" class=\"icon\" viewBox=\"0 0 1536 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"8186\" width=\"20\" height=\"20\"><path d=\"M1536 998.4H593.92v-921.6H0v-51.2h645.12v921.6H1536z\" p-id=\"8187\" fill=\"#2c2c2c\" data-spm-anchor-id=\"a313x.search_index.0.i0.2bc03a810V44kl\" class=\"selected\"></path></svg>`\nexport const bezierIcon = `<svg t=\"1761570981381\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"2048\" data-spm-anchor-id=\"a313x.collections_detail.0.i0.189b3a81Nmah5F\" width=\"20\" height=\"20\"><path d=\"M310.1 863.9c-124 0-218-4.2-219.3-4.3-12.7-0.6-22.5-11.3-21.9-24 0.6-12.7 11.5-22.6 24-21.9 193.3 8.8 714.8 12.7 805.6-74.1 8.5-8.1 9.5-14.1 9.5-18 0-15-16.7-48.1-128.7-101.8C696.2 580.2 586.1 541 479.6 503 241.6 418 107 366.7 107 300.4c0-43.3 43.6-96.5 383.5-123.4 180-14.3 362.3-14.4 364.1-14.4 12.7 0 22.9 10.3 22.9 22.9s-10.3 22.9-22.9 22.9c-1.8 0-182.5 0.2-360.7 14.3-337.1 26.8-341 77.2-341 77.7 0 0.9 1.1 21.4 96 64.9 65.3 29.9 153.2 61.3 246.2 94.5 277.1 98.9 458.8 170.6 458.8 262.1 0 18.9-8 36.1-23.7 51.1-53.8 51.4-207.7 80.4-470.5 88.7-52 1.6-102.9 2.2-149.6 2.2z\" fill=\"#2c2c2c\" p-id=\"2049\" data-spm-anchor-id=\"a313x.collections_detail.0.i1.189b3a81Nmah5F\" class=\"selected\"></path></svg>`\nexport const lineIcon = `<svg t=\"1761571015001\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"2261\" width=\"20\" height=\"20\"><path d=\"M89.4 959c-5.9 0-11.8-2.3-16.3-6.8-9-9-9-23.7 0-32.7L918.3 74.2c9-9 23.7-9 32.7 0 9 9 9 23.7 0 32.7L105.7 952.2c-4.5 4.5-10.4 6.8-16.3 6.8z\" fill=\"#2c2c2c\" p-id=\"2262\" data-spm-anchor-id=\"a313x.collections_detail.0.i6.189b3a81Nmah5F\" class=\"selected\"></path></svg>`\n"],"names":[],"mappings":"AAAO,MAAM,WAAW;AACjB,MAAM,cAAc;AACpB,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,UAAU;AAChB,MAAM,iBAAiB;AACvB,MAAM,mBAAmB;AACzB,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,WAAW;"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import Quill from "quill";
|
|
5
|
-
import FlowChartPlaceholderBlot from "./formats/flow-chart-blot.es.js";
|
|
6
|
-
class FlowChartModule {
|
|
7
|
-
constructor(quill, options) {
|
|
8
|
-
__publicField(this, "quill");
|
|
9
|
-
__publicField(this, "toolbar");
|
|
10
|
-
__publicField(this, "options");
|
|
11
|
-
quill.container.__quillInstance = quill;
|
|
12
|
-
this.quill = quill;
|
|
13
|
-
this.options = options;
|
|
14
|
-
this.toolbar = quill.getModule("toolbar");
|
|
15
|
-
if (this.toolbar) {
|
|
16
|
-
this.toolbar.addHandler("flow-chart", () => {
|
|
17
|
-
this.insertFlowChartEditor();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
static register() {
|
|
22
|
-
Quill.register("formats/flow-chart", FlowChartPlaceholderBlot, true);
|
|
23
|
-
}
|
|
24
|
-
insertFlowChartEditor() {
|
|
25
|
-
const range = this.quill.getSelection();
|
|
26
|
-
if (range) {
|
|
27
|
-
const defaultData = {
|
|
28
|
-
nodes: [
|
|
29
|
-
{ id: "node1", type: "rect", x: 100, y: 150, text: "开始" },
|
|
30
|
-
{ id: "node2", type: "rect", x: 300, y: 150, text: "结束" }
|
|
31
|
-
],
|
|
32
|
-
edges: [
|
|
33
|
-
{ id: "edge1", sourceNodeId: "node1", targetNodeId: "node2", type: "polyline" }
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
this.quill.insertText(range.index, "\n", "user");
|
|
37
|
-
this.quill.insertEmbed(range.index + 1, "flow-chart", defaultData, "user");
|
|
38
|
-
this.quill.insertText(range.index + 2, "\n", "user");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
FlowChartModule
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../src/modules/flow-chart/index.ts"],"sourcesContent":["import type Quill from 'quill'\nimport type { FlowChartOptions } from './options'\nimport Quills from 'quill'\nimport FlowChartPlaceholderBlot from './formats/flow-chart-blot'\n\nexport class FlowChartModule {\n quill: Quill\n toolbar: any\n options: FlowChartOptions\n\n static register() {\n Quills.register('formats/flow-chart', FlowChartPlaceholderBlot, true)\n }\n\n constructor(quill: Quill, options: any) {\n (quill.container as any).__quillInstance = quill\n this.quill = quill\n this.options = options\n this.toolbar = quill.getModule('toolbar')\n if (this.toolbar) {\n this.toolbar.addHandler('flow-chart', () => {\n this.insertFlowChartEditor()\n })\n }\n }\n\n public insertFlowChartEditor(): void {\n const range = this.quill.getSelection()\n if (range) {\n const defaultData = {\n nodes: [\n { id: 'node1', type: 'rect', x: 100, y: 150, text: '开始' },\n { id: 'node2', type: 'rect', x: 300, y: 150, text: '结束' },\n ],\n edges: [\n { id: 'edge1', sourceNodeId: 'node1', targetNodeId: 'node2', type: 'polyline' },\n ],\n }\n this.quill.insertText(range.index, '\\n', 'user')\n this.quill.insertEmbed(range.index + 1, 'flow-chart', defaultData, 'user')\n this.quill.insertText(range.index + 2, '\\n', 'user')\n }\n }\n}\n"],"names":["Quills"],"mappings":";;;;;AAKO,MAAM,gBAAgB;AAAA,EAS3B,YAAY,OAAc,SAAc;AARxC;AACA;AACA;AAOG,UAAM,UAAkB,kBAAkB;AAC3C,SAAK,QAAQ;AACb,SAAK,UAAU;AACf,SAAK,UAAU,MAAM,UAAU,SAAS;AACxC,QAAI,KAAK,SAAS;AAChB,WAAK,QAAQ,WAAW,cAAc,MAAM;AAC1C,aAAK,sBAAA;AAAA,MACP,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAdA,OAAO,WAAW;AAChBA,UAAO,SAAS,sBAAsB,0BAA0B,IAAI;AAAA,EACtE;AAAA,EAcO,wBAA8B;AACnC,UAAM,QAAQ,KAAK,MAAM,aAAA;AACzB,QAAI,OAAO;AACT,YAAM,cAAc;AAAA,QAClB,OAAO;AAAA,UACL,EAAE,IAAI,SAAS,MAAM,QAAQ,GAAG,KAAK,GAAG,KAAK,MAAM,KAAA;AAAA,UACnD,EAAE,IAAI,SAAS,MAAM,QAAQ,GAAG,KAAK,GAAG,KAAK,MAAM,KAAA;AAAA,QAAK;AAAA,QAE1D,OAAO;AAAA,UACL,EAAE,IAAI,SAAS,cAAc,SAAS,cAAc,SAAS,MAAM,WAAA;AAAA,QAAW;AAAA,MAChF;AAEF,WAAK,MAAM,WAAW,MAAM,OAAO,MAAM,MAAM;AAC/C,WAAK,MAAM,YAAY,MAAM,QAAQ,GAAG,cAAc,aAAa,MAAM;AACzE,WAAK,MAAM,WAAW,MAAM,QAAQ,GAAG,MAAM,MAAM;AAAA,IACrD;AAAA,EACF;AACF;"}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import "../../../config/index.es.js";
|
|
5
|
-
import { I18N } from "../../i18n.es.js";
|
|
6
|
-
import { registerFlowChartI18N } from "../i18n/index.es.js";
|
|
7
|
-
import { CHANGE_LANGUAGE_EVENT } from "../../../config/editor.config.es.js";
|
|
8
|
-
class FlowChartContextMenuHandler {
|
|
9
|
-
constructor(quill, blot) {
|
|
10
|
-
__publicField(this, "texts");
|
|
11
|
-
__publicField(this, "lang");
|
|
12
|
-
this.quill = quill;
|
|
13
|
-
this.blot = blot;
|
|
14
|
-
const i18nModule = this.quill.getModule("i18n");
|
|
15
|
-
registerFlowChartI18N(I18N);
|
|
16
|
-
this.lang = i18nModule.options.lang;
|
|
17
|
-
this.texts = this.resolveTexts();
|
|
18
|
-
this.quill.emitter.on(CHANGE_LANGUAGE_EVENT, (lang) => {
|
|
19
|
-
this.lang = lang;
|
|
20
|
-
this.texts = this.resolveTexts();
|
|
21
|
-
this.updateContextMenuItems();
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
getText(key) {
|
|
25
|
-
return this.texts[key];
|
|
26
|
-
}
|
|
27
|
-
resolveTexts() {
|
|
28
|
-
return {
|
|
29
|
-
copy: I18N.parserText("flowChart.contextMenu.copy", this.lang),
|
|
30
|
-
cut: I18N.parserText("flowChart.contextMenu.cut", this.lang),
|
|
31
|
-
paste: I18N.parserText("flowChart.contextMenu.paste", this.lang),
|
|
32
|
-
deleteContent: I18N.parserText("flowChart.contextMenu.deleteContent", this.lang),
|
|
33
|
-
deleteNode: I18N.parserText("flowChart.contextMenu.deleteNode", this.lang),
|
|
34
|
-
deleteEdge: I18N.parserText("flowChart.contextMenu.deleteEdge", this.lang)
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
updateContextMenuItems() {
|
|
38
|
-
if (!this.blot.contextMenu) return;
|
|
39
|
-
const menuItems = this.blot.contextMenu.querySelectorAll(".ql-flow-chart-context-menu-item");
|
|
40
|
-
if (menuItems.length > 0) {
|
|
41
|
-
Array.from(menuItems).forEach((item) => {
|
|
42
|
-
const text = item.getAttribute("data-text-key");
|
|
43
|
-
if (text && this.texts[text]) {
|
|
44
|
-
item.textContent = this.texts[text];
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
const contextMenuHandlers = /* @__PURE__ */ new WeakMap();
|
|
51
|
-
function initContextMenu(blot, quill) {
|
|
52
|
-
blot.contextMenu = document.createElement("div");
|
|
53
|
-
blot.contextMenu.className = "ql-flow-chart-context-menu";
|
|
54
|
-
blot.contextMenu.style.position = "fixed";
|
|
55
|
-
blot.contextMenu.style.background = "white";
|
|
56
|
-
blot.contextMenu.style.borderRadius = "4px";
|
|
57
|
-
blot.contextMenu.style.boxShadow = "0 2px 10px rgba(0,0,0,0.1)";
|
|
58
|
-
blot.contextMenu.style.padding = "5px 0";
|
|
59
|
-
blot.contextMenu.style.zIndex = "1000";
|
|
60
|
-
blot.contextMenu.style.display = "block";
|
|
61
|
-
blot.contextMenu.style.visibility = "visible";
|
|
62
|
-
blot.contextMenu.style.opacity = "1";
|
|
63
|
-
blot.contextMenu.style.width = "120px";
|
|
64
|
-
blot.contextMenu.style.height = "auto";
|
|
65
|
-
blot.domNode.appendChild(blot.contextMenu);
|
|
66
|
-
const handler = new FlowChartContextMenuHandler(quill, blot);
|
|
67
|
-
contextMenuHandlers.set(blot, handler);
|
|
68
|
-
if (blot.flowChart) {
|
|
69
|
-
blot.flowChart.on("node:contextmenu", (event) => {
|
|
70
|
-
const { data, e } = event;
|
|
71
|
-
e.preventDefault();
|
|
72
|
-
e.stopPropagation();
|
|
73
|
-
blot.currentElement = { type: "node", data };
|
|
74
|
-
showNodeContextMenu(blot, handler, e.clientX, e.clientY);
|
|
75
|
-
});
|
|
76
|
-
blot.flowChart.on("edge:contextmenu", (event) => {
|
|
77
|
-
const { data, e } = event;
|
|
78
|
-
e.preventDefault();
|
|
79
|
-
e.stopPropagation();
|
|
80
|
-
blot.currentElement = { type: "edge", data };
|
|
81
|
-
showEdgeContextMenu(blot, handler, e.clientX, e.clientY);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
const hideMenu = () => {
|
|
85
|
-
if (blot.contextMenu) {
|
|
86
|
-
blot.contextMenu.style.display = "none";
|
|
87
|
-
blot.currentElement = null;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
blot.flowChart.on("blank:click", hideMenu);
|
|
91
|
-
document.addEventListener("click", (e) => {
|
|
92
|
-
if (blot.contextMenu && !blot.contextMenu.contains(e.target)) {
|
|
93
|
-
hideMenu();
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function showNodeContextMenu(blot, handler, x, y) {
|
|
98
|
-
clearContextMenu(blot);
|
|
99
|
-
addContextMenuItem(blot, handler.getText("copy"), "copy", () => handleCopy(blot));
|
|
100
|
-
addContextMenuItem(blot, handler.getText("deleteContent"), "deleteContent", () => handleDeleteContent(blot));
|
|
101
|
-
addContextMenuItem(blot, handler.getText("deleteNode"), "deleteNode", () => handleDeleteNode(blot));
|
|
102
|
-
showContextMenu(blot, x, y);
|
|
103
|
-
}
|
|
104
|
-
function showEdgeContextMenu(blot, handler, x, y) {
|
|
105
|
-
clearContextMenu(blot);
|
|
106
|
-
addContextMenuItem(blot, handler.getText("deleteContent"), "deleteContent", () => handleDeleteContent(blot));
|
|
107
|
-
addContextMenuItem(blot, handler.getText("deleteEdge"), "deleteEdge", () => handleDeleteEdge(blot));
|
|
108
|
-
showContextMenu(blot, x, y);
|
|
109
|
-
}
|
|
110
|
-
function clearContextMenu(blot) {
|
|
111
|
-
if (blot.contextMenu) {
|
|
112
|
-
blot.contextMenu.innerHTML = "";
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
function showContextMenu(blot, x, y) {
|
|
116
|
-
if (blot.contextMenu) {
|
|
117
|
-
blot.contextMenu.style.display = "block";
|
|
118
|
-
blot.contextMenu.style.left = `${x}px`;
|
|
119
|
-
blot.contextMenu.style.top = `${y}px`;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function addContextMenuItem(blot, text, textKey, onClick) {
|
|
123
|
-
const item = document.createElement("div");
|
|
124
|
-
item.className = "ql-flow-chart-context-menu-item";
|
|
125
|
-
item.textContent = text;
|
|
126
|
-
item.setAttribute("data-text-key", textKey);
|
|
127
|
-
item.style.padding = "5px 15px";
|
|
128
|
-
item.style.cursor = "pointer";
|
|
129
|
-
item.style.whiteSpace = "nowrap";
|
|
130
|
-
item.addEventListener("click", onClick);
|
|
131
|
-
item.addEventListener("mouseenter", () => {
|
|
132
|
-
item.style.background = "#f5f5f5";
|
|
133
|
-
});
|
|
134
|
-
item.addEventListener("mouseleave", () => {
|
|
135
|
-
item.style.background = "white";
|
|
136
|
-
});
|
|
137
|
-
blot.contextMenu.appendChild(item);
|
|
138
|
-
}
|
|
139
|
-
function handleCopy(blot) {
|
|
140
|
-
if (blot.currentElement && blot.currentElement.type === "node") {
|
|
141
|
-
const nodeId = blot.currentElement.data.id;
|
|
142
|
-
blot.flowChart.cloneNode(nodeId);
|
|
143
|
-
}
|
|
144
|
-
hideContextMenu(blot);
|
|
145
|
-
}
|
|
146
|
-
function handleDeleteContent(blot) {
|
|
147
|
-
if (blot.currentElement) {
|
|
148
|
-
if (blot.currentElement.type === "node") {
|
|
149
|
-
const node = blot.currentElement.data;
|
|
150
|
-
blot.flowChart.updateText(node.id, "");
|
|
151
|
-
} else if (blot.currentElement.type === "edge") {
|
|
152
|
-
const edge = blot.currentElement.data;
|
|
153
|
-
blot.flowChart.updateText(edge.id, "");
|
|
154
|
-
}
|
|
155
|
-
blot.data = blot.flowChart.getGraphData();
|
|
156
|
-
blot.domNode.setAttribute("data-flow-chart", JSON.stringify(blot.data));
|
|
157
|
-
}
|
|
158
|
-
hideContextMenu(blot);
|
|
159
|
-
}
|
|
160
|
-
function handleDeleteNode(blot) {
|
|
161
|
-
if (blot.currentElement && blot.currentElement.type === "node") {
|
|
162
|
-
blot.flowChart.deleteNode(blot.currentElement.data.id);
|
|
163
|
-
blot.data = blot.flowChart.getGraphData();
|
|
164
|
-
blot.domNode.setAttribute("data-flow-chart", JSON.stringify(blot.data));
|
|
165
|
-
}
|
|
166
|
-
hideContextMenu(blot);
|
|
167
|
-
}
|
|
168
|
-
function handleDeleteEdge(blot) {
|
|
169
|
-
if (blot.currentElement && blot.currentElement.type === "edge") {
|
|
170
|
-
blot.flowChart.deleteEdge(blot.currentElement.data.id);
|
|
171
|
-
blot.data = blot.flowChart.getGraphData();
|
|
172
|
-
blot.domNode.setAttribute("data-flow-chart", JSON.stringify(blot.data));
|
|
173
|
-
}
|
|
174
|
-
hideContextMenu(blot);
|
|
175
|
-
}
|
|
176
|
-
function hideContextMenu(blot) {
|
|
177
|
-
if (blot.contextMenu) {
|
|
178
|
-
blot.contextMenu.style.display = "none";
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export {
|
|
182
|
-
initContextMenu
|
|
183
|
-
};
|
|
184
|
-
//# sourceMappingURL=context-menu.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.es.js","sources":["../../../../../src/modules/flow-chart/modules/context-menu.ts"],"sourcesContent":["import type FluentEditor from '../../../core/fluent-editor'\nimport type FlowChartPlaceholderBlot from '../formats/flow-chart-blot'\nimport { CHANGE_LANGUAGE_EVENT } from '../../../config'\nimport { I18N } from '../../../modules/i18n'\nimport { registerFlowChartI18N } from '../i18n/index'\n\nclass FlowChartContextMenuHandler {\n private texts: Record<string, string>\n private lang: string\n getText(key: keyof Record<string, string>): string {\n return this.texts[key]\n }\n\n constructor(private quill: FluentEditor, private blot: FlowChartPlaceholderBlot) {\n const i18nModule = this.quill.getModule('i18n') as I18N\n registerFlowChartI18N(I18N)\n this.lang = i18nModule.options.lang\n this.texts = this.resolveTexts()\n this.quill.emitter.on(CHANGE_LANGUAGE_EVENT, (lang: string) => {\n this.lang = lang\n this.texts = this.resolveTexts()\n this.updateContextMenuItems()\n })\n }\n\n resolveTexts() {\n return {\n copy: I18N.parserText('flowChart.contextMenu.copy', this.lang),\n cut: I18N.parserText('flowChart.contextMenu.cut', this.lang),\n paste: I18N.parserText('flowChart.contextMenu.paste', this.lang),\n deleteContent: I18N.parserText('flowChart.contextMenu.deleteContent', this.lang),\n deleteNode: I18N.parserText('flowChart.contextMenu.deleteNode', this.lang),\n deleteEdge: I18N.parserText('flowChart.contextMenu.deleteEdge', this.lang),\n }\n }\n\n updateContextMenuItems() {\n if (!this.blot.contextMenu) return\n\n const menuItems = this.blot.contextMenu.querySelectorAll('.ql-flow-chart-context-menu-item')\n if (menuItems.length > 0) {\n Array.from(menuItems).forEach((item) => {\n const text = item.getAttribute('data-text-key')\n if (text && this.texts[text as keyof Record<string, string>]) {\n item.textContent = this.texts[text as keyof Record<string, string>]\n }\n })\n }\n }\n}\n\nconst contextMenuHandlers = new WeakMap<FlowChartPlaceholderBlot, FlowChartContextMenuHandler>()\n\nexport function initContextMenu(blot: FlowChartPlaceholderBlot, quill: FluentEditor): void {\n blot.contextMenu = document.createElement('div')\n blot.contextMenu.className = 'ql-flow-chart-context-menu'\n blot.contextMenu.style.position = 'fixed'\n blot.contextMenu.style.background = 'white'\n blot.contextMenu.style.borderRadius = '4px'\n blot.contextMenu.style.boxShadow = '0 2px 10px rgba(0,0,0,0.1)'\n blot.contextMenu.style.padding = '5px 0'\n blot.contextMenu.style.zIndex = '1000'\n blot.contextMenu.style.display = 'block'\n blot.contextMenu.style.visibility = 'visible'\n blot.contextMenu.style.opacity = '1'\n blot.contextMenu.style.width = '120px'\n blot.contextMenu.style.height = 'auto'\n blot.domNode.appendChild(blot.contextMenu)\n\n const handler = new FlowChartContextMenuHandler(quill, blot)\n contextMenuHandlers.set(blot, handler)\n\n if (blot.flowChart) {\n blot.flowChart.on('node:contextmenu', (event: any) => {\n const { data, e } = event\n e.preventDefault()\n e.stopPropagation()\n blot.currentElement = { type: 'node', data }\n showNodeContextMenu(blot, handler, e.clientX, e.clientY)\n })\n\n blot.flowChart.on('edge:contextmenu', (event: any) => {\n const { data, e } = event\n e.preventDefault()\n e.stopPropagation()\n blot.currentElement = { type: 'edge', data }\n showEdgeContextMenu(blot, handler, e.clientX, e.clientY)\n })\n }\n\n const hideMenu = () => {\n if (blot.contextMenu) {\n blot.contextMenu.style.display = 'none'\n blot.currentElement = null\n }\n }\n\n blot.flowChart.on('blank:click', hideMenu)\n document.addEventListener('click', (e) => {\n if (blot.contextMenu && !blot.contextMenu.contains(e.target as Node)) {\n hideMenu()\n }\n })\n}\n\nfunction showNodeContextMenu(blot: FlowChartPlaceholderBlot, handler: FlowChartContextMenuHandler, x: number, y: number): void {\n clearContextMenu(blot)\n\n addContextMenuItem(blot, handler.getText('copy'), 'copy', () => handleCopy(blot))\n addContextMenuItem(blot, handler.getText('deleteContent'), 'deleteContent', () => handleDeleteContent(blot))\n addContextMenuItem(blot, handler.getText('deleteNode'), 'deleteNode', () => handleDeleteNode(blot))\n\n showContextMenu(blot, x, y)\n}\n\nfunction showEdgeContextMenu(blot: FlowChartPlaceholderBlot, handler: FlowChartContextMenuHandler, x: number, y: number): void {\n clearContextMenu(blot)\n\n addContextMenuItem(blot, handler.getText('deleteContent'), 'deleteContent', () => handleDeleteContent(blot))\n addContextMenuItem(blot, handler.getText('deleteEdge'), 'deleteEdge', () => handleDeleteEdge(blot))\n\n showContextMenu(blot, x, y)\n}\n\nfunction clearContextMenu(blot: FlowChartPlaceholderBlot): void {\n if (blot.contextMenu) {\n blot.contextMenu.innerHTML = ''\n }\n}\n\nfunction showContextMenu(blot: FlowChartPlaceholderBlot, x: number, y: number): void {\n if (blot.contextMenu) {\n blot.contextMenu.style.display = 'block'\n blot.contextMenu.style.left = `${x}px`\n blot.contextMenu.style.top = `${y}px`\n }\n}\n\nfunction addContextMenuItem(blot: FlowChartPlaceholderBlot, text: string, textKey: string, onClick: () => void): void {\n const item = document.createElement('div')\n item.className = 'ql-flow-chart-context-menu-item'\n item.textContent = text\n item.setAttribute('data-text-key', textKey)\n item.style.padding = '5px 15px'\n item.style.cursor = 'pointer'\n item.style.whiteSpace = 'nowrap'\n item.addEventListener('click', onClick)\n item.addEventListener('mouseenter', () => {\n item.style.background = '#f5f5f5'\n })\n item.addEventListener('mouseleave', () => {\n item.style.background = 'white'\n })\n blot.contextMenu!.appendChild(item)\n}\n\nfunction handleCopy(blot: FlowChartPlaceholderBlot): void {\n if (blot.currentElement && blot.currentElement.type === 'node') {\n const nodeId = blot.currentElement.data.id\n blot.flowChart.cloneNode(nodeId)\n }\n hideContextMenu(blot)\n}\n\nfunction handleDeleteContent(blot: FlowChartPlaceholderBlot): void {\n if (blot.currentElement) {\n if (blot.currentElement.type === 'node') {\n const node = blot.currentElement.data\n blot.flowChart.updateText(node.id, '')\n }\n else if (blot.currentElement.type === 'edge') {\n const edge = blot.currentElement.data\n blot.flowChart.updateText(edge.id, '')\n }\n blot.data = blot.flowChart.getGraphData()\n blot.domNode.setAttribute('data-flow-chart', JSON.stringify(blot.data))\n }\n hideContextMenu(blot)\n}\n\nfunction handleDeleteNode(blot: FlowChartPlaceholderBlot): void {\n if (blot.currentElement && blot.currentElement.type === 'node') {\n blot.flowChart.deleteNode(blot.currentElement.data.id)\n blot.data = blot.flowChart.getGraphData()\n blot.domNode.setAttribute('data-flow-chart', JSON.stringify(blot.data))\n }\n hideContextMenu(blot)\n}\n\nfunction handleDeleteEdge(blot: FlowChartPlaceholderBlot): void {\n if (blot.currentElement && blot.currentElement.type === 'edge') {\n blot.flowChart.deleteEdge(blot.currentElement.data.id)\n blot.data = blot.flowChart.getGraphData()\n blot.domNode.setAttribute('data-flow-chart', JSON.stringify(blot.data))\n }\n hideContextMenu(blot)\n}\n\nfunction hideContextMenu(blot: FlowChartPlaceholderBlot): void {\n if (blot.contextMenu) {\n blot.contextMenu.style.display = 'none'\n }\n}\n"],"names":[],"mappings":"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"}
|