mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复节点文本存在svg不支持的实体字符时小地图无法渲染的问题
This commit is contained in:
parent
92894d0341
commit
ac3ad1681f
@ -93,10 +93,7 @@ class MiniMap {
|
||||
|
||||
return {
|
||||
getImgUrl: async callback => {
|
||||
const blob = new Blob([svgStr], {
|
||||
type: 'image/svg+xml'
|
||||
})
|
||||
const res = await readBlob(blob)
|
||||
const res = await this.mindMap.doExport.fixSvgStrAndToBlob(svgStr)
|
||||
callback(res)
|
||||
},
|
||||
svgHTML: svgStr, // 小地图html
|
||||
|
||||
@ -93,7 +93,6 @@ export default {
|
||||
|
||||
// 画布缩放事件
|
||||
onScale() {
|
||||
console.log(1)
|
||||
if (!this.node || !this.show) return
|
||||
this.updatePosition()
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user