UNPKG

@antv/x6-next

Version:

JavaScript diagramming library that uses SVG and HTML for rendering.

42 lines (40 loc) 745 B
import { Edge as EdgeBase } from '@antv/x6-core' export const Edge = EdgeBase.define({ shape: 'edge', markup: [ { tagName: 'path', selector: 'wrap', groupSelector: 'lines', attrs: { fill: 'none', cursor: 'pointer', stroke: 'transparent', strokeLinecap: 'round', }, }, { tagName: 'path', selector: 'line', groupSelector: 'lines', attrs: { fill: 'none', pointerEvents: 'none', }, }, ], attrs: { lines: { connection: true, strokeLinejoin: 'round', }, wrap: { strokeWidth: 10, }, line: { stroke: '#333', strokeWidth: 2, targetMarker: 'classic', }, }, })