fix: 实体关系图优化问题修改:对于终点为root节点的连线的箭头显示不全问题处理

This commit is contained in:
hanyuxia
2024-06-28 11:12:16 +08:00
parent b32b300f4e
commit a050cf6c7c

View File

@@ -232,7 +232,7 @@ export default {
const end = link.target
let width = 1 // 线宽
const arrowSize = 3 // 箭头大小
const shortenedLength = 20 // link 末端缩短长度
const shortenedLength = end.type === nodeType.rootNode ? 23 : 20 // link 末端缩短长度,root节点特殊处理
// 计算箭头角度
const dx = end.x - start.x