How to use the jointjs.linkTools function in jointjs

To help you get started, we’ve selected a few jointjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Novvum / graphql-birdseye / src / jointjs / index.ts View on Github external
private addTools(link: any) {
    var toolsView = new joint.dia.ToolsView({
      tools: [new joint.linkTools.TargetArrowhead()]
    });
    link.findView(this.paper).addTools(toolsView);
  }
  private bindToolEvents() {
github IDAES / idaes-pse / ui / modelvis / idaes-model-vis / src / index.ts View on Github external
this.paper.on("link:mouseover", function(cellView, evt) {
      var verticesTool = new joint.linkTools.Vertices({
        focusOpacity: 0.5,
        redundancyRemoval: true,
        snapRadius: 20,
        vertexAdding: true,
      });
      var segmentsTool = new joint.linkTools.Segments();

      var sourceArrowheadTool = new joint.linkTools.SourceArrowhead();
      var targetArrowheadTool = new joint.linkTools.TargetArrowhead();

      var toolsView = new joint.dia.ToolsView({
        tools: [
          verticesTool, segmentsTool,
          sourceArrowheadTool, targetArrowheadTool
        ]
      });
github IDAES / idaes-pse / ui / modelvis / idaes-model-vis / src / index.ts View on Github external
this.paper.on("link:mouseover", function(cellView, evt) {
      var verticesTool = new joint.linkTools.Vertices({
        focusOpacity: 0.5,
        redundancyRemoval: true,
        snapRadius: 20,
        vertexAdding: true,
      });
      var segmentsTool = new joint.linkTools.Segments();

      var sourceArrowheadTool = new joint.linkTools.SourceArrowhead();
      var targetArrowheadTool = new joint.linkTools.TargetArrowhead();

      var toolsView = new joint.dia.ToolsView({
        tools: [
          verticesTool, segmentsTool,
          sourceArrowheadTool, targetArrowheadTool
        ]
      });
      cellView.addTools(toolsView)
      cellView.showTools()
    });