Skip to content

Instantly share code, notes, and snippets.

@Priyesha
Created April 21, 2020 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Priyesha/b76258d3a073017ec905014d4c16b57a to your computer and use it in GitHub Desktop.
Save Priyesha/b76258d3a073017ec905014d4c16b57a to your computer and use it in GitHub Desktop.
ngAfterViewInit() {
this.sourceEndPoint = this.jsPlumbInstance.addEndpoint(this.node.id,
{ anchor: 'Right', uuid: this.node.id + 'right' }, this.source);
if (this.node.type !== 'start') {
this.destinationEndPoint = this.jsPlumbInstance.addEndpoint(this.node.id,
{ anchor: 'Left', uuid: this.node.id + 'left' }, this.destination);
}
this.jsPlumbInstance.draggable(this.node.id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment