sprotty
Version:
A next-gen framework for graphical views
8 lines • 310 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.toAnchor = void 0;
function toAnchor(anchor) {
return anchor instanceof HTMLElement ? { x: anchor.offsetLeft, y: anchor.offsetTop } : anchor;
}
exports.toAnchor = toAnchor;
//# sourceMappingURL=context-menu-service.js.map