@zag-js/rect-utils 1.15.6 → 1.16.0
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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -128,11 +128,11 @@ type ElementRectOptions = {
|
|
|
128
128
|
/**
|
|
129
129
|
* Whether to exclude the element's scrollbar size from the calculation.
|
|
130
130
|
*/
|
|
131
|
-
excludeScrollbar?: boolean;
|
|
131
|
+
excludeScrollbar?: boolean | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Whether to exclude the element's borders from the calculation.
|
|
134
134
|
*/
|
|
135
|
-
excludeBorders?: boolean;
|
|
135
|
+
excludeBorders?: boolean | undefined;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
declare function getRectFromPoints(...pts: Point[]): Rect;
|
|
@@ -147,7 +147,7 @@ type WindowRectOptions = {
|
|
|
147
147
|
/**
|
|
148
148
|
* Whether to exclude the element's scrollbar size from the calculation.
|
|
149
149
|
*/
|
|
150
|
-
excludeScrollbar?: boolean;
|
|
150
|
+
excludeScrollbar?: boolean | undefined;
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
153
|
* Creates a rectangle from window object
|
package/dist/index.d.ts
CHANGED
|
@@ -128,11 +128,11 @@ type ElementRectOptions = {
|
|
|
128
128
|
/**
|
|
129
129
|
* Whether to exclude the element's scrollbar size from the calculation.
|
|
130
130
|
*/
|
|
131
|
-
excludeScrollbar?: boolean;
|
|
131
|
+
excludeScrollbar?: boolean | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Whether to exclude the element's borders from the calculation.
|
|
134
134
|
*/
|
|
135
|
-
excludeBorders?: boolean;
|
|
135
|
+
excludeBorders?: boolean | undefined;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
declare function getRectFromPoints(...pts: Point[]): Rect;
|
|
@@ -147,7 +147,7 @@ type WindowRectOptions = {
|
|
|
147
147
|
/**
|
|
148
148
|
* Whether to exclude the element's scrollbar size from the calculation.
|
|
149
149
|
*/
|
|
150
|
-
excludeScrollbar?: boolean;
|
|
150
|
+
excludeScrollbar?: boolean | undefined;
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
153
|
* Creates a rectangle from window object
|