Skip to content

Commit 6c96a72

Browse files
committed
Updated vue-sequence.
1 parent 66e244b commit 6c96a72

File tree

3 files changed

+210
-19
lines changed

3 files changed

+210
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"split.js": "1.6.2",
9898
"svg-transform-loader": "^2.0.12",
9999
"vue": "^2.6.12",
100-
"vue-sequence": "^1.0.87",
100+
"vue-sequence": "^1.0.126",
101101
"vuex": "^3.6.2"
102102
},
103103
"jest": {

src/components/ContentWrap.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,15 @@ export default class ContentWrap extends Component {
417417
async exportPngClickHandler(e) {
418418
const mountingPoint = this.frame.contentWindow.document.getElementById('diagram');
419419
// eslint-disable-next-line
420-
const png = await mountingPoint.children[0].__vue__.$children[0].toBlob();
420+
const png = await mountingPoint.children[0].__vue__.toBlob();
421421
saveAs(png, 'zenuml.png');
422422
trackEvent('ui', 'downloadPng');
423423
}
424424

425425
async exportJpegClickHandler(e) {
426426
const mountingPoint = this.frame.contentWindow.document.getElementById('diagram');
427427
// eslint-disable-next-line
428-
const jpeg = await mountingPoint.children[0].__vue__.$children[0].toJpeg();
428+
const jpeg = await mountingPoint.children[0].__vue__.toJpeg();
429429
saveAs(jpeg, 'zenuml.jpeg');
430430
trackEvent('ui', 'downloadJpeg');
431431
}

0 commit comments

Comments
 (0)