Socket
Socket
Sign inDemoInstall

@interactjs/core

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/core - npm Package Compare versions

Comparing version 1.9.6 to 1.9.7

2

InteractStatic.js

@@ -21,3 +21,3 @@ /** @module interact */

this.dynamicDrop = void 0;
this.version = "1.9.6";
this.version = "1.9.7";
this.interact = void 0;

@@ -24,0 +24,0 @@ const {

@@ -1,2 +0,2 @@

import t from"../utils/browser.min.js";import e from"../utils/events.min.js";import*as s from"../utils/index.min.js";import{isNonNativeEvent as o}from"./scope.min.js";export class InteractStatic{constructor(t){this.scope=t,this.getPointerAverage=s.pointer.pointerAverage,this.getTouchBBox=s.pointer.touchBBox,this.getTouchDistance=s.pointer.touchDistance,this.getTouchAngle=s.pointer.touchAngle,this.getElementRect=s.dom.getElementRect,this.getElementClientRect=s.dom.getElementClientRect,this.matchesSelector=s.dom.matchesSelector,this.closest=s.dom.closest,this.globalEvents={},this.dynamicDrop=void 0,this.version="1.9.6",this.interact=void 0;const{prototype:e}=this.constructor,o=(e,s)=>{let o=t.interactables.get(e,s);return o||(o=t.interactables.new(e,s),o.events.global=this.globalEvents),o};for(const t of Object.getOwnPropertyNames(this.constructor.prototype))o[t]=e[t];return s.extend(o,this),o.constructor=this.constructor,this.interact=o,o}use(t,e){return this.scope.usePlugin(t,e),this}isSet(t,e){return!!this.scope.interactables.get(t,e&&e.context)}on(t,i,r){if(s.is.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),s.is.array(t)){for(const e of t)this.on(e,i,r);return this}if(s.is.object(t)){for(const e in t)this.on(e,t[e],i);return this}return o(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(i):this.globalEvents[t]=[i]:e.add(this.scope.document,t,i,{options:r}),this}off(t,i,r){if(s.is.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),s.is.array(t)){for(const e of t)this.off(e,i,r);return this}if(s.is.object(t)){for(const e in t)this.off(e,t[e],i);return this}if(o(t,this.scope.actions)){let e;t in this.globalEvents&&-1!==(e=this.globalEvents[t].indexOf(i))&&this.globalEvents[t].splice(e,1)}else e.remove(this.scope.document,t,i,r);return this}debug(){return this.scope}supportsTouch(){return t.supportsTouch}supportsPointerEvent(){return t.supportsPointerEvent}stop(){for(const t of this.scope.interactions.list)t.stop();return this}pointerMoveTolerance(t){return s.is.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance}addDocument(t,e){this.scope.addDocument(t,e)}removeDocument(t){this.scope.removeDocument(t)}}export default InteractStatic;
import t from"../utils/browser.min.js";import e from"../utils/events.min.js";import*as s from"../utils/index.min.js";import{isNonNativeEvent as o}from"./scope.min.js";export class InteractStatic{constructor(t){this.scope=t,this.getPointerAverage=s.pointer.pointerAverage,this.getTouchBBox=s.pointer.touchBBox,this.getTouchDistance=s.pointer.touchDistance,this.getTouchAngle=s.pointer.touchAngle,this.getElementRect=s.dom.getElementRect,this.getElementClientRect=s.dom.getElementClientRect,this.matchesSelector=s.dom.matchesSelector,this.closest=s.dom.closest,this.globalEvents={},this.dynamicDrop=void 0,this.version="1.9.7",this.interact=void 0;const{prototype:e}=this.constructor,o=(e,s)=>{let o=t.interactables.get(e,s);return o||(o=t.interactables.new(e,s),o.events.global=this.globalEvents),o};for(const t of Object.getOwnPropertyNames(this.constructor.prototype))o[t]=e[t];return s.extend(o,this),o.constructor=this.constructor,this.interact=o,o}use(t,e){return this.scope.usePlugin(t,e),this}isSet(t,e){return!!this.scope.interactables.get(t,e&&e.context)}on(t,i,r){if(s.is.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),s.is.array(t)){for(const e of t)this.on(e,i,r);return this}if(s.is.object(t)){for(const e in t)this.on(e,t[e],i);return this}return o(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(i):this.globalEvents[t]=[i]:e.add(this.scope.document,t,i,{options:r}),this}off(t,i,r){if(s.is.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),s.is.array(t)){for(const e of t)this.off(e,i,r);return this}if(s.is.object(t)){for(const e in t)this.off(e,t[e],i);return this}if(o(t,this.scope.actions)){let e;t in this.globalEvents&&-1!==(e=this.globalEvents[t].indexOf(i))&&this.globalEvents[t].splice(e,1)}else e.remove(this.scope.document,t,i,r);return this}debug(){return this.scope}supportsTouch(){return t.supportsTouch}supportsPointerEvent(){return t.supportsPointerEvent}stop(){for(const t of this.scope.interactions.list)t.stop();return this}pointerMoveTolerance(t){return s.is.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance}addDocument(t,e){this.scope.addDocument(t,e)}removeDocument(t){this.scope.removeDocument(t)}}export default InteractStatic;
//# sourceMappingURL=InteractStatic.min.js.map
{
"name": "@interactjs/core",
"version": "1.9.6",
"version": "1.9.7",
"license": "MIT",
"peerDependencies": {
"@interactjs/dev-tools": "1.9.6",
"@interactjs/utils": "1.9.6"
"@interactjs/dev-tools": "1.9.7",
"@interactjs/utils": "1.9.7"
},
"devDependencies": {
"@interactjs/_dev": "1.9.6",
"@interactjs/actions": "1.9.6",
"@interactjs/auto-start": "1.9.6"
"@interactjs/_dev": "1.9.7",
"@interactjs/actions": "1.9.7",
"@interactjs/auto-start": "1.9.7"
},

@@ -17,3 +17,3 @@ "publishConfig": {

},
"gitHead": "8666b4e3"
"gitHead": "6cd658f8"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc