exampleConnector.js 552 B

1234567891011121314151617
  1. jsPlumb.Connectors.ExampleConnector = function() {
  2. jsPlumb.Connectors.Straight.apply(this);
  3. var self = this;
  4. var _p = self.paint;
  5. this.paint = function(dimensions, ctx)
  6. {
  7. _p(dimensions,ctx);
  8. new jsPlumb.Overlays.PlainArrow({location:0.25}).draw(self, ctx);
  9. new jsPlumb.Overlays.Arrow({location:0.5}).draw(self, ctx);
  10. new jsPlumb.Overlays.Diamond({location:0.75}).draw(self, ctx);
  11. new jsPlumb.Overlays.Label({label:"SIMON",location:0.75}).draw(self, ctx);
  12. };
  13. };