UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

11 lines 376 B
/** * Places the anchor of the edge at center of the node bbox. */ export const nodeCenter = function (view, magnet, ref, options, endType) { const result = view.cell.getConnectionPoint(this.cell, endType); if (options.dx || options.dy) { result.translate(options.dx || 0, options.dy || 0); } return result; }; //# sourceMappingURL=node-center.js.map