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