Socket
Socket
Sign inDemoInstall

@zag-js/dom-event

Package Overview
Dependencies
Maintainers
1
Versions
674
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/dom-event - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

dist/chunk-L4YM5QC7.mjs

6

dist/index.js

@@ -177,4 +177,4 @@ "use strict";

const relativePoint = getRelativePointValue(absolutePoint, element);
const x = clamp(relativePoint.x / element.offsetWidth) * 100;
const y = clamp(relativePoint.y / element.offsetHeight) * 100;
const x = clamp(relativePoint.x / element.offsetWidth);
const y = clamp(relativePoint.y / element.offsetHeight);
return {

@@ -187,3 +187,3 @@ x,

if (orientation === "horizontal" && dir === "rtl")
newX = 100 - newX;
newX = 1 - newX;
return orientation === "horizontal" ? newX : y;

@@ -190,0 +190,0 @@ }

@@ -68,4 +68,4 @@ "use strict";

const relativePoint = getRelativePointValue(absolutePoint, element);
const x = clamp(relativePoint.x / element.offsetWidth) * 100;
const y = clamp(relativePoint.y / element.offsetHeight) * 100;
const x = clamp(relativePoint.x / element.offsetWidth);
const y = clamp(relativePoint.y / element.offsetHeight);
return {

@@ -78,3 +78,3 @@ x,

if (orientation === "horizontal" && dir === "rtl")
newX = 100 - newX;
newX = 1 - newX;
return orientation === "horizontal" ? newX : y;

@@ -81,0 +81,0 @@ }

{
"name": "@zag-js/dom-event",
"version": "0.5.0",
"version": "0.6.0",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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