MCPcopy
hub / github.com/facebook/react / sizeIsValid

Function sizeIsValid

packages/react-devtools-timeline/src/view-base/geometry.js:52–54  ·  view source on GitHub ↗
({width, height}: Size)

Source from the content-addressed store, hash-verified

50}
51
52export function sizeIsValid({width, height}: Size): boolean {
53 return width >= 0 && height >= 0;
54}
55
56export function sizeIsEmpty({width, height}: Size): boolean {
57 return width <= 0 || height <= 0;

Callers 3

setFrameMethod · 0.90
setVisibleAreaMethod · 0.90
geometry-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected