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

Function rectKey

packages/nativescript-inspector/src/index.ts:1733–1737  ·  view source on GitHub ↗
(frame: JSONObject)

Source from the content-addressed store, hash-verified

1731}
1732
1733function rectKey(frame: JSONObject): string {
1734 return ["x", "y", "width", "height"]
1735 .map((key) => Math.round(rectNumber(frame, key)))
1736 .join(",");
1737}
1738
1739function rectNumber(frame: JSONObject | null | undefined, key: string): number {
1740 const value = frame?.[key];

Callers 1

tabBarControlsFunction · 0.85

Calls 1

rectNumberFunction · 0.85

Tested by

no test coverage detected