MCPcopy Index your code
hub / github.com/adobe/react-spectrum / equals

Method equals

packages/react-stately/src/virtualizer/Rect.ts:140–147  ·  view source on GitHub ↗
(rect: Rect)

Source from the content-addressed store, hash-verified

138 }
139
140 equals(rect: Rect): boolean {
141 return (
142 rect.x === this.x &&
143 rect.y === this.y &&
144 rect.width === this.width &&
145 rect.height === this.height
146 );
147 }
148
149 pointEquals(point: Point | Rect): boolean {
150 return this.x === point.x && this.y === point.y;

Callers 5

useScrollViewFunction · 0.45
renderMethod · 0.45
toContainObjectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected