Fix:修复修改了外框的线条样式,激活后再取消激活,样式会变成默认的样式的问题

This commit is contained in:
街角小林 2024-07-03 12:00:44 +08:00
parent de29ec59c5
commit 5867649429

View File

@ -340,7 +340,7 @@ class OuterFrame {
if (!this.activeOuterFrame) return
const { el } = this.activeOuterFrame
el.stroke({
dasharray: '5,5'
dasharray: el.cacheStyle.dasharray || defaultStyle.strokeDasharray
})
this.activeOuterFrame = null
}
@ -362,6 +362,9 @@ class OuterFrame {
})
.x(x)
.y(y)
el.cacheStyle = {
dasharray: styleConfig.strokeDasharray
}
this.outerFrameElList.push(el)
return el
}