1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { PopoverOrigin } from "@material-ui/core/Popover";
7 export const createAnchorAt = (position: {x: number, y: number}) => {
8 const el = document.createElement('div');
9 const clientRect: DOMRect = {
20 el.getBoundingClientRect = () => clientRect;
24 export const DefaultTransformOrigin: PopoverOrigin = {