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

Function sizeValue

packages/nativescript-inspector/src/index.ts:2045–2058  ·  view source on GitHub ↗
(size: any)

Source from the content-addressed store, hash-verified

2043}
2044
2045function sizeValue(size: any): JSONObject | null {
2046 if (!size) {
2047 return null;
2048 }
2049 const width = finiteNumber(size.width);
2050 const height = finiteNumber(size.height);
2051 if (width == null || height == null) {
2052 return null;
2053 }
2054 return {
2055 width,
2056 height,
2057 };
2058}
2059
2060function insetsValue(insets: any): JSONObject | null {
2061 if (!insets) {

Callers 2

scrollInfoFunction · 0.85
encodeValueFunction · 0.85

Calls 1

finiteNumberFunction · 0.70

Tested by

no test coverage detected