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行左右

你可能感兴趣的:(jointjs -- 鼠标事件)