UNPKG

@atlaskit/tooltip

Version:

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

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