@interactjs/pointer-events
Advanced tools
Comparing version 1.10.26 to 1.10.27
/** | ||
* interact.js 1.10.26 | ||
* interact.js 1.10.27 | ||
* | ||
@@ -13,5 +13,5 @@ * Copyright (c) 2012-present Taye Adeyemi <dev@taye.me> | ||
import './PointerEvent.js'; | ||
export { a as default } from './base-61bbabf6.js'; | ||
export { a as default } from './base-45YfudGV.js'; | ||
import "../core/BaseEvent.js"; | ||
import "../utils/pointerUtils.js"; | ||
//# sourceMappingURL=base.js.map |
@@ -1,4 +0,4 @@ | ||
/* interact.js 1.10.26 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
/* interact.js 1.10.27 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";export{a as default}from"./base-a44b3cf9.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js"; | ||
import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";export{a as default}from"./base-PHHQHneY.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js"; | ||
//# sourceMappingURL=base.prod.js.map |
/** | ||
* interact.js 1.10.26 | ||
* interact.js 1.10.27 | ||
* | ||
@@ -9,3 +9,3 @@ * Copyright (c) 2012-present Taye Adeyemi <dev@taye.me> | ||
import { a as pointerEvents } from './base-61bbabf6.js'; | ||
import { a as pointerEvents } from './base-45YfudGV.js'; | ||
import "../utils/domUtils.js"; | ||
@@ -12,0 +12,0 @@ import "../utils/extend.js"; |
@@ -1,4 +0,4 @@ | ||
/* interact.js 1.10.26 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
/* interact.js 1.10.27 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
import{a as pointerEvents}from"./base-a44b3cf9.js";import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js";function install(e){e.usePlugin(pointerEvents);const{pointerEvents:t}=e;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0}function onNew(e){let{pointerEvent:t}=e;"hold"===t.type&&(t.count=(t.count||0)+1)}function onFired(e,t){let{interaction:n,pointerEvent:o,eventTarget:l,targets:r}=e;if("hold"!==o.type||!r.length)return;const i=r[0].eventable.options.holdRepeatInterval;i<=0||(n.holdIntervalHandle=setTimeout((()=>{t.pointerEvents.fire({interaction:n,eventTarget:l,type:"hold",pointer:o,event:o},t)}),i))}function endHoldRepeat(e){let{interaction:t}=e;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}const holdRepeat={id:"pointer-events/holdRepeat",install:install,listeners:["move","up","cancel","endall"].reduce(((e,t)=>(e["pointerEvents:"+t]=endHoldRepeat,e)),{"pointerEvents:new":onNew,"pointerEvents:fired":onFired})};export{holdRepeat as default}; | ||
import{a as pointerEvents}from"./base-PHHQHneY.js";import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js";function install(e){e.usePlugin(pointerEvents);const{pointerEvents:t}=e;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0}function onNew(e){let{pointerEvent:t}=e;"hold"===t.type&&(t.count=(t.count||0)+1)}function onFired(e,t){let{interaction:n,pointerEvent:o,eventTarget:l,targets:r}=e;if("hold"!==o.type||!r.length)return;const i=r[0].eventable.options.holdRepeatInterval;i<=0||(n.holdIntervalHandle=setTimeout((()=>{t.pointerEvents.fire({interaction:n,eventTarget:l,type:"hold",pointer:o,event:o},t)}),i))}function endHoldRepeat(e){let{interaction:t}=e;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}const holdRepeat={id:"pointer-events/holdRepeat",install:install,listeners:["move","up","cancel","endall"].reduce(((e,t)=>(e["pointerEvents:"+t]=endHoldRepeat,e)),{"pointerEvents:new":onNew,"pointerEvents:fired":onFired})};export{holdRepeat as default}; | ||
//# sourceMappingURL=holdRepeat.prod.js.map |
/** | ||
* interact.js 1.10.26 | ||
* interact.js 1.10.27 | ||
* | ||
@@ -11,3 +11,3 @@ * Copyright (c) 2012-present Taye Adeyemi <dev@taye.me> | ||
import interact from "../interact/index.js"; | ||
import './base-61bbabf6.js'; | ||
import './base-45YfudGV.js'; | ||
import "../utils/domUtils.js"; | ||
@@ -14,0 +14,0 @@ import "../utils/extend.js"; |
@@ -1,4 +0,4 @@ | ||
/* interact.js 1.10.26 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
/* interact.js 1.10.27 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
import plugin from"./plugin.prod.js";import interact from"../interact/index.prod.js";import"./base-a44b3cf9.js";import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js";import"./holdRepeat.prod.js";import"./interactableTargets.prod.js";interact.use(plugin); | ||
import plugin from"./plugin.prod.js";import interact from"../interact/index.prod.js";import"./base-PHHQHneY.js";import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js";import"./holdRepeat.prod.js";import"./interactableTargets.prod.js";interact.use(plugin); | ||
//# sourceMappingURL=index.prod.js.map |
/** | ||
* interact.js 1.10.26 | ||
* interact.js 1.10.27 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) 2012-present Taye Adeyemi <dev@taye.me> |
@@ -1,4 +0,4 @@ | ||
/* interact.js 1.10.26 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
/* interact.js 1.10.27 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
import extend from"../utils/extend.prod.js";function install(t){const{Interactable:e}=t;e.prototype.pointerEvents=function(t){return extend(this.events.options,t),this};const n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){const o=n.call(this,t,e);return o===this&&(this.events.options[t]=e),o}}const plugin={id:"pointer-events/interactableTargets",install:install,listeners:{"pointerEvents:collect-targets"(t,e){let{targets:n,node:o,type:s,eventTarget:i}=t;e.interactables.forEachMatch(o,(t=>{const e=t.events,a=e.options;e.types[s]&&e.types[s].length&&t.testIgnoreAllow(a,o,i)&&n.push({node:o,eventable:e,props:{interactable:t}})}))},"interactable:new"(t){let{interactable:e}=t;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set"(t,e){let{interactable:n,options:o}=t;extend(n.events.options,e.pointerEvents.defaults),extend(n.events.options,o.pointerEvents||{})}}};export{plugin as default}; | ||
//# sourceMappingURL=interactableTargets.prod.js.map |
{ | ||
"name": "@interactjs/pointer-events", | ||
"version": "1.10.26", | ||
"version": "1.10.27", | ||
"main": "index", | ||
@@ -13,7 +13,7 @@ "module": "index", | ||
"peerDependencies": { | ||
"@interactjs/core": "1.10.26", | ||
"@interactjs/utils": "1.10.26" | ||
"@interactjs/core": "1.10.27", | ||
"@interactjs/utils": "1.10.27" | ||
}, | ||
"optionalDependencies": { | ||
"@interactjs/interact": "1.10.26" | ||
"@interactjs/interact": "1.10.27" | ||
}, | ||
@@ -28,3 +28,3 @@ "publishConfig": { | ||
"license": "MIT", | ||
"gitHead": "6e7a136f" | ||
"gitHead": "3ace1cad" | ||
} |
/** | ||
* interact.js 1.10.26 | ||
* interact.js 1.10.27 | ||
* | ||
@@ -9,3 +9,3 @@ * Copyright (c) 2012-present Taye Adeyemi <dev@taye.me> | ||
import { p as pointerEvents } from './base-61bbabf6.js'; | ||
import { p as pointerEvents } from './base-45YfudGV.js'; | ||
import holdRepeat from './holdRepeat.js'; | ||
@@ -12,0 +12,0 @@ import plugin$1 from './interactableTargets.js'; |
@@ -1,4 +0,4 @@ | ||
/* interact.js 1.10.26 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
/* interact.js 1.10.27 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
import{p as pointerEvents}from"./base-a44b3cf9.js";import holdRepeat from"./holdRepeat.prod.js";import plugin$1 from"./interactableTargets.prod.js";import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js";const plugin={id:"pointer-events",install(t){t.usePlugin(pointerEvents),t.usePlugin(holdRepeat),t.usePlugin(plugin$1)}};export{plugin as default}; | ||
import{p as pointerEvents}from"./base-PHHQHneY.js";import holdRepeat from"./holdRepeat.prod.js";import plugin$1 from"./interactableTargets.prod.js";import"../utils/domUtils.prod.js";import"../utils/extend.prod.js";import"../utils/getOriginXY.prod.js";import"./PointerEvent.prod.js";import"../core/BaseEvent.prod.js";import"../utils/pointerUtils.prod.js";const plugin={id:"pointer-events",install(t){t.usePlugin(pointerEvents),t.usePlugin(holdRepeat),t.usePlugin(plugin$1)}};export{plugin as default}; | ||
//# sourceMappingURL=plugin.prod.js.map |
/** | ||
* interact.js 1.10.26 | ||
* interact.js 1.10.27 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) 2012-present Taye Adeyemi <dev@taye.me> |
@@ -1,4 +0,4 @@ | ||
/* interact.js 1.10.26 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
/* interact.js 1.10.27 | https://raw.github.com/taye/interact.js/main/LICENSE */ | ||
import{BaseEvent}from"../core/BaseEvent.prod.js";import*as pointerUtils from"../utils/pointerUtils.prod.js";class PointerEvent extends BaseEvent{constructor(t,e,i,s,r,n){if(super(r),pointerUtils.pointerExtend(this,i),i!==e&&pointerUtils.pointerExtend(this,e),this.timeStamp=n,this.originalEvent=i,this.type=t,this.pointerId=pointerUtils.getPointerId(e),this.pointerType=pointerUtils.getPointerType(e),this.target=s,this.currentTarget=null,"tap"===t){const t=r.getPointerIndex(e);this.dt=this.timeStamp-r.pointers[t].downTime;const i=this.timeStamp-r.tapTime;this.double=!!r.prevTap&&"doubletap"!==r.prevTap.type&&r.prevTap.target===this.target&&i<500}else"doubletap"===t&&(this.dt=e.timeStamp-r.tapTime,this.double=!0)}_subtractOrigin(t){let{x:e,y:i}=t;return this.pageX-=e,this.pageY-=i,this.clientX-=e,this.clientY-=i,this}_addOrigin(t){let{x:e,y:i}=t;return this.pageX+=e,this.pageY+=i,this.clientX+=e,this.clientY+=i,this}preventDefault(){this.originalEvent.preventDefault()}}export{PointerEvent}; | ||
//# sourceMappingURL=PointerEvent.prod.js.map |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0