MCPcopy Index your code
hub / github.com/react/react / rectEqualToRect

Function rectEqualToRect

packages/react-devtools-timeline/src/view-base/geometry.js:45–50  ·  view source on GitHub ↗
(rect1: Rect, rect2: Rect)

Source from the content-addressed store, hash-verified

43}
44
45export function rectEqualToRect(rect1: Rect, rect2: Rect): boolean {
46 return (
47 pointEqualToPoint(rect1.origin, rect2.origin) &&
48 sizeEqualToSize(rect1.size, rect2.size)
49 );
50}
51
52export function sizeIsValid({width, height}: Size): boolean {
53 return width >= 0 && height >= 0;

Callers 6

setFrameMethod · 0.90
setVisibleAreaMethod · 0.90
setContentHeightMethod · 0.90
geometry-test.jsFile · 0.90
_drawSnapshotImageMethod · 0.90
drawTextFunction · 0.90

Calls 2

pointEqualToPointFunction · 0.85
sizeEqualToSizeFunction · 0.85

Tested by

no test coverage detected