MCPcopy Index your code
hub / github.com/JedWatson/react-select / getBoundingClientObj

Function getBoundingClientObj

packages/react-select/src/utils.ts:293–303  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

291
292// cannot get keys using array notation with DOMRect
293export function getBoundingClientObj(element: HTMLElement) {
294 const rect = element.getBoundingClientRect();
295 return {
296 bottom: rect.bottom,
297 height: rect.height,
298 left: rect.left,
299 right: rect.right,
300 top: rect.top,
301 width: rect.width,
302 };
303}
304export interface RectType {
305 left: number;
306 right: number;

Callers 1

MenuPortalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…