MCPcopy Create free account
hub / github.com/callstack/agent-device / isValidRect

Function isValidRect

src/core/scroll-gesture.ts:253–255  ·  view source on GitHub ↗
(rect: Rect | undefined)

Source from the content-addressed store, hash-verified

251}
252
253function isValidRect(rect: Rect | undefined): rect is Rect {
254 return !!rect && rect.width > 0 && rect.height > 0;
255}
256
257function resolveRequestedAmount(amount: number | undefined): number {
258 if (amount === undefined) return DEFAULT_SCROLL_AMOUNT;

Callers 1

inferViewportRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…