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

Function sizeIsEmpty

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

Source from the content-addressed store, hash-verified

54}
55
56export function sizeIsEmpty({width, height}: Size): boolean {
57 return width <= 0 || height <= 0;
58}
59
60function rectToBox(rect: Rect): Box {
61 const top = rect.origin.y;

Callers 2

displayIfNeededMethod · 0.90
geometry-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected