@zag-js/rect-utils 0.0.0-dev-20220704094439 → 0.0.0-dev-20220704151659

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/align.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Rect } from "./rect";
1
+ import type { Rect } from "./rect";
2
2
  export declare function alignRect(a: Rect, ref: Rect, options: AlignOptions): Rect;
3
3
  export declare type AlignOptions = {
4
4
  h: HAlign;
package/dist/closest.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Rect } from "./rect";
1
+ import type { Rect } from "./rect";
2
2
  import type { Point, RectSide } from "./types";
3
3
  export declare function closest(...pts: Point[]): (a: Point) => Point;
4
4
  export declare function closestSideToRect(ref: Rect, r: Rect): RectSide;
@@ -1,5 +1,5 @@
1
- import { Rect } from "./rect";
2
- import { Point, RectSide } from "./types";
1
+ import type { Rect } from "./rect";
2
+ import type { Point, RectSide } from "./types";
3
3
  export declare type DistanceValue = Point & {
4
4
  value: number;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { Point } from "./types";
1
+ import type { Point } from "./types";
2
2
  import { Rect } from "./rect";
3
3
  export declare function toRad(d: number): number;
4
4
  export declare function rotate(a: Point, d: number, c: Point): Point;
package/dist/index.mjs CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
-
3
1
  // src/align.ts
4
2
  function hAlign(a, ref, h) {
5
3
  let x = ref.minX;
package/dist/polygon.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Point } from "./types";
1
+ import type { Point } from "./types";
2
2
  export declare function withinPolygon(polygon: Point[], point: Point): boolean;
3
3
  export declare function debugPolygon(polygon: Point[]): void;
package/dist/rect.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RectEdge, RectValue } from "./types";
1
+ import type { RectEdge, RectValue } from "./types";
2
2
  export declare class Rect {
3
3
  private v;
4
4
  static create(v: RectValue): Rect;
package/dist/union.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Rect } from "./rect";
1
+ import type { Rect } from "./rect";
2
2
  export declare function union(...rs: Rect[]): Rect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/rect-utils",
3
- "version": "0.0.0-dev-20220704094439",
3
+ "version": "0.0.0-dev-20220704151659",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "js",
@@ -25,7 +25,7 @@
25
25
  "url": "https://github.com/chakra-ui/zag/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@zag-js/dom-utils": "0.0.0-dev-20220704094439",
28
+ "@zag-js/dom-utils": "0.0.0-dev-20220704151659",
29
29
  "@zag-js/utils": "0.1.2"
30
30
  },
31
31
  "scripts": {