Browse Source

fix: clipboard supports crossing web page

master
smallstonesk 4 years ago
parent
commit
8e1106e060
  1. 2
      packages/core/package.json
  2. 6
      packages/core/src/mods/flowChart/createFlowChart.ts

2
packages/core/package.json

@ -37,7 +37,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.0.6",
"@antv/x6": "^0.10.66",
"@antv/x6": "^0.12.0",
"ace-builds": "^1.4.12",
"antd": "^4.5.3",
"react-ace": "^9.1.3",

6
packages/core/src/mods/flowChart/createFlowChart.ts

@ -64,7 +64,11 @@ const createFlowChart = (container: HTMLDivElement, miniMapContainer: HTMLDivEle
container,
rotating: false,
resizing: true,
clipboard: true,
// https://x6.antv.vision/zh/docs/tutorial/basic/clipboard
clipboard: {
enabled: true,
useLocalStorage: true
},
// https://x6.antv.vision/zh/docs/tutorial/intermediate/connector
connecting: {
snap: true,

Loading…
Cancel
Save