MCPcopy
hub / github.com/nilbuild/driver.js / rect

Function rect

tests/popover.test.ts:153–154  ·  view source on GitHub ↗
(over: Partial<DOMRect>)

Source from the content-addressed store, hash-verified

151
152 it("clears stale side classes when the popover is repositioned", async () => {
153 const rect = (over: Partial<DOMRect>): DOMRect =>
154 ({ top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0, toJSON() {}, ...over }) as DOMRect;
155
156 const el = document.querySelector<HTMLElement>("#intro")!;
157

Callers 3

popover.test.tsFile · 0.70
positionArrowFunction · 0.70
topForOffsetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…