🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@interactjs/utils

Package Overview
Dependencies
Maintainers
2
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/utils - npm Package Compare versions

Comparing version

to
1.8.5

4

clone.d.ts

@@ -1,3 +0,1 @@

export default function clone<T extends {
[key: string]: any;
}>(source: T): Partial<T>;
export default function clone<T extends Object>(source: T): Partial<T>;
import * as arr from "./arr.js";
import * as is from "./is.js";
import * as is from "./is.js"; // tslint:disable-next-line ban-types
export default function clone(source) {

@@ -4,0 +5,0 @@ const dest = {};

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

export default function extend<T, U extends object>(dest: U, source: T): T & U;
export default function extend<T, U extends object>(dest: U & Partial<T>, source: T): T & U;

@@ -8,8 +8,2 @@ import * as arr from './arr';

export declare function warnOnce<T>(this: T, method: (...args: any[]) => any, message: string): (this: T) => any;
export declare function _getQBezierValue(t: number, p1: number, p2: number, p3: number): number;
export declare function getQuadraticCurvePoint(startX: number, startY: number, cpX: number, cpY: number, endX: number, endY: number, position: number): {
x: number;
y: number;
};
export declare function easeOutQuad(t: number, b: number, c: number, d: number): number;
export declare function copyAction(dest: Interact.ActionProps, src: Interact.ActionProps): import("@interactjs/core/Interaction").ActionProps<any>;

@@ -16,0 +10,0 @@ export { default as browser } from './browser';

@@ -18,19 +18,3 @@ import * as arr from "./arr.js";

};
} // http://stackoverflow.com/a/5634528/2280888
export function _getQBezierValue(t, p1, p2, p3) {
const iT = 1 - t;
return iT * iT * p1 + 2 * iT * t * p2 + t * t * p3;
}
export function getQuadraticCurvePoint(startX, startY, cpX, cpY, endX, endY, position) {
return {
x: _getQBezierValue(position, startX, cpX, endX),
y: _getQBezierValue(position, startY, cpY, endY)
};
} // http://gizma.com/easing/
export function easeOutQuad(t, b, c, d) {
t /= d;
return -c * t * (t - 2) + b;
}
export function copyAction(dest, src) {

@@ -37,0 +21,0 @@ dest.name = src.name;

{
"name": "@interactjs/utils",
"version": "1.8.4",
"version": "1.8.5",
"license": "MIT",
"devDependencies": {
"@interactjs/_dev": "1.8.4"
"@interactjs/_dev": "1.8.5"
},

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

},
"gitHead": "bb6d3695"
"gitHead": "1cc6d94c"
}

@@ -92,3 +92,3 @@ import pointerExtend from './pointerExtend';

readonly buttons: any;
} & MouseEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
} & MouseEvent & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow">) | ({
coords: MockCoords;

@@ -163,3 +163,3 @@ readonly page: any;

readonly buttons: any;
} & Touch & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
} & Touch & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow">) | ({
coords: MockCoords;

@@ -234,3 +234,3 @@ readonly page: any;

readonly buttons: any;
} & PointerEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
} & PointerEvent & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow">) | ({
coords: MockCoords;

@@ -305,3 +305,3 @@ readonly page: any;

readonly buttons: any;
} & import("@interactjs/pointer-events/PointerEvent").default<any> & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
} & import("@interactjs/pointer-events/PointerEvent").default<any> & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow">) | ({
coords: MockCoords;

@@ -334,3 +334,3 @@ readonly page: any;

readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & MouseEvent) | ({
} & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow"> & MouseEvent) | ({
coords: MockCoords;

@@ -349,3 +349,3 @@ readonly page: any;

readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & PointerEvent) | ({
} & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow"> & PointerEvent) | ({
coords: MockCoords;

@@ -364,3 +364,3 @@ readonly page: any;

readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({
} & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow"> & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({
coords: MockCoords;

@@ -379,3 +379,3 @@ readonly page: any;

readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
} & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow">) | ({
coords: MockCoords;

@@ -394,3 +394,3 @@ readonly page: any;

readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & TouchEvent);
} & import("@interactjs/core/InteractEvent").InteractEvent<never, "end" | "resume" | "start" | "move" | "inertiastart" | "reflow"> & TouchEvent);
export interface MockCoords {

@@ -397,0 +397,0 @@ page: Interact.Point;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet