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

Function hasUsableFrame

packages/nativescript-inspector/src/index.ts:1729–1731  ·  view source on GitHub ↗
(frame: JSONObject | null)

Source from the content-addressed store, hash-verified

1727}
1728
1729function hasUsableFrame(frame: JSONObject | null): boolean {
1730 return rectNumber(frame, "width") > 1 && rectNumber(frame, "height") > 1;
1731}
1732
1733function rectKey(frame: JSONObject): string {
1734 return ["x", "y", "width", "height"]

Calls 1

rectNumberFunction · 0.85

Tested by

no test coverage detected