Skip to content

Commit 3bd73a2

Browse files
q32757468heshenglei
andauthored
fix: exportPNG not display image markup (#4672)
Co-authored-by: heshenglei <[email protected]>
1 parent 77e84a6 commit 3bd73a2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/x6-plugin-export/src/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
2+
Basecoat,
23
DataUri,
3-
NumberExt,
4+
Dom,
45
FunctionExt,
5-
Vector,
6+
Graph,
7+
KeyValue,
8+
NumberExt,
69
Rectangle,
710
Size,
8-
KeyValue,
9-
Basecoat,
10-
Dom,
11-
Graph,
11+
Vector,
1212
} from '@antv/x6'
1313
import './api'
1414

@@ -213,6 +213,7 @@ export class Export extends Basecoat<Export.EventArgs> implements Graph.Plugin {
213213
DataUri.imageToDataUri(url, (err, dataUri) => {
214214
if (!err && dataUri) {
215215
vImage.attr('xlink:href', dataUri)
216+
vImage.attr('href', dataUri)
216217
}
217218
resolve()
218219
})

0 commit comments

Comments
 (0)