Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/dom-event

Package Overview
Dependencies
Maintainers
1
Versions
686
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.0.0-dev-20230409191656 to 0.0.0-dev-20230414151834

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.0.0-dev-20230409191656",
"version": "0.0.0-dev-20230414151834",
"description": "",

@@ -27,3 +27,3 @@ "keywords": [

"dependencies": {
"@zag-js/types": "0.0.0-dev-20230409191656",
"@zag-js/types": "0.5.0",
"@zag-js/text-selection": "0.0.1"

@@ -30,0 +30,0 @@ },

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