vis-util 5.0.6 → 6.0.0

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.
Files changed (65) hide show
  1. package/declarations/deep-object-assign.d.ts +1 -3
  2. package/declarations/deep-object-assign.d.ts.map +1 -1
  3. package/declarations/entry-esnext.d.ts +4 -4
  4. package/declarations/entry-esnext.d.ts.map +1 -1
  5. package/declarations/index.d.ts +2 -2
  6. package/declarations/index.d.ts.map +1 -1
  7. package/declarations/random/alea.d.ts +1 -3
  8. package/declarations/random/alea.d.ts.map +1 -1
  9. package/declarations/random/index.d.ts +1 -1
  10. package/declarations/random/index.d.ts.map +1 -1
  11. package/declarations/shared/configurator-types.d.ts +9 -10
  12. package/declarations/shared/configurator-types.d.ts.map +1 -1
  13. package/declarations/shared/index.d.ts +1 -2
  14. package/declarations/shared/index.d.ts.map +1 -1
  15. package/declarations/util.d.ts +2 -63
  16. package/declarations/util.d.ts.map +1 -1
  17. package/esnext/esm/vis-util.js +1629 -1757
  18. package/esnext/esm/vis-util.js.map +1 -1
  19. package/esnext/esm/vis-util.min.js +3 -3
  20. package/esnext/esm/vis-util.min.js.map +1 -1
  21. package/esnext/esm/vis-util.min.mjs +27 -0
  22. package/esnext/esm/vis-util.min.mjs.map +1 -0
  23. package/esnext/esm/vis-util.mjs +3924 -0
  24. package/esnext/esm/vis-util.mjs.map +1 -0
  25. package/esnext/umd/vis-util.cjs +3924 -0
  26. package/esnext/umd/vis-util.cjs.map +1 -0
  27. package/esnext/umd/vis-util.js +3610 -3802
  28. package/esnext/umd/vis-util.js.map +1 -1
  29. package/esnext/umd/vis-util.min.cjs +27 -0
  30. package/esnext/umd/vis-util.min.cjs.map +1 -0
  31. package/esnext/umd/vis-util.min.js +3 -3
  32. package/esnext/umd/vis-util.min.js.map +1 -1
  33. package/package.json +163 -32
  34. package/peer/esm/vis-util.js +7793 -6553
  35. package/peer/esm/vis-util.js.map +1 -1
  36. package/peer/esm/vis-util.min.js +4 -4
  37. package/peer/esm/vis-util.min.js.map +1 -1
  38. package/peer/esm/vis-util.min.mjs +34 -0
  39. package/peer/esm/vis-util.min.mjs.map +1 -0
  40. package/peer/esm/vis-util.mjs +12696 -0
  41. package/peer/esm/vis-util.mjs.map +1 -0
  42. package/peer/umd/vis-util.cjs +12763 -0
  43. package/peer/umd/vis-util.cjs.map +1 -0
  44. package/peer/umd/vis-util.js +7793 -6553
  45. package/peer/umd/vis-util.js.map +1 -1
  46. package/peer/umd/vis-util.min.cjs +34 -0
  47. package/peer/umd/vis-util.min.cjs.map +1 -0
  48. package/peer/umd/vis-util.min.js +4 -4
  49. package/peer/umd/vis-util.min.js.map +1 -1
  50. package/standalone/esm/vis-util.js +7793 -6553
  51. package/standalone/esm/vis-util.js.map +1 -1
  52. package/standalone/esm/vis-util.min.js +4 -4
  53. package/standalone/esm/vis-util.min.js.map +1 -1
  54. package/standalone/esm/vis-util.min.mjs +34 -0
  55. package/standalone/esm/vis-util.min.mjs.map +1 -0
  56. package/standalone/esm/vis-util.mjs +12696 -0
  57. package/standalone/esm/vis-util.mjs.map +1 -0
  58. package/standalone/umd/vis-util.cjs +12763 -0
  59. package/standalone/umd/vis-util.cjs.map +1 -0
  60. package/standalone/umd/vis-util.js +7793 -6553
  61. package/standalone/umd/vis-util.js.map +1 -1
  62. package/standalone/umd/vis-util.min.cjs +34 -0
  63. package/standalone/umd/vis-util.min.cjs.map +1 -0
  64. package/standalone/umd/vis-util.min.js +4 -4
  65. package/standalone/umd/vis-util.min.js.map +1 -1
@@ -6,14 +6,13 @@ export declare const DELETE: unique symbol;
6
6
  * Turns `undefined` into `undefined | typeof DELETE` and makes everything
7
7
  * partial. Intended to be used with `deepObjectAssign`.
8
8
  */
9
- export declare type Assignable<T> = T extends undefined ? (T extends Function ? T : T extends object ? {
9
+ export type Assignable<T> = T extends undefined ? (T extends Function ? T : T extends object ? {
10
10
  [Key in keyof T]?: Assignable<T[Key]> | undefined;
11
11
  } : T) | typeof DELETE : T extends Function ? T | undefined : T extends object ? {
12
12
  [Key in keyof T]?: Assignable<T[Key]> | undefined;
13
13
  } : T | undefined;
14
14
  /**
15
15
  * Pure version of deepObjectAssign, it doesn't modify any of it's arguments.
16
- *
17
16
  * @param base - The base object that fullfils the whole interface T.
18
17
  * @param updates - Updates that may change or delete props.
19
18
  * @returns A brand new instance with all the supplied objects deeply merged.
@@ -21,7 +20,6 @@ export declare type Assignable<T> = T extends undefined ? (T extends Function ?
21
20
  export declare function pureDeepObjectAssign<T>(base: T, ...updates: Assignable<T>[]): T;
22
21
  /**
23
22
  * Deep version of object assign with additional deleting by the DELETE symbol.
24
- *
25
23
  * @param target - The object that will be augmented using the sources.
26
24
  * @param sources - Objects to be deeply merged into the target.
27
25
  * @returns The target (same instance).
@@ -1 +1 @@
1
- {"version":3,"file":"deep-object-assign.d.ts","sourceRoot":"","sources":["../src/deep-object-assign.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,MAAM,eAAmB,CAAC;AAEvC;;;GAGG;AACH,oBAAY,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAEvC,CAAC,CAAC,SAAS,QAAQ,GACf,CAAC,GACD,CAAC,SAAS,MAAM,GAChB;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;CAAE,GACrD,CAAC,CAAC,GACN,OAAO,MAAM,GACjB,CAAC,SAAS,QAAQ,GAClB,CAAC,GAAG,SAAS,GACb,CAAC,SAAS,MAAM,GAChB;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;CAAE,GACrD,CAAC,GAAG,SAAS,CAAC;AAElB;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,IAAI,EAAE,CAAC,EACP,GAAG,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAC1B,CAAC,CAEH;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"deep-object-assign.d.ts","sourceRoot":"","sources":["../src/deep-object-assign.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,MAAM,eAAmB,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAEvC,CAAC,CAAC,SAAS,QAAQ,GACf,CAAC,GACD,CAAC,SAAS,MAAM,GACd;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;CAAE,GACrD,CAAC,CAAC,GACR,OAAO,MAAM,GACjB,CAAC,SAAS,QAAQ,GAChB,CAAC,GAAG,SAAS,GACb,CAAC,SAAS,MAAM,GACd;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;CAAE,GACrD,CAAC,GAAG,SAAS,CAAC;AAEtB;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,IAAI,EAAE,CAAC,EACP,GAAG,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAC1B,CAAC,CAEH;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- export * from "./deep-object-assign";
2
- export * from "./random";
3
- export * from "./shared";
4
- export * from "./util";
1
+ export * from "./deep-object-assign.ts";
2
+ export * from "./random/index.ts";
3
+ export * from "./shared/index.ts";
4
+ export * from "./util.ts";
5
5
  //# sourceMappingURL=entry-esnext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry-esnext.d.ts","sourceRoot":"","sources":["../src/entry-esnext.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"entry-esnext.d.ts","sourceRoot":"","sources":["../src/entry-esnext.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from "./entry-esnext";
2
- import * as util from "./util";
1
+ export * from "./entry-esnext.ts";
2
+ import * as util from "./util.ts";
3
3
  export default util;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAGlC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,eAAe,IAAI,CAAC"}
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Seedable, fast and reasonably good (not crypto but more than okay for our
3
3
  * needs) random number generator.
4
- *
5
4
  * @remarks
6
5
  * Adapted from {@link https://web.archive.org/web/20110429100736/http://baagoe.com:80/en/RandomMusings/javascript}.
7
6
  * Original algorithm created by Johannes Baagøe \<baagoe\@baagoe.com\> in 2010.
@@ -25,7 +24,6 @@ export interface RNG {
25
24
  }
26
25
  /**
27
26
  * Create a seeded pseudo random generator based on Alea by Johannes Baagøe.
28
- *
29
27
  * @param seed - All supplied arguments will be used as a seed. In case nothing
30
28
  * is supplied the current time will be used to seed the generator.
31
29
  * @returns A ready to use seeded generator.
@@ -34,5 +32,5 @@ export declare function Alea(...seed: Mashable[]): RNG;
34
32
  /**
35
33
  * Values of these types can be used as a seed.
36
34
  */
37
- export declare type Mashable = number | string | boolean | object | bigint;
35
+ export type Mashable = number | string | boolean | object | bigint;
38
36
  //# sourceMappingURL=alea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alea.d.ts","sourceRoot":"","sources":["../../src/random/alea.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,gDAAgD;IAChD,IAAI,MAAM,CAAC;IACX,mDAAmD;IACnD,OAAO,IAAI,MAAM,CAAC;IAClB,0BAA0B;IAC1B,MAAM,IAAI,MAAM,CAAC;IAEjB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,CAE7C;AA+DD;;GAEG;AACH,oBAAY,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"alea.d.ts","sourceRoot":"","sources":["../../src/random/alea.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,gDAAgD;IAChD,IAAI,MAAM,CAAC;IACX,mDAAmD;IACnD,OAAO,IAAI,MAAM,CAAC;IAClB,0BAA0B;IAC1B,MAAM,IAAI,MAAM,CAAC;IAEjB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,CAE7C;AA6DD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./alea";
1
+ export * from "./alea.ts";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/random/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/random/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -9,7 +9,7 @@ interface OptionsType {
9
9
  readonly string?: "string" | readonly string[];
10
10
  readonly undefined?: "undefined";
11
11
  }
12
- export declare type OptionsConfig = {
12
+ export type OptionsConfig = {
13
13
  readonly __type__: {
14
14
  readonly object: "object";
15
15
  } & OptionsType;
@@ -19,16 +19,15 @@ export declare type OptionsConfig = {
19
19
  /**
20
20
  * The value supplied will be used as the initial value.
21
21
  */
22
- declare type CheckboxInput = boolean;
22
+ type CheckboxInput = boolean;
23
23
  /**
24
24
  * The passed text will be used as the initial value. Any text will be accepted
25
25
  * afterwards.
26
26
  */
27
- declare type TextInput = string;
27
+ type TextInput = string;
28
28
  /**
29
29
  * The passed values will be used as the limits and the initial position of a
30
30
  * slider.
31
- *
32
31
  * @remarks
33
32
  * ```typescript
34
33
  * readonly [
@@ -39,13 +38,13 @@ declare type TextInput = string;
39
38
  * ]
40
39
  * ```
41
40
  */
42
- declare type NumberInput = readonly [number, number, number, number];
41
+ type NumberInput = readonly [number, number, number, number];
43
42
  /**
44
43
  * Translations for people with poor understanding of TypeScript: the first
45
44
  * value always has to be a string but never `"color"`, the rest can be any
46
45
  * combination of strings, numbers and booleans.
47
46
  */
48
- declare type DropdownInput = readonly [
47
+ type DropdownInput = readonly [
49
48
  Exclude<string, "color">,
50
49
  ...(string | number | boolean)[]
51
50
  ];
@@ -53,11 +52,11 @@ declare type DropdownInput = readonly [
53
52
  * The first value says this will be a color picker not a dropdown menu. The
54
53
  * next value is the initial color.
55
54
  */
56
- declare type ColorInput = readonly ["coor", string];
57
- declare type ConfiguratorInput = CheckboxInput | ColorInput | DropdownInput | NumberInput | TextInput;
58
- export declare type ConfiguratorConfig = {
55
+ type ColorInput = readonly ["coor", string];
56
+ type ConfiguratorInput = CheckboxInput | ColorInput | DropdownInput | NumberInput | TextInput;
57
+ export type ConfiguratorConfig = {
59
58
  readonly [Key in string]: ConfiguratorConfig | ConfiguratorInput;
60
59
  };
61
- export declare type ConfiguratorHideOption = (parentPath: readonly string[], optionName: string, options: any) => boolean;
60
+ export type ConfiguratorHideOption = (parentPath: readonly string[], optionName: string, options: any) => boolean;
62
61
  export {};
63
62
  //# sourceMappingURL=configurator-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configurator-types.d.ts","sourceRoot":"","sources":["../../src/shared/configurator-types.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,MAAM,EAAE,CA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kB,GAAG,iBAAiB;CACjE,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CACnC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,GAAG,KACT,OAAO,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="hammerjs" />
2
1
  export declare const Activator: any;
3
2
  export declare const ColorPicker: any;
4
3
  export declare const Configurator: any;
@@ -6,5 +5,5 @@ export declare const Hammer: HammerStatic;
6
5
  export declare const Popup: any;
7
6
  export declare const VALIDATOR_PRINT_STYLE: string;
8
7
  export declare const Validator: any;
9
- export * from "./configurator-types";
8
+ export * from "./configurator-types.ts";
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";AAQA,eAAO,MAAM,SAAS,EAAE,GAAiB,CAAC;AAC1C,eAAO,MAAM,WAAW,EAAE,GAAmB,CAAC;AAC9C,eAAO,MAAM,YAAY,EAAE,GAAoB,CAAC;AAChD,eAAO,MAAM,MAAM,EAAE,YAAuB,CAAC;AAC7C,eAAO,MAAM,KAAK,EAAE,GAAa,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAAiC,CAAC;AACtE,eAAO,MAAM,SAAS,EAAE,GAAiB,CAAC;AAE1C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,EAAE,GAAiB,CAAC;AAC1C,eAAO,MAAM,WAAW,EAAE,GAAmB,CAAC;AAC9C,eAAO,MAAM,YAAY,EAAE,GAAoB,CAAC;AAChD,eAAO,MAAM,MAAM,EAAE,YAAuB,CAAC;AAC7C,eAAO,MAAM,KAAK,EAAE,GAAa,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAAiC,CAAC;AACtE,eAAO,MAAM,SAAS,EAAE,GAAiB,CAAC;AAE1C,cAAc,yBAAyB,CAAC"}
@@ -55,34 +55,29 @@ export interface RGBA {
55
55
  }
56
56
  /**
57
57
  * Test whether given object is a number.
58
- *
59
58
  * @param value - Input value of unknown type.
60
59
  * @returns True if number, false otherwise.
61
60
  */
62
61
  export declare function isNumber(value: unknown): value is number;
63
62
  /**
64
63
  * Remove everything in the DOM object.
65
- *
66
64
  * @param DOMobject - Node whose child nodes will be recursively deleted.
67
65
  */
68
66
  export declare function recursiveDOMDelete(DOMobject: Node | null | undefined): void;
69
67
  /**
70
68
  * Test whether given object is a string.
71
- *
72
69
  * @param value - Input value of unknown type.
73
70
  * @returns True if string, false otherwise.
74
71
  */
75
72
  export declare function isString(value: unknown): value is string;
76
73
  /**
77
74
  * Test whether given object is a object (not primitive or null).
78
- *
79
75
  * @param value - Input value of unknown type.
80
76
  * @returns True if not null object, false otherwise.
81
77
  */
82
78
  export declare function isObject(value: unknown): value is object;
83
79
  /**
84
80
  * Test whether given object is a Date, or a String containing a Date.
85
- *
86
81
  * @param value - Input value of unknown type.
87
82
  * @returns True if Date instance or string date representation, false otherwise.
88
83
  */
@@ -92,7 +87,6 @@ export declare function isDate(value: unknown): value is Date | string;
92
87
  *
93
88
  * Only copies values for the properties already present in a.
94
89
  * That means an object is not created on a property if only the b object has it.
95
- *
96
90
  * @param a - The object that will have it's properties updated.
97
91
  * @param b - The object with property updates.
98
92
  * @param allowDeletion - If true, delete properties in a that are explicitly set to null in b.
@@ -101,20 +95,18 @@ export declare function fillIfDefined<T extends object>(a: T, b: Partial<T>, all
101
95
  /**
102
96
  * Copy the values of all of the enumerable own properties from one or more source objects to a
103
97
  * target object. Returns the target object.
104
- *
105
98
  * @param target - The target object to copy to.
106
99
  * @param source - The source object from which to copy properties.
107
100
  * @returns The target object.
108
101
  */
109
102
  export declare const extend: {
110
103
  <T extends {}, U>(target: T, source: U): T & U;
111
- <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
112
- <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
104
+ <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
105
+ <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
113
106
  (target: object, ...sources: any[]): any;
114
107
  };
115
108
  /**
116
109
  * Extend object a with selected properties of object b or a series of objects.
117
- *
118
110
  * @remarks
119
111
  * Only properties with defined values are copied.
120
112
  * @param props - Properties to be copied to a.
@@ -126,7 +118,6 @@ export declare function selectiveExtend(props: string[], a: any, ...others: any[
126
118
  /**
127
119
  * Extend object a with selected properties of object b.
128
120
  * Only properties with defined values are copied.
129
- *
130
121
  * @remarks
131
122
  * Previous version of this routine implied that multiple source objects could
132
123
  * be used; however, the implementation was **wrong**. Since multiple (\>1)
@@ -141,7 +132,6 @@ export declare function selectiveDeepExtend(props: string[], a: any, b: any, all
141
132
  /**
142
133
  * Extend object `a` with properties of object `b`, ignoring properties which
143
134
  * are explicitly specified to be excluded.
144
- *
145
135
  * @remarks
146
136
  * The properties of `b` are considered for copying. Properties which are
147
137
  * themselves objects are are also extended. Only properties with defined
@@ -156,7 +146,6 @@ export declare function selectiveDeepExtend(props: string[], a: any, b: any, all
156
146
  export declare function selectiveNotDeepExtend(propsToExclude: string[], a: any, b: any, allowDeletion?: boolean): any;
157
147
  /**
158
148
  * Deep extend an object a with the properties of object b.
159
- *
160
149
  * @param a - Target object.
161
150
  * @param b - Source object.
162
151
  * @param protoExtend - If true, the prototype values will also be extended.
@@ -168,7 +157,6 @@ export declare function selectiveNotDeepExtend(propsToExclude: string[], a: any,
168
157
  export declare function deepExtend(a: any, b: any, protoExtend?: boolean, allowDeletion?: boolean): any;
169
158
  /**
170
159
  * Test whether all elements in two arrays are equal.
171
- *
172
160
  * @param a - First array.
173
161
  * @param b - Second array.
174
162
  * @returns True if both arrays have the same length and same elements (1 = '1').
@@ -176,7 +164,6 @@ export declare function deepExtend(a: any, b: any, protoExtend?: boolean, allowD
176
164
  export declare function equalArray(a: unknown[], b: unknown[]): boolean;
177
165
  /**
178
166
  * Get the type of an object, for example exports.getType([]) returns 'Array'.
179
- *
180
167
  * @param object - Input value of unknown type.
181
168
  * @returns Detected type.
182
169
  */
@@ -185,42 +172,36 @@ export declare function copyAndExtendArray<T>(arr: ReadonlyArray<T>, newValue: T
185
172
  export declare function copyAndExtendArray<A, V>(arr: ReadonlyArray<A>, newValue: V): (A | V)[];
186
173
  /**
187
174
  * Used to extend an array and copy it. This is used to propagate paths recursively.
188
- *
189
175
  * @param arr - The array to be copied.
190
176
  * @returns Shallow copy of arr.
191
177
  */
192
178
  export declare function copyArray<T>(arr: ReadonlyArray<T>): T[];
193
179
  /**
194
180
  * Retrieve the absolute left value of a DOM element.
195
- *
196
181
  * @param elem - A dom element, for example a div.
197
182
  * @returns The absolute left position of this element in the browser page.
198
183
  */
199
184
  export declare function getAbsoluteLeft(elem: Element): number;
200
185
  /**
201
186
  * Retrieve the absolute right value of a DOM element.
202
- *
203
187
  * @param elem - A dom element, for example a div.
204
188
  * @returns The absolute right position of this element in the browser page.
205
189
  */
206
190
  export declare function getAbsoluteRight(elem: Element): number;
207
191
  /**
208
192
  * Retrieve the absolute top value of a DOM element.
209
- *
210
193
  * @param elem - A dom element, for example a div.
211
194
  * @returns The absolute top position of this element in the browser page.
212
195
  */
213
196
  export declare function getAbsoluteTop(elem: Element): number;
214
197
  /**
215
198
  * Add a className to the given elements style.
216
- *
217
199
  * @param elem - The element to which the classes will be added.
218
200
  * @param classNames - Space separated list of classes.
219
201
  */
220
202
  export declare function addClassName(elem: Element, classNames: string): void;
221
203
  /**
222
204
  * Remove a className from the given elements style.
223
- *
224
205
  * @param elem - The element from which the classes will be removed.
225
206
  * @param classNames - Space separated list of classes.
226
207
  */
@@ -229,7 +210,6 @@ export declare function forEach<V>(array: undefined | null | V[], callback: (val
229
210
  export declare function forEach<O extends object>(object: undefined | null | O, callback: <Key extends keyof O>(value: O[Key], key: Key, object: O) => void): void;
230
211
  /**
231
212
  * Convert an object into an array: all objects properties are put into the array. The resulting array is unordered.
232
- *
233
213
  * @param o - Object that contains the properties and methods.
234
214
  * @returns An array of unordered values.
235
215
  */
@@ -241,7 +221,6 @@ export declare const toArray: {
241
221
  };
242
222
  /**
243
223
  * Update a property in an object.
244
- *
245
224
  * @param object - The object whose property will be updated.
246
225
  * @param key - Name of the property to be updated.
247
226
  * @param value - The new value to be assigned.
@@ -250,27 +229,23 @@ export declare const toArray: {
250
229
  export declare function updateProperty<K extends string, V>(object: Record<K, V>, key: K, value: V): boolean;
251
230
  /**
252
231
  * Throttle the given function to be only executed once per animation frame.
253
- *
254
232
  * @param fn - The original function.
255
233
  * @returns The throttled function.
256
234
  */
257
235
  export declare function throttle(fn: () => void): () => void;
258
236
  /**
259
237
  * Cancels the event's default action if it is cancelable, without stopping further propagation of the event.
260
- *
261
238
  * @param event - The event whose default action should be prevented.
262
239
  */
263
240
  export declare function preventDefault(event: Event | undefined): void;
264
241
  /**
265
242
  * Get HTML element which is the target of the event.
266
- *
267
243
  * @param event - The event.
268
244
  * @returns The element or null if not obtainable.
269
245
  */
270
246
  export declare function getTarget(event?: Event | undefined): Element | null;
271
247
  /**
272
248
  * Check if given element contains given parent somewhere in the DOM tree.
273
- *
274
249
  * @param element - The element to be tested.
275
250
  * @param parent - The ancestor (not necessarily parent) of the element.
276
251
  * @returns True if parent is an ancestor of the element, false otherwise.
@@ -279,7 +254,6 @@ export declare function hasParent(element: Element, parent: Element): boolean;
279
254
  export declare const option: {
280
255
  /**
281
256
  * Convert a value into a boolean.
282
- *
283
257
  * @param value - Value to be converted intoboolean, a function will be executed as `(() => unknown)`.
284
258
  * @param defaultValue - If the value or the return value of the function == null then this will be returned.
285
259
  * @returns Corresponding boolean value, if none then the default value, if none then null.
@@ -287,7 +261,6 @@ export declare const option: {
287
261
  asBoolean(value: unknown, defaultValue?: boolean): boolean | null;
288
262
  /**
289
263
  * Convert a value into a number.
290
- *
291
264
  * @param value - Value to be converted intonumber, a function will be executed as `(() => unknown)`.
292
265
  * @param defaultValue - If the value or the return value of the function == null then this will be returned.
293
266
  * @returns Corresponding **boxed** number value, if none then the default value, if none then null.
@@ -295,7 +268,6 @@ export declare const option: {
295
268
  asNumber(value: unknown, defaultValue?: number): number | null;
296
269
  /**
297
270
  * Convert a value into a string.
298
- *
299
271
  * @param value - Value to be converted intostring, a function will be executed as `(() => unknown)`.
300
272
  * @param defaultValue - If the value or the return value of the function == null then this will be returned.
301
273
  * @returns Corresponding **boxed** string value, if none then the default value, if none then null.
@@ -303,7 +275,6 @@ export declare const option: {
303
275
  asString(value: unknown, defaultValue?: string): string | null;
304
276
  /**
305
277
  * Convert a value into a size.
306
- *
307
278
  * @param value - Value to be converted intosize, a function will be executed as `(() => unknown)`.
308
279
  * @param defaultValue - If the value or the return value of the function == null then this will be returned.
309
280
  * @returns Corresponding string value (number + 'px'), if none then the default value, if none then null.
@@ -311,7 +282,6 @@ export declare const option: {
311
282
  asSize(value: unknown, defaultValue?: string): string | null;
312
283
  /**
313
284
  * Convert a value into a DOM Element.
314
- *
315
285
  * @param value - Value to be converted into DOM Element, a function will be executed as `(() => unknown)`.
316
286
  * @param defaultValue - If the value or the return value of the function == null then this will be returned.
317
287
  * @returns The DOM Element, if none then the default value, if none then null.
@@ -320,7 +290,6 @@ export declare const option: {
320
290
  };
321
291
  /**
322
292
  * Convert hex color string into RGB color object.
323
- *
324
293
  * @remarks
325
294
  * {@link http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb}
326
295
  * @param hex - Hex color string (3 or 6 digits, with or without #).
@@ -329,7 +298,6 @@ export declare const option: {
329
298
  export declare function hexToRGB(hex: string): RGB | null;
330
299
  /**
331
300
  * This function takes string color in hex or RGB format and adds the opacity, RGBA is passed through unchanged.
332
- *
333
301
  * @param color - The color string (hex, RGB, RGBA).
334
302
  * @param opacity - The new opacity.
335
303
  * @returns RGBA string, for example 'rgba(255, 0, 127, 0.3)'.
@@ -337,7 +305,6 @@ export declare function hexToRGB(hex: string): RGB | null;
337
305
  export declare function overrideOpacity(color: string, opacity: number): string;
338
306
  /**
339
307
  * Convert RGB \<0, 255\> into hex color string.
340
- *
341
308
  * @param red - Red channel.
342
309
  * @param green - Green channel.
343
310
  * @param blue - Blue channel.
@@ -374,7 +341,6 @@ export declare function parseColor(inputColor: ColorObject): ColorObject;
374
341
  export declare function parseColor(inputColor: ColorObject, defaultColor: FullColorObject): FullColorObject;
375
342
  /**
376
343
  * Convert RGB \<0, 255\> into HSV object.
377
- *
378
344
  * @remarks
379
345
  * {@link http://www.javascripter.net/faq/rgb2hsv.htm}
380
346
  * @param red - Red channel.
@@ -385,21 +351,18 @@ export declare function parseColor(inputColor: ColorObject, defaultColor: FullCo
385
351
  export declare function RGBToHSV(red: number, green: number, blue: number): HSV;
386
352
  /**
387
353
  * Append a string with css styles to an element.
388
- *
389
354
  * @param element - The element that will receive new styles.
390
355
  * @param cssText - The styles to be appended.
391
356
  */
392
357
  export declare function addCssText(element: HTMLElement, cssText: string): void;
393
358
  /**
394
359
  * Remove a string with css styles from an element.
395
- *
396
360
  * @param element - The element from which styles should be removed.
397
361
  * @param cssText - The styles to be removed.
398
362
  */
399
363
  export declare function removeCssText(element: HTMLElement, cssText: string): void;
400
364
  /**
401
365
  * Convert HSV \<0, 1\> into RGB color object.
402
- *
403
366
  * @remarks
404
367
  * {@link https://gist.github.com/mjijackson/5311256}
405
368
  * @param h - Hue.
@@ -410,7 +373,6 @@ export declare function removeCssText(element: HTMLElement, cssText: string): vo
410
373
  export declare function HSVToRGB(h: number, s: number, v: number): RGB;
411
374
  /**
412
375
  * Convert HSV \<0, 1\> into hex color string.
413
- *
414
376
  * @param h - Hue.
415
377
  * @param s - Saturation.
416
378
  * @param v - Value.
@@ -419,28 +381,24 @@ export declare function HSVToRGB(h: number, s: number, v: number): RGB;
419
381
  export declare function HSVToHex(h: number, s: number, v: number): string;
420
382
  /**
421
383
  * Convert hex color string into HSV \<0, 1\>.
422
- *
423
384
  * @param hex - Hex color string.
424
385
  * @returns HSV color object.
425
386
  */
426
387
  export declare function hexToHSV(hex: string): HSV;
427
388
  /**
428
389
  * Validate hex color string.
429
- *
430
390
  * @param hex - Unknown string that may contain a color.
431
391
  * @returns True if the string is valid, false otherwise.
432
392
  */
433
393
  export declare function isValidHex(hex: string): boolean;
434
394
  /**
435
395
  * Validate RGB color string.
436
- *
437
396
  * @param rgb - Unknown string that may contain a color.
438
397
  * @returns True if the string is valid, false otherwise.
439
398
  */
440
399
  export declare function isValidRGB(rgb: string): boolean;
441
400
  /**
442
401
  * Validate RGBA color string.
443
- *
444
402
  * @param rgba - Unknown string that may contain a color.
445
403
  * @returns True if the string is valid, false otherwise.
446
404
  */
@@ -448,7 +406,6 @@ export declare function isValidRGBA(rgba: string): boolean;
448
406
  /**
449
407
  * This recursively redirects the prototype of JSON objects to the referenceObject.
450
408
  * This is used for default options.
451
- *
452
409
  * @param fields - Names of properties to be bridged.
453
410
  * @param referenceObject - The original object.
454
411
  * @returns A new object inheriting from the referenceObject.
@@ -458,7 +415,6 @@ export declare function bridgeObject<T extends object>(referenceObject: T): T;
458
415
  export declare function bridgeObject<T>(referenceObject: T): null;
459
416
  /**
460
417
  * This method provides a stable sort implementation, very fast for presorted data.
461
- *
462
418
  * @param a - The array to be sorted (in-place).
463
419
  * @param compare - An order comparator.
464
420
  * @returns The argument a.
@@ -471,7 +427,6 @@ export declare function insertSort<T>(a: T[], compare: (a: T, b: T) => number):
471
427
  * which is optional for the user but mandatory for the program.
472
428
  *
473
429
  * The added value here of the merge is that option 'enabled' is set as required.
474
- *
475
430
  * @param mergeTarget - Either this.options or the options used for the groups.
476
431
  * @param options - Options.
477
432
  * @param option - Option key in the options argument.
@@ -485,7 +440,6 @@ export declare function binarySearchCustom<O extends object, K1 extends keyof O>
485
440
  * If it does not exist but is in between of two values, we return either the
486
441
  * one before or the one after, depending on user input If it is found, we
487
442
  * return the index, else -1.
488
- *
489
443
  * @param orderedItems - Sorted array.
490
444
  * @param target - The searched value.
491
445
  * @param field - Name of the property in items to be searched.
@@ -499,91 +453,78 @@ export declare function binarySearchValue<T extends string>(orderedItems: {
499
453
  export declare const easingFunctions: {
500
454
  /**
501
455
  * Provides no easing and no acceleration.
502
- *
503
456
  * @param t - Time.
504
457
  * @returns Value at time t.
505
458
  */
506
459
  linear(t: number): number;
507
460
  /**
508
461
  * Accelerate from zero velocity.
509
- *
510
462
  * @param t - Time.
511
463
  * @returns Value at time t.
512
464
  */
513
465
  easeInQuad(t: number): number;
514
466
  /**
515
467
  * Decelerate to zero velocity.
516
- *
517
468
  * @param t - Time.
518
469
  * @returns Value at time t.
519
470
  */
520
471
  easeOutQuad(t: number): number;
521
472
  /**
522
473
  * Accelerate until halfway, then decelerate.
523
- *
524
474
  * @param t - Time.
525
475
  * @returns Value at time t.
526
476
  */
527
477
  easeInOutQuad(t: number): number;
528
478
  /**
529
479
  * Accelerate from zero velocity.
530
- *
531
480
  * @param t - Time.
532
481
  * @returns Value at time t.
533
482
  */
534
483
  easeInCubic(t: number): number;
535
484
  /**
536
485
  * Decelerate to zero velocity.
537
- *
538
486
  * @param t - Time.
539
487
  * @returns Value at time t.
540
488
  */
541
489
  easeOutCubic(t: number): number;
542
490
  /**
543
491
  * Accelerate until halfway, then decelerate.
544
- *
545
492
  * @param t - Time.
546
493
  * @returns Value at time t.
547
494
  */
548
495
  easeInOutCubic(t: number): number;
549
496
  /**
550
497
  * Accelerate from zero velocity.
551
- *
552
498
  * @param t - Time.
553
499
  * @returns Value at time t.
554
500
  */
555
501
  easeInQuart(t: number): number;
556
502
  /**
557
503
  * Decelerate to zero velocity.
558
- *
559
504
  * @param t - Time.
560
505
  * @returns Value at time t.
561
506
  */
562
507
  easeOutQuart(t: number): number;
563
508
  /**
564
509
  * Accelerate until halfway, then decelerate.
565
- *
566
510
  * @param t - Time.
567
511
  * @returns Value at time t.
568
512
  */
569
513
  easeInOutQuart(t: number): number;
570
514
  /**
571
515
  * Accelerate from zero velocity.
572
- *
573
516
  * @param t - Time.
574
517
  * @returns Value at time t.
575
518
  */
576
519
  easeInQuint(t: number): number;
577
520
  /**
578
521
  * Decelerate to zero velocity.
579
- *
580
522
  * @param t - Time.
581
523
  * @returns Value at time t.
582
524
  */
583
525
  easeOutQuint(t: number): number;
584
526
  /**
585
527
  * Accelerate until halfway, then decelerate.
586
- *
587
528
  * @param t - Time.
588
529
  * @returns Value at time t.
589
530
  */
@@ -591,13 +532,11 @@ export declare const easingFunctions: {
591
532
  };
592
533
  /**
593
534
  * Experimentaly compute the width of the scrollbar for this browser.
594
- *
595
535
  * @returns The width in pixels.
596
536
  */
597
537
  export declare function getScrollBarWidth(): number;
598
538
  /**
599
539
  * Get the top most property value from a pile of objects.
600
- *
601
540
  * @param pile - Array of objects, no required format.
602
541
  * @param accessors - Array of property names.
603
542
  * For example `object['foo']['bar']` → `['foo', 'bar']`.