V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
alex321
V2EX  ›  问与答

有童鞋研究阿里 G6 怎么添加线条么?

  •  
  •   alex321 · Apr 11, 2017 · 1792 views
    This topic created in 3303 days ago, the information mentioned may be changed or developed.
    G6 在这里: https://antv.alipay.com/g6/doc/index.html ,我现在做好在一个画布上添加节点了,然后折腾连接线条,怎么也折腾不成功。
    求搭救。
    Supplement 1  ·  Apr 12, 2017
    已经解决。。。手贱多写了个 net.endAdd 。。

    addLine.on('click', function(ev) {
    net.beginAdd('edge', {
    shape: 'line'
    });
    });
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2994 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 15:22 · PVG 23:22 · LAX 08:22 · JFK 11:22
    ♥ Do have faith in what you're doing.