当我点击并拖动实例内的任何地方时,我想将所有节点,连接拖动在一起。虽然,当我拖动任何节点时,我不希望其他节点被拖动。我可以找到addToDragSelection()
来做这个。但是,当我单击并拖动节点外的任何地方时,如何才能启用它呢?
this.instance = newInstance({
dragOptions: {
cursor: 'pointer',
zIndex: 2000,
containment: ContainmentType.notNegative
},
container: this.wrapper.nativeElement,
});
您的意思是像Toolkit版中的所有内容一样吗?
https://demo.jsplumbtoolkit.com/flowchart-builder/
社区版不支持此功能。你必须自己写代码才能做到这一点。