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



Reply to topic  [ 2 posts ] 
 节点拖拽,监听问题 
Author Message
新手上路

Joined: 2019-02-24 11:25
Posts: 9
Post 节点拖拽,监听问题
我想在画布中监听所有节点是否发生拖拽效果,定义一个常量,然后如果发生拖拽,修改常量,那就在离开页面时根据常量是否变化,提示是否保存当前位置,但是我没有找到这个监听方法


2019-05-16 16:43
Profile
新手上路

Joined: 2019-04-23 11:02
Posts: 16
Post Re: 节点拖拽,监听问题
可以试试这个方法
network.addInteractionListener(function(e) {
if (e.kind === "liveMoveStart") {
// code start here
}
});


2019-05-16 17:55
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