Skip to content

Commit

Permalink
v1.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Jul 11, 2019
1 parent a19426e commit e20cd75
Show file tree
Hide file tree
Showing 18 changed files with 266 additions and 122 deletions.
2 changes: 1 addition & 1 deletion packages/actions/resize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ declare const resize: {
topright: string;
bottomleft: string;
};
getCursor(action: ActionProps<any>): string;
getCursor(action: ActionProps<any>): any;
defaultMargin: number;
};
export default resize;
2 changes: 1 addition & 1 deletion packages/actions/resize.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/core/tests/_helpers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ 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, }?: {
export declare function testEnv<T extends Interact.Target = HTMLElement>({ plugins, target, rect, }?: {
plugins?: Interact.Plugin[];
target?: Interact.Target;
target?: T;
rect?: Interact.Rect;
}): {
scope: import("@interactjs/core/scope").Scope;
interaction: import("@interactjs/core/Interaction").Interaction<any>;
target: import("../../types/types").Target;
target: T;
interactable: import("@interactjs/core/Interactable").Interactable;
coords: MockCoords;
event: ({
Expand Down
10 changes: 7 additions & 3 deletions packages/core/tests/_helpers.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/interact/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/interactjs/dist/api/doclets.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions packages/interactjs/dist/api/packages_actions_resize.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,11 @@ <h1 class="page-title">packages/actions/resize.ts</h1>
return null
},

cursors: null as unknown as ReturnType&lt;typeof initCursors>,
cursors: null as ReturnType&lt;typeof initCursors>,

getCursor (action: ActionProps) {
const cursors = resize.cursors as { [key: string]: string }
const cursors = resize.cursors

if (action.axis) {
return cursors[action.name + action.axis]
}
Expand All @@ -289,7 +290,7 @@ <h1 class="page-title">packages/actions/resize.ts</h1>
return null
},

defaultMargin: null as unknown as number,
defaultMargin: null as number,
}

function resizable (interactable: Interact.Interactable, options: Interact.OrBoolean&lt;Interact.ResizableOptions> | boolean, scope: Scope) {
Expand Down
54 changes: 23 additions & 31 deletions packages/interactjs/dist/interact.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/interactjs/dist/interact.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/interactjs/dist/interact.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/interactjs/dist/interact.min.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion packages/interactjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import interact from '@interactjs/interact';
import { Modifier } from '@interactjs/modifiers/base';
import '@interactjs/types';
import * as snappers from '@interactjs/utils/snappers';
declare module '@interactjs/interact/interact' {
interface InteractStatic {
modifiers?: any;
modifiers?: {
[key: string]: (options?: any) => Modifier;
};
snappers?: typeof snappers & {
[key: string]: any;
};
Expand Down
Loading

0 comments on commit e20cd75

Please sign in to comment.