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

Method constructor

packages/react-stately/src/virtualizer/Size.ts:17–20  ·  view source on GitHub ↗
(width = 0, height = 0)

Source from the content-addressed store, hash-verified

15 height: number;
16
17 constructor(width = 0, height = 0) {
18 this.width = Math.max(width, 0);
19 this.height = Math.max(height, 0);
20 }
21
22 /**
23 * Returns a copy of this size.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected