UNPKG

@atlaskit/tooltip

Version:

A tooltip is a floating, non-actionable label used to explain a user interface element or feature.

17 lines 463 B
export function getMousePosition(mouseCoordinates) { const safeMouse = mouseCoordinates || { top: 0, left: 0 }; const getBoundingClientRect = () => ({ top: safeMouse.top, left: safeMouse.left, bottom: safeMouse.top, right: safeMouse.left, width: 0, height: 0, }); return { getBoundingClientRect, clientWidth: 0, clientHeight: 0, }; } //# sourceMappingURL=utilities.js.map