MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / createRect

Function createRect

javascript/atoms/typescript/is-displayed.ts:123–132  ·  view source on GitHub ↗
(left: number, top: number, width: number, height: number)

Source from the content-addressed store, hash-verified

121 }
122
123 function createRect(left: number, top: number, width: number, height: number): Rect {
124 return {
125 left: left,
126 top: top,
127 right: left + width,
128 bottom: top + height,
129 width: width,
130 height: height,
131 };
132 }
133
134 function getClientRect(elem: Element): Rect {
135 var cachedRect = clientRectCache.get(elem);

Callers 3

getClientRectFunction · 0.85
getAreaRelativeRectFunction · 0.85
maybeFindImageMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected