MCPcopy Create free account
hub / github.com/adobe/react-spectrum / pointEquals

Method pointEquals

packages/react-stately/src/virtualizer/Rect.ts:149–151  ·  view source on GitHub ↗
(point: Point | Rect)

Source from the content-addressed store, hash-verified

147 }
148
149 pointEquals(point: Point | Rect): boolean {
150 return this.x === point.x && this.y === point.y;
151 }
152
153 sizeEquals(size: Size | Rect): boolean {
154 return this.width === size.width && this.height === size.height;

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected