@bitbybit-dev/base 0.19.8 → 0.19.9

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 (61) hide show
  1. package/babel.config.cjs +1 -0
  2. package/babel.config.d.cts +5 -0
  3. package/index.d.ts +1 -0
  4. package/{index.ts → index.js} +1 -2
  5. package/lib/api/index.js +1 -0
  6. package/lib/api/inputs/base-inputs.d.ts +35 -0
  7. package/lib/api/inputs/base-inputs.js +1 -0
  8. package/lib/api/inputs/{color-inputs.ts → color-inputs.d.ts} +26 -48
  9. package/lib/api/inputs/color-inputs.js +164 -0
  10. package/lib/api/inputs/index.js +9 -0
  11. package/lib/api/inputs/inputs.js +9 -0
  12. package/lib/api/inputs/{lists-inputs.ts → lists-inputs.d.ts} +91 -190
  13. package/lib/api/inputs/lists-inputs.js +576 -0
  14. package/lib/api/inputs/{logic-inputs.ts → logic-inputs.d.ts} +24 -46
  15. package/lib/api/inputs/logic-inputs.js +111 -0
  16. package/lib/api/inputs/{math-inputs.ts → math-inputs.d.ts} +53 -97
  17. package/lib/api/inputs/math-inputs.js +391 -0
  18. package/lib/api/inputs/{point-inputs.ts → point-inputs.d.ts} +77 -168
  19. package/lib/api/inputs/point-inputs.js +521 -0
  20. package/lib/api/inputs/text-inputs.d.ts +83 -0
  21. package/lib/api/inputs/text-inputs.js +120 -0
  22. package/lib/api/inputs/{transforms-inputs.ts → transforms-inputs.d.ts} +35 -64
  23. package/lib/api/inputs/transforms-inputs.js +200 -0
  24. package/lib/api/inputs/{vector-inputs.ts → vector-inputs.d.ts} +48 -104
  25. package/lib/api/inputs/vector-inputs.js +304 -0
  26. package/lib/api/services/color.d.ts +114 -0
  27. package/lib/api/services/{color.ts → color.js} +15 -34
  28. package/lib/api/services/geometry-helper.d.ts +15 -0
  29. package/lib/api/services/{geometry-helper.ts → geometry-helper.js} +31 -43
  30. package/lib/api/services/{index.ts → index.d.ts} +1 -1
  31. package/lib/api/services/index.js +9 -0
  32. package/lib/api/services/lists.d.ts +287 -0
  33. package/lib/api/services/{lists.ts → lists.js} +59 -83
  34. package/lib/api/services/logic.d.ts +99 -0
  35. package/lib/api/services/{logic.ts → logic.js} +24 -32
  36. package/lib/api/services/math.d.ts +349 -0
  37. package/lib/api/services/{math.ts → math.js} +71 -136
  38. package/lib/api/services/point.d.ts +222 -0
  39. package/lib/api/services/{point.ts → point.js} +32 -67
  40. package/lib/api/services/text.d.ts +69 -0
  41. package/lib/api/services/{text.ts → text.js} +7 -17
  42. package/lib/api/services/transforms.d.ts +122 -0
  43. package/lib/api/services/{transforms.ts → transforms.js} +37 -83
  44. package/lib/api/services/vector.d.ts +320 -0
  45. package/lib/api/services/{vector.ts → vector.js} +42 -80
  46. package/lib/{index.ts → index.d.ts} +0 -1
  47. package/lib/index.js +1 -0
  48. package/package.json +1 -1
  49. package/lib/api/inputs/base-inputs.ts +0 -18
  50. package/lib/api/inputs/text-inputs.ts +0 -108
  51. package/lib/api/services/color.test.ts +0 -86
  52. package/lib/api/services/lists.test.ts +0 -612
  53. package/lib/api/services/logic.test.ts +0 -187
  54. package/lib/api/services/math.test.ts +0 -622
  55. package/lib/api/services/text.test.ts +0 -55
  56. package/lib/api/services/vector.test.ts +0 -360
  57. package/tsconfig.bitbybit.json +0 -26
  58. package/tsconfig.json +0 -24
  59. /package/lib/api/{index.ts → index.d.ts} +0 -0
  60. /package/lib/api/inputs/{index.ts → index.d.ts} +0 -0
  61. /package/lib/api/inputs/{inputs.ts → inputs.d.ts} +0 -0
@@ -1,12 +1,6 @@
1
1
  import { Base } from "./base-inputs";
2
-
3
- /* eslint-disable @typescript-eslint/no-namespace */
4
-
5
-
6
- // tslint:disable-next-line: no-namespace
7
- export namespace Logic {
8
-
9
- export enum BooleanOperatorsEnum {
2
+ export declare namespace Logic {
3
+ enum BooleanOperatorsEnum {
10
4
  less = "<",
11
5
  lessOrEqual = "<=",
12
6
  greater = ">",
@@ -14,14 +8,10 @@ export namespace Logic {
14
8
  tripleEqual = "===",
15
9
  tripleNotEqual = "!==",
16
10
  equal = "==",
17
- notEqual = "!=",
11
+ notEqual = "!="
18
12
  }
19
- export class ComparisonDto<T> {
20
- constructor(first?: T, second?: T, operator?: BooleanOperatorsEnum) {
21
- if (first !== undefined) { this.first = first; }
22
- if (second !== undefined) { this.second = second; }
23
- if (operator !== undefined) { this.operator = operator; }
24
- }
13
+ class ComparisonDto<T> {
14
+ constructor(first?: T, second?: T, operator?: BooleanOperatorsEnum);
25
15
  /**
26
16
  * First item
27
17
  * @default undefined
@@ -38,31 +28,24 @@ export namespace Logic {
38
28
  */
39
29
  operator: BooleanOperatorsEnum;
40
30
  }
41
- export class BooleanDto {
42
- constructor(boolean?: boolean) {
43
- if (boolean !== undefined) { this.boolean = boolean; }
44
- }
31
+ class BooleanDto {
32
+ constructor(boolean?: boolean);
45
33
  /**
46
34
  * Boolean value
47
35
  * @default false
48
36
  */
49
- boolean = false;
37
+ boolean: boolean;
50
38
  }
51
- export class BooleanListDto {
52
- constructor(booleans?: boolean) {
53
- if (booleans !== undefined) { this.booleans = booleans; }
54
- }
39
+ class BooleanListDto {
40
+ constructor(booleans?: boolean);
55
41
  /**
56
42
  * Boolean value
57
43
  * @default undefined
58
44
  */
59
- booleans;
45
+ booleans: any;
60
46
  }
61
- export class ValueGateDto<T> {
62
- constructor(value?: T, boolean?: boolean) {
63
- if (value !== undefined) { this.value = value; }
64
- if (boolean !== undefined) { this.boolean = boolean; }
65
- }
47
+ class ValueGateDto<T> {
48
+ constructor(value?: T, boolean?: boolean);
66
49
  /**
67
50
  * Value to transmit when gate will be released. When value is not released we will transmit undefined value
68
51
  * @default undefined
@@ -72,13 +55,10 @@ export namespace Logic {
72
55
  * Boolean value to release the gate
73
56
  * @default false
74
57
  */
75
- boolean = false;
58
+ boolean: boolean;
76
59
  }
77
- export class TwoValueGateDto<T, U> {
78
- constructor(value1?: T, value2?: U) {
79
- if (value1 !== undefined) { this.value1 = value1; }
80
- if (value2 !== undefined) { this.value2 = value2; }
81
- }
60
+ class TwoValueGateDto<T, U> {
61
+ constructor(value1?: T, value2?: U);
82
62
  /**
83
63
  * First value to check
84
64
  * @default undefined
@@ -92,10 +72,8 @@ export namespace Logic {
92
72
  */
93
73
  value2?: U;
94
74
  }
95
- export class RandomBooleansDto {
96
- constructor(length?: number) {
97
- if (length !== undefined) { this.length = length; }
98
- }
75
+ class RandomBooleansDto {
76
+ constructor(length?: number);
99
77
  /**
100
78
  * Length of the list
101
79
  * @default 10
@@ -103,7 +81,7 @@ export namespace Logic {
103
81
  * @maximum Infinity
104
82
  * @step 1
105
83
  */
106
- length = 10;
84
+ length: number;
107
85
  /**
108
86
  * Threshold for true value between 0 and 1. The closer the value is to 1 the more true values there will be in the list.
109
87
  * @default 0.5
@@ -111,9 +89,9 @@ export namespace Logic {
111
89
  * @maximum 1
112
90
  * @step 0.1
113
91
  */
114
- trueThreshold = 0.5;
92
+ trueThreshold: number;
115
93
  }
116
- export class TwoThresholdRandomGradientDto {
94
+ class TwoThresholdRandomGradientDto {
117
95
  /**
118
96
  * Numbers to remap to bools
119
97
  * @default undefined
@@ -144,14 +122,14 @@ export namespace Logic {
144
122
  */
145
123
  nrLevels: number;
146
124
  }
147
- export class ThresholdBooleanListDto {
125
+ class ThresholdBooleanListDto {
148
126
  /**
149
127
  * Numbers to remap to bools based on threshold
150
128
  * @default undefined
151
129
  */
152
130
  numbers: number[];
153
131
  /**
154
- * Threshold for the numeric value until which the output will be true.
132
+ * Threshold for the numeric value until which the output will be true.
155
133
  * If number in the list is larger than this threshold it will become false if inverse stays false.
156
134
  * @default 1
157
135
  * @minimum 0
@@ -165,7 +143,7 @@ export namespace Logic {
165
143
  */
166
144
  inverse: boolean;
167
145
  }
168
- export class ThresholdGapsBooleanListDto {
146
+ class ThresholdGapsBooleanListDto {
169
147
  /**
170
148
  * Numbers to remap to bools based on threshold
171
149
  * @default undefined
@@ -0,0 +1,111 @@
1
+ /* eslint-disable @typescript-eslint/no-namespace */
2
+ // tslint:disable-next-line: no-namespace
3
+ export var Logic;
4
+ (function (Logic) {
5
+ let BooleanOperatorsEnum;
6
+ (function (BooleanOperatorsEnum) {
7
+ BooleanOperatorsEnum["less"] = "<";
8
+ BooleanOperatorsEnum["lessOrEqual"] = "<=";
9
+ BooleanOperatorsEnum["greater"] = ">";
10
+ BooleanOperatorsEnum["greaterOrEqual"] = ">=";
11
+ BooleanOperatorsEnum["tripleEqual"] = "===";
12
+ BooleanOperatorsEnum["tripleNotEqual"] = "!==";
13
+ BooleanOperatorsEnum["equal"] = "==";
14
+ BooleanOperatorsEnum["notEqual"] = "!=";
15
+ })(BooleanOperatorsEnum = Logic.BooleanOperatorsEnum || (Logic.BooleanOperatorsEnum = {}));
16
+ class ComparisonDto {
17
+ constructor(first, second, operator) {
18
+ if (first !== undefined) {
19
+ this.first = first;
20
+ }
21
+ if (second !== undefined) {
22
+ this.second = second;
23
+ }
24
+ if (operator !== undefined) {
25
+ this.operator = operator;
26
+ }
27
+ }
28
+ }
29
+ Logic.ComparisonDto = ComparisonDto;
30
+ class BooleanDto {
31
+ constructor(boolean) {
32
+ /**
33
+ * Boolean value
34
+ * @default false
35
+ */
36
+ this.boolean = false;
37
+ if (boolean !== undefined) {
38
+ this.boolean = boolean;
39
+ }
40
+ }
41
+ }
42
+ Logic.BooleanDto = BooleanDto;
43
+ class BooleanListDto {
44
+ constructor(booleans) {
45
+ if (booleans !== undefined) {
46
+ this.booleans = booleans;
47
+ }
48
+ }
49
+ }
50
+ Logic.BooleanListDto = BooleanListDto;
51
+ class ValueGateDto {
52
+ constructor(value, boolean) {
53
+ /**
54
+ * Boolean value to release the gate
55
+ * @default false
56
+ */
57
+ this.boolean = false;
58
+ if (value !== undefined) {
59
+ this.value = value;
60
+ }
61
+ if (boolean !== undefined) {
62
+ this.boolean = boolean;
63
+ }
64
+ }
65
+ }
66
+ Logic.ValueGateDto = ValueGateDto;
67
+ class TwoValueGateDto {
68
+ constructor(value1, value2) {
69
+ if (value1 !== undefined) {
70
+ this.value1 = value1;
71
+ }
72
+ if (value2 !== undefined) {
73
+ this.value2 = value2;
74
+ }
75
+ }
76
+ }
77
+ Logic.TwoValueGateDto = TwoValueGateDto;
78
+ class RandomBooleansDto {
79
+ constructor(length) {
80
+ /**
81
+ * Length of the list
82
+ * @default 10
83
+ * @minimum 1
84
+ * @maximum Infinity
85
+ * @step 1
86
+ */
87
+ this.length = 10;
88
+ /**
89
+ * Threshold for true value between 0 and 1. The closer the value is to 1 the more true values there will be in the list.
90
+ * @default 0.5
91
+ * @minimum 0
92
+ * @maximum 1
93
+ * @step 0.1
94
+ */
95
+ this.trueThreshold = 0.5;
96
+ if (length !== undefined) {
97
+ this.length = length;
98
+ }
99
+ }
100
+ }
101
+ Logic.RandomBooleansDto = RandomBooleansDto;
102
+ class TwoThresholdRandomGradientDto {
103
+ }
104
+ Logic.TwoThresholdRandomGradientDto = TwoThresholdRandomGradientDto;
105
+ class ThresholdBooleanListDto {
106
+ }
107
+ Logic.ThresholdBooleanListDto = ThresholdBooleanListDto;
108
+ class ThresholdGapsBooleanListDto {
109
+ }
110
+ Logic.ThresholdGapsBooleanListDto = ThresholdGapsBooleanListDto;
111
+ })(Logic || (Logic = {}));
@@ -1,19 +1,13 @@
1
- /* eslint-disable @typescript-eslint/no-namespace */
2
-
3
-
4
- // tslint:disable-next-line: no-namespace
5
- export namespace Math {
6
-
7
- export enum mathTwoNrOperatorEnum {
1
+ export declare namespace Math {
2
+ enum mathTwoNrOperatorEnum {
8
3
  add = "add",
9
4
  subtract = "subtract",
10
5
  multiply = "multiply",
11
6
  divide = "divide",
12
7
  power = "power",
13
- modulus = "modulus",
8
+ modulus = "modulus"
14
9
  }
15
-
16
- export enum mathOneNrOperatorEnum {
10
+ enum mathOneNrOperatorEnum {
17
11
  absolute = "absolute",
18
12
  negate = "negate",
19
13
  ln = "ln",
@@ -32,9 +26,9 @@ export namespace Math {
32
26
  log = "log",
33
27
  exp = "exp",
34
28
  radToDeg = "radToDeg",
35
- degToRad = "degToRad",
29
+ degToRad = "degToRad"
36
30
  }
37
- export enum easeEnum {
31
+ enum easeEnum {
38
32
  easeInSine = "easeInSine",
39
33
  easeOutSine = "easeOutSine",
40
34
  easeInOutSine = "easeInOutSine",
@@ -64,13 +58,10 @@ export namespace Math {
64
58
  easeInOutBack = "easeInOutBack",
65
59
  easeInBounce = "easeInBounce",
66
60
  easeOutBounce = "easeOutBounce",
67
- easeInOutBounce = "easeInOutBounce",
61
+ easeInOutBounce = "easeInOutBounce"
68
62
  }
69
- export class ModulusDto {
70
- constructor(number?: number, modulus?: number) {
71
- if (number !== undefined) { this.number = number; }
72
- if (modulus !== undefined) { this.modulus = modulus; }
73
- }
63
+ class ModulusDto {
64
+ constructor(number?: number, modulus?: number);
74
65
  /**
75
66
  * Number
76
67
  * @default 1
@@ -78,7 +69,7 @@ export namespace Math {
78
69
  * @maximum Infinity
79
70
  * @step 0.1
80
71
  */
81
- number = 1;
72
+ number: number;
82
73
  /**
83
74
  * Modulus
84
75
  * @default 1
@@ -86,12 +77,10 @@ export namespace Math {
86
77
  * @maximum Infinity
87
78
  * @step 0.1
88
79
  */
89
- modulus = 2;
80
+ modulus: number;
90
81
  }
91
- export class NumberDto {
92
- constructor(number?: number) {
93
- if (number !== undefined) { this.number = number; }
94
- }
82
+ class NumberDto {
83
+ constructor(number?: number);
95
84
  /**
96
85
  * Number
97
86
  * @default 1
@@ -99,12 +88,10 @@ export namespace Math {
99
88
  * @maximum Infinity
100
89
  * @step 0.1
101
90
  */
102
- number = 1;
91
+ number: number;
103
92
  }
104
- export class EaseDto {
105
- constructor(x?: number) {
106
- if (x !== undefined) { this.x = x; }
107
- }
93
+ class EaseDto {
94
+ constructor(x?: number);
108
95
  /**
109
96
  * X value param between 0-1
110
97
  * @default 0.5
@@ -112,7 +99,7 @@ export namespace Math {
112
99
  * @maximum 1
113
100
  * @step 0.1
114
101
  */
115
- x = 0.5;
102
+ x: number;
116
103
  /**
117
104
  * Minimum value
118
105
  * @default 0
@@ -120,7 +107,7 @@ export namespace Math {
120
107
  * @maximum Infinity
121
108
  * @step 0.1
122
109
  */
123
- min = 0;
110
+ min: number;
124
111
  /**
125
112
  * Maximum value
126
113
  * @default 1
@@ -128,18 +115,15 @@ export namespace Math {
128
115
  * @maximum Infinity
129
116
  * @step 0.1
130
117
  */
131
- max = 1;
118
+ max: number;
132
119
  /**
133
120
  * Ease function
134
121
  * @default easeInSine
135
122
  */
136
123
  ease: easeEnum;
137
124
  }
138
- export class RoundToDecimalsDto {
139
- constructor(number?: number, decimalPlaces?: number) {
140
- if (number !== undefined) { this.number = number; }
141
- if (decimalPlaces !== undefined) { this.decimalPlaces = decimalPlaces; }
142
- }
125
+ class RoundToDecimalsDto {
126
+ constructor(number?: number, decimalPlaces?: number);
143
127
  /**
144
128
  * Number to round
145
129
  * @default 1.123456
@@ -147,7 +131,7 @@ export namespace Math {
147
131
  * @maximum Infinity
148
132
  * @step 0.1
149
133
  */
150
- number = 1.123456;
134
+ number: number;
151
135
  /**
152
136
  * Number of decimal places
153
137
  * @default 2
@@ -155,14 +139,10 @@ export namespace Math {
155
139
  * @maximum Infinity
156
140
  * @step 1
157
141
  */
158
- decimalPlaces = 2;
142
+ decimalPlaces: number;
159
143
  }
160
- export class ActionOnTwoNumbersDto {
161
- constructor(first?: number, second?: number, operation?: mathTwoNrOperatorEnum) {
162
- if (first !== undefined) { this.first = first; }
163
- if (second !== undefined) { this.second = second; }
164
- if (operation !== undefined) { this.operation = operation; }
165
- }
144
+ class ActionOnTwoNumbersDto {
145
+ constructor(first?: number, second?: number, operation?: mathTwoNrOperatorEnum);
166
146
  /**
167
147
  * First number
168
148
  * @default 1
@@ -170,7 +150,7 @@ export namespace Math {
170
150
  * @maximum Infinity
171
151
  * @step 0.1
172
152
  */
173
- first = 1;
153
+ first: number;
174
154
  /**
175
155
  * Second number
176
156
  * @default 1
@@ -178,18 +158,15 @@ export namespace Math {
178
158
  * @maximum Infinity
179
159
  * @step 0.1
180
160
  */
181
- second = 1;
161
+ second: number;
182
162
  /**
183
163
  * Point
184
164
  * @default add
185
165
  */
186
166
  operation: mathTwoNrOperatorEnum;
187
167
  }
188
- export class TwoNumbersDto {
189
- constructor(first?: number, second?: number) {
190
- if (first !== undefined) { this.first = first; }
191
- if (second !== undefined) { this.second = second; }
192
- }
168
+ class TwoNumbersDto {
169
+ constructor(first?: number, second?: number);
193
170
  /**
194
171
  * First number
195
172
  * @default 1
@@ -197,7 +174,7 @@ export namespace Math {
197
174
  * @maximum Infinity
198
175
  * @step 0.1
199
176
  */
200
- first = 1;
177
+ first: number;
201
178
  /**
202
179
  * Second number
203
180
  * @default 2
@@ -205,13 +182,10 @@ export namespace Math {
205
182
  * @maximum Infinity
206
183
  * @step 0.1
207
184
  */
208
- second = 2;
185
+ second: number;
209
186
  }
210
- export class ActionOnOneNumberDto {
211
- constructor(number?: number, operation?: mathOneNrOperatorEnum) {
212
- if (number !== undefined) { this.number = number; }
213
- if (operation !== undefined) { this.operation = operation; }
214
- }
187
+ class ActionOnOneNumberDto {
188
+ constructor(number?: number, operation?: mathOneNrOperatorEnum);
215
189
  /**
216
190
  * First number
217
191
  * @default 1
@@ -219,21 +193,15 @@ export namespace Math {
219
193
  * @maximum Infinity
220
194
  * @step 0.1
221
195
  */
222
- number = 1;
196
+ number: number;
223
197
  /**
224
198
  * Point
225
199
  * @default absolute
226
200
  */
227
201
  operation: mathOneNrOperatorEnum;
228
202
  }
229
- export class RemapNumberDto {
230
- constructor(number?: number, fromLow?: number, fromHigh?: number, toLow?: number, toHigh?: number) {
231
- if (number !== undefined) { this.number = number; }
232
- if (fromLow !== undefined) { this.fromLow = fromLow; }
233
- if (fromHigh !== undefined) { this.fromHigh = fromHigh; }
234
- if (toLow !== undefined) { this.toLow = toLow; }
235
- if (toHigh !== undefined) { this.toHigh = toHigh; }
236
- }
203
+ class RemapNumberDto {
204
+ constructor(number?: number, fromLow?: number, fromHigh?: number, toLow?: number, toHigh?: number);
237
205
  /**
238
206
  * Number to remap
239
207
  * @default 0.5
@@ -241,7 +209,7 @@ export namespace Math {
241
209
  * @maximum Infinity
242
210
  * @step 0.1
243
211
  */
244
- number = 0.5;
212
+ number: number;
245
213
  /**
246
214
  * First number range min
247
215
  * @default 0
@@ -249,7 +217,7 @@ export namespace Math {
249
217
  * @maximum Infinity
250
218
  * @step 0.1
251
219
  */
252
- fromLow = 0;
220
+ fromLow: number;
253
221
  /**
254
222
  * Map to range min
255
223
  * @default 1
@@ -257,7 +225,7 @@ export namespace Math {
257
225
  * @maximum Infinity
258
226
  * @step 0.1
259
227
  */
260
- fromHigh = 1;
228
+ fromHigh: number;
261
229
  /**
262
230
  * First number range max
263
231
  * @default 1
@@ -265,7 +233,7 @@ export namespace Math {
265
233
  * @maximum Infinity
266
234
  * @step 0.1
267
235
  */
268
- toLow = 1;
236
+ toLow: number;
269
237
  /**
270
238
  * Map to range max
271
239
  * @default 2
@@ -273,13 +241,10 @@ export namespace Math {
273
241
  * @maximum Infinity
274
242
  * @step 0.1
275
243
  */
276
- toHigh = 2;
244
+ toHigh: number;
277
245
  }
278
- export class RandomNumberDto {
279
- constructor(low?: number, high?: number) {
280
- if (low !== undefined) { this.low = low; }
281
- if (high !== undefined) { this.high = high; }
282
- }
246
+ class RandomNumberDto {
247
+ constructor(low?: number, high?: number);
283
248
  /**
284
249
  * Low range of random value
285
250
  * @default 0
@@ -287,7 +252,7 @@ export namespace Math {
287
252
  * @maximum Infinity
288
253
  * @step 0.1
289
254
  */
290
- low = 0;
255
+ low: number;
291
256
  /**
292
257
  * High range of random value
293
258
  * @default 1
@@ -295,15 +260,10 @@ export namespace Math {
295
260
  * @maximum Infinity
296
261
  * @step 0.1
297
262
  */
298
- high = 1;
263
+ high: number;
299
264
  }
300
-
301
- export class RandomNumbersDto {
302
- constructor(low?: number, high?: number, count?: number) {
303
- if (low !== undefined) { this.low = low; }
304
- if (high !== undefined) { this.high = high; }
305
- if (count !== undefined) { this.count = count; }
306
- }
265
+ class RandomNumbersDto {
266
+ constructor(low?: number, high?: number, count?: number);
307
267
  /**
308
268
  * Low range of random value
309
269
  * @default 0
@@ -311,7 +271,7 @@ export namespace Math {
311
271
  * @maximum Infinity
312
272
  * @step 0.1
313
273
  */
314
- low = 0;
274
+ low: number;
315
275
  /**
316
276
  * High range of random value
317
277
  * @default 1
@@ -319,7 +279,7 @@ export namespace Math {
319
279
  * @maximum Infinity
320
280
  * @step 0.1
321
281
  */
322
- high = 1;
282
+ high: number;
323
283
  /**
324
284
  * Number of produced random values
325
285
  * @default 10
@@ -327,14 +287,10 @@ export namespace Math {
327
287
  * @maximum Infinity
328
288
  * @step 1
329
289
  */
330
- count = 10;
290
+ count: number;
331
291
  }
332
-
333
- export class ToFixedDto {
334
- constructor(number?: number, decimalPlaces?: number) {
335
- if (number !== undefined) { this.number = number; }
336
- if (decimalPlaces !== undefined) { this.decimalPlaces = decimalPlaces; }
337
- }
292
+ class ToFixedDto {
293
+ constructor(number?: number, decimalPlaces?: number);
338
294
  /**
339
295
  * Number to round
340
296
  * @default undefined
@@ -350,6 +306,6 @@ export namespace Math {
350
306
  * @maximum Infinity
351
307
  * @step 1
352
308
  */
353
- decimalPlaces = 2;
309
+ decimalPlaces: number;
354
310
  }
355
311
  }