MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / rectNumber

Function rectNumber

packages/nativescript-inspector/src/index.ts:1739–1742  ·  view source on GitHub ↗
(frame: JSONObject | null | undefined, key: string)

Source from the content-addressed store, hash-verified

1737}
1738
1739function rectNumber(frame: JSONObject | null | undefined, key: string): number {
1740 const value = frame?.[key];
1741 return typeof value === "number" && Number.isFinite(value) ? value : 0;
1742}
1743
1744function fallbackTabBarFrame(): JSONObject {
1745 const screen = rectValue(UIScreen.mainScreen.bounds) ?? {

Callers 7

tabBarControlsFunction · 0.85
rectAreaFunction · 0.85
rectOverlapAreaFunction · 0.85
hasUsableFrameFunction · 0.85
rectKeyFunction · 0.85
fallbackTabBarFrameFunction · 0.85
tabItemFallbackFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected