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