Browse Source

chore: update @antv/x6 to fix exported picture problem

master
smallstonesk 4 years ago
parent
commit
e23c5f52bd
  1. 2
      packages/core/package.json
  2. 4
      packages/core/src/mods/header/export/exportModal.tsx

2
packages/core/package.json

@ -37,7 +37,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.0.6",
"@antv/x6": "^1.3.0",
"@antv/x6": "^1.7.12",
"@imove/compile-code": "^0.0.1",
"@monaco-editor/react": "^3.7.4",
"antd": "^4.5.3",

4
packages/core/src/mods/header/export/exportModal.tsx

@ -32,9 +32,9 @@ const ExportModal: React.FC<IExportModalProps> = (props) => {
});
};
const onExportFlowChart = () => {
flowChart.toJPEG((dataUri: string) => {
flowChart.toPNG((dataUri: string) => {
DataUri.downloadDataUri(dataUri, 'flowChart.png');
});
}, { padding: 50, ratio: '3.0' });
};
return (

Loading…
Cancel
Save