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

Function insetsValue

packages/nativescript-inspector/src/index.ts:2060–2077  ·  view source on GitHub ↗
(insets: any)

Source from the content-addressed store, hash-verified

2058}
2059
2060function insetsValue(insets: any): JSONObject | null {
2061 if (!insets) {
2062 return null;
2063 }
2064 const top = finiteNumber(insets.top);
2065 const left = finiteNumber(insets.left);
2066 const bottom = finiteNumber(insets.bottom);
2067 const right = finiteNumber(insets.right);
2068 if (top == null || left == null || bottom == null || right == null) {
2069 return null;
2070 }
2071 return {
2072 top,
2073 left,
2074 bottom,
2075 right,
2076 };
2077}
2078
2079function frameInScreen(view: any): JSONObject | null {
2080 return safeCall(

Callers 2

scrollInfoFunction · 0.85
encodeValueFunction · 0.85

Calls 1

finiteNumberFunction · 0.70

Tested by

no test coverage detected