cluck0428

Results 3 comments of cluck0428

可以通过edge:lables事件,将偏移的值该为0即可: this.graph.on('edge:change:labels', ({ cell, edge, current,previous }) => { current.forEach(function(value, index) { value.position.offset = 0 }); })

可以通过 edge:change:labels监听,只要标签有任何改动就会触发