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

Function isViewportNode

src/core/scroll-gesture.ts:247–251  ·  view source on GitHub ↗
(type: string | undefined)

Source from the content-addressed store, hash-verified

245}
246
247function isViewportNode(type: string | undefined): boolean {
248 if (!type) return false;
249 const normalized = type.toLowerCase();
250 return normalized.includes('application') || normalized.includes('window');
251}
252
253function isValidRect(rect: Rect | undefined): rect is Rect {
254 return !!rect && rect.width > 0 && rect.height > 0;

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…