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

Function pointValue

packages/nativescript-inspector/src/index.ts:2030–2043  ·  view source on GitHub ↗
(point: any)

Source from the content-addressed store, hash-verified

2028}
2029
2030function pointValue(point: any): JSONObject | null {
2031 if (!point) {
2032 return null;
2033 }
2034 const x = finiteNumber(point.x);
2035 const y = finiteNumber(point.y);
2036 if (x == null || y == null) {
2037 return null;
2038 }
2039 return {
2040 x,
2041 y,
2042 };
2043}
2044
2045function sizeValue(size: any): JSONObject | null {
2046 if (!size) {

Callers 4

uikitNodeMethod · 0.85
scrollInfoFunction · 0.85
scrollFunction · 0.85
encodeValueFunction · 0.85

Calls 1

finiteNumberFunction · 0.70

Tested by

no test coverage detected