@3dsource/utils 1.0.19 → 1.0.21
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/LICENSE +14 -14
- package/README.md +149 -46
- package/fesm2022/3dsource-utils.mjs +75 -50
- package/fesm2022/3dsource-utils.mjs.map +1 -1
- package/index.d.ts +863 -3
- package/package.json +2 -2
- package/lib/color/CMYKtoRGB.d.ts +0 -10
- package/lib/color/HEXtoRGB.d.ts +0 -5
- package/lib/color/HSVtoRGB.d.ts +0 -21
- package/lib/color/RGBtoCMYK.d.ts +0 -20
- package/lib/color/RGBtoHEX.d.ts +0 -1
- package/lib/color/RGBtoHSV.d.ts +0 -19
- package/lib/color/hsv.d.ts +0 -1
- package/lib/color/index.d.ts +0 -16
- package/lib/color/max.d.ts +0 -1
- package/lib/color/min.d.ts +0 -1
- package/lib/color/overlay.d.ts +0 -1
- package/lib/color/rgb.d.ts +0 -8
- package/lib/color/sub.d.ts +0 -1
- package/lib/color/subtract.d.ts +0 -1
- package/lib/color/sum.d.ts +0 -1
- package/lib/color/toRGB.d.ts +0 -8
- package/lib/color/toRGBA.d.ts +0 -1
- package/lib/constants/color-codes.constant.d.ts +0 -9
- package/lib/constants/index.d.ts +0 -1
- package/lib/csv/CSV2Array.d.ts +0 -1
- package/lib/csv/CSV2Records.d.ts +0 -1
- package/lib/csv/ObjectToCSV.d.ts +0 -1
- package/lib/csv/index.d.ts +0 -3
- package/lib/dev/dev3d.d.ts +0 -1
- package/lib/dev/index.d.ts +0 -3
- package/lib/dev/logger.d.ts +0 -11
- package/lib/dev/timeToString.d.ts +0 -5
- package/lib/filenaming/cleanupFileName.d.ts +0 -1
- package/lib/filenaming/index.d.ts +0 -3
- package/lib/filenaming/makePath.d.ts +0 -1
- package/lib/filenaming/normalizePath.d.ts +0 -1
- package/lib/geom/expandOverRectangle.d.ts +0 -2
- package/lib/geom/fitIntoRectangle.d.ts +0 -2
- package/lib/geom/index.d.ts +0 -3
- package/lib/geom/interfaces/area.interface.d.ts +0 -4
- package/lib/geom/interfaces/index.d.ts +0 -4
- package/lib/geom/interfaces/rect.interface.d.ts +0 -4
- package/lib/geom/interfaces/size.interface.d.ts +0 -4
- package/lib/geom/interfaces//321/201oords.interface.d.ts +0 -4
- package/lib/helpers/BatchLoader.d.ts +0 -47
- package/lib/helpers/KeyboardNumericCode.d.ts +0 -103
- package/lib/helpers/debounce.d.ts +0 -1
- package/lib/helpers/generate-uuid.d.ts +0 -1
- package/lib/helpers/index.d.ts +0 -12
- package/lib/helpers/is-desktop.d.ts +0 -1
- package/lib/helpers/media.d.ts +0 -1
- package/lib/helpers/save-to-local-drive.d.ts +0 -1
- package/lib/helpers/serialize.d.ts +0 -1
- package/lib/helpers/short-hash.d.ts +0 -2
- package/lib/helpers/signal.d.ts +0 -23
- package/lib/helpers/sleep.d.ts +0 -1
- package/lib/helpers/trimLastSlashFromUrl.d.ts +0 -1
- package/lib/image/SaveImage.d.ts +0 -18
- package/lib/image/getCanvasCached.d.ts +0 -4
- package/lib/image/getSnapshot.d.ts +0 -2
- package/lib/image/index.d.ts +0 -4
- package/lib/image/loadImage.d.ts +0 -1
- package/lib/interfaces/image-output.d.ts +0 -7
- package/lib/interfaces/index.d.ts +0 -3
- package/lib/interfaces/load-args-tmp.interface.d.ts +0 -4
- package/lib/interfaces/load-args.interface.d.ts +0 -15
- package/lib/math/baseSortedIndex.d.ts +0 -25
- package/lib/math/calculateMedian.d.ts +0 -17
- package/lib/math/circularIndex.d.ts +0 -35
- package/lib/math/clampf.d.ts +0 -8
- package/lib/math/degrees.d.ts +0 -2
- package/lib/math/floatCompare.d.ts +0 -42
- package/lib/math/index.d.ts +0 -8
- package/lib/math/inverseLerp.d.ts +0 -17
- package/lib/math/lerp.d.ts +0 -7
- package/lib/mutex/Mutex.d.ts +0 -43
- package/lib/mutex/Semaphore.d.ts +0 -42
- package/lib/mutex/TaskRunner.d.ts +0 -5
- package/lib/mutex/index.d.ts +0 -3
- package/lib/predicates/index.d.ts +0 -3
- package/lib/predicates/operators.d.ts +0 -32
- package/lib/predicates/textForSearch.d.ts +0 -18
- package/lib/predicates/where.d.ts +0 -46
- package/lib/rxjs/index.d.ts +0 -3
- package/lib/rxjs/leadingTrailingDebounceTime.d.ts +0 -15
- package/lib/rxjs/smoothTransition.d.ts +0 -11
- package/lib/rxjs/tapLog.d.ts +0 -2
- package/lib/strings/index.d.ts +0 -1
- package/lib/strings/pad.d.ts +0 -8
- package/lib/tokens/index.d.ts +0 -3
- package/public-api.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3dsource/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "A set of utils for using in 3dsource projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3dsource",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "
|
|
11
|
+
"url": "git@bitbucket.org:dreamsoft/front-libraries.git"
|
|
12
12
|
},
|
|
13
13
|
"license": "UNLICENSED",
|
|
14
14
|
"author": "3dsource",
|
package/lib/color/CMYKtoRGB.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RGB from each of the CMYK values to determine a return as an any[].
|
|
3
|
-
* CMYK values are as follows.
|
|
4
|
-
* C - a number between 0 and 255 representing cyan
|
|
5
|
-
* M - number between 0 and 255 representing magenta
|
|
6
|
-
* Y - number between 0 and 255 representing yellow
|
|
7
|
-
* K - number between 0 and 255 representing black
|
|
8
|
-
*
|
|
9
|
-
**/
|
|
10
|
-
export declare function CMYKtoRGB(c: number, m: number, y: number, k: number): any[];
|
package/lib/color/HEXtoRGB.d.ts
DELETED
package/lib/color/HSVtoRGB.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HSV from each of the RGB values to determine a return as an any[].
|
|
3
|
-
* RGB values are as follows.
|
|
4
|
-
* R - a number from 0 to 255
|
|
5
|
-
* G - a number from 0 to 255
|
|
6
|
-
* B - a number from 0 to 255
|
|
7
|
-
*
|
|
8
|
-
* HSV values are as follows.
|
|
9
|
-
* H - a number between 360-0
|
|
10
|
-
* S - number between 0 and 1.0
|
|
11
|
-
* V - number between 0 and 1.0
|
|
12
|
-
*
|
|
13
|
-
* H is replaced with equivalent numbers in the range of the 360-0 that is out of range.
|
|
14
|
-
* Cannot compute, including alpha.
|
|
15
|
-
*
|
|
16
|
-
* @ Param h hue (Hue) number that indicates (to 360-0)
|
|
17
|
-
* @ Param s the saturation (Saturation) shows the number (0.0 to 1.0)
|
|
18
|
-
* @ Param v lightness (Value) indicates the number (0.0 to 1.0)
|
|
19
|
-
* @ Return RGB values into an any[] of [R, G, B]
|
|
20
|
-
**/
|
|
21
|
-
export declare function HSVtoRGB(h: number, s: number, v: number): number[];
|
package/lib/color/RGBtoCMYK.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RGB from the respective figures, HSV sequences in terms of returns.
|
|
3
|
-
* RGB values are as follows.
|
|
4
|
-
* R - a number from 0 to 255
|
|
5
|
-
* G - a number from 0 to 255
|
|
6
|
-
* B - a number from 0 to 255
|
|
7
|
-
*
|
|
8
|
-
* CMYK values are as follows.
|
|
9
|
-
* C - a number between 0 and 255 representing cyan
|
|
10
|
-
* M - number between 0 and 255 representing magenta
|
|
11
|
-
* Y - number between 0 and 255 representing yellow
|
|
12
|
-
* K - number between 0 and 255 representing black
|
|
13
|
-
*
|
|
14
|
-
* Cannot compute, including alpha.
|
|
15
|
-
* @ Param r the red (R) indicating the number (0x00 to 0xFF to)
|
|
16
|
-
* @ Param g green (G) indicates the number (0x00 to 0xFF to)
|
|
17
|
-
* @ Param b blue (B) shows the number (0x00 to 0xFF to)
|
|
18
|
-
* @ Return CMYK values into an any[] of [H, S, V]
|
|
19
|
-
**/
|
|
20
|
-
export declare function RGBtoCMYK(r: number, g: number, b: number): any[];
|
package/lib/color/RGBtoHEX.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function RGBtoHEX(r: number, g: number, b: number): string;
|
package/lib/color/RGBtoHSV.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RGB from the respective figures, HSV sequences in terms of returns.
|
|
3
|
-
* RGB values are as follows.
|
|
4
|
-
* R - a number from 0 to 255
|
|
5
|
-
* G - a number from 0 to 255
|
|
6
|
-
* B - a number from 0 to 255
|
|
7
|
-
*
|
|
8
|
-
* HSV values are as follows.
|
|
9
|
-
* H - a number between 360-0
|
|
10
|
-
* S - number between 0 and 1.0
|
|
11
|
-
* V - number between 0 and 1.0
|
|
12
|
-
*
|
|
13
|
-
* Cannot compute, including alpha.
|
|
14
|
-
* @ Param r the red (R) indicating the number (0x00 to 0xFF to)
|
|
15
|
-
* @ Param g green (G) indicates the number (0x00 to 0xFF to)
|
|
16
|
-
* @ Param b blue (B) shows the number (0x00 to 0xFF to)
|
|
17
|
-
* @ Return HSV values into an any[] of [H, S, V]
|
|
18
|
-
**/
|
|
19
|
-
export declare function RGBtoHSV(r: number, g: number, b: number): number[];
|
package/lib/color/hsv.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hsv(h: number, s: number, v: number): number;
|
package/lib/color/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './CMYKtoRGB';
|
|
2
|
-
export * from './HEXtoRGB';
|
|
3
|
-
export * from './hsv';
|
|
4
|
-
export * from './HSVtoRGB';
|
|
5
|
-
export * from './max';
|
|
6
|
-
export * from './min';
|
|
7
|
-
export * from './overlay';
|
|
8
|
-
export * from './rgb';
|
|
9
|
-
export * from './RGBtoCMYK';
|
|
10
|
-
export * from './RGBtoHEX';
|
|
11
|
-
export * from './RGBtoHSV';
|
|
12
|
-
export * from './sub';
|
|
13
|
-
export * from './subtract';
|
|
14
|
-
export * from './sum';
|
|
15
|
-
export * from './toRGB';
|
|
16
|
-
export * from './toRGBA';
|
package/lib/color/max.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function max(col1: number, col2: number): number;
|
package/lib/color/min.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function min(col1: number, col2: number): number;
|
package/lib/color/overlay.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function overlay(col1: number, col2: number): number;
|
package/lib/color/rgb.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Values calculated from each RGB * RGB color value.
|
|
3
|
-
* @ Param r the red (R) indicating the number (0-255)
|
|
4
|
-
* @ Param g green (G) indicates the number (0-255)
|
|
5
|
-
* @ Param b blue (B) shows the number (0-255)
|
|
6
|
-
* @ Return obtained from the RGB color value for each indicating the number
|
|
7
|
-
**/
|
|
8
|
-
export declare function rgb(r: number, g: number, b: number): number;
|
package/lib/color/sub.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sub(col1: number, col2: number): number;
|
package/lib/color/subtract.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function subtract(col1: number, col2: number): number;
|
package/lib/color/sum.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sum(col1: number, col2: number): number;
|
package/lib/color/toRGB.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RGB figures show (0x000000 0xFFFFFF up from) the
|
|
3
|
-
* R, G, B returns an any[] divided into a number from 0 to 255, respectively.
|
|
4
|
-
*
|
|
5
|
-
* @ Param rgb numbers show (0x000000 0xFFFFFF up from)
|
|
6
|
-
* @ Return any[] indicates the value of each color [R, G, B]
|
|
7
|
-
**/
|
|
8
|
-
export declare function toRGB(rgb: number): number[];
|
package/lib/color/toRGBA.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function toRGBA(rgba: number): number[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const COLOR_CODES: {
|
|
2
|
-
readonly TO_UNREAL: readonly ["#ffffff", "#005912", "UNREAL <-"];
|
|
3
|
-
readonly TAP_LOG: readonly ["#ffff00", "#1976d2", " [TAPLOG]"];
|
|
4
|
-
readonly FROM_UNREAL: readonly ["#ffff00", "#898989", "UNREAL ->"];
|
|
5
|
-
readonly FROM_UNREAL_ERROR: readonly ["#ffffff", "#ff0000", "UNREAL ERROR ->"];
|
|
6
|
-
readonly FROM_CIRRUS: readonly ["#ffffff", "#ef702b", "CIRRUS ->"];
|
|
7
|
-
readonly FROM_CIRRUS_ERROR: readonly ["#ffffff", "#ff0000", "CIRRUS ->"];
|
|
8
|
-
readonly TO_CIRRUS: readonly ["#ffffff", "#3c9738", "CIRRUS <-"];
|
|
9
|
-
};
|
package/lib/constants/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './color-codes.constant';
|
package/lib/csv/CSV2Array.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function CSV2Array(strData: any, strDelimiter?: string): any[];
|
package/lib/csv/CSV2Records.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function CSV2Records(csv: string, useRowAsHead?: number, strDelimiter?: string): any;
|
package/lib/csv/ObjectToCSV.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ObjectToCSV<T extends object>(records: T[]): string | undefined;
|
package/lib/csv/index.d.ts
DELETED
package/lib/dev/dev3d.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isLocalhost: boolean;
|
package/lib/dev/index.d.ts
DELETED
package/lib/dev/logger.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class Logger {
|
|
2
|
-
static isDevMode: boolean;
|
|
3
|
-
static colored(color: string, background: string, ...args: unknown[]): void;
|
|
4
|
-
static log(...args: unknown[]): void;
|
|
5
|
-
static warn(...args: unknown[]): void;
|
|
6
|
-
static info(...args: unknown[]): void;
|
|
7
|
-
static error(...args: unknown[]): void;
|
|
8
|
-
static table(...args: unknown[]): void;
|
|
9
|
-
static time(...args: any): void;
|
|
10
|
-
static timeEnd(...args: any): void;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function cleanupFileName(value: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function makePath(...value: string[]): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function normalizePath(value: string): string;
|
package/lib/geom/index.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { LoadArgs } from '../interfaces';
|
|
2
|
-
export declare class BatchLoader {
|
|
3
|
-
private maximumSlotsNumber;
|
|
4
|
-
private queue;
|
|
5
|
-
private slots;
|
|
6
|
-
private _whenDone;
|
|
7
|
-
clear(): void;
|
|
8
|
-
/**
|
|
9
|
-
* new settings
|
|
10
|
-
* you must pass new settings
|
|
11
|
-
* @param sett
|
|
12
|
-
*/
|
|
13
|
-
setSettings(sett: any): void;
|
|
14
|
-
/**
|
|
15
|
-
* execute with a chosen file
|
|
16
|
-
* @param id
|
|
17
|
-
* @param func
|
|
18
|
-
*/
|
|
19
|
-
withItem(id: string, func: (item: LoadArgs) => any): boolean;
|
|
20
|
-
remove(id: string): LoadArgs[];
|
|
21
|
-
/**
|
|
22
|
-
* executes when all files are downloaded
|
|
23
|
-
* @param cb
|
|
24
|
-
*/
|
|
25
|
-
whenDone(cb: any): void;
|
|
26
|
-
load(args: LoadArgs[]): {
|
|
27
|
-
path: string;
|
|
28
|
-
self?: any;
|
|
29
|
-
id: string;
|
|
30
|
-
}[];
|
|
31
|
-
/**
|
|
32
|
-
* operates with one file
|
|
33
|
-
* @param item
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
private add;
|
|
37
|
-
private sortByOrder;
|
|
38
|
-
private loadEnd;
|
|
39
|
-
private checkSlots;
|
|
40
|
-
/**
|
|
41
|
-
* get Item By id for interaction with files in this.queue
|
|
42
|
-
* @param id
|
|
43
|
-
* @private
|
|
44
|
-
*/
|
|
45
|
-
private getById;
|
|
46
|
-
private getXmlHttp;
|
|
47
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
declare const KeyboardNumericCode: {
|
|
2
|
-
readonly Backspace: 8;
|
|
3
|
-
readonly Tab: 9;
|
|
4
|
-
readonly Numpad5: 12;
|
|
5
|
-
readonly NumpadEnter: 13;
|
|
6
|
-
readonly ShiftRight: 16;
|
|
7
|
-
readonly ControlRight: 17;
|
|
8
|
-
readonly ControlLeft: 17;
|
|
9
|
-
readonly AltRight: 18;
|
|
10
|
-
readonly Escape: 27;
|
|
11
|
-
readonly Space: 32;
|
|
12
|
-
readonly Numpad9: 33;
|
|
13
|
-
readonly Numpad3: 34;
|
|
14
|
-
readonly Numpad1: 35;
|
|
15
|
-
readonly Numpad7: 36;
|
|
16
|
-
readonly Numpad4: 37;
|
|
17
|
-
readonly Numpad8: 38;
|
|
18
|
-
readonly Numpad6: 39;
|
|
19
|
-
readonly Numpad2: 40;
|
|
20
|
-
readonly Numpad0: 45;
|
|
21
|
-
readonly NumpadDecimal: 46;
|
|
22
|
-
readonly Digit0: 48;
|
|
23
|
-
readonly Digit1: 49;
|
|
24
|
-
readonly Digit2: 50;
|
|
25
|
-
readonly Digit3: 51;
|
|
26
|
-
readonly Digit4: 52;
|
|
27
|
-
readonly Digit5: 53;
|
|
28
|
-
readonly Digit6: 54;
|
|
29
|
-
readonly Digit7: 55;
|
|
30
|
-
readonly Digit8: 56;
|
|
31
|
-
readonly Digit9: 57;
|
|
32
|
-
readonly KeyA: 65;
|
|
33
|
-
readonly KeyB: 66;
|
|
34
|
-
readonly KeyC: 67;
|
|
35
|
-
readonly KeyD: 68;
|
|
36
|
-
readonly KeyE: 69;
|
|
37
|
-
readonly KeyF: 70;
|
|
38
|
-
readonly KeyG: 71;
|
|
39
|
-
readonly KeyH: 72;
|
|
40
|
-
readonly KeyI: 73;
|
|
41
|
-
readonly KeyJ: 74;
|
|
42
|
-
readonly KeyK: 75;
|
|
43
|
-
readonly KeyL: 76;
|
|
44
|
-
readonly KeyM: 77;
|
|
45
|
-
readonly KeyN: 78;
|
|
46
|
-
readonly KeyO: 79;
|
|
47
|
-
readonly KeyP: 80;
|
|
48
|
-
readonly KeyQ: 81;
|
|
49
|
-
readonly KeyR: 82;
|
|
50
|
-
readonly KeyS: 83;
|
|
51
|
-
readonly KeyT: 84;
|
|
52
|
-
readonly KeyU: 85;
|
|
53
|
-
readonly KeyV: 86;
|
|
54
|
-
readonly KeyW: 87;
|
|
55
|
-
readonly KeyX: 88;
|
|
56
|
-
readonly KeyY: 89;
|
|
57
|
-
readonly KeyZ: 90;
|
|
58
|
-
readonly MetaLeft: 91;
|
|
59
|
-
readonly ContextMenu: 93;
|
|
60
|
-
readonly NumpadMultiply: 106;
|
|
61
|
-
readonly NumpadAdd: 107;
|
|
62
|
-
readonly NumpadSubtract: 109;
|
|
63
|
-
readonly NumpadDivide: 111;
|
|
64
|
-
readonly F1: 112;
|
|
65
|
-
readonly F2: 113;
|
|
66
|
-
readonly F3: 114;
|
|
67
|
-
readonly F4: 115;
|
|
68
|
-
readonly F5: 116;
|
|
69
|
-
readonly F6: 117;
|
|
70
|
-
readonly F7: 118;
|
|
71
|
-
readonly F8: 119;
|
|
72
|
-
readonly F9: 120;
|
|
73
|
-
readonly F10: 121;
|
|
74
|
-
readonly F11: 122;
|
|
75
|
-
readonly F12: 123;
|
|
76
|
-
readonly NumLock: 144;
|
|
77
|
-
readonly ScrollLock: 145;
|
|
78
|
-
readonly Semicolon: 186;
|
|
79
|
-
readonly Equal: 187;
|
|
80
|
-
readonly Comma: 188;
|
|
81
|
-
readonly Minus: 189;
|
|
82
|
-
readonly Period: 190;
|
|
83
|
-
readonly Slash: 191;
|
|
84
|
-
readonly Backquote: 192;
|
|
85
|
-
readonly BracketLeft: 219;
|
|
86
|
-
readonly Backslash: 220;
|
|
87
|
-
readonly BracketRight: 221;
|
|
88
|
-
readonly Quote: 222;
|
|
89
|
-
readonly IntlBackslash: 226;
|
|
90
|
-
readonly ArrowUp: 38;
|
|
91
|
-
readonly ArrowDown: 40;
|
|
92
|
-
readonly ArrowLeft: 37;
|
|
93
|
-
readonly ArrowRight: 39;
|
|
94
|
-
};
|
|
95
|
-
type IKeyName = keyof typeof KeyboardNumericCode;
|
|
96
|
-
type IKeyCode = (typeof KeyboardNumericCode)[IKeyName];
|
|
97
|
-
type InvertedKeyMapType = {
|
|
98
|
-
[K in IKeyName as (typeof KeyboardNumericCode)[K]]: K;
|
|
99
|
-
};
|
|
100
|
-
declare const InvertedKeyMap: InvertedKeyMapType;
|
|
101
|
-
declare const KeyboardStringCode: { [K in IKeyName]: K; };
|
|
102
|
-
export type { IKeyName, IKeyCode };
|
|
103
|
-
export { KeyboardStringCode, InvertedKeyMap, KeyboardNumericCode };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const debounce: <T extends (...args: any[]) => any>(fn: T, ms?: number) => (this: any, ...args: any[]) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateUuid(): string;
|
package/lib/helpers/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './BatchLoader';
|
|
2
|
-
export * from './debounce';
|
|
3
|
-
export * from './KeyboardNumericCode';
|
|
4
|
-
export * from './serialize';
|
|
5
|
-
export * from './save-to-local-drive';
|
|
6
|
-
export * from './sleep';
|
|
7
|
-
export * from './trimLastSlashFromUrl';
|
|
8
|
-
export * from './signal';
|
|
9
|
-
export * from './generate-uuid';
|
|
10
|
-
export * from './short-hash';
|
|
11
|
-
export * from './is-desktop';
|
|
12
|
-
export * from './media';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isDesktop: () => boolean;
|
package/lib/helpers/media.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const media: (query: string) => import("rxjs").Observable<boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const saveToLocalDrive: (uri: string, name: string) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function serialize(obj: any): string;
|
package/lib/helpers/signal.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Observable } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* SingleTone Private class.
|
|
4
|
-
* Event-Driving pattern for sending signals from component to component.
|
|
5
|
-
*/
|
|
6
|
-
declare class SignalClass {
|
|
7
|
-
private static eventBus;
|
|
8
|
-
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* It is not recommended to use this class directly.
|
|
11
|
-
* use the sendSignal functions instead.
|
|
12
|
-
* those wrappers are more convenient and provide a better type safety.
|
|
13
|
-
*/
|
|
14
|
-
broadcast<K, D>(key: K, data?: D): void;
|
|
15
|
-
/**
|
|
16
|
-
* It is not recommended to use this class directly.
|
|
17
|
-
* use the fromSignal functions instead.
|
|
18
|
-
* those wrappers are more convenient and provide a better type safety.
|
|
19
|
-
*/
|
|
20
|
-
on<K, D = any>(key: K): Observable<D>;
|
|
21
|
-
}
|
|
22
|
-
export declare const Signal: SignalClass;
|
|
23
|
-
export {};
|
package/lib/helpers/sleep.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sleep(time: number): Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function trimLastSlashFromUrl(baseUrl: string): string | null | undefined;
|
package/lib/image/SaveImage.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ImageOutputValues } from '../interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* USE DownloadImage instead!
|
|
4
|
-
* @deprecated use DownloadImage instead!
|
|
5
|
-
* @param imageSource
|
|
6
|
-
* @param name
|
|
7
|
-
* @param width
|
|
8
|
-
* @param format
|
|
9
|
-
*/
|
|
10
|
-
declare function SaveImage(imageSource: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap | string, name: string, width?: number, format?: string | ImageOutputValues): any;
|
|
11
|
-
/**
|
|
12
|
-
* @param imageSource
|
|
13
|
-
* @param string name
|
|
14
|
-
* @param number width
|
|
15
|
-
* @param string format
|
|
16
|
-
*/
|
|
17
|
-
declare const DownloadImage: typeof SaveImage;
|
|
18
|
-
export { SaveImage, DownloadImage };
|
package/lib/image/index.d.ts
DELETED
package/lib/image/loadImage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadImage(url: string): Promise<HTMLImageElement>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface LoadArgs {
|
|
2
|
-
order: number;
|
|
3
|
-
extra: any;
|
|
4
|
-
item?: HTMLImageElement;
|
|
5
|
-
useXhr?: boolean;
|
|
6
|
-
path: string;
|
|
7
|
-
onLoadEnd: (data: LoadArgs) => void;
|
|
8
|
-
onLoadStart: (data: ProgressEvent) => void;
|
|
9
|
-
onProgress: (data: ProgressEvent) => void;
|
|
10
|
-
id?: string;
|
|
11
|
-
img?: HTMLImageElement;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
fallBack?: string;
|
|
14
|
-
resolutionId: number | string | null;
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the index at which the `value` should be inserted into the `array` to maintain its
|
|
3
|
-
* sorted order. This function performs a binary search with a complexity of O(log n), making it
|
|
4
|
-
* efficient for large datasets. It assumes that the input array is sorted in ascending order and
|
|
5
|
-
* contains comparable elements.
|
|
6
|
-
*
|
|
7
|
-
* Note: The function is designed to handle arrays with lengths up to a maximum of `HALF_MAX_ARRAY_LENGTH`
|
|
8
|
-
* to ensure the search operation remains within JavaScript's maximum array index limit.
|
|
9
|
-
*
|
|
10
|
-
* @param {any[]} array The sorted array into which the value should be inserted. The array elements
|
|
11
|
-
* should be comparable with the `value` using less-than and greater-than operations.
|
|
12
|
-
* @param {number} value The value to insert into the array. This function assumes that `array` is sorted
|
|
13
|
-
* in ascending order and will find the correct position for `value` accordingly.
|
|
14
|
-
* @returns {number} The index at which the `value` should be inserted into `array` to maintain its sorted order.
|
|
15
|
-
* If the `array` is empty or if `value` is less than or equal to all elements in `array`,
|
|
16
|
-
* returns 0. If `value` is greater than all elements in `array`, returns the length of `array`.
|
|
17
|
-
* @example
|
|
18
|
-
* // returns 2
|
|
19
|
-
* baseSortedIndex([1, 3, 4], 3);
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* // returns 1
|
|
23
|
-
* baseSortedIndex([1, 2, 3], 2);
|
|
24
|
-
*/
|
|
25
|
-
export declare function baseSortedIndex(array: number[], value: number): number;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the median of an array of numbers.
|
|
3
|
-
*
|
|
4
|
-
* The median is the middle value of a sorted list of numbers. If the list has an even number
|
|
5
|
-
* of elements, the median is the average of the two middle numbers.
|
|
6
|
-
*
|
|
7
|
-
* @param numbers - An array of numbers for which the median will be calculated.
|
|
8
|
-
* @returns The median value as a number, or `null` if the array is empty.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* const numbers = [3, 1, 4, 2];
|
|
13
|
-
* const median = calculateMedian(numbers);
|
|
14
|
-
* console.log(median); // Output: 2.5
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function calculateMedian(numbers: number[]): number;
|