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": { "dependencies": {
"@ant-design/icons": "^4.0.6", "@ant-design/icons": "^4.0.6",
"@antv/x6": "^0.10.66", "@antv/x6": "^0.12.0",
"ace-builds": "^1.4.12", "ace-builds": "^1.4.12",
"antd": "^4.5.3", "antd": "^4.5.3",
"react-ace": "^9.1.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, container,
rotating: false, rotating: false,
resizing: true, 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 // https://x6.antv.vision/zh/docs/tutorial/intermediate/connector
connecting: { connecting: {
snap: true, snap: true,

Loading…
Cancel
Save