@stemy/ngx-utils 10.2.44 → 10.3.3
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 +27 -27
- package/bundles/stemy-ngx-utils.umd.js +5654 -5640
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +111 -111
- package/esm2015/ngx-utils/components/dynamic-table/dynamic-table.component.js +139 -139
- package/esm2015/ngx-utils/components/pagination-menu/pagination-menu.component.js +96 -96
- package/esm2015/ngx-utils/components/unordered-list/unordered-list.component.js +51 -51
- package/esm2015/ngx-utils/directives/async-method.directive.js +58 -58
- package/esm2015/ngx-utils/directives/background.directive.js +51 -51
- package/esm2015/ngx-utils/directives/dynamic-table-template.directive.js +19 -19
- package/esm2015/ngx-utils/directives/global-template.directive.js +27 -27
- package/esm2015/ngx-utils/directives/icon.directive.js +59 -59
- package/esm2015/ngx-utils/directives/ngx-template-outlet.directive.js +88 -88
- package/esm2015/ngx-utils/directives/pagination-item.directive.js +33 -33
- package/esm2015/ngx-utils/directives/pagination.directive.js +76 -71
- package/esm2015/ngx-utils/directives/resource-if.directive.js +51 -51
- package/esm2015/ngx-utils/directives/sticky-class.directive.js +35 -35
- package/esm2015/ngx-utils/directives/sticky.directive.js +48 -48
- package/esm2015/ngx-utils/directives/unordered-list-item.directive.js +70 -70
- package/esm2015/ngx-utils/directives/unordered-list-template.directive.js +26 -26
- package/esm2015/ngx-utils/ngx-utils.module.js +232 -232
- package/esm2015/ngx-utils/pipes/chunk.pipe.js +21 -21
- package/esm2015/ngx-utils/pipes/entries.pipe.js +24 -24
- package/esm2015/ngx-utils/pipes/extra-item-properties.pipe.js +27 -27
- package/esm2015/ngx-utils/pipes/filter.pipe.js +38 -38
- package/esm2015/ngx-utils/pipes/find.pipe.js +25 -25
- package/esm2015/ngx-utils/pipes/format-number.pipe.js +19 -19
- package/esm2015/ngx-utils/pipes/get-offset.pipe.js +13 -13
- package/esm2015/ngx-utils/pipes/get-type.pipe.js +12 -12
- package/esm2015/ngx-utils/pipes/global-template.pipe.js +35 -35
- package/esm2015/ngx-utils/pipes/group-by.pipe.js +23 -23
- package/esm2015/ngx-utils/pipes/is-type.pipe.js +12 -12
- package/esm2015/ngx-utils/pipes/join.pipe.js +15 -15
- package/esm2015/ngx-utils/pipes/keys.pipe.js +18 -18
- package/esm2015/ngx-utils/pipes/map.pipe.js +25 -25
- package/esm2015/ngx-utils/pipes/max.pipe.js +22 -22
- package/esm2015/ngx-utils/pipes/min.pipe.js +22 -22
- package/esm2015/ngx-utils/pipes/reduce.pipe.js +26 -26
- package/esm2015/ngx-utils/pipes/remap.pipe.js +28 -28
- package/esm2015/ngx-utils/pipes/replace.pipe.js +12 -12
- package/esm2015/ngx-utils/pipes/reverse.pipe.js +20 -20
- package/esm2015/ngx-utils/pipes/round.pipe.js +19 -19
- package/esm2015/ngx-utils/pipes/safe-html.pipe.js +32 -32
- package/esm2015/ngx-utils/pipes/translate.pipe.js +81 -81
- package/esm2015/ngx-utils/pipes/values.pipe.js +18 -18
- package/esm2015/ngx-utils/plugins/resize-event.plugin.js +59 -59
- package/esm2015/ngx-utils/plugins/scroll-event.plugin.js +52 -52
- package/esm2015/ngx-utils/services/acl.service.js +78 -78
- package/esm2015/ngx-utils/services/api.service.js +35 -35
- package/esm2015/ngx-utils/services/auth.service.js +14 -14
- package/esm2015/ngx-utils/services/base-http.client.js +46 -46
- package/esm2015/ngx-utils/services/base-http.service.js +274 -274
- package/esm2015/ngx-utils/services/config.service.js +95 -95
- package/esm2015/ngx-utils/services/error-handler.service.js +49 -49
- package/esm2015/ngx-utils/services/events.service.js +24 -24
- package/esm2015/ngx-utils/services/formatter.service.js +44 -44
- package/esm2015/ngx-utils/services/global-template.service.js +35 -35
- package/esm2015/ngx-utils/services/icon.service.js +24 -24
- package/esm2015/ngx-utils/services/language.service.js +117 -117
- package/esm2015/ngx-utils/services/open-api.service.js +41 -41
- package/esm2015/ngx-utils/services/promise.service.js +49 -49
- package/esm2015/ngx-utils/services/state.service.js +143 -143
- package/esm2015/ngx-utils/services/static-language.service.js +144 -144
- package/esm2015/ngx-utils/services/storage.service.js +48 -48
- package/esm2015/ngx-utils/services/toaster.service.js +29 -29
- package/esm2015/ngx-utils/services/translated-url.serializer.js +70 -70
- package/esm2015/ngx-utils/services/universal.service.js +73 -73
- package/esm2015/ngx-utils/utils/ajax-request-handler.js +40 -40
- package/esm2015/ngx-utils/utils/array.utils.js +100 -90
- package/esm2015/ngx-utils/utils/auth.guard.js +153 -153
- package/esm2015/ngx-utils/utils/canvas.utils.js +388 -388
- package/esm2015/ngx-utils/utils/date.utils.js +28 -28
- package/esm2015/ngx-utils/utils/file.utils.js +90 -90
- package/esm2015/ngx-utils/utils/generic-value.js +20 -20
- package/esm2015/ngx-utils/utils/geometry.js +132 -132
- package/esm2015/ngx-utils/utils/initializer.js +17 -17
- package/esm2015/ngx-utils/utils/loader.utils.js +55 -55
- package/esm2015/ngx-utils/utils/math.utils.js +15 -15
- package/esm2015/ngx-utils/utils/object.utils.js +248 -248
- package/esm2015/ngx-utils/utils/observable.utils.js +63 -63
- package/esm2015/ngx-utils/utils/reflect.utils.js +33 -33
- package/esm2015/ngx-utils/utils/set.utils.js +20 -20
- package/esm2015/ngx-utils/utils/string.utils.js +28 -28
- package/esm2015/ngx-utils/utils/timer.utils.js +52 -52
- package/esm2015/ngx-utils/utils/unique.utils.js +24 -24
- package/esm2015/ngx-utils/utils/vector.js +77 -77
- package/esm2015/public_api.js +83 -83
- package/esm2015/stemy-ngx-utils.js +7 -7
- package/fesm2015/stemy-ngx-utils.js +4552 -4537
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +284 -284
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +43 -43
- package/ngx-utils/components/pagination-menu/pagination-menu.component.d.ts +28 -28
- package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +22 -22
- package/ngx-utils/directives/async-method.directive.d.ts +16 -16
- package/ngx-utils/directives/background.directive.d.ts +14 -14
- package/ngx-utils/directives/dynamic-table-template.directive.d.ts +8 -8
- package/ngx-utils/directives/global-template.directive.d.ts +10 -10
- package/ngx-utils/directives/icon.directive.d.ts +20 -20
- package/ngx-utils/directives/ngx-template-outlet.directive.d.ts +14 -14
- package/ngx-utils/directives/pagination-item.directive.d.ts +12 -12
- package/ngx-utils/directives/pagination.directive.d.ts +22 -21
- package/ngx-utils/directives/resource-if.directive.d.ts +16 -16
- package/ngx-utils/directives/sticky-class.directive.d.ts +12 -12
- package/ngx-utils/directives/sticky.directive.d.ts +16 -16
- package/ngx-utils/directives/unordered-list-item.directive.d.ts +25 -25
- package/ngx-utils/directives/unordered-list-template.directive.d.ts +10 -10
- package/ngx-utils/ngx-utils.module.d.ts +76 -76
- package/ngx-utils/pipes/chunk.pipe.d.ts +4 -4
- package/ngx-utils/pipes/entries.pipe.d.ts +9 -9
- package/ngx-utils/pipes/extra-item-properties.pipe.d.ts +5 -5
- package/ngx-utils/pipes/filter.pipe.d.ts +5 -5
- package/ngx-utils/pipes/find.pipe.d.ts +5 -5
- package/ngx-utils/pipes/format-number.pipe.d.ts +7 -7
- package/ngx-utils/pipes/get-offset.pipe.d.ts +4 -4
- package/ngx-utils/pipes/get-type.pipe.d.ts +4 -4
- package/ngx-utils/pipes/global-template.pipe.d.ts +13 -13
- package/ngx-utils/pipes/group-by.pipe.d.ts +5 -5
- package/ngx-utils/pipes/is-type.pipe.d.ts +4 -4
- package/ngx-utils/pipes/join.pipe.d.ts +4 -4
- package/ngx-utils/pipes/keys.pipe.d.ts +4 -4
- package/ngx-utils/pipes/map.pipe.d.ts +5 -5
- package/ngx-utils/pipes/max.pipe.d.ts +4 -4
- package/ngx-utils/pipes/min.pipe.d.ts +4 -4
- package/ngx-utils/pipes/reduce.pipe.d.ts +5 -5
- package/ngx-utils/pipes/remap.pipe.d.ts +4 -4
- package/ngx-utils/pipes/replace.pipe.d.ts +4 -4
- package/ngx-utils/pipes/reverse.pipe.d.ts +4 -4
- package/ngx-utils/pipes/round.pipe.d.ts +7 -7
- package/ngx-utils/pipes/safe-html.pipe.d.ts +7 -7
- package/ngx-utils/pipes/translate.pipe.d.ts +15 -15
- package/ngx-utils/pipes/values.pipe.d.ts +4 -4
- package/ngx-utils/plugins/resize-event.plugin.d.ts +10 -10
- package/ngx-utils/plugins/scroll-event.plugin.d.ts +11 -11
- package/ngx-utils/services/acl.service.d.ts +12 -12
- package/ngx-utils/services/api.service.d.ts +14 -14
- package/ngx-utils/services/auth.service.d.ts +8 -8
- package/ngx-utils/services/base-http.client.d.ts +12 -12
- package/ngx-utils/services/base-http.service.d.ts +42 -42
- package/ngx-utils/services/config.service.d.ts +21 -21
- package/ngx-utils/services/error-handler.service.d.ts +10 -10
- package/ngx-utils/services/events.service.d.ts +11 -11
- package/ngx-utils/services/formatter.service.d.ts +12 -12
- package/ngx-utils/services/global-template.service.d.ts +16 -16
- package/ngx-utils/services/icon.service.d.ts +10 -10
- package/ngx-utils/services/language.service.d.ts +18 -18
- package/ngx-utils/services/open-api.service.d.ts +8 -8
- package/ngx-utils/services/promise.service.d.ts +15 -15
- package/ngx-utils/services/state.service.d.ts +41 -41
- package/ngx-utils/services/static-language.service.d.ts +41 -41
- package/ngx-utils/services/storage.service.d.ts +12 -12
- package/ngx-utils/services/toaster.service.d.ts +10 -10
- package/ngx-utils/services/translated-url.serializer.d.ts +16 -16
- package/ngx-utils/services/universal.service.d.ts +24 -24
- package/ngx-utils/utils/ajax-request-handler.d.ts +11 -11
- package/ngx-utils/utils/array.utils.d.ts +10 -9
- package/ngx-utils/utils/auth.guard.d.ts +26 -26
- package/ngx-utils/utils/canvas.utils.d.ts +13 -13
- package/ngx-utils/utils/date.utils.d.ts +8 -8
- package/ngx-utils/utils/file.utils.d.ts +14 -14
- package/ngx-utils/utils/generic-value.d.ts +8 -8
- package/ngx-utils/utils/geometry.d.ts +50 -50
- package/ngx-utils/utils/initializer.d.ts +11 -11
- package/ngx-utils/utils/loader.utils.d.ts +7 -7
- package/ngx-utils/utils/math.utils.d.ts +5 -5
- package/ngx-utils/utils/object.utils.d.ts +31 -31
- package/ngx-utils/utils/observable.utils.d.ts +12 -12
- package/ngx-utils/utils/reflect.utils.d.ts +9 -9
- package/ngx-utils/utils/set.utils.d.ts +4 -4
- package/ngx-utils/utils/string.utils.d.ts +7 -7
- package/ngx-utils/utils/timer.utils.d.ts +6 -6
- package/ngx-utils/utils/unique.utils.d.ts +5 -5
- package/ngx-utils/utils/vector.d.ts +23 -23
- package/package.json +1 -1
- package/public_api.d.ts +82 -82
- package/stemy-ngx-utils.d.ts +6 -6
- package/stemy-ngx-utils.metadata.json +1 -1
- package/tools/circular.js +116 -116
- package/tools/config.js +78 -78
- package/tools/icons.js +13 -13
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { DeviceDetectorService, DeviceInfo } from "ngx-device-detector";
|
|
2
|
-
/**
|
|
3
|
-
* Use this service to determine which is the current environment
|
|
4
|
-
*/
|
|
5
|
-
export declare class UniversalService {
|
|
6
|
-
private platformId;
|
|
7
|
-
private dds;
|
|
8
|
-
get isBrowser(): boolean;
|
|
9
|
-
get isServer(): boolean;
|
|
10
|
-
get deviceInfo(): DeviceInfo;
|
|
11
|
-
get browserName(): string;
|
|
12
|
-
get browserVersion(): string;
|
|
13
|
-
get isExplorer(): boolean;
|
|
14
|
-
get isEdge(): boolean;
|
|
15
|
-
get isChrome(): boolean;
|
|
16
|
-
get isFirefox(): boolean;
|
|
17
|
-
get isSafari(): boolean;
|
|
18
|
-
get isTablet(): boolean;
|
|
19
|
-
get isMobile(): boolean;
|
|
20
|
-
get isDesktop(): boolean;
|
|
21
|
-
get isCrawler(): boolean;
|
|
22
|
-
private readonly crawler;
|
|
23
|
-
constructor(platformId: string, dds: DeviceDetectorService);
|
|
24
|
-
}
|
|
1
|
+
import { DeviceDetectorService, DeviceInfo } from "ngx-device-detector";
|
|
2
|
+
/**
|
|
3
|
+
* Use this service to determine which is the current environment
|
|
4
|
+
*/
|
|
5
|
+
export declare class UniversalService {
|
|
6
|
+
private platformId;
|
|
7
|
+
private dds;
|
|
8
|
+
get isBrowser(): boolean;
|
|
9
|
+
get isServer(): boolean;
|
|
10
|
+
get deviceInfo(): DeviceInfo;
|
|
11
|
+
get browserName(): string;
|
|
12
|
+
get browserVersion(): string;
|
|
13
|
+
get isExplorer(): boolean;
|
|
14
|
+
get isEdge(): boolean;
|
|
15
|
+
get isChrome(): boolean;
|
|
16
|
+
get isFirefox(): boolean;
|
|
17
|
+
get isSafari(): boolean;
|
|
18
|
+
get isTablet(): boolean;
|
|
19
|
+
get isMobile(): boolean;
|
|
20
|
+
get isDesktop(): boolean;
|
|
21
|
+
get isCrawler(): boolean;
|
|
22
|
+
private readonly crawler;
|
|
23
|
+
constructor(platformId: string, dds: DeviceDetectorService);
|
|
24
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AjaxRequestCallback } from "../common-types";
|
|
2
|
-
export declare class AjaxRequestHandler {
|
|
3
|
-
private pattern;
|
|
4
|
-
private callback;
|
|
5
|
-
private static isOverridden;
|
|
6
|
-
params: any;
|
|
7
|
-
constructor(pattern: RegExp, callback: AjaxRequestCallback);
|
|
8
|
-
listen(): AjaxRequestHandler;
|
|
9
|
-
forget(): AjaxRequestHandler;
|
|
10
|
-
private listener;
|
|
11
|
-
}
|
|
1
|
+
import { AjaxRequestCallback } from "../common-types";
|
|
2
|
+
export declare class AjaxRequestHandler {
|
|
3
|
+
private pattern;
|
|
4
|
+
private callback;
|
|
5
|
+
private static isOverridden;
|
|
6
|
+
params: any;
|
|
7
|
+
constructor(pattern: RegExp, callback: AjaxRequestCallback);
|
|
8
|
+
listen(): AjaxRequestHandler;
|
|
9
|
+
forget(): AjaxRequestHandler;
|
|
10
|
+
private listener;
|
|
11
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export declare class ArrayUtils {
|
|
2
|
-
static has(arr: any[], ...items: any[]): boolean;
|
|
3
|
-
static match(arr: any[], str: string): boolean;
|
|
4
|
-
static any(arr:
|
|
5
|
-
static move(arr:
|
|
6
|
-
static reversed(arr: any[]): any[];
|
|
7
|
-
static min(arr:
|
|
8
|
-
static max(arr:
|
|
9
|
-
|
|
1
|
+
export declare class ArrayUtils {
|
|
2
|
+
static has(arr: any[], ...items: any[]): boolean;
|
|
3
|
+
static match(arr: any[], str: string): boolean;
|
|
4
|
+
static any<T>(arr: T[], cb: (item: T) => boolean): boolean;
|
|
5
|
+
static move<T>(arr: T[], oldIndex: number, newIndex: number): T[];
|
|
6
|
+
static reversed(arr: any[]): any[];
|
|
7
|
+
static min<T>(arr: T[], cb: (item: T, index?: number) => number): number;
|
|
8
|
+
static max<T>(arr: T[], cb: (item: T, index?: number) => number): number;
|
|
9
|
+
static chunk<T>(arr: T[], size: number): Array<T[]>;
|
|
10
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
2
|
-
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlSegment } from "@angular/router";
|
|
3
|
-
import { IAuthService, IRoute, RouteValidator } from "../common-types";
|
|
4
|
-
import { StateService } from "../services/state.service";
|
|
5
|
-
export declare class AuthGuard implements CanActivate {
|
|
6
|
-
readonly injector: Injector;
|
|
7
|
-
readonly state: StateService;
|
|
8
|
-
readonly auth: IAuthService;
|
|
9
|
-
static guardAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
10
|
-
static guardNotAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
11
|
-
static guardNothing(): Promise<boolean>;
|
|
12
|
-
static guardAuthField(auth: IAuthService, expression?: string): RouteValidator;
|
|
13
|
-
static guardStateField(state: StateService, expression?: string): RouteValidator;
|
|
14
|
-
static guardAuthStateField(auth: IAuthService, state: StateService, expression?: string): RouteValidator;
|
|
15
|
-
static wildRouteMatch(segments: UrlSegment[]): {
|
|
16
|
-
consumed: UrlSegment[];
|
|
17
|
-
};
|
|
18
|
-
static noRouteMatch(): any;
|
|
19
|
-
constructor(injector: Injector, state: StateService, auth: IAuthService);
|
|
20
|
-
checkRouteMenu(route: IRoute): Promise<boolean>;
|
|
21
|
-
checkRoute(route: IRoute, next?: ActivatedRouteSnapshot): Promise<boolean>;
|
|
22
|
-
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean>;
|
|
23
|
-
getReturnState(route: IRoute): Promise<string[]>;
|
|
24
|
-
private getReturnStateRecursive;
|
|
25
|
-
private getConfig;
|
|
26
|
-
}
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
2
|
+
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlSegment } from "@angular/router";
|
|
3
|
+
import { IAuthService, IRoute, RouteValidator } from "../common-types";
|
|
4
|
+
import { StateService } from "../services/state.service";
|
|
5
|
+
export declare class AuthGuard implements CanActivate {
|
|
6
|
+
readonly injector: Injector;
|
|
7
|
+
readonly state: StateService;
|
|
8
|
+
readonly auth: IAuthService;
|
|
9
|
+
static guardAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
10
|
+
static guardNotAuthenticated(auth: IAuthService): Promise<boolean>;
|
|
11
|
+
static guardNothing(): Promise<boolean>;
|
|
12
|
+
static guardAuthField(auth: IAuthService, expression?: string): RouteValidator;
|
|
13
|
+
static guardStateField(state: StateService, expression?: string): RouteValidator;
|
|
14
|
+
static guardAuthStateField(auth: IAuthService, state: StateService, expression?: string): RouteValidator;
|
|
15
|
+
static wildRouteMatch(segments: UrlSegment[]): {
|
|
16
|
+
consumed: UrlSegment[];
|
|
17
|
+
};
|
|
18
|
+
static noRouteMatch(): any;
|
|
19
|
+
constructor(injector: Injector, state: StateService, auth: IAuthService);
|
|
20
|
+
checkRouteMenu(route: IRoute): Promise<boolean>;
|
|
21
|
+
checkRoute(route: IRoute, next?: ActivatedRouteSnapshot): Promise<boolean>;
|
|
22
|
+
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean>;
|
|
23
|
+
getReturnState(route: IRoute): Promise<string[]>;
|
|
24
|
+
private getReturnStateRecursive;
|
|
25
|
+
private getConfig;
|
|
26
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CanvasColor } from "../common-types";
|
|
2
|
-
export declare class CanvasUtils {
|
|
3
|
-
static manipulatePixels(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, colorTransformer: (color: CanvasColor, greyscale?: number) => CanvasColor): void;
|
|
4
|
-
static thresholding(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, threshold: number, colorTransformer: (color: CanvasColor, limit: boolean, greyscale?: number) => CanvasColor): void;
|
|
5
|
-
static stackBlur(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, radius?: number): void;
|
|
6
|
-
static measureTextFontSize(maxWidth: number, maxHeight: number, lines: string[], font: string, lineHeightPercent?: number, canvas?: HTMLCanvasElement): number;
|
|
7
|
-
static drawLines(context: CanvasRenderingContext2D, lines: string[], font: string, size: number, lineHeightPercent?: number, align?: string, baseLine?: string, x?: number, y?: number): number;
|
|
8
|
-
static wrapText(context: CanvasRenderingContext2D, text: string, x: number, y: number, maxWidth: number): void;
|
|
9
|
-
static setFontProps(context: CanvasRenderingContext2D, font: string, fontSize: number, align?: string, baseLine?: string): void;
|
|
10
|
-
private static getTextWidth;
|
|
11
|
-
private static getTextBitmapHeight;
|
|
12
|
-
private static halveValidateFontSize;
|
|
13
|
-
}
|
|
1
|
+
import { CanvasColor } from "../common-types";
|
|
2
|
+
export declare class CanvasUtils {
|
|
3
|
+
static manipulatePixels(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, colorTransformer: (color: CanvasColor, greyscale?: number) => CanvasColor): void;
|
|
4
|
+
static thresholding(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, threshold: number, colorTransformer: (color: CanvasColor, limit: boolean, greyscale?: number) => CanvasColor): void;
|
|
5
|
+
static stackBlur(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, radius?: number): void;
|
|
6
|
+
static measureTextFontSize(maxWidth: number, maxHeight: number, lines: string[], font: string, lineHeightPercent?: number, canvas?: HTMLCanvasElement): number;
|
|
7
|
+
static drawLines(context: CanvasRenderingContext2D, lines: string[], font: string, size: number, lineHeightPercent?: number, align?: string, baseLine?: string, x?: number, y?: number): number;
|
|
8
|
+
static wrapText(context: CanvasRenderingContext2D, text: string, x: number, y: number, maxWidth: number): void;
|
|
9
|
+
static setFontProps(context: CanvasRenderingContext2D, font: string, fontSize: number, align?: string, baseLine?: string): void;
|
|
10
|
+
private static getTextWidth;
|
|
11
|
+
private static getTextBitmapHeight;
|
|
12
|
+
private static halveValidateFontSize;
|
|
13
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DurationInputArg1, DurationInputArg2 } from "moment";
|
|
2
|
-
export declare class DateUtils {
|
|
3
|
-
static isHoliday(date: Date): boolean;
|
|
4
|
-
static isBusinessDay(date: Date): boolean;
|
|
5
|
-
static add(date: Date, amount?: DurationInputArg1, unit?: DurationInputArg2): Date;
|
|
6
|
-
static businessAdd(date: Date, amount: number, unit?: DurationInputArg2): Date;
|
|
7
|
-
static businessSubtract(date: Date, amount: number, unit?: DurationInputArg2): Date;
|
|
8
|
-
}
|
|
1
|
+
import { DurationInputArg1, DurationInputArg2 } from "moment";
|
|
2
|
+
export declare class DateUtils {
|
|
3
|
+
static isHoliday(date: Date): boolean;
|
|
4
|
+
static isBusinessDay(date: Date): boolean;
|
|
5
|
+
static add(date: Date, amount?: DurationInputArg1, unit?: DurationInputArg2): Date;
|
|
6
|
+
static businessAdd(date: Date, amount: number, unit?: DurationInputArg2): Date;
|
|
7
|
+
static businessSubtract(date: Date, amount: number, unit?: DurationInputArg2): Date;
|
|
8
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
export declare class FileUtils {
|
|
3
|
-
static getExtension(file: File): string;
|
|
4
|
-
static getName(file: File): string;
|
|
5
|
-
static toFile(blob: Blob, fileName: string): File;
|
|
6
|
-
static dataToBlob(data: string): Blob;
|
|
7
|
-
static saveBlob(blob: Blob, fileName: string): void;
|
|
8
|
-
static saveJson(json: any, fileName: string): void;
|
|
9
|
-
static readFileAsText(file: Blob): Promise<string>;
|
|
10
|
-
static readFileAsBinaryString(file: Blob): Promise<string>;
|
|
11
|
-
static readFileAsDataURL(file: Blob): Promise<string>;
|
|
12
|
-
static readDataFromUrl(http: HttpClient, url: string): Promise<string>;
|
|
13
|
-
private static readFile;
|
|
14
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
export declare class FileUtils {
|
|
3
|
+
static getExtension(file: File): string;
|
|
4
|
+
static getName(file: File): string;
|
|
5
|
+
static toFile(blob: Blob, fileName: string): File;
|
|
6
|
+
static dataToBlob(data: string): Blob;
|
|
7
|
+
static saveBlob(blob: Blob, fileName: string): void;
|
|
8
|
+
static saveJson(json: any, fileName: string): void;
|
|
9
|
+
static readFileAsText(file: Blob): Promise<string>;
|
|
10
|
+
static readFileAsBinaryString(file: Blob): Promise<string>;
|
|
11
|
+
static readFileAsDataURL(file: Blob): Promise<string>;
|
|
12
|
+
static readDataFromUrl(http: HttpClient, url: string): Promise<string>;
|
|
13
|
+
private static readFile;
|
|
14
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
export declare class GenericValue<T> extends Subject<T> {
|
|
3
|
-
get value(): T;
|
|
4
|
-
set value(value: T);
|
|
5
|
-
private _value;
|
|
6
|
-
constructor(value?: T);
|
|
7
|
-
setJustValue(value: T): void;
|
|
8
|
-
}
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
export declare class GenericValue<T> extends Subject<T> {
|
|
3
|
+
get value(): T;
|
|
4
|
+
set value(value: T);
|
|
5
|
+
private _value;
|
|
6
|
+
constructor(value?: T);
|
|
7
|
+
setJustValue(value: T): void;
|
|
8
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export interface IShape {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
distance(shape: IShape): number;
|
|
5
|
-
}
|
|
6
|
-
export declare class Rect implements IShape {
|
|
7
|
-
readonly x: number;
|
|
8
|
-
readonly y: number;
|
|
9
|
-
readonly width: number;
|
|
10
|
-
readonly height: number;
|
|
11
|
-
readonly rotation: number;
|
|
12
|
-
get center(): Point;
|
|
13
|
-
get left(): number;
|
|
14
|
-
get right(): number;
|
|
15
|
-
get bottom(): number;
|
|
16
|
-
get top(): number;
|
|
17
|
-
constructor(x: number, y: number, width: number, height: number, rotation?: number);
|
|
18
|
-
distance(p: Point): number;
|
|
19
|
-
}
|
|
20
|
-
export declare class Circle implements IShape {
|
|
21
|
-
readonly x: number;
|
|
22
|
-
readonly y: number;
|
|
23
|
-
readonly radius: number;
|
|
24
|
-
get center(): Point;
|
|
25
|
-
get left(): Point;
|
|
26
|
-
get right(): Point;
|
|
27
|
-
get top(): Point;
|
|
28
|
-
get bottom(): Point;
|
|
29
|
-
get rect(): Rect;
|
|
30
|
-
constructor(x: number, y: number, radius: number);
|
|
31
|
-
distance(p: Point): number;
|
|
32
|
-
}
|
|
33
|
-
export declare class Point implements IShape {
|
|
34
|
-
readonly x: number;
|
|
35
|
-
readonly y: number;
|
|
36
|
-
static Zero: Point;
|
|
37
|
-
get length(): number;
|
|
38
|
-
get perpendicular(): Point;
|
|
39
|
-
constructor(x: number, y: number);
|
|
40
|
-
add(p: Point): Point;
|
|
41
|
-
subtract(p: Point): Point;
|
|
42
|
-
multiply(p: Point | number): Point;
|
|
43
|
-
distance(b: Point): number;
|
|
44
|
-
lerp(p: Point, ratio: number): Point;
|
|
45
|
-
perpendicularTo(p: Point, length: number): Point;
|
|
46
|
-
circleWith(a: Point, b: Point): Circle;
|
|
47
|
-
tangents(c: Circle): Point[];
|
|
48
|
-
angle(p: Point): number;
|
|
49
|
-
rotateAround(p: Point, angle: number): Point;
|
|
50
|
-
}
|
|
1
|
+
export interface IShape {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
distance(shape: IShape): number;
|
|
5
|
+
}
|
|
6
|
+
export declare class Rect implements IShape {
|
|
7
|
+
readonly x: number;
|
|
8
|
+
readonly y: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly height: number;
|
|
11
|
+
readonly rotation: number;
|
|
12
|
+
get center(): Point;
|
|
13
|
+
get left(): number;
|
|
14
|
+
get right(): number;
|
|
15
|
+
get bottom(): number;
|
|
16
|
+
get top(): number;
|
|
17
|
+
constructor(x: number, y: number, width: number, height: number, rotation?: number);
|
|
18
|
+
distance(p: Point): number;
|
|
19
|
+
}
|
|
20
|
+
export declare class Circle implements IShape {
|
|
21
|
+
readonly x: number;
|
|
22
|
+
readonly y: number;
|
|
23
|
+
readonly radius: number;
|
|
24
|
+
get center(): Point;
|
|
25
|
+
get left(): Point;
|
|
26
|
+
get right(): Point;
|
|
27
|
+
get top(): Point;
|
|
28
|
+
get bottom(): Point;
|
|
29
|
+
get rect(): Rect;
|
|
30
|
+
constructor(x: number, y: number, radius: number);
|
|
31
|
+
distance(p: Point): number;
|
|
32
|
+
}
|
|
33
|
+
export declare class Point implements IShape {
|
|
34
|
+
readonly x: number;
|
|
35
|
+
readonly y: number;
|
|
36
|
+
static Zero: Point;
|
|
37
|
+
get length(): number;
|
|
38
|
+
get perpendicular(): Point;
|
|
39
|
+
constructor(x: number, y: number);
|
|
40
|
+
add(p: Point): Point;
|
|
41
|
+
subtract(p: Point): Point;
|
|
42
|
+
multiply(p: Point | number): Point;
|
|
43
|
+
distance(b: Point): number;
|
|
44
|
+
lerp(p: Point, ratio: number): Point;
|
|
45
|
+
perpendicularTo(p: Point, length: number): Point;
|
|
46
|
+
circleWith(a: Point, b: Point): Circle;
|
|
47
|
+
tangents(c: Circle): Point[];
|
|
48
|
+
angle(p: Point): number;
|
|
49
|
+
rotateAround(p: Point, angle: number): Point;
|
|
50
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Invokable } from "invokable";
|
|
2
|
-
export declare class Initializer<T> {
|
|
3
|
-
private callback;
|
|
4
|
-
private shouldInit;
|
|
5
|
-
private initialized;
|
|
6
|
-
constructor(callback: () => T, shouldInit?: boolean);
|
|
7
|
-
[Invokable.call](): T;
|
|
8
|
-
}
|
|
9
|
-
export interface Initializer<T> {
|
|
10
|
-
(): T;
|
|
11
|
-
}
|
|
1
|
+
import { Invokable } from "invokable";
|
|
2
|
+
export declare class Initializer<T> {
|
|
3
|
+
private callback;
|
|
4
|
+
private shouldInit;
|
|
5
|
+
private initialized;
|
|
6
|
+
constructor(callback: () => T, shouldInit?: boolean);
|
|
7
|
+
[Invokable.call](): T;
|
|
8
|
+
}
|
|
9
|
+
export interface Initializer<T> {
|
|
10
|
+
(): T;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IScriptPromises, IStylePromises } from "../common-types";
|
|
2
|
-
export declare class LoaderUtils {
|
|
3
|
-
static scriptPromises: IScriptPromises;
|
|
4
|
-
static stylePromises: IStylePromises;
|
|
5
|
-
static loadScript(src: string, async?: boolean): Promise<HTMLScriptElement>;
|
|
6
|
-
static loadStyle(src: string): Promise<HTMLLinkElement>;
|
|
7
|
-
}
|
|
1
|
+
import { IScriptPromises, IStylePromises } from "../common-types";
|
|
2
|
+
export declare class LoaderUtils {
|
|
3
|
+
static scriptPromises: IScriptPromises;
|
|
4
|
+
static stylePromises: IStylePromises;
|
|
5
|
+
static loadScript(src: string, async?: boolean): Promise<HTMLScriptElement>;
|
|
6
|
+
static loadStyle(src: string): Promise<HTMLLinkElement>;
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class MathUtils {
|
|
2
|
-
static equal(a: number, b: number, epsilon?: number): boolean;
|
|
3
|
-
static clamp(value: number, min: number, max: number): number;
|
|
4
|
-
static round(value: number, precision?: number, divider?: number): number;
|
|
5
|
-
}
|
|
1
|
+
export declare class MathUtils {
|
|
2
|
+
static equal(a: number, b: number, epsilon?: number): boolean;
|
|
3
|
+
static clamp(value: number, min: number, max: number): number;
|
|
4
|
+
static round(value: number, precision?: number, divider?: number): number;
|
|
5
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export declare type FilterPredicate = (value: any, key?: any, target?: any, source?: any) => boolean;
|
|
2
|
-
export declare type IterateCallback = (value: any, key?: any) => void;
|
|
3
|
-
export declare class ObjectUtils {
|
|
4
|
-
static compare(a: any, b: any): number;
|
|
5
|
-
static getProperties(obj: any): string[];
|
|
6
|
-
static equals(a: any, b: any): boolean;
|
|
7
|
-
static evaluate(expr: string, context?: any, res?: any): any;
|
|
8
|
-
static empty(obj: any): boolean;
|
|
9
|
-
static iterate(obj: any, cb: IterateCallback): void;
|
|
10
|
-
static getValue(obj: any, key: string, defaultValue?: any, treeFallback?: boolean): any;
|
|
11
|
-
static mapToPath(target: any, source: any, path: string[]): any;
|
|
12
|
-
static filter(obj: any, predicate: FilterPredicate): any;
|
|
13
|
-
static copy<T>(obj: T): T;
|
|
14
|
-
static assign<T>(target: T, source: any, predicate?: FilterPredicate): T;
|
|
15
|
-
static getType(obj: any): string;
|
|
16
|
-
static isPrimitive(value: any): boolean;
|
|
17
|
-
static isObject(value: any): boolean;
|
|
18
|
-
static isDefined(value: any): boolean;
|
|
19
|
-
static isNullOrUndefined(value: any): boolean;
|
|
20
|
-
static isString(value: any): value is string;
|
|
21
|
-
static isFunction(value: any): value is Function;
|
|
22
|
-
static isDate(value: any): value is Date;
|
|
23
|
-
static isBlob(value: any): value is Blob;
|
|
24
|
-
static isBoolean(value: any): value is boolean;
|
|
25
|
-
static isNumber(value: any): value is number;
|
|
26
|
-
static isArray(value: any): value is Array<any>;
|
|
27
|
-
static isSet(value: any): value is Set<any>;
|
|
28
|
-
static checkInterface(obj: any, interFaceObject: any): boolean;
|
|
29
|
-
static pad(obj: any, width: number, chr?: string): string;
|
|
30
|
-
private static copyRecursive;
|
|
31
|
-
}
|
|
1
|
+
export declare type FilterPredicate = (value: any, key?: any, target?: any, source?: any) => boolean;
|
|
2
|
+
export declare type IterateCallback = (value: any, key?: any) => void;
|
|
3
|
+
export declare class ObjectUtils {
|
|
4
|
+
static compare(a: any, b: any): number;
|
|
5
|
+
static getProperties(obj: any): string[];
|
|
6
|
+
static equals(a: any, b: any): boolean;
|
|
7
|
+
static evaluate(expr: string, context?: any, res?: any): any;
|
|
8
|
+
static empty(obj: any): boolean;
|
|
9
|
+
static iterate(obj: any, cb: IterateCallback): void;
|
|
10
|
+
static getValue(obj: any, key: string, defaultValue?: any, treeFallback?: boolean): any;
|
|
11
|
+
static mapToPath(target: any, source: any, path: string[]): any;
|
|
12
|
+
static filter(obj: any, predicate: FilterPredicate): any;
|
|
13
|
+
static copy<T>(obj: T): T;
|
|
14
|
+
static assign<T>(target: T, source: any, predicate?: FilterPredicate): T;
|
|
15
|
+
static getType(obj: any): string;
|
|
16
|
+
static isPrimitive(value: any): boolean;
|
|
17
|
+
static isObject(value: any): boolean;
|
|
18
|
+
static isDefined(value: any): boolean;
|
|
19
|
+
static isNullOrUndefined(value: any): boolean;
|
|
20
|
+
static isString(value: any): value is string;
|
|
21
|
+
static isFunction(value: any): value is Function;
|
|
22
|
+
static isDate(value: any): value is Date;
|
|
23
|
+
static isBlob(value: any): value is Blob;
|
|
24
|
+
static isBoolean(value: any): value is boolean;
|
|
25
|
+
static isNumber(value: any): value is number;
|
|
26
|
+
static isArray(value: any): value is Array<any>;
|
|
27
|
+
static isSet(value: any): value is Set<any>;
|
|
28
|
+
static checkInterface(obj: any, interFaceObject: any): boolean;
|
|
29
|
+
static pad(obj: any, width: number, chr?: string): string;
|
|
30
|
+
private static copyRecursive;
|
|
31
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Observable, Subscription } from "rxjs";
|
|
2
|
-
import { ISearchObservable } from "../common-types";
|
|
3
|
-
export interface ISubscriberInfo {
|
|
4
|
-
subjects: Observable<any>[];
|
|
5
|
-
cb: (ev?: Observable<any>, ...args: any[]) => any;
|
|
6
|
-
}
|
|
7
|
-
export declare class ObservableUtils {
|
|
8
|
-
static toSearch(search: ISearchObservable): Observable<any>;
|
|
9
|
-
static multiSubscription(...subscriptions: Subscription[]): Subscription;
|
|
10
|
-
static subscribe(...subscribers: ISubscriberInfo[]): Subscription;
|
|
11
|
-
static fromFunction(callbackFunc: () => any): Observable<any>;
|
|
12
|
-
}
|
|
1
|
+
import { Observable, Subscription } from "rxjs";
|
|
2
|
+
import { ISearchObservable } from "../common-types";
|
|
3
|
+
export interface ISubscriberInfo {
|
|
4
|
+
subjects: Observable<any>[];
|
|
5
|
+
cb: (ev?: Observable<any>, ...args: any[]) => any;
|
|
6
|
+
}
|
|
7
|
+
export declare class ObservableUtils {
|
|
8
|
+
static toSearch(search: ISearchObservable): Observable<any>;
|
|
9
|
+
static multiSubscription(...subscriptions: Subscription[]): Subscription;
|
|
10
|
+
static subscribe(...subscribers: ISubscriberInfo[]): Subscription;
|
|
11
|
+
static fromFunction(callbackFunc: () => any): Observable<any>;
|
|
12
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
import { Injector } from "@angular/core";
|
|
3
|
-
import { IResolveFactory } from "../common-types";
|
|
4
|
-
export declare class ReflectUtils {
|
|
5
|
-
static defineMetadata(key: string, data: any, target: any, name?: string): void;
|
|
6
|
-
static getMetadata(key: string, target: any, name?: string): any;
|
|
7
|
-
static getOwnMetadata(key: string, target: any, name?: string): any;
|
|
8
|
-
static resolve<T>(obj: IResolveFactory | T, injector: Injector): T;
|
|
9
|
-
}
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { Injector } from "@angular/core";
|
|
3
|
+
import { IResolveFactory } from "../common-types";
|
|
4
|
+
export declare class ReflectUtils {
|
|
5
|
+
static defineMetadata(key: string, data: any, target: any, name?: string): void;
|
|
6
|
+
static getMetadata(key: string, target: any, name?: string): any;
|
|
7
|
+
static getOwnMetadata(key: string, target: any, name?: string): any;
|
|
8
|
+
static resolve<T>(obj: IResolveFactory | T, injector: Injector): T;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class SetUtils {
|
|
2
|
-
static equals(set: Set<any>, obj: any): boolean;
|
|
3
|
-
static addArray(set: Set<any>, items: any[]): void;
|
|
4
|
-
}
|
|
1
|
+
export declare class SetUtils {
|
|
2
|
+
static equals(set: Set<any>, obj: any): boolean;
|
|
3
|
+
static addArray(set: Set<any>, items: any[]): void;
|
|
4
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class StringUtils {
|
|
2
|
-
static concat(separator: string, ...strings: string[]): string;
|
|
3
|
-
static startsWith(str: string, ...starts: string[]): boolean;
|
|
4
|
-
static has(str: string, ...parts: string[]): boolean;
|
|
5
|
-
static lcFirst(str: string): string;
|
|
6
|
-
static ucFirst(str: string): string;
|
|
7
|
-
}
|
|
1
|
+
export declare class StringUtils {
|
|
2
|
+
static concat(separator: string, ...strings: string[]): string;
|
|
3
|
+
static startsWith(str: string, ...starts: string[]): boolean;
|
|
4
|
+
static has(str: string, ...parts: string[]): boolean;
|
|
5
|
+
static lcFirst(str: string): string;
|
|
6
|
+
static ucFirst(str: string): string;
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITimer } from "../common-types";
|
|
2
|
-
export declare class TimerUtils {
|
|
3
|
-
static createTimeout(func?: Function, time?: number): ITimer;
|
|
4
|
-
static createInterval(func?: Function, time?: number): ITimer;
|
|
5
|
-
private static createTimer;
|
|
6
|
-
}
|
|
1
|
+
import { ITimer } from "../common-types";
|
|
2
|
+
export declare class TimerUtils {
|
|
3
|
+
static createTimeout(func?: Function, time?: number): ITimer;
|
|
4
|
+
static createInterval(func?: Function, time?: number): ITimer;
|
|
5
|
+
private static createTimer;
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class UniqueUtils {
|
|
2
|
-
static uuid(): string;
|
|
3
|
-
private static pad4;
|
|
4
|
-
private static random4;
|
|
5
|
-
}
|
|
1
|
+
export declare class UniqueUtils {
|
|
2
|
+
static uuid(): string;
|
|
3
|
+
private static pad4;
|
|
4
|
+
private static random4;
|
|
5
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare class Vector {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
z: number;
|
|
5
|
-
get negative(): Vector;
|
|
6
|
-
get length(): number;
|
|
7
|
-
get unit(): Vector;
|
|
8
|
-
get min(): number;
|
|
9
|
-
get max(): number;
|
|
10
|
-
get angles(): any;
|
|
11
|
-
constructor(x: number, y: number, z: number);
|
|
12
|
-
add(v: Vector | number): Vector;
|
|
13
|
-
subtract(v: Vector | number): Vector;
|
|
14
|
-
multiply(v: Vector | number): Vector;
|
|
15
|
-
divide(v: Vector | number): Vector;
|
|
16
|
-
equals(v: Vector): boolean;
|
|
17
|
-
dot(v: Vector): number;
|
|
18
|
-
cross(v: Vector): Vector;
|
|
19
|
-
angleTo(v: Vector): number;
|
|
20
|
-
toArray(n?: number): number[];
|
|
21
|
-
clone(): Vector;
|
|
22
|
-
init(x: number, y: number, z: number): Vector;
|
|
23
|
-
}
|
|
1
|
+
export declare class Vector {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
get negative(): Vector;
|
|
6
|
+
get length(): number;
|
|
7
|
+
get unit(): Vector;
|
|
8
|
+
get min(): number;
|
|
9
|
+
get max(): number;
|
|
10
|
+
get angles(): any;
|
|
11
|
+
constructor(x: number, y: number, z: number);
|
|
12
|
+
add(v: Vector | number): Vector;
|
|
13
|
+
subtract(v: Vector | number): Vector;
|
|
14
|
+
multiply(v: Vector | number): Vector;
|
|
15
|
+
divide(v: Vector | number): Vector;
|
|
16
|
+
equals(v: Vector): boolean;
|
|
17
|
+
dot(v: Vector): number;
|
|
18
|
+
cross(v: Vector): Vector;
|
|
19
|
+
angleTo(v: Vector): number;
|
|
20
|
+
toArray(n?: number): number[];
|
|
21
|
+
clone(): Vector;
|
|
22
|
+
init(x: number, y: number, z: number): Vector;
|
|
23
|
+
}
|