UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

15 lines 613 B
import { FunctionExt } from '../../common'; import { connectionStrategyPresets } from '../connection-strategy'; export function getAnchor(pos, terminalView, terminalMagnet, type) { const end = FunctionExt.call(connectionStrategyPresets.pinRelative, this.graph, {}, terminalView, terminalMagnet, pos, this.cell, type, {}); return end.anchor; } export function getViewBBox(view, quick) { if (quick) { return view.cell.getBBox(); } return view.cell.isEdge() ? view.getConnection().bbox() : view.getUnrotatedBBoxOfElement(view.container); } //# sourceMappingURL=util.js.map