@zag-js/rect-utils
Advanced tools
Comparing version 0.0.0-dev-20220714091855 to 0.0.0-dev-20220823143241
@@ -333,8 +333,20 @@ "use strict"; | ||
const pMin = { | ||
x: min.apply(Math, rs.map((r) => r.minX)), | ||
y: min.apply(Math, rs.map((r) => r.minY)) | ||
x: min.apply( | ||
Math, | ||
rs.map((r) => r.minX) | ||
), | ||
y: min.apply( | ||
Math, | ||
rs.map((r) => r.minY) | ||
) | ||
}; | ||
const pMax = { | ||
x: max.apply(Math, rs.map((r) => r.maxX)), | ||
y: max.apply(Math, rs.map((r) => r.maxY)) | ||
x: max.apply( | ||
Math, | ||
rs.map((r) => r.maxX) | ||
), | ||
y: max.apply( | ||
Math, | ||
rs.map((r) => r.maxY) | ||
) | ||
}; | ||
@@ -341,0 +353,0 @@ return getRectFromPoints(pMin, pMax); |
{ | ||
"name": "@zag-js/rect-utils", | ||
"version": "0.0.0-dev-20220714091855", | ||
"version": "0.0.0-dev-20220823143241", | ||
"description": "", | ||
@@ -28,4 +28,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220714091855", | ||
"@zag-js/utils": "0.0.0-dev-20220714091855" | ||
"@zag-js/dom-utils": "0.0.0-dev-20220823143241", | ||
"@zag-js/utils": "0.0.0-dev-20220823143241" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
35141
1180