jointjs -- 鼠标事件

tree.paper.on('cell:pointerdown',function (e, d) {
    console.log('pointerdown')
    d.stopPropagation()
});
tree.paper.on('cell:pointermove',function (e, d) {
    console.log('pointermove')
    d.stopPropagation()
});
tree.paper.on('cell:pointerup',function (e, d) {
    console.log('pointerup')
    d.stopPropagation()
});
tree.paper.on('cell:pointerclick',function (e, d) {
    console.log('pointerclick')
    d.stopPropagation()
});
//元素变换位置事件,
tree.graph.on('change:source change:target',function (link){

})
jointjs代码在13000行左右

猜你喜欢

转载自blog.csdn.net/qq_40285497/article/details/82783490