MCPcopy
hub / github.com/TanStack/virtual / handler

Function handler

packages/virtual-core/src/index.ts:75–78  ·  view source on GitHub ↗
(rect: Rect)

Source from the content-addressed store, hash-verified

73 }
74
75 const handler = (rect: Rect) => {
76 const { width, height } = rect
77 cb({ width: Math.round(width), height: Math.round(height) })
78 }
79
80 handler(element.getBoundingClientRect())
81

Callers 3

observeElementRectFunction · 0.85
runFunction · 0.85
observeWindowRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected