@interactjs/utils
Advanced tools
Comparing version 1.8.0-alpha.3 to 1.8.0-alpha.4
export declare function nodeContains(parent: Node | Interact.EventTarget, child: Node | Interact.EventTarget): boolean; | ||
export declare function closest(element: Node, selector: string): import("../types/types").Element; | ||
export declare function closest(element: Node, selector: string): import("@interactjs/types/types").Element; | ||
export declare function parentNode(node: Node | Document): Node & ParentNode; | ||
@@ -7,3 +7,3 @@ export declare function matchesSelector(element: Interact.Element, selector: string): any; | ||
export declare function matchesUpTo(element: Interact.Element, selector: string, limit: Node): any; | ||
export declare function getActualElement(element: Interact.Element): import("../types/types").Element; | ||
export declare function getActualElement(element: Interact.Element): import("@interactjs/types/types").Element; | ||
export declare function getScrollXY(relevantWindow: any): { | ||
@@ -10,0 +10,0 @@ x: any; |
@@ -14,3 +14,3 @@ import * as arr from './arr'; | ||
export declare function easeOutQuad(t: number, b: number, c: number, d: number): number; | ||
export declare function copyAction(dest: Interact.ActionProps, src: Interact.ActionProps): import("../types/types").ActionProps<any>; | ||
export declare function copyAction(dest: Interact.ActionProps, src: Interact.ActionProps): import("@interactjs/types/types").ActionProps<any>; | ||
export { default as browser } from './browser'; | ||
@@ -17,0 +17,0 @@ export { default as clone } from './clone'; |
@@ -10,4 +10,4 @@ export declare const window: (thing: any) => thing is Window; | ||
export declare const string: (thing: any) => thing is string; | ||
export declare const element: (thing: any) => thing is import("../types/types").Element; | ||
export declare const element: (thing: any) => thing is import("@interactjs/types/types").Element; | ||
export declare const plainObject: typeof object; | ||
export declare const array: <T extends unknown>(thing: any) => thing is T[]; |
{ | ||
"name": "@interactjs/utils", | ||
"version": "1.8.0-alpha.3", | ||
"version": "1.8.0-alpha.4", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.8.0-alpha.4" | ||
}, | ||
"publishConfig": { | ||
@@ -6,0 +9,0 @@ "access": "public" |
@@ -8,3 +8,3 @@ import pointerExtend from './pointerExtend'; | ||
export declare function getXY(type: any, pointer: any, xy: any): any; | ||
export declare function getPageXY(pointer: Interact.PointerType | Interact.InteractEvent, page?: Interact.Point): import("../types/types").Point; | ||
export declare function getPageXY(pointer: Interact.PointerType | Interact.InteractEvent, page?: Interact.Point): import("@interactjs/types/types").Point; | ||
export declare function getClientXY(pointer: any, client: any): any; | ||
@@ -35,3 +35,3 @@ export declare function getPointerId(pointer: any): any; | ||
export declare function getPointerType(pointer: any): any; | ||
export declare function getEventTargets(event: any): import("../types/types").Element[]; | ||
export declare function getEventTargets(event: any): import("@interactjs/types/types").Element[]; | ||
export declare function newCoords(): Interact.CoordsSetMember; | ||
@@ -80,3 +80,3 @@ export declare function coordsToEvent(coords: MockCoords): ({ | ||
readonly buttons: any; | ||
} & MouseEvent & import("../types/types").InteractEvent<any, any>) | ({ | ||
} & MouseEvent & import("@interactjs/types/types").InteractEvent<any, any>) | ({ | ||
coords: MockCoords; | ||
@@ -137,3 +137,3 @@ readonly page: any; | ||
readonly buttons: any; | ||
} & Touch & import("../types/types").InteractEvent<any, any>) | ({ | ||
} & Touch & import("@interactjs/types/types").InteractEvent<any, any>) | ({ | ||
coords: MockCoords; | ||
@@ -194,3 +194,3 @@ readonly page: any; | ||
readonly buttons: any; | ||
} & PointerEvent & import("../types/types").InteractEvent<any, any>) | ({ | ||
} & PointerEvent & import("@interactjs/types/types").InteractEvent<any, any>) | ({ | ||
coords: MockCoords; | ||
@@ -223,3 +223,3 @@ readonly page: any; | ||
readonly buttons: any; | ||
} & import("../types/types").InteractEvent<any, any> & MouseEvent) | ({ | ||
} & import("@interactjs/types/types").InteractEvent<any, any> & MouseEvent) | ({ | ||
coords: MockCoords; | ||
@@ -238,3 +238,3 @@ readonly page: any; | ||
readonly buttons: any; | ||
} & import("../types/types").InteractEvent<any, any> & PointerEvent) | ({ | ||
} & import("@interactjs/types/types").InteractEvent<any, any> & PointerEvent) | ({ | ||
coords: MockCoords; | ||
@@ -253,3 +253,3 @@ readonly page: any; | ||
readonly buttons: any; | ||
} & import("../types/types").InteractEvent<any, any>) | ({ | ||
} & import("@interactjs/types/types").InteractEvent<any, any>) | ({ | ||
coords: MockCoords; | ||
@@ -268,3 +268,3 @@ readonly page: any; | ||
readonly buttons: any; | ||
} & import("../types/types").InteractEvent<any, any> & TouchEvent); | ||
} & import("@interactjs/types/types").InteractEvent<any, any> & TouchEvent); | ||
export interface MockCoords { | ||
@@ -271,0 +271,0 @@ page: Interact.Point; |
@@ -1,3 +0,3 @@ | ||
export declare function getStringOptionResult(value: any, target: Interact.HasGetRect, element: any): (Node & ParentNode) | import("../types/types").Rect; | ||
export declare function resolveRectLike<T extends any[]>(value: Interact.RectResolvable<T>, target?: Interact.HasGetRect, element?: Node, functionArgs?: T): import("../types/types").Rect; | ||
export declare function getStringOptionResult(value: any, target: Interact.HasGetRect, element: any): (Node & ParentNode) | import("@interactjs/types/types").Rect; | ||
export declare function resolveRectLike<T extends any[]>(value: Interact.RectResolvable<T>, target?: Interact.HasGetRect, element?: Node, functionArgs?: T): import("@interactjs/types/types").Rect; | ||
export declare function rectToXY(rect: any): { | ||
@@ -4,0 +4,0 @@ x: any; |
@@ -5,11 +5,11 @@ declare function createGrid(grid: (Interact.Rect | Interact.Point) & { | ||
offset: Interact.Point; | ||
}): import("../../modifiers/snap/pointer").SnapFunction & { | ||
grid: (import("../../types/types").Point & { | ||
}): import("@interactjs/modifiers/snap/pointer").SnapFunction & { | ||
grid: (import("@interactjs/types/types").Point & { | ||
range?: number; | ||
limits: import("../../types/types").Rect; | ||
offset: import("../../types/types").Point; | ||
}) | (import("../../types/types").Rect & { | ||
limits: import("@interactjs/types/types").Rect; | ||
offset: import("@interactjs/types/types").Point; | ||
}) | (import("@interactjs/types/types").Rect & { | ||
range?: number; | ||
limits: import("../../types/types").Rect; | ||
offset: import("../../types/types").Point; | ||
limits: import("@interactjs/types/types").Rect; | ||
offset: import("@interactjs/types/types").Point; | ||
}); | ||
@@ -16,0 +16,0 @@ coordFields: (readonly ["x", "y"] | readonly ["left", "top"] | readonly ["right", "bottom"] | readonly ["width", "height"])[]; |
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
142269
1