@gkits/collect 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/dts/res/_utils/animate/animate.d.ts +13 -0
- package/dist/dts/res/_utils/animate/index.d.ts +15 -0
- package/dist/dts/res/_utils/attribute.d.ts +4 -0
- package/dist/dts/res/_utils/browser/UrlHandler.d.ts +13 -0
- package/dist/dts/res/_utils/browser/body.scroll.d.ts +19 -0
- package/dist/dts/res/_utils/browser/copy.d.ts +1 -0
- package/dist/dts/res/_utils/browser/device.d.ts +4 -0
- package/dist/dts/res/_utils/browser/fetcher.d.ts +0 -0
- package/dist/dts/res/_utils/browser/findDom.d.ts +1 -0
- package/dist/dts/res/_utils/browser/getBase64.d.ts +1 -0
- package/dist/dts/res/_utils/browser/getMousePoint.d.ts +4 -0
- package/dist/dts/res/_utils/browser/getPageScroll.d.ts +4 -0
- package/dist/dts/res/_utils/browser/getPageSize.d.ts +6 -0
- package/dist/dts/res/_utils/browser/guide.d.ts +7 -0
- package/dist/dts/res/_utils/browser/hiddenProperty.d.ts +1 -0
- package/dist/dts/res/_utils/browser/httpAjax.d.ts +12 -0
- package/dist/dts/res/_utils/browser/lazyLoad.d.ts +27 -0
- package/dist/dts/res/_utils/browser/loadJC.d.ts +2 -0
- package/dist/dts/res/_utils/browser/networkState.d.ts +6 -0
- package/dist/dts/res/_utils/browser/pinyin.d.ts +1 -0
- package/dist/dts/res/_utils/browser/ratioZoom.d.ts +3 -0
- package/dist/dts/res/_utils/browser/requestAnimationFrame.d.ts +2 -0
- package/dist/dts/res/_utils/browser/resize.d.ts +1 -0
- package/dist/dts/res/_utils/browser/scroll.d.ts +5 -0
- package/dist/dts/res/_utils/browser/touch.d.ts +44 -0
- package/dist/dts/res/_utils/browser/touchEvents.d.ts +5 -0
- package/dist/dts/res/_utils/color/getOpacityColor.d.ts +1 -0
- package/dist/dts/res/_utils/decorator/debounce.d.ts +1 -0
- package/dist/dts/res/_utils/decorator/scrollLocks.d.ts +1 -0
- package/dist/dts/res/_utils/decorator/timeout.d.ts +1 -0
- package/dist/dts/res/_utils/decorator/wait.d.ts +1 -0
- package/dist/dts/res/_utils/evalEventHandle.d.ts +9 -0
- package/dist/dts/res/_utils/event.d.ts +15 -0
- package/dist/dts/res/_utils/extend/arrayIndex.d.ts +17 -0
- package/dist/dts/res/_utils/extend/proxy.d.ts +4 -0
- package/dist/dts/res/_utils/function.d.ts +4 -0
- package/dist/dts/res/_utils/getcolor.d.ts +129 -0
- package/dist/dts/res/_utils/hsvacolor.d.ts +12 -0
- package/dist/dts/res/_utils/key-codes.d.ts +162 -0
- package/dist/dts/res/_utils/number/calc.d.ts +11 -0
- package/dist/dts/res/_utils/object/assign.d.ts +7 -0
- package/dist/dts/res/_utils/object/exist.d.ts +2 -0
- package/dist/dts/res/_utils/object/freeze.d.ts +1 -0
- package/dist/dts/res/_utils/object/linkedList.d.ts +14 -0
- package/dist/dts/res/_utils/place.d.ts +15 -0
- package/dist/dts/res/_utils/string/getFileType.d.ts +1 -0
- package/dist/dts/res/_utils/string/marker.d.ts +1 -0
- package/dist/dts/res/_utils/string/trim.d.ts +1 -0
- package/dist/dts/res/_utils/string/utilTools.d.ts +2 -0
- package/dist/dts/res/_utils/style/background.d.ts +7 -0
- package/dist/dts/res/_utils/style/basics.d.ts +3 -0
- package/dist/dts/res/_utils/style/classic.d.ts +10 -0
- package/dist/dts/res/_utils/style/disabled.d.ts +1 -0
- package/dist/dts/res/_utils/style/display.d.ts +3 -0
- package/dist/dts/res/_utils/style/index.d.ts +6 -0
- package/dist/dts/res/_utils/style/resize.d.ts +1 -0
- package/dist/dts/res/_utils/style/style.d.ts +13 -0
- package/dist/dts/res/_utils/style/styleCalc.d.ts +19 -0
- package/dist/dts/res/_utils/style/styleDeclare.d.ts +6 -0
- package/dist/dts/res/_utils/style/units.d.ts +1 -0
- package/dist/dts/res/_utils/style/visibility.d.ts +1 -0
- package/dist/dts/res/_utils/style/wrap.d.ts +1 -0
- package/dist/dts/res/_utils/throttle.d.ts +12 -0
- package/dist/dts/res/_utils/types.d.ts +17 -0
- package/dist/dts/res/conflate/conflate.d.ts +16 -0
- package/dist/dts/res/conflate/conflate.style.d.ts +1 -0
- package/dist/dts/res/conflate/index.d.ts +1 -0
- package/dist/dts/res/index.d.ts +4 -0
- package/dist/dts/res/list/index.d.ts +1 -0
- package/dist/dts/res/list/list.d.ts +9 -0
- package/dist/dts/res/list/list.style.d.ts +1 -0
- package/dist/dts/res/param.d.ts +3 -0
- package/dist/dts/res/prize/index.d.ts +1 -0
- package/dist/dts/res/prize/prize.d.ts +17 -0
- package/dist/dts/res/prize/prize.style.d.ts +1 -0
- package/dist/dts/res/shared/con.d.ts +1 -0
- package/dist/dts/res/shared/config/config.d.ts +10 -0
- package/dist/dts/res/shared/config/hello.d.ts +1 -0
- package/dist/dts/res/shared/environments/environment.d.ts +8 -0
- package/dist/dts/res/shared/index.d.ts +1 -0
- package/dist/dts/res/shared/interface/type.d.ts +50 -0
- package/dist/dts/res/shared/mixins/applyMixins.d.ts +1 -0
- package/dist/dts/res/shared/mixins/hiElementBase.d.ts +14 -0
- package/dist/dts/res/shared/mixins/hiElementForm.d.ts +17 -0
- package/dist/dts/res/shared/mixins/hiElementStyle.d.ts +26 -0
- package/dist/dts/res/shared/mixins/hiElementTouch.d.ts +28 -0
- package/dist/dts/res/shared/services/date.services.d.ts +1 -0
- package/dist/dts/res/shared/services/md5.d.ts +29 -0
- package/dist/dts/res/shared/theme/default.d.ts +29 -0
- package/dist/dts/res/swipe/index.d.ts +1 -0
- package/dist/dts/res/swipe/swipe.d.ts +12 -0
- package/dist/dts/res/swipe/swipe.style.d.ts +1 -0
- package/dist/index.js +450 -0
- package/package.json +56 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `@hikits/drawlottery`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type seekers = 'bounce' | 'flash' | 'headShake' | 'heartBeat' | 'jello' | 'pulse' | 'rubberBand' | 'shake' | 'shake' | 'shakeX' | 'shakeY' | 'swing' | 'tada' | 'wobble';
|
|
2
|
+
type back = 'backInDown' | 'backInLeft' | 'backInRight' | 'backInUp' | 'backOutDown' | 'backOutLeft' | 'backOutRight' | 'backOutUp';
|
|
3
|
+
type bouncing = 'bounceIn' | 'bounceInDown' | 'bounceInLeft' | 'bounceInRight' | 'bounceInUp' | 'bounceOut' | 'bounceOutDown' | 'bounceOutLeft' | 'bounceOutRight' | 'bounceOutUp';
|
|
4
|
+
type fading = 'fadeIn' | 'fadeInBottomLeft' | 'fadeInBottomRight' | 'fadeInDown' | 'fadeInDownBig' | 'fadeInLeft' | 'fadeInLeftBig' | 'fadeInRight' | 'fadeInRightBig' | 'fadeInTopLeft' | 'fadeInTopRight' | 'fadeInUp' | 'fadeInUpBig' | 'fadeOut' | 'fadeOutBottomLeft' | 'fadeOutBottomRight' | 'fadeOutDown' | 'fadeOutDownBig' | 'fadeOutLeft' | 'fadeOutLeftBig' | 'fadeOutRight' | 'fadeOutRightBig' | 'fadeOutTopLeft' | 'fadeOutTopRight' | 'fadeOutUp' | 'fadeOutUpBig';
|
|
5
|
+
type flippers = 'flip' | 'flipInX' | 'flipInY' | 'flipOutX' | 'flipOutY';
|
|
6
|
+
type lightspeed = 'lightSpeedInLeft' | 'lightSpeedInRight' | 'lightSpeedOutLeft' | 'lightSpeedOutRight';
|
|
7
|
+
type rotating = 'rotateIn' | 'rotateInDownLeft' | 'rotateInDownRight' | 'rotateInUpLeft' | 'rotateInUpRight' | 'rotateOut' | 'rotateOutDownLeft' | 'rotateOutDownRight' | 'rotateOutUpLeft' | 'rotateOutUpRight';
|
|
8
|
+
type sliding = 'slideInDown' | 'slideInLeft' | 'slideInRight' | 'slideInUp' | 'slideOutDown' | 'slideOutLeft' | 'slideOutRight' | 'slideOutUp';
|
|
9
|
+
type specials = 'hinge' | 'jackInTheBox' | 'rollIn' | 'rollOut';
|
|
10
|
+
type zoom = 'zoomIn' | 'zoomInDown' | 'zoomInLeft' | 'zoomInRight' | 'zoomInUp' | 'zoomOut' | 'zoomOutDown' | 'zoomOutLeft' | 'zoomOutRight' | 'zoomOutUp';
|
|
11
|
+
export type ANIMATE_NAME = seekers | back | bouncing | fading | flippers | lightspeed | rotating | sliding | specials | zoom;
|
|
12
|
+
export declare function Animate(selector: any): (name: ANIMATE_NAME, duration: number, callback?: () => void) => void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { CSS } from "./animateModule/attention_seekers";
|
|
2
|
+
export * from "./animateModule/back_exits";
|
|
3
|
+
export * from "./animateModule/bouncing_entrances";
|
|
4
|
+
export * from "./animateModule/bouncing_exits";
|
|
5
|
+
export * from "./animateModule/fading_entrances";
|
|
6
|
+
export * from "./animateModule/fading_exits";
|
|
7
|
+
export * from "./animateModule/flippers";
|
|
8
|
+
export * from "./animateModule/lightspeed";
|
|
9
|
+
export * from "./animateModule/rotating_entrances";
|
|
10
|
+
export * from "./animateModule/rotating_exits";
|
|
11
|
+
export * from "./animateModule/sliding_entrances";
|
|
12
|
+
export * from "./animateModule/sliding_exits";
|
|
13
|
+
export * from "./animateModule/specials";
|
|
14
|
+
export * from "./animateModule/zooming_entrances";
|
|
15
|
+
export * from "./animateModule/zooming_exits";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function SetAttr(selector: any): (attrs: any, value?: string) => void;
|
|
2
|
+
export declare function RemoveAttr(selector: any): (attrs: any) => void;
|
|
3
|
+
export declare function GetAttr(selector: any): (attrs: any) => any;
|
|
4
|
+
export declare function ToggleAttr(selector: any): (attrs: any) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IOptionsValue {
|
|
2
|
+
url?: string;
|
|
3
|
+
type?: Array<string>;
|
|
4
|
+
replace?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class UrlHandler {
|
|
7
|
+
get(optionss?: IOptionsValue): {};
|
|
8
|
+
del(url: string): any;
|
|
9
|
+
replaceQSParams(search: string, key: string, val: any): string;
|
|
10
|
+
replaceUrlParams(urlStr: string, obj: Object): string;
|
|
11
|
+
compareUrlPath(url1: string, url2?: string): boolean;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class BodyScrollLocks {
|
|
2
|
+
constructor();
|
|
3
|
+
private hasPassiveEvents;
|
|
4
|
+
private isIosDevice;
|
|
5
|
+
private locks;
|
|
6
|
+
private documentListenerAdded;
|
|
7
|
+
private initialClientY;
|
|
8
|
+
private previousBodyOverflowSetting;
|
|
9
|
+
private previousBodyPaddingRight;
|
|
10
|
+
private isTargetElementTotallyScrolled;
|
|
11
|
+
private allowTouchMove;
|
|
12
|
+
private preventDefault;
|
|
13
|
+
private setOverflowHidden;
|
|
14
|
+
private restoreOverflowSetting;
|
|
15
|
+
private handleScroll;
|
|
16
|
+
disable(targetElement: any, options?: any): void;
|
|
17
|
+
clearAll(): void;
|
|
18
|
+
enable(targetElement: any): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Copy(text: any, callback?: any): void;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findParent(element: any, parentTagName: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getBase64(imgUrl: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hiddenProperty(callback?: () => void, error?: () => void): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AjaxOptions {
|
|
2
|
+
async?: boolean;
|
|
3
|
+
beforeSend?: (xhr: XMLHttpRequest) => void | boolean;
|
|
4
|
+
data?: any;
|
|
5
|
+
headers?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
9
|
+
responseType?: XMLHttpRequestResponseType;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
}
|
|
12
|
+
export default function HttpAjax(url: string, options?: AjaxOptions): Promise<XMLHttpRequest>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class LazyLoad {
|
|
2
|
+
OPTIONS: {
|
|
3
|
+
rootMargin: string;
|
|
4
|
+
threshold: number;
|
|
5
|
+
};
|
|
6
|
+
PRELOAD: number;
|
|
7
|
+
defaultRoot: Window & typeof globalThis;
|
|
8
|
+
DEFAULT_EVENTS: string[];
|
|
9
|
+
private mode;
|
|
10
|
+
private observer?;
|
|
11
|
+
private listeners;
|
|
12
|
+
listenEvents: string[];
|
|
13
|
+
constructor();
|
|
14
|
+
private supportIntersection;
|
|
15
|
+
private initIntersection;
|
|
16
|
+
private initEventTarget;
|
|
17
|
+
private addListenerTarget;
|
|
18
|
+
private setMode;
|
|
19
|
+
private observerCallback;
|
|
20
|
+
private eventCallback;
|
|
21
|
+
checkVisible(el: HTMLElement): boolean;
|
|
22
|
+
private isElement;
|
|
23
|
+
private getScrollParent;
|
|
24
|
+
add(el: HTMLImageElement, src: string, parent?: ParentNode | null): void;
|
|
25
|
+
remove(el: HTMLElement): void;
|
|
26
|
+
uninstall(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Pinyin(value: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Resize(selector: any): (callback: () => void) => void;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare class Pointer {
|
|
2
|
+
pageX: number;
|
|
3
|
+
pageY: number;
|
|
4
|
+
clientX: number;
|
|
5
|
+
clientY: number;
|
|
6
|
+
offsetX: number;
|
|
7
|
+
offsetY: number;
|
|
8
|
+
id: number;
|
|
9
|
+
nativePointer: Touch | PointerEvent | MouseEvent;
|
|
10
|
+
constructor(nativePointer: Touch | PointerEvent | MouseEvent);
|
|
11
|
+
getCoalesced(): Pointer[];
|
|
12
|
+
}
|
|
13
|
+
type PointerType = Pointer;
|
|
14
|
+
export { PointerType as Pointer };
|
|
15
|
+
export type InputEvent = TouchEvent | PointerEvent | MouseEvent;
|
|
16
|
+
type StartCallback = (pointer: Pointer, event: InputEvent) => boolean;
|
|
17
|
+
type MoveCallback = (previousPointers: Pointer[], changedPointers: Pointer[], event: InputEvent) => void;
|
|
18
|
+
type EndCallback = (pointer: Pointer, event: InputEvent, cancelled: boolean) => void;
|
|
19
|
+
interface PointerTrackerOptions {
|
|
20
|
+
start?: StartCallback;
|
|
21
|
+
move?: MoveCallback;
|
|
22
|
+
end?: EndCallback;
|
|
23
|
+
avoidPointerEvents?: boolean;
|
|
24
|
+
rawUpdates?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export default class PointerTracker {
|
|
27
|
+
private _element;
|
|
28
|
+
readonly startPointers: Pointer[];
|
|
29
|
+
readonly currentPointers: Pointer[];
|
|
30
|
+
private _startCallback;
|
|
31
|
+
private _moveCallback;
|
|
32
|
+
private _endCallback;
|
|
33
|
+
private _rawUpdates;
|
|
34
|
+
private _excludeFromButtonsCheck;
|
|
35
|
+
constructor(_element: HTMLElement, { start, move, end, rawUpdates, avoidPointerEvents, }?: PointerTrackerOptions);
|
|
36
|
+
stop(): void;
|
|
37
|
+
private _triggerPointerStart;
|
|
38
|
+
private _pointerStart;
|
|
39
|
+
private _touchStart;
|
|
40
|
+
private _move;
|
|
41
|
+
private _triggerPointerEnd;
|
|
42
|
+
private _pointerEnd;
|
|
43
|
+
private _touchEnd;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getOpacityColor(color: string, opacity: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function debounce(delay: any): (target: any, name: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ScrollLocks(target: any, name: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function timeout(delay: any): (target: any, name: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wait(target: any, name: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const evalEventHandleUtil: {
|
|
2
|
+
fnExpRE: RegExp;
|
|
3
|
+
fnInvokeRE: RegExp;
|
|
4
|
+
simplePathRE: RegExp;
|
|
5
|
+
eval2: typeof eval;
|
|
6
|
+
genHandler(handlerValue: any, otherparam: any): string;
|
|
7
|
+
evalFnStr(handleStr: any, $event: any): void;
|
|
8
|
+
hEval(val: any): any;
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const EventUtil: {
|
|
2
|
+
addHandler(element: any, type: string, handler: (ev: any) => void, options?: {
|
|
3
|
+
capture?: boolean;
|
|
4
|
+
once?: boolean;
|
|
5
|
+
passive?: boolean;
|
|
6
|
+
}): void;
|
|
7
|
+
removeHandler(element: any, type: string, handler: (ev: any) => void, options?: {
|
|
8
|
+
capture?: boolean;
|
|
9
|
+
passive?: boolean;
|
|
10
|
+
}): void;
|
|
11
|
+
onceHandler(element: any, type: string, handler: (ev: any) => void): void;
|
|
12
|
+
trigger(element: any, type: string, detail: any): void;
|
|
13
|
+
emitEvent(vm: any, eventName: any, ...args: any[]): void;
|
|
14
|
+
capitalize: (str: any) => any;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
array: any[];
|
|
3
|
+
indexs?: Ind;
|
|
4
|
+
logic?(previousValue: any, currentValue: any, index: any, array: any): void;
|
|
5
|
+
}
|
|
6
|
+
interface Ind {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
[index: number]: {
|
|
9
|
+
key: string;
|
|
10
|
+
value?: string | string[] | null;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
type Result = {
|
|
14
|
+
INDEX: any;
|
|
15
|
+
} & [];
|
|
16
|
+
export declare function ArrayIndex<T extends Result>(options: Options): T;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const debounceStart: (fn: any, delay?: number) => () => void;
|
|
2
|
+
export declare const debounceEnd: (fn: any, delay?: number) => () => void;
|
|
3
|
+
export declare const debounce: (fn: any, delay: any, immediate?: boolean) => () => void;
|
|
4
|
+
export declare const throttle: (fn: any, delay: any) => (...args: any) => void;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export declare class Gradient {
|
|
2
|
+
linear(value: string): void;
|
|
3
|
+
parse(value: string): void;
|
|
4
|
+
}
|
|
5
|
+
export declare class Gradients {
|
|
6
|
+
constructor(code: string);
|
|
7
|
+
input: any;
|
|
8
|
+
result: any;
|
|
9
|
+
tokens: {
|
|
10
|
+
linearGradient: RegExp;
|
|
11
|
+
repeatingLinearGradient: RegExp;
|
|
12
|
+
radialGradient: RegExp;
|
|
13
|
+
repeatingRadialGradient: RegExp;
|
|
14
|
+
sideOrCorner: RegExp;
|
|
15
|
+
extentKeywords: RegExp;
|
|
16
|
+
positionKeywords: RegExp;
|
|
17
|
+
pixelValue: RegExp;
|
|
18
|
+
percentageValue: RegExp;
|
|
19
|
+
emValue: RegExp;
|
|
20
|
+
angleValue: RegExp;
|
|
21
|
+
startCall: RegExp;
|
|
22
|
+
endCall: RegExp;
|
|
23
|
+
comma: RegExp;
|
|
24
|
+
hexColor: RegExp;
|
|
25
|
+
literalColor: RegExp;
|
|
26
|
+
rgbColor: RegExp;
|
|
27
|
+
rgbaColor: RegExp;
|
|
28
|
+
number: RegExp;
|
|
29
|
+
};
|
|
30
|
+
error(msg: any): void;
|
|
31
|
+
matchListDefinitions(): any;
|
|
32
|
+
matchListing(matcher: any): any;
|
|
33
|
+
matchDefinition(): any;
|
|
34
|
+
matchGradient(gradientType: any, pattern: any, orientationMatcher: any): any;
|
|
35
|
+
matchColorStop(): any;
|
|
36
|
+
matchColor(): any;
|
|
37
|
+
matchHexColor(): {
|
|
38
|
+
type: any;
|
|
39
|
+
value: any;
|
|
40
|
+
};
|
|
41
|
+
matchRGBAColor(): any;
|
|
42
|
+
matchLiteralColor(): {
|
|
43
|
+
type: any;
|
|
44
|
+
value: any;
|
|
45
|
+
};
|
|
46
|
+
matchNumber(): any;
|
|
47
|
+
matchRGBColor(): any;
|
|
48
|
+
matchLinearOrientation(): {
|
|
49
|
+
type: any;
|
|
50
|
+
value: any;
|
|
51
|
+
};
|
|
52
|
+
matchListRadialOrientations(): any;
|
|
53
|
+
matchSideOrCorner(): {
|
|
54
|
+
type: any;
|
|
55
|
+
value: any;
|
|
56
|
+
};
|
|
57
|
+
matchAngle(): {
|
|
58
|
+
type: any;
|
|
59
|
+
value: any;
|
|
60
|
+
};
|
|
61
|
+
matchCall(pattern: any, callback: any): any;
|
|
62
|
+
matchRadialOrientation(): any;
|
|
63
|
+
matchAtPosition(): {
|
|
64
|
+
type: string;
|
|
65
|
+
value: {
|
|
66
|
+
x: {
|
|
67
|
+
type: any;
|
|
68
|
+
value: any;
|
|
69
|
+
};
|
|
70
|
+
y: {
|
|
71
|
+
type: any;
|
|
72
|
+
value: any;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
matchPositioning(): {
|
|
77
|
+
type: string;
|
|
78
|
+
value: {
|
|
79
|
+
x: {
|
|
80
|
+
type: any;
|
|
81
|
+
value: any;
|
|
82
|
+
};
|
|
83
|
+
y: {
|
|
84
|
+
type: any;
|
|
85
|
+
value: any;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
matchCoordinates(): {
|
|
90
|
+
x: {
|
|
91
|
+
type: any;
|
|
92
|
+
value: any;
|
|
93
|
+
};
|
|
94
|
+
y: {
|
|
95
|
+
type: any;
|
|
96
|
+
value: any;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
matchDistance(): {
|
|
100
|
+
type: any;
|
|
101
|
+
value: any;
|
|
102
|
+
};
|
|
103
|
+
matchLength(): {
|
|
104
|
+
type: any;
|
|
105
|
+
value: any;
|
|
106
|
+
};
|
|
107
|
+
matchPositionKeyword(): {
|
|
108
|
+
type: any;
|
|
109
|
+
value: any;
|
|
110
|
+
};
|
|
111
|
+
matchExtentKeyword(): {
|
|
112
|
+
type: any;
|
|
113
|
+
value: any;
|
|
114
|
+
};
|
|
115
|
+
scan(regexp: any): any;
|
|
116
|
+
consume(size: any): void;
|
|
117
|
+
match(type: any, pattern: any, captureIndex: any): {
|
|
118
|
+
type: any;
|
|
119
|
+
value: any;
|
|
120
|
+
};
|
|
121
|
+
matchCircle(): {
|
|
122
|
+
type: any;
|
|
123
|
+
value: any;
|
|
124
|
+
};
|
|
125
|
+
matchEllipse(): {
|
|
126
|
+
type: any;
|
|
127
|
+
value: any;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function HSVaColor(h?: number, s?: number, v?: number, a?: number): {
|
|
2
|
+
h: number;
|
|
3
|
+
s: number;
|
|
4
|
+
v: number;
|
|
5
|
+
a: number;
|
|
6
|
+
toHSVA(): number[];
|
|
7
|
+
toHSLA(): any[];
|
|
8
|
+
toRGBA(): any[];
|
|
9
|
+
toCMYK(): any;
|
|
10
|
+
toHEXA(): any;
|
|
11
|
+
clone: () => any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
export declare enum KeyCodes {
|
|
2
|
+
alt = 18,
|
|
3
|
+
arrowDown = 40,
|
|
4
|
+
arrowLeft = 37,
|
|
5
|
+
arrowRight = 39,
|
|
6
|
+
arrowUp = 38,
|
|
7
|
+
back = 8,
|
|
8
|
+
backSlash = 220,
|
|
9
|
+
break = 19,
|
|
10
|
+
capsLock = 20,
|
|
11
|
+
closeBracket = 221,
|
|
12
|
+
colon = 186,
|
|
13
|
+
colon2 = 59,
|
|
14
|
+
comma = 188,
|
|
15
|
+
ctrl = 17,
|
|
16
|
+
delete = 46,
|
|
17
|
+
end = 35,
|
|
18
|
+
enter = 13,
|
|
19
|
+
equals = 187,
|
|
20
|
+
equals2 = 61,
|
|
21
|
+
equals3 = 107,
|
|
22
|
+
escape = 27,
|
|
23
|
+
forwardSlash = 191,
|
|
24
|
+
function1 = 112,
|
|
25
|
+
function10 = 121,
|
|
26
|
+
function11 = 122,
|
|
27
|
+
function12 = 123,
|
|
28
|
+
function2 = 113,
|
|
29
|
+
function3 = 114,
|
|
30
|
+
function4 = 115,
|
|
31
|
+
function5 = 116,
|
|
32
|
+
function6 = 117,
|
|
33
|
+
function7 = 118,
|
|
34
|
+
function8 = 119,
|
|
35
|
+
function9 = 120,
|
|
36
|
+
home = 36,
|
|
37
|
+
insert = 45,
|
|
38
|
+
menu = 93,
|
|
39
|
+
minus = 189,
|
|
40
|
+
minus2 = 109,
|
|
41
|
+
numLock = 144,
|
|
42
|
+
numPad0 = 96,
|
|
43
|
+
numPad1 = 97,
|
|
44
|
+
numPad2 = 98,
|
|
45
|
+
numPad3 = 99,
|
|
46
|
+
numPad4 = 100,
|
|
47
|
+
numPad5 = 101,
|
|
48
|
+
numPad6 = 102,
|
|
49
|
+
numPad7 = 103,
|
|
50
|
+
numPad8 = 104,
|
|
51
|
+
numPad9 = 105,
|
|
52
|
+
numPadDivide = 111,
|
|
53
|
+
numPadDot = 110,
|
|
54
|
+
numPadMinus = 109,
|
|
55
|
+
numPadMultiply = 106,
|
|
56
|
+
numPadPlus = 107,
|
|
57
|
+
openBracket = 219,
|
|
58
|
+
pageDown = 34,
|
|
59
|
+
pageUp = 33,
|
|
60
|
+
period = 190,
|
|
61
|
+
print = 44,
|
|
62
|
+
quote = 222,
|
|
63
|
+
scrollLock = 145,
|
|
64
|
+
shift = 16,
|
|
65
|
+
space = 32,
|
|
66
|
+
tab = 9,
|
|
67
|
+
tilde = 192,
|
|
68
|
+
windowsLeft = 91,
|
|
69
|
+
windowsOpera = 219,
|
|
70
|
+
windowsRight = 92
|
|
71
|
+
}
|
|
72
|
+
export declare const keyCodeAlt: number;
|
|
73
|
+
export declare const keyCodeArrowDown: number;
|
|
74
|
+
export declare const keyCodeArrowLeft: number;
|
|
75
|
+
export declare const keyCodeArrowRight: number;
|
|
76
|
+
export declare const keyCodeArrowUp: number;
|
|
77
|
+
export declare const keyCodeBack: number;
|
|
78
|
+
export declare const keyCodeBackSlash: number;
|
|
79
|
+
export declare const keyCodeBreak: number;
|
|
80
|
+
export declare const keyCodeCapsLock: number;
|
|
81
|
+
export declare const keyCodeCloseBracket: number;
|
|
82
|
+
export declare const keyCodeColon: number;
|
|
83
|
+
export declare const keyCodeColon2: number;
|
|
84
|
+
export declare const keyCodeComma: number;
|
|
85
|
+
export declare const keyCodeCtrl: number;
|
|
86
|
+
export declare const keyCodeDelete: number;
|
|
87
|
+
export declare const keyCodeEnd: number;
|
|
88
|
+
export declare const keyCodeEnter: number;
|
|
89
|
+
export declare const keyCodeEquals: number;
|
|
90
|
+
export declare const keyCodeEquals2: number;
|
|
91
|
+
export declare const keyCodeEquals3: number;
|
|
92
|
+
export declare const keyCodeEscape: number;
|
|
93
|
+
export declare const keyCodeForwardSlash: number;
|
|
94
|
+
export declare const keyCodeFunction1: number;
|
|
95
|
+
export declare const keyCodeFunction10: number;
|
|
96
|
+
export declare const keyCodeFunction11: number;
|
|
97
|
+
export declare const keyCodeFunction12: number;
|
|
98
|
+
export declare const keyCodeFunction2: number;
|
|
99
|
+
export declare const keyCodeFunction3: number;
|
|
100
|
+
export declare const keyCodeFunction4: number;
|
|
101
|
+
export declare const keyCodeFunction5: number;
|
|
102
|
+
export declare const keyCodeFunction6: number;
|
|
103
|
+
export declare const keyCodeFunction7: number;
|
|
104
|
+
export declare const keyCodeFunction8: number;
|
|
105
|
+
export declare const keyCodeFunction9: number;
|
|
106
|
+
export declare const keyCodeHome: number;
|
|
107
|
+
export declare const keyCodeInsert: number;
|
|
108
|
+
export declare const keyCodeMenu: number;
|
|
109
|
+
export declare const keyCodeMinus: number;
|
|
110
|
+
export declare const keyCodeMinus2: number;
|
|
111
|
+
export declare const keyCodeNumLock: number;
|
|
112
|
+
export declare const keyCodeNumPad0: number;
|
|
113
|
+
export declare const keyCodeNumPad1: number;
|
|
114
|
+
export declare const keyCodeNumPad2: number;
|
|
115
|
+
export declare const keyCodeNumPad3: number;
|
|
116
|
+
export declare const keyCodeNumPad4: number;
|
|
117
|
+
export declare const keyCodeNumPad5: number;
|
|
118
|
+
export declare const keyCodeNumPad6: number;
|
|
119
|
+
export declare const keyCodeNumPad7: number;
|
|
120
|
+
export declare const keyCodeNumPad8: number;
|
|
121
|
+
export declare const keyCodeNumPad9: number;
|
|
122
|
+
export declare const keyCodeNumPadDivide: number;
|
|
123
|
+
export declare const keyCodeNumPadDot: number;
|
|
124
|
+
export declare const keyCodeNumPadMinus: number;
|
|
125
|
+
export declare const keyCodeNumPadMultiply: number;
|
|
126
|
+
export declare const keyCodeNumPadPlus: number;
|
|
127
|
+
export declare const keyCodeOpenBracket: number;
|
|
128
|
+
export declare const keyCodePageDown: number;
|
|
129
|
+
export declare const keyCodePageUp: number;
|
|
130
|
+
export declare const keyCodePeriod: number;
|
|
131
|
+
export declare const keyCodePrint: number;
|
|
132
|
+
export declare const keyCodeQuote: number;
|
|
133
|
+
export declare const keyCodeScrollLock: number;
|
|
134
|
+
export declare const keyCodeShift: number;
|
|
135
|
+
export declare const keyCodeSpace: number;
|
|
136
|
+
export declare const keyCodeTab: number;
|
|
137
|
+
export declare const keyCodeTilde: number;
|
|
138
|
+
export declare const keyCodeWindowsLeft: number;
|
|
139
|
+
export declare const keyCodeWindowsOpera: number;
|
|
140
|
+
export declare const keyCodeWindowsRight: number;
|
|
141
|
+
export declare const keyArrowDown: "ArrowDown";
|
|
142
|
+
export declare const keyArrowLeft: "ArrowLeft";
|
|
143
|
+
export declare const keyArrowRight: "ArrowRight";
|
|
144
|
+
export declare const keyArrowUp: "ArrowUp";
|
|
145
|
+
export declare const keyEnter: "Enter";
|
|
146
|
+
export declare const keyEscape: "Escape";
|
|
147
|
+
export declare const keyHome: "Home";
|
|
148
|
+
export declare const keyEnd: "End";
|
|
149
|
+
export declare const keyFunction2: "F2";
|
|
150
|
+
export declare const keyPageDown: "PageDown";
|
|
151
|
+
export declare const keyPageUp: "PageUp";
|
|
152
|
+
export declare const keySpace: " ";
|
|
153
|
+
export declare const keyTab: "Tab";
|
|
154
|
+
export declare const keyBackspace: "Backspace";
|
|
155
|
+
export declare const keyDelete: "Delete";
|
|
156
|
+
export declare const ArrowKeys: {
|
|
157
|
+
readonly ArrowDown: "ArrowDown";
|
|
158
|
+
readonly ArrowLeft: "ArrowLeft";
|
|
159
|
+
readonly ArrowRight: "ArrowRight";
|
|
160
|
+
readonly ArrowUp: "ArrowUp";
|
|
161
|
+
};
|
|
162
|
+
export declare type ArrowKeys = typeof ArrowKeys[keyof typeof ArrowKeys];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Calc {
|
|
2
|
+
private static _instance;
|
|
3
|
+
static get instance(): Calc;
|
|
4
|
+
add(num1: number, num2: number): number;
|
|
5
|
+
sub(num1: number, num2: number): number;
|
|
6
|
+
div(num1: number, num2: number): number;
|
|
7
|
+
mul(num1: number, num2: number): number;
|
|
8
|
+
private countDecimals;
|
|
9
|
+
private convertToInt;
|
|
10
|
+
private getCorrectResult;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Freeze(obj: any): void;
|