@zag-js/rect-utils
Advanced tools
Comparing version 0.70.0 to 0.71.0
@@ -1,76 +0,7 @@ | ||
"use strict"; | ||
'use strict'; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
AffineTransform: () => AffineTransform, | ||
addPoints: () => addPoints, | ||
alignRect: () => alignRect, | ||
clampPoint: () => clampPoint, | ||
clampSize: () => clampSize, | ||
closest: () => closest, | ||
closestSideToPoint: () => closestSideToPoint, | ||
closestSideToRect: () => closestSideToRect, | ||
collisions: () => collisions, | ||
constrainRect: () => constrainRect, | ||
contains: () => contains, | ||
containsPoint: () => containsPoint, | ||
containsRect: () => containsRect, | ||
createPoint: () => createPoint, | ||
createRect: () => createRect, | ||
debugPolygon: () => debugPolygon, | ||
distance: () => distance, | ||
distanceBtwEdges: () => distanceBtwEdges, | ||
distanceFromPoint: () => distanceFromPoint, | ||
distanceFromRect: () => distanceFromRect, | ||
expand: () => expand, | ||
fromRange: () => fromRange, | ||
getElementPolygon: () => getElementPolygon, | ||
getElementRect: () => getElementRect, | ||
getRectCenters: () => getRectCenters, | ||
getRectCorners: () => getRectCorners, | ||
getRectEdges: () => getRectEdges, | ||
getRectFromPoints: () => getRectFromPoints, | ||
getRotationRect: () => getRotationRect, | ||
getViewportRect: () => getViewportRect, | ||
getWindowRect: () => getWindowRect, | ||
inset: () => inset, | ||
intersection: () => intersection, | ||
intersects: () => intersects, | ||
isPoint: () => isPoint, | ||
isPointEqual: () => isPointEqual, | ||
isPointInPolygon: () => isPointInPolygon, | ||
isRect: () => isRect, | ||
isRectEqual: () => isRectEqual, | ||
isSizeEqual: () => isSizeEqual, | ||
isSymmetric: () => isSymmetric, | ||
resizeRect: () => resizeRect, | ||
rotate: () => rotate, | ||
shift: () => shift, | ||
shrink: () => shrink, | ||
subtractPoints: () => subtractPoints, | ||
toRad: () => toRad, | ||
union: () => union | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/affine-transform.ts | ||
@@ -783,53 +714,50 @@ var AffineTransform = class _AffineTransform { | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
AffineTransform, | ||
addPoints, | ||
alignRect, | ||
clampPoint, | ||
clampSize, | ||
closest, | ||
closestSideToPoint, | ||
closestSideToRect, | ||
collisions, | ||
constrainRect, | ||
contains, | ||
containsPoint, | ||
containsRect, | ||
createPoint, | ||
createRect, | ||
debugPolygon, | ||
distance, | ||
distanceBtwEdges, | ||
distanceFromPoint, | ||
distanceFromRect, | ||
expand, | ||
fromRange, | ||
getElementPolygon, | ||
getElementRect, | ||
getRectCenters, | ||
getRectCorners, | ||
getRectEdges, | ||
getRectFromPoints, | ||
getRotationRect, | ||
getViewportRect, | ||
getWindowRect, | ||
inset, | ||
intersection, | ||
intersects, | ||
isPoint, | ||
isPointEqual, | ||
isPointInPolygon, | ||
isRect, | ||
isRectEqual, | ||
isSizeEqual, | ||
isSymmetric, | ||
resizeRect, | ||
rotate, | ||
shift, | ||
shrink, | ||
subtractPoints, | ||
toRad, | ||
union | ||
}); | ||
//# sourceMappingURL=index.js.map | ||
exports.AffineTransform = AffineTransform; | ||
exports.addPoints = addPoints; | ||
exports.alignRect = alignRect; | ||
exports.clampPoint = clampPoint; | ||
exports.clampSize = clampSize; | ||
exports.closest = closest; | ||
exports.closestSideToPoint = closestSideToPoint; | ||
exports.closestSideToRect = closestSideToRect; | ||
exports.collisions = collisions; | ||
exports.constrainRect = constrainRect; | ||
exports.contains = contains; | ||
exports.containsPoint = containsPoint; | ||
exports.containsRect = containsRect; | ||
exports.createPoint = createPoint; | ||
exports.createRect = createRect; | ||
exports.debugPolygon = debugPolygon; | ||
exports.distance = distance; | ||
exports.distanceBtwEdges = distanceBtwEdges; | ||
exports.distanceFromPoint = distanceFromPoint; | ||
exports.distanceFromRect = distanceFromRect; | ||
exports.expand = expand; | ||
exports.fromRange = fromRange; | ||
exports.getElementPolygon = getElementPolygon; | ||
exports.getElementRect = getElementRect; | ||
exports.getRectCenters = getRectCenters; | ||
exports.getRectCorners = getRectCorners; | ||
exports.getRectEdges = getRectEdges; | ||
exports.getRectFromPoints = getRectFromPoints; | ||
exports.getRotationRect = getRotationRect; | ||
exports.getViewportRect = getViewportRect; | ||
exports.getWindowRect = getWindowRect; | ||
exports.inset = inset; | ||
exports.intersection = intersection; | ||
exports.intersects = intersects; | ||
exports.isPoint = isPoint; | ||
exports.isPointEqual = isPointEqual; | ||
exports.isPointInPolygon = isPointInPolygon; | ||
exports.isRect = isRect; | ||
exports.isRectEqual = isRectEqual; | ||
exports.isSizeEqual = isSizeEqual; | ||
exports.isSymmetric = isSymmetric; | ||
exports.resizeRect = resizeRect; | ||
exports.rotate = rotate; | ||
exports.shift = shift; | ||
exports.shrink = shrink; | ||
exports.subtractPoints = subtractPoints; | ||
exports.toRad = toRad; | ||
exports.union = union; |
{ | ||
"name": "@zag-js/rect-utils", | ||
"version": "0.70.0", | ||
"version": "0.71.0", | ||
"description": "", | ||
@@ -16,4 +16,3 @@ "keywords": [ | ||
"files": [ | ||
"dist", | ||
"src" | ||
"dist" | ||
], | ||
@@ -20,0 +19,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62867
7
1670