@interactjs/utils
Advanced tools
Comparing version 1.4.0-alpha.28 to 1.4.0-alpha.29
@@ -6,4 +6,4 @@ export interface SearchDetails { | ||
eventType: string; | ||
eventTarget: Window | Document | Element; | ||
curEventTarget: Window | Document | Element; | ||
eventTarget: Interact.EventTarget; | ||
curEventTarget: Interact.EventTarget; | ||
scope: Interact.Scope; | ||
@@ -10,0 +10,0 @@ } |
@@ -83,3 +83,3 @@ import * as utils from './index'; | ||
if (interaction.pointers.length === 1) { | ||
const target = interaction.target; | ||
const target = interaction.interactable; | ||
// don't add this pointer if there is a target interactable and it | ||
@@ -106,2 +106,2 @@ // isn't gesturable | ||
export default finder; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb25GaW5kZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdGlvbkZpbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssS0FBSyxNQUFNLFNBQVMsQ0FBQTtBQVloQyxNQUFNLE1BQU0sR0FBRztJQUNiLFdBQVcsRUFBRSxDQUFFLGtCQUFrQixFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsTUFBTSxDQUFFO0lBRXZFLE1BQU0sQ0FBRSxPQUFPO1FBQ2IsS0FBSyxNQUFNLE1BQU0sSUFBSSxNQUFNLENBQUMsV0FBVyxFQUFFO1lBQ3ZDLE1BQU0sV0FBVyxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQTtZQUUzQyxJQUFJLFdBQVcsRUFBRTtnQkFDZixPQUFPLFdBQVcsQ0FBQTthQUNuQjtTQUNGO0lBQ0gsQ0FBQztJQUVELDhDQUE4QztJQUM5QyxnQkFBZ0IsQ0FBRSxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBaUI7UUFDN0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GFyZ2V0IGludGVyYWN0YWJsZSBhbmQgaXRcbiAgICAgICAgLy8gaXNuJ3QgZ2VzdHVyYWJsZVxuICAgICAgICBpZiAodGFyZ2V0ICYmICF0YXJnZXQub3B0aW9ucy5nZXN0dXJlLmVuYWJsZWQpIHtcbiAgICAgICAgICBjb250aW51ZVxuICAgICAgICB9XG4gICAgICB9XG4gICAgICAvLyBtYXhpbXVtIG9mIDIgcG9pbnRlcnMgcGVyIGludGVyYWN0aW9uXG4gICAgICBlbHNlIGlmIChpbnRlcmFjdGlvbi5wb2ludGVycy5sZW5ndGggPj0gMikge1xuICAgICAgICBjb250aW51ZVxuICAgICAgfVxuXG4gICAgICBpZiAoIWludGVyYWN0aW9uLmludGVyYWN0aW5nKCkgJiYgKHBvaW50ZXJUeXBlID09PSBpbnRlcmFjdGlvbi5wb2ludGVyVHlwZSkpIHtcbiAgICAgICAgcmV0dXJuIGludGVyYWN0aW9uXG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG51bGxcbiAgfSxcbn1cblxuZnVuY3Rpb24gaGFzUG9pbnRlcklkIChpbnRlcmFjdGlvbiwgcG9pbnRlcklkKSB7XG4gIHJldHVybiB1dGlscy5hcnIuc29tZShpbnRlcmFjdGlvbi5wb2ludGVycywgKHsgaWQgfSkgPT4gaWQgPT09IHBvaW50ZXJJZClcbn1cblxuZXhwb3J0IGRlZmF1bHQgZmluZGVyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb25GaW5kZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdGlvbkZpbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssS0FBSyxNQUFNLFNBQVMsQ0FBQTtBQVloQyxNQUFNLE1BQU0sR0FBRztJQUNiLFdBQVcsRUFBRSxDQUFFLGtCQUFrQixFQUFFLFlBQ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dXRpbHMuYXJyLnNvbWUoaW50ZXJhY3Rpb24ucG9pbnRlcnMsICh7IGlkIH0pID0+IGlkID09PSBwb2ludGVySWQpXG59XG5cbmV4cG9ydCBkZWZhdWx0IGZpbmRlclxuIl19 |
{ | ||
"name": "@interactjs/utils", | ||
"version": "1.4.0-alpha.28+sha.e624c4d", | ||
"version": "1.4.0-alpha.29+sha.7c21d3d", | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.4.0-alpha.28+sha.e624c4d" | ||
"@interactjs/_dev": "1.4.0-alpha.29+sha.7c21d3d" | ||
}, | ||
@@ -7,0 +7,0 @@ "publishConfig": { |
@@ -47,12 +47,136 @@ import pointerExtend from './pointerExtend'; | ||
}; | ||
coordsToEvent({ page, client, timeStamp }: any): { | ||
page: any; | ||
client: any; | ||
timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
}; | ||
coordsToEvent({ page, client, timeStamp }: { | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp?: number; | ||
}): ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & Touch & MouseEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & Touch & PointerEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & Touch & TouchEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & Touch & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & MouseEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & MouseEvent & PointerEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & MouseEvent & TouchEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & MouseEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & PointerEvent & MouseEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & PointerEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & PointerEvent & TouchEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & PointerEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & MouseEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & PointerEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & TouchEvent) | ({ | ||
page: import("../types/types").Point; | ||
client: import("../types/types").Point; | ||
timeStamp: number; | ||
readonly pageX: number; | ||
readonly pageY: number; | ||
readonly clientX: number; | ||
readonly clientY: number; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any>); | ||
}; | ||
export default pointerUtils; |
@@ -195,3 +195,3 @@ import browser from './browser'; | ||
coordsToEvent({ page, client, timeStamp }) { | ||
return { | ||
const event = { | ||
page, | ||
@@ -205,5 +205,6 @@ client, | ||
}; | ||
return event; | ||
}, | ||
}; | ||
export default pointerUtils; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9pbnRlclV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicG9pbnRlclV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sT0FBTyxNQUFNLFdBQVcsQ0FBQTtBQUMvQixPQUFPLEdBQUcsTUFBTSxjQUFjLENBQUE7QUFDOUIsT0FBTyxLQUFLLFFBQVEsTUFBTSxZQUFZLENBQUE7QUFDdEMsT0FBTyxLQUFLLE1BQU0sU0FBUyxDQUFB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AgIHRpbWVTdGFtcDogMCxcbiAgICB9XG4gIH0sXG5cbiAgY29vcmRzVG9FdmVudCAoeyBwYWdlLCBjbGllbnQsIHRpbWVTdGFtcCB9OiB7IHBhZ2U6IEludGVyYWN0LlBvaW50LCBjbGllbnQ6IEludGVyYWN0LlBvaW50LCB0aW1lU3RhbXA/OiBudW1iZXIgfSkge1xuICAgIGNvbnN0IGV2ZW50ID0ge1xuICAgICAgcGFnZSxcbiAgICAgIGNsaWVudCxcbiAgICAgIHRpbWVTdGFtcCxcbiAgICAgIGdldCBwYWdlWCAoKSB7IHJldHVybiBwYWdlLnggfSxcbiAgICAgIGdldCBwYWdlWSAoKSB7IHJldHVybiBwYWdlLnkgfSxcbiAgICAgIGdldCBjbGllbnRYICgpIHsgcmV0dXJuIGNsaWVudC54IH0sXG4gICAgICBnZXQgY2xpZW50WSAoKSB7IHJldHVybiBjbGllbnQueSB9LFxuICAgIH1cblxuICAgIHJldHVybiBldmVudCBhcyB0eXBlb2YgZXZlbnQgJiBJbnRlcmFjdC5Qb2ludGVyVHlwZSAmIEludGVyYWN0LlBvaW50ZXJFdmVudFR5cGVcbiAgfSxcbn1cblxuZXhwb3J0IGRlZmF1bHQgcG9pbnRlclV0aWxzXG4iXX0= |
@@ -1,2 +0,2 @@ | ||
export declare type SignalListener = (signalArg: PartialSignalArg, sinalName: string) => (void | boolean); | ||
export declare type SignalListener = (signalArg: PartialSignalArg, sinalName?: string) => (void | boolean); | ||
export interface SignalArg<T extends Interact.ActionName = any> { | ||
@@ -6,3 +6,3 @@ interaction: Interact.Interaction<T>; | ||
iEvent: Interact.InteractEvent<T>; | ||
element: Window | Document | Element; | ||
element: Interact.EventTarget; | ||
coords: Interact.Point; | ||
@@ -9,0 +9,0 @@ event: Interact.PointerEventType; |
@@ -34,2 +34,2 @@ class Signals { | ||
export default Signals; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2lnbmFscy5qcyIsInNvdXJjZV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XG4gICAgICB0aGlzLmxpc3RlbmVyc1tuYW1lXSA9IFtsaXN0ZW5lcl1cbiAgICAgIHJldHVyblxuICAgIH1cblxuICAgIHRoaXMubGlzdGVuZXJzW25hbWVdLnB1c2gobGlzdGVuZXIpXG4gIH1cblxuICBvZmYgKG5hbWU6IHN0cmluZywgbGlzdGVuZXI6IFNpZ25hbExpc3RlbmVyKSB7XG4gICAgaWYgKCF0aGlzLmxpc3RlbmVyc1tuYW1lXSkgeyByZXR1cm4gfVxuXG4gICAgY29uc3QgaW5kZXggPSB0aGlzLmxpc3RlbmVyc1tuYW1lXS5pbmRleE9mKGxpc3RlbmVyKVxuXG4gICAgaWYgKGluZGV4ICE9PSAtMSkge1xuICAgICAgdGhpcy5saXN0ZW5lcnNbbmFtZV0uc3BsaWNlKGluZGV4LCAxKVxuICAgIH1cbiAgfVxuXG4gIGZpcmUgKG5hbWU6IHN0cmluZywgYXJnOiBQYXJ0aWFsPFNpZ25hbEFyZz4pOiB2b2lkIHwgZmFsc2Uge1xuICAgIGNvbnN0IHRhcmdldExpc3RlbmVycyA9IHRoaXMubGlzdGVuZXJzW25hbWVdXG5cbiAgICBpZiAoIXRhcmdldExpc3RlbmVycykgeyByZXR1cm4gfVxuXG4gICAgZm9yIChjb25zdCBsaXN0ZW5lciBvZiB0YXJnZXRMaXN0ZW5lcnMpIHtcbiAgICAgIGlmIChsaXN0ZW5lcihhcmcsIG5hbWUpID09PSBmYWxzZSkge1xuICAgICAgICByZXR1cm4gZmFsc2VcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgU2lnbmFsc1xuIl19 |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
183016
50
1677