edge.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Edge = void 0;
  4. const edge_1 = require("../model/edge");
  5. exports.Edge = edge_1.Edge.define({
  6. shape: 'edge',
  7. markup: [
  8. {
  9. tagName: 'path',
  10. selector: 'wrap',
  11. groupSelector: 'lines',
  12. attrs: {
  13. fill: 'none',
  14. cursor: 'pointer',
  15. stroke: 'transparent',
  16. strokeLinecap: 'round',
  17. },
  18. },
  19. {
  20. tagName: 'path',
  21. selector: 'line',
  22. groupSelector: 'lines',
  23. attrs: {
  24. fill: 'none',
  25. pointerEvents: 'none',
  26. },
  27. },
  28. ],
  29. attrs: {
  30. lines: {
  31. connection: true,
  32. strokeLinejoin: 'round',
  33. },
  34. wrap: {
  35. strokeWidth: 10,
  36. },
  37. line: {
  38. stroke: '#333',
  39. strokeWidth: 2,
  40. targetMarker: 'classic',
  41. },
  42. },
  43. });
  44. //# sourceMappingURL=edge.js.map