V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
alex321
V2EX  ›  问与答

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

  •  
  •   alex321 · 2017-04-11 16:26:40 +08:00 · 1519 次点击
    这是一个创建于 2642 天前的主题,其中的信息可能已经有所发展或是发生改变。
    G6 在这里: https://antv.alipay.com/g6/doc/index.html ,我现在做好在一个画布上添加节点了,然后折腾连接线条,怎么也折腾不成功。
    求搭救。
    第 1 条附言  ·  2017-04-12 12:18:21 +08:00
    已经解决。。。手贱多写了个 net.endAdd 。。

    addLine.on('click', function(ev) {
    net.beginAdd('edge', {
    shape: 'line'
    });
    });
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   995 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:28 · PVG 03:28 · LAX 12:28 · JFK 15:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.