Skip to content

Commit

Permalink
chore(all): update typescript (#109)
Browse files Browse the repository at this point in the history
Close #106
  • Loading branch information
daybrush committed Jul 2, 2018
1 parent bc8edd6 commit 4791023
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 48 deletions.
8 changes: 4 additions & 4 deletions declaration/AnimationManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ export declare class AnimationManager {
em: EventManager;
axm: AxisManager;
static getDuration(duration: number, min: number, max: number): number;
constructor({options, itm, em, axm}: {
constructor({ options, itm, em, axm }: {
options: any;
itm: any;
em: any;
axm: any;
});
getDuration(depaPos: Axis, destPos: Axis, wishDuration?: number): number;
private createAnimationParam(pos, duration, option?);
private createAnimationParam;
grab(axes: string[], option?: ChangeEventOption): void;
getEventInfo(): ChangeEventOption;
restore(option: ChangeEventOption): void;
animationEnd(): void;
private animateLoop(param, complete);
private animateLoop;
getUserControll(param: AnimationParam): {
destPos: Axis;
duration: number;
};
animateTo(destPos: Axis, duration: number, option?: ChangeEventOption): void;
private frame(param);
private frame;
easing(p: any): number;
setTo(pos: Axis, duration?: number): this;
setBy(pos: Axis, duration?: number): this;
Expand Down
2 changes: 1 addition & 1 deletion declaration/Axes.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Component from "@egjs/component";
import Component from "@egjs/component";
import { AnimationManager } from "./AnimationManager";
import { EventManager } from "./EventManager";
import { InterruptManager } from "./InterruptManager";
Expand Down
2 changes: 1 addition & 1 deletion declaration/AxisManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export declare class AxisManager {
private _pos;
static equal(target: Axis, base: Axis): boolean;
constructor(axis: any, options: AxesOption);
private _complementOptions();
private _complementOptions;
getDelta(depaPos: Axis, destPos: Axis): Axis;
get(axes?: string[] | Axis): Axis;
moveTo(pos: Axis): {
Expand Down
2 changes: 1 addition & 1 deletion declaration/EventManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export declare class EventManager {
triggerAnimationStart(param: AnimationParam): Boolean;
triggerAnimationEnd(isTrusted?: boolean): void;
triggerFinish(isTrusted?: boolean): void;
private createUserControll(pos, duration?);
private createUserControll;
setAnimationManager(am: AnimationManager): void;
destroy(): void;
}
4 changes: 2 additions & 2 deletions declaration/InputObserver.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export declare class InputObserver implements IInputTypeObserver {
private em;
private axm;
private am;
constructor({options, itm, em, axm, am}: {
constructor({ options, itm, em, axm, am }: {
options: any;
itm: any;
em: any;
axm: any;
am: any;
});
private atOutside(pos);
private atOutside;
get(input: IInputType): Axis;
hold(input: IInputType, event: any): void;
change(input: IInputType, event: any, offset: Axis): void;
Expand Down
2 changes: 1 addition & 1 deletion declaration/const.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export declare enum DIRECTION {
DIRECTION_UP = 8,
DIRECTION_DOWN = 16,
DIRECTION_VERTICAL = 24,
DIRECTION_ALL = 30,
DIRECTION_ALL = 30
}
export declare const TRANSFORM: string;
8 changes: 4 additions & 4 deletions declaration/inputType/MoveKeyInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export declare class MoveKeyInput implements IInputType {
connect(observer: IInputTypeObserver): IInputType;
disconnect(): this;
destroy(): void;
private onKeydown(e);
private onKeyup(e);
private attachEvent(observer);
private dettachEvent();
private onKeydown;
private onKeyup;
private attachEvent;
private dettachEvent;
enable(): this;
disable(): this;
isEnable(): boolean;
Expand Down
14 changes: 7 additions & 7 deletions declaration/inputType/PanInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export declare class PanInput implements IInputType {
enable(): this;
disable(): this;
isEnable(): boolean;
private removeRecognizer();
private onHammerInput(event);
private onPanmove(event);
private onPanend(event);
private attachEvent(observer);
private dettachEvent();
private getOffset(properties, useDirection);
private removeRecognizer;
private onHammerInput;
private onPanmove;
private onPanend;
private attachEvent;
private dettachEvent;
private getOffset;
}
14 changes: 7 additions & 7 deletions declaration/inputType/PinchInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export declare class PinchInput implements IInputType {
connect(observer: IInputTypeObserver): IInputType;
disconnect(): this;
destroy(): void;
private removeRecognizer();
private onPinchStart(event);
private onPinchMove(event);
private onPinchEnd(event);
private getOffset(pinchScale, prev?);
private attachEvent(observer);
private dettachEvent();
private removeRecognizer;
private onPinchStart;
private onPinchMove;
private onPinchEnd;
private getOffset;
private attachEvent;
private dettachEvent;
enable(): this;
disable(): this;
isEnable(): boolean;
Expand Down
6 changes: 3 additions & 3 deletions declaration/inputType/WheelInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export declare class WheelInput implements IInputType {
connect(observer: IInputTypeObserver): IInputType;
disconnect(): this;
destroy(): void;
private onWheel(event);
private attachEvent(observer);
private dettachEvent();
private onWheel;
private attachEvent;
private dettachEvent;
enable(): this;
disable(): this;
isEnable(): boolean;
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"license": "MIT",
"homepage": "https://github.com/naver/egjs-axes",
"dependencies": {
"@egjs/component": "^2.0.0",
"@egjs/component": "^2.1.1",
"hammerjs": "^2.0.8"
},
"devDependencies": {
Expand Down Expand Up @@ -71,20 +71,20 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.9",
"lite-fixture": "^1.0.2",
"marked": "^0.3.12",
"mocha": "^4.1.0",
"sinon": "^4.1.4",
"string-replace-webpack-plugin": "0.1.3",
"sync-exec": "^0.6.2",
"tslint": "^5.9.1",
"tslint-eslint-rules": "^4.1.1",
"tslint-loader": "^3.5.3",
"typescript": "^2.6.2",
"typescript": "^2.9.2",
"uglifyjs-webpack-plugin": "^1.1.6",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.10.1",
"webpack-merge": "^4.1.1",
"write-file-webpack-plugin": "^4.2.0",
"xml2js": "^0.4.19",
"marked": "^0.3.12"
"xml2js": "^0.4.19"
}
}
2 changes: 1 addition & 1 deletion src/Axes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Component from "@egjs/component";
import Component from "@egjs/component";
import { AnimationManager } from "./AnimationManager";
import { EventManager } from "./EventManager";
import { InterruptManager } from "./InterruptManager";
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"target": "es3",
"module": "commonjs",
"esModuleInterop": true,
"lib": ["es5", "dom"],
"removeComments": false,
"outDir": "outjs"
Expand Down

0 comments on commit 4791023

Please sign in to comment.