fix: 实体关系图优化问题修改:对于终点为root节点的连线的箭头显示不全问题处理
This commit is contained in:
@@ -232,7 +232,7 @@ export default {
|
|||||||
const end = link.target
|
const end = link.target
|
||||||
let width = 1 // 线宽
|
let width = 1 // 线宽
|
||||||
const arrowSize = 3 // 箭头大小
|
const arrowSize = 3 // 箭头大小
|
||||||
const shortenedLength = 20 // link 末端缩短长度
|
const shortenedLength = end.type === nodeType.rootNode ? 23 : 20 // link 末端缩短长度,root节点特殊处理
|
||||||
|
|
||||||
// 计算箭头角度
|
// 计算箭头角度
|
||||||
const dx = end.x - start.x
|
const dx = end.x - start.x
|
||||||
|
|||||||
Reference in New Issue
Block a user