@zag-js/rect-utils
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -502,3 +502,4 @@ "use strict"; | ||
position: "fixed", | ||
pointerEvents: "none" | ||
pointerEvents: "none", | ||
fill: "red" | ||
}); | ||
@@ -516,6 +517,5 @@ const polygon = document.createElementNS("http://www.w3.org/2000/svg", "polygon"); | ||
el.setAttribute("points", points); | ||
return () => { | ||
el.remove(); | ||
}; | ||
} | ||
debugPolygon.remove = () => { | ||
const el = document.getElementById("debug-polygon"); | ||
el == null ? void 0 : el.remove(); | ||
}; |
import type { Point } from "./types"; | ||
export declare function isPointInPolygon(polygon: Point[], point: Point): boolean; | ||
export declare function debugPolygon(polygon: Point[]): void; | ||
export declare namespace debugPolygon { | ||
var remove: () => void; | ||
} | ||
export declare function debugPolygon(polygon: Point[]): () => void; |
{ | ||
"name": "@zag-js/rect-utils", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/dom-utils": "0.1.6", | ||
"@zag-js/dom-utils": "0.1.7", | ||
"@zag-js/utils": "0.1.2" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
35960
1190
+ Added@zag-js/dom-utils@0.1.7(transitive)
+ Added@zag-js/types@0.2.2(transitive)
- Removed@zag-js/dom-utils@0.1.6(transitive)
- Removed@zag-js/types@0.2.1(transitive)
Updated@zag-js/dom-utils@0.1.7