如何在vis.js中用图像绘制边缘

时间:2021-04-05 19:32:59

标签: vis.js

有谁知道如何在 vis.js 中用图像绘制我自己的箭头?或者换个箭头?

这是我的边缘代码。

var edges = [
    {from: 1, to: 2, color: { color: 'black'}, arrows: {to: true,}},
    {from: 1, to: 3, color: { color: 'black'}, arrows: {to: true,}},
    {from: 2, to: 4, color: { color: 'black'}, arrows: {to: true,}},
    {from: 3, to: 5, color: { color: 'black'}, arrows: {to: true,}},
    {from: 4, to: 6, color: { color: 'black'}, arrows: {to: true,}},
    {from: 5, to: 6, color: { color: 'black'}, arrows: {to: true,}},
    
  ];

 edges:{
    arrows: 'to',
    color:{inherit: false},
    },

0 个答案:

没有答案