View unanswered posts | View active topics It is currently 2019-10-19 1:19



Reply to topic  [ 2 posts ] 
 关于连线连接到 节点最边缘问题 
Author Message
初级会员

Joined: 2017-12-04 9:31
Posts: 120
Post 关于连线连接到 节点最边缘问题
两个 节点 之间有条连线,两个节点的图片部分区域比较透明,连线就可以看到了;
想要 两节点间连线 只连接到 图片最边缘,而不是中心


Attachments:
QQ图片20190215165315.png
QQ图片20190215165315.png [ 71.52 KiB | Viewed 528 times ]
2019-02-15 17:01
Profile
TWaver开发组
User avatar

Joined: 2018-04-16 16:11
Posts: 164
Post Re: 关于连线连接到 节点最边缘问题
您好!

这个功能直接调用 network 上的 api 就能实现,api 为 setEdgeDetect,具体请参考 api 文档:http://doc.servasoft.com/uploads/twaver-html5-5.0.3-api/#method_twaver.vector.Network.setEdgeDetect

调用的时候,直接这样使用:
Code:
network.setEdgeDetect(true);


2019-02-18 9:45
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron