New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/rect-utils

Package Overview
Dependencies
Maintainers
1
Versions
794
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/rect-utils - npm Package Compare versions

Comparing version 0.0.0-dev-20220919135419 to 0.0.0-dev-20220919164136

70

dist/index.js

@@ -1,62 +0,1 @@

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
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);
// src/index.ts
var src_exports = {};
__export(src_exports, {
alignRect: () => alignRect,
closest: () => closest,
closestSideToPoint: () => closestSideToPoint,
closestSideToRect: () => closestSideToRect,
collisions: () => collisions,
contains: () => contains,
containsPoint: () => containsPoint,
containsRect: () => containsRect,
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,
isPointInPolygon: () => isPointInPolygon,
isRect: () => isRect,
isSymmetric: () => isSymmetric,
rotate: () => rotate,
shift: () => shift,
shrink: () => shrink,
toRad: () => toRad,
union: () => union
});
module.exports = __toCommonJS(src_exports);
// src/align.ts

@@ -106,3 +45,3 @@ function hAlign(a, ref, h) {

// ../core/dist/index.mjs
// ../core/dist/index.js
var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);

@@ -271,3 +210,3 @@

// ../dom/dist/index.mjs
// ../dom/dist/index.js
function getCache() {

@@ -516,4 +455,3 @@ const g = globalThis;

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
export {
alignRect,

@@ -555,2 +493,2 @@ closest,

union
});
};

12

package.json
{
"type": "module",
"name": "@zag-js/rect-utils",
"version": "0.0.0-dev-20220919135419",
"version": "0.0.0-dev-20220919164136",
"description": "",

@@ -14,3 +15,2 @@ "keywords": [

"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",

@@ -29,9 +29,9 @@ "repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/rect",

"devDependencies": {
"@zag-js/dom-utils": "0.1.11",
"@zag-js/utils": "0.0.0-dev-20220919135419"
"@zag-js/dom-utils": "0.0.0-dev-20220919164136",
"@zag-js/utils": "0.0.0-dev-20220919164136"
},
"scripts": {
"build-fast": "tsup src/index.ts --format=esm,cjs",
"build-fast": "tsup src/index.ts --format=esm",
"start": "pnpm build --watch",
"build": "tsup src/index.ts --format=esm,cjs --dts",
"build": "tsup src/index.ts --format=esm --dts",
"test": "jest --config ../../../jest.config.js --rootDir . --passWithNoTests",

@@ -38,0 +38,0 @@ "lint": "eslint src --ext .ts,.tsx",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc