【发布时间】:2017-07-30 19:49:39
【问题描述】:
【问题讨论】:
标签: javascript graph diagram jointjs
【问题讨论】:
标签: javascript graph diagram jointjs
链接连接器是您正在寻找的东西。
你调整特定的链接:
link.set('connector', { name: 'normal' });
link.set('connector', { name: 'smooth' });
link.set({name : 'rounded', args:{radius: 50}});
或者您可以为图表中的所有链接设置默认值
var paper = new joint.dia.Paper({
width: 800,
height: 800,
gridSize: 1,
model: graph,
defaultConnector: {
name: 'smooth'
}
});
【讨论】: