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

Method constructor

packages/react-stately/src/virtualizer/Rect.ts:34–39  ·  view source on GitHub ↗
(x = 0, y = 0, width = 0, height = 0)

Source from the content-addressed store, hash-verified

32 height: number;
33
34 constructor(x = 0, y = 0, width = 0, height = 0) {
35 this.x = x;
36 this.y = y;
37 this.width = width;
38 this.height = height;
39 }
40
41 /**
42 * The maximum x-coordinate in the rectangle.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected