mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
39 lines
954 B
TypeScript
39 lines
954 B
TypeScript
// Type definitions for KoLite 1.1
|
|
// Project: https://github.com/CodeSeven/kolite
|
|
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
/// <reference types="jquery" />
|
|
/// <reference types="knockout" />
|
|
|
|
|
|
// Activity /////////////////////////////////////////////
|
|
|
|
interface KoLiteActivityOptions {
|
|
color?: any;
|
|
segments?: number;
|
|
space?: number;
|
|
length?: number;
|
|
width?: number;
|
|
speed?: number;
|
|
align?: string;
|
|
valign?: string;
|
|
padding?: number;
|
|
}
|
|
|
|
interface KoLiteActivity {
|
|
(options: KoLiteActivityOptions): JQuery;
|
|
defaults: KoLiteActivityOptions;
|
|
getOpacity(options: { steps?: number; segments?: number; opacity?: number; }, i: number): number;
|
|
}
|
|
|
|
interface KnockoutBindingHandlers {
|
|
activity: KnockoutBindingHandler;
|
|
}
|
|
|
|
interface JQuery {
|
|
activity: KoLiteActivity;
|
|
activityEx(isLoading: boolean): JQuery;
|
|
}
|