Fix:修复关联线设置激活样式时控制线条颜色没同步更新的问题

This commit is contained in:
街角小林 2024-12-16 17:09:29 +08:00
parent 46e3d85b5f
commit 2822dcc99a
3 changed files with 16 additions and 0 deletions

View File

@ -541,4 +541,8 @@ const mindMap = new MindMap({
<img src="./web/src/assets/avatar/Xavier.png" style="width: 50px;height: 50px;" /> <img src="./web/src/assets/avatar/Xavier.png" style="width: 50px;height: 50px;" />
<span>Xavier</span> <span>Xavier</span>
</span> </span>
<span>
<img src="./web/src/assets/avatar/冒号括号.png" style="width: 50px;height: 50px;" />
<span>:)</span>
</span>
</p> </p>

View File

@ -370,6 +370,18 @@ class AssociativeLine {
'font-size': associativeLineTextFontSize + 'px' 'font-size': associativeLineTextFontSize + 'px'
}) })
}) })
if (this.controlLine1) {
this.controlLine1.stroke({ color: associativeLineActiveColor })
}
if (this.controlLine2) {
this.controlLine2.stroke({ color: associativeLineActiveColor })
}
if (this.controlPoint1) {
this.controlPoint1.stroke({ color: associativeLineActiveColor })
}
if (this.controlPoint2) {
this.controlPoint2.stroke({ color: associativeLineActiveColor })
}
} }
// 激活某根关联线 // 激活某根关联线

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB