Skip to content

Commit

Permalink
v1.4.0-rc.4
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Mar 30, 2019
1 parent bff914a commit 382a064
Show file tree
Hide file tree
Showing 52 changed files with 1,032 additions and 452 deletions.
6 changes: 3 additions & 3 deletions packages/actions/gesture.spec.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions packages/auto-scroll/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ declare module '@interactjs/core/defaultOptions' {
declare function install(scope: Scope): void;
declare const autoScroll: {
defaults: import("../types/types").AutoScrollOption;
now: () => number;
interaction: any;
i: any;
x: number;
Expand All @@ -25,14 +26,14 @@ declare const autoScroll: {
prevTime: number;
margin: number;
speed: number;
start(interaction: import("@interactjs/core/Interaction").Interaction<any>): void;
start(interaction: import("@interactjs/core/Interaction").Interaction<any>, scope: import("@interactjs/core/scope").Scope): void;
stop(): void;
scroll(): void;
check(interactable: any, actionName: any): any;
onInteractionMove({ interaction, pointer }: {
interaction: any;
pointer: any;
}): void;
}, scope: import("@interactjs/core/scope").Scope): void;
};
export declare function getContainer(value: any, interactable: any, element: any): any;
export declare function getScroll(container: any): {
Expand Down
16 changes: 9 additions & 7 deletions packages/auto-scroll/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/core/Interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export declare class Interaction<T extends ActionName = any> {
downEvent: Interact.PointerEventType;
downPointer: Interact.PointerType;
_latestPointer: {
pointer: EventTarget;
pointer: Interact.EventTarget;
event: Interact.PointerEventType;
eventTarget: Node;
};
Expand Down Expand Up @@ -188,6 +188,7 @@ export declare class Interaction<T extends ActionName = any> {
_createPreparedEvent(event: Interact.PointerEventType, phase: EventPhase, preEnd: boolean, type: string): InteractEvent<T, EventPhase>;
_fireEvent(iEvent: any): void;
_doPhase(signalArg: Partial<Interact.SignalArg>): boolean;
_now(): number;
}
export default Interaction;
export { PointerInfo };
7 changes: 4 additions & 3 deletions packages/core/Interaction.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/core/Interaction.spec.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions packages/core/interactions.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/core/scope.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export declare class Scope {
removeDocument(doc: Document): void;
getDocIndex(doc: Document): number;
getDocOptions(doc: Document): any;
now(): number;
}
export declare class InteractableSet {
protected scope: Scope;
Expand Down
5 changes: 4 additions & 1 deletion packages/core/scope.js

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions packages/core/tests/_helpers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,297 @@ export declare function mockScope(options?: any): any;
export declare function mockSignals(): any;
export declare function mockInteractable(props?: {}): any;
export declare function getProps<T extends {}, K extends keyof T>(src: T, props: K[]): Pick<T, K>;
export declare function testEnv({ plugins, target, rect, }?: {
plugins?: Interact.Plugin[];
target?: Interact.Target;
rect?: Interact.Rect;
}): {
scope: import("@interactjs/core/scope").Scope;
interaction: import("@interactjs/core/Interaction").Interaction<any>;
target: import("../../types/types").Target;
interactable: import("@interactjs/core/Interactable").Interactable;
coords: {
page: {
x: number;
y: number;
};
client: {
x: number;
y: number;
};
timeStamp: number;
};
event: ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & Touch & MouseEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & Touch & PointerEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & Touch & TouchEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & Touch & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & MouseEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & MouseEvent & PointerEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & MouseEvent & TouchEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & MouseEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & PointerEvent & MouseEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & PointerEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & PointerEvent & TouchEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & PointerEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & MouseEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & PointerEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & TouchEvent) | ({
coords: {
page: import("../../types/types").Point;
client: import("../../types/types").Point;
timeStamp?: number;
pointerId?: any;
target?: any;
};
readonly page: any;
readonly client: any;
readonly timeStamp: any;
readonly pageX: any;
readonly pageY: any;
readonly clientX: any;
readonly clientY: any;
readonly pointerId: any;
readonly target: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any>);
};
Loading

0 comments on commit 382a064

Please sign in to comment.