SourceTermAnalysisSystem_vue/node_modules/@antv/x6/es/registry/tool/util.js
2026-05-15 10:22:44 +08:00

15 lines
610 B
JavaScript

import { FunctionExt } from '@antv/x6-common';
import { ConnectionStrategy } from '../connection-strategy';
export function getAnchor(pos, terminalView, terminalMagnet, type) {
const end = FunctionExt.call(ConnectionStrategy.presets.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