How to use the diagram-js/lib/util/RenderUtil.createLine function in diagram-js

To help you get started, we’ve selected a few diagram-js 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 bpmn-io / dmn-js / packages / dmn-js-drd / src / draw / DrdRenderer.js View on Github external
function drawLine(p, waypoints, attrs) {
    attrs = computeStyle(attrs, [ 'no-fill' ], {
      stroke: 'black',
      strokeWidth: 2,
      fill: 'none'
    });

    var line = createLine(waypoints, attrs);

    svgAppend(p, line);

    return line;
  }
github bpmn-io / cmmn-js / lib / draw / CmmnRenderer.js View on Github external
function drawLine(parentGfx, waypoints, attrs) {
    attrs = computeStyle(attrs, [ 'no-fill' ], {
      stroke: 'black',
      strokeWidth: 2,
      fill: 'none'
    });

    var line = createLine(waypoints, attrs);

    svgAppend(parentGfx, line);

    return line;
  }
github bpmn-io / bpmn-js / lib / draw / BpmnRenderer.js View on Github external
function drawLine(parentGfx, waypoints, attrs) {
    attrs = computeStyle(attrs, [ 'no-fill' ], {
      stroke: 'black',
      strokeWidth: 2,
      fill: 'none'
    });

    var line = createLine(waypoints, attrs);

    svgAppend(parentGfx, line);

    return line;
  }
github bpmn-io / bpmn-js-examples / custom-elements / app / custom-modeler / custom / CustomRenderer.js View on Github external
this.drawCustomConnection = function(p, element) {
    var attrs = computeStyle(attrs, {
      stroke: '#ff471a',
      strokeWidth: 2
    });

    return svgAppend(p, createLine(element.waypoints, attrs));
  };
github camunda-consulting / code / snippets / bpmnjs-custom-modeler / app / custom-modeler / custom / CustomRenderer.js View on Github external
this.drawCustomConnection = function(p, element) {
    var attrs = computeStyle(attrs, {
      stroke: '#ff471a',
      strokeWidth: 2
    });

    return createLine(element.waypoints, attrs).appendTo(p);
  };
github WPS / domain-story-modeler / app / domain-story-modeler / language / DomainStoryRenderer.js View on Github external
this.drawDSConnection = function(p, element) {
    let attrs = computeStyle(attrs, {
      stroke: '#000000',
      strokeWidth: 1.5,
      strokeLinejoin: 'round',
      strokeDasharray: '5, 5',
    });

    return svgAppend(p, createLine(element.waypoints, attrs));
  };