antvis / F6

F6 is a graph visualization engine which provides quick and smooth operations on mobile devices.
https://f6.antv.vision
MIT License
134 stars 21 forks source link

uniapp mindmap文字换行问题 #143

Closed homestylew closed 2 years ago

homestylew commented 2 years ago

mindmap使用文字行后,边的长度变得非常长,看着很怪异,不知道是不是自己写错了。 测试链接:https://codesandbox.io/s/heuristic-volhard-zibu9r?file=/index.html

ICMI commented 2 years ago

验证了下,确实是文本换行后宽度计算的问题,预计本周内修复

homestylew commented 2 years ago

验证了下,确实是文本换行后宽度计算的问题,预计本周内修复

还有高度,猜测代码计算的是文本的长度。 垂直方向:两个节点间的距离,好像没有重新计算。

oneness0 commented 2 years ago

不维护了?

ICMI commented 2 years ago

在维护的,不过投入精力会少

这个issue后续和同学在钉钉上沟通了,因为依赖的树图布局,默认计算文本宽度方式不支持多行,但可以外部传入覆盖原本方式,故不做处理