MCPcopy Create free account
hub / github.com/szhsin/react-menu / getNativeDimension

Function getNativeDimension

src/positionUtils/getNormalizedClientRect.js:1–2  ·  view source on GitHub ↗
(transformed, untransformed)

Source from the content-addressed store, hash-verified

1const getNativeDimension = (transformed, untransformed) =>
2 Math.round(transformed) === untransformed ? transformed : untransformed;
3
4const getNormalizedClientRect = (element) => {
5 const rect = element.getBoundingClientRect();

Callers 1

getNormalizedClientRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…