Permalink
Browse files

[0.10.1]add endpoint to model-h2

  • Loading branch information...
dog-ears committed Feb 22, 2018
1 parent 267a69d commit 4123becc84351ee6a3f8b121836475d0d82b330c
Showing with 10 additions and 0 deletions.
  1. +9 −0 src/app/service/jsPlumb.service.ts
  2. +1 −0 src/styles.css
@@ -33,6 +33,15 @@ export class JsPlumbService {
// draggable
this._instance.draggable( model.getElementId() );
this._instance.toggleDraggable( model.getElementId() );
// add endpoint
if(model.is_pivot === false){
this._instance.addEndpoint( model.getElementH2Id(), {
isSource: true,
isTarget: true,
});
}
}
public toggleDraggable(model:Model): void{
@@ -3,6 +3,7 @@
.material-icons{
cursor:pointer;
width:12.813px;
}
.material-icons.disable{
cursor:default;

0 comments on commit 4123bec

Please sign in to comment.