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

Function rectArea

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

Source from the content-addressed store, hash-verified

1692}
1693
1694function rectArea(frame: JSONObject | null | undefined): number {
1695 return rectNumber(frame, "width") * rectNumber(frame, "height");
1696}
1697
1698function rectOverlapArea(left: JSONObject, right: JSONObject): number {
1699 const x1 = Math.max(rectNumber(left, "x"), rectNumber(right, "x"));

Callers 2

substantiallyOverlapsFunction · 0.85

Calls 1

rectNumberFunction · 0.85

Tested by

no test coverage detected