Vis网络重叠号码问题

问题描述

现在我正在使用Visnetwork进行项目(Angular 8),除行上重叠数字外,其他一切工作正常,我们能做到这一点而无需分隔行,我的意思是我们可以改变一行上数字的位置吗?你能帮我吗。 (please check this screenshot)

    var edges = [
      { from: 2,to: 1,color:'#FF7F50',label: "2",arrows: "top",},{ from: 1,to: 2,arrows: "top"},{ from: 6,to: 5,color:'#1085E0',label: "12",{ from: 5,to: 6,label: "5",color:'pink',{ from: 7,color:'red',label: "8",arrows: "middle"},{ from: 4,title: "Title",arrows: "to,from"},to: 7,color:'#0C7D1A',arrows: "middle"}
    ];

解决方法

var edges = [
  { from: 2,to: 1,color:'#FF7F50',label: "2",arrows: "top",smooth: { type: "curvedCW",roundness: 0.2 } },{ from: 1,to: 2,{ from: 6,to: 5,color:'#1085E0',label: "12",{ from: 5,to: 6,label: "5",color:'pink',{ from: 7,color:'red',label: "8",arrows: "middle",{ from: 4,title: "Title",arrows: "to,from",to: 7,color:'#0C7D1A',roundness: 0.2 } }
];

请参阅Stackblitz