@zag-js/element-rect
Advanced tools
Comparing version 0.0.0-dev-20240611102459 to 0.0.0-dev-20240611130830
@@ -47,4 +47,3 @@ "use strict"; | ||
const data2 = observedElements.get(el); | ||
if (!data2) | ||
return; | ||
if (!data2) return; | ||
const index = data2.callbacks.indexOf(onChange); | ||
@@ -84,6 +83,4 @@ if (index > -1) { | ||
function getEqualityFn(scope) { | ||
if (scope === "size") | ||
return isEqualSize; | ||
if (scope === "position") | ||
return isEqualPosition; | ||
if (scope === "size") return isEqualSize; | ||
if (scope === "position") return isEqualPosition; | ||
return isEqualRect; | ||
@@ -90,0 +87,0 @@ } |
{ | ||
"name": "@zag-js/element-rect", | ||
"version": "0.0.0-dev-20240611102459", | ||
"version": "0.0.0-dev-20240611130830", | ||
"description": "observe element's rect over time", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19081
243