UNPKG

@ant-design/graphs

Version:
10 lines (9 loc) 303 B
import { Polyline } from '@antv/g6'; export class IndentedEdge extends Polyline { getControlPoints(attributes) { const [sourcePoint, targetPoint] = this.getEndpoints(attributes, false); const [sx] = sourcePoint; const [, ty] = targetPoint; return [[sx, ty]]; } }