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

Function isUsableRect

src/utils/scroll-edge-state.ts:318–320  ·  view source on GitHub ↗
(rect: SnapshotNode['rect'])

Source from the content-addressed store, hash-verified

316}
317
318function isUsableRect(rect: SnapshotNode['rect']): rect is NonNullable<SnapshotNode['rect']> {
319 return Boolean(rect && rect.width > 0 && rect.height > 0);
320}
321
322function roundSignatureNumber(value: unknown): string {
323 return typeof value === 'number' && Number.isFinite(value)

Callers 2

selectScrollContainerFunction · 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…