@bitbybit-dev/base 0.19.8 → 0.20.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.
- package/babel.config.cjs +1 -0
- package/babel.config.d.cts +5 -0
- package/index.d.ts +1 -0
- package/{index.ts → index.js} +1 -2
- package/lib/api/index.js +1 -0
- package/lib/api/inputs/base-inputs.d.ts +35 -0
- package/lib/api/inputs/base-inputs.js +1 -0
- package/lib/api/inputs/{color-inputs.ts → color-inputs.d.ts} +26 -48
- package/lib/api/inputs/color-inputs.js +164 -0
- package/lib/api/inputs/dates-inputs.d.ts +216 -0
- package/lib/api/inputs/dates-inputs.js +271 -0
- package/lib/api/inputs/{index.ts → index.d.ts} +1 -0
- package/lib/api/inputs/index.js +10 -0
- package/lib/api/inputs/{inputs.ts → inputs.d.ts} +1 -0
- package/lib/api/inputs/inputs.js +10 -0
- package/lib/api/inputs/{lists-inputs.ts → lists-inputs.d.ts} +91 -190
- package/lib/api/inputs/lists-inputs.js +576 -0
- package/lib/api/inputs/{logic-inputs.ts → logic-inputs.d.ts} +24 -46
- package/lib/api/inputs/logic-inputs.js +111 -0
- package/lib/api/inputs/{math-inputs.ts → math-inputs.d.ts} +53 -97
- package/lib/api/inputs/math-inputs.js +391 -0
- package/lib/api/inputs/{point-inputs.ts → point-inputs.d.ts} +77 -168
- package/lib/api/inputs/point-inputs.js +521 -0
- package/lib/api/inputs/text-inputs.d.ts +83 -0
- package/lib/api/inputs/text-inputs.js +120 -0
- package/lib/api/inputs/{transforms-inputs.ts → transforms-inputs.d.ts} +35 -64
- package/lib/api/inputs/transforms-inputs.js +200 -0
- package/lib/api/inputs/{vector-inputs.ts → vector-inputs.d.ts} +48 -104
- package/lib/api/inputs/vector-inputs.js +304 -0
- package/lib/api/services/color.d.ts +114 -0
- package/lib/api/services/{color.ts → color.js} +15 -34
- package/lib/api/services/dates.d.ts +367 -0
- package/lib/api/services/dates.js +450 -0
- package/lib/api/services/geometry-helper.d.ts +15 -0
- package/lib/api/services/{geometry-helper.ts → geometry-helper.js} +31 -43
- package/lib/api/services/{index.ts → index.d.ts} +2 -1
- package/lib/api/services/index.js +10 -0
- package/lib/api/services/lists.d.ts +287 -0
- package/lib/api/services/{lists.ts → lists.js} +59 -83
- package/lib/api/services/logic.d.ts +99 -0
- package/lib/api/services/{logic.ts → logic.js} +24 -32
- package/lib/api/services/math.d.ts +349 -0
- package/lib/api/services/{math.ts → math.js} +71 -136
- package/lib/api/services/point.d.ts +222 -0
- package/lib/api/services/{point.ts → point.js} +32 -67
- package/lib/api/services/text.d.ts +69 -0
- package/lib/api/services/{text.ts → text.js} +7 -17
- package/lib/api/services/transforms.d.ts +122 -0
- package/lib/api/services/{transforms.ts → transforms.js} +37 -83
- package/lib/api/services/vector.d.ts +320 -0
- package/lib/api/services/{vector.ts → vector.js} +42 -80
- package/lib/{index.ts → index.d.ts} +0 -1
- package/lib/index.js +1 -0
- package/package.json +1 -1
- package/lib/api/inputs/base-inputs.ts +0 -18
- package/lib/api/inputs/text-inputs.ts +0 -108
- package/lib/api/services/color.test.ts +0 -86
- package/lib/api/services/lists.test.ts +0 -612
- package/lib/api/services/logic.test.ts +0 -187
- package/lib/api/services/math.test.ts +0 -622
- package/lib/api/services/text.test.ts +0 -55
- package/lib/api/services/vector.test.ts +0 -360
- package/tsconfig.bitbybit.json +0 -26
- package/tsconfig.json +0 -24
- /package/lib/api/{index.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as Inputs from "../inputs";
|
|
2
|
+
import { MathBitByBit } from "./math";
|
|
3
|
+
export declare class Color {
|
|
4
|
+
private readonly math;
|
|
5
|
+
constructor(math: MathBitByBit);
|
|
6
|
+
/**
|
|
7
|
+
* Creates a hex color
|
|
8
|
+
* @param inputs Color hex
|
|
9
|
+
* @returns color string
|
|
10
|
+
* @group create
|
|
11
|
+
* @shortname color
|
|
12
|
+
* @drawable false
|
|
13
|
+
*/
|
|
14
|
+
hexColor(inputs: Inputs.Color.HexDto): Inputs.Base.Color;
|
|
15
|
+
/**
|
|
16
|
+
* Creates rgb color from hex
|
|
17
|
+
* @param inputs Color hex
|
|
18
|
+
* @returns rgb color
|
|
19
|
+
* @group convert
|
|
20
|
+
* @shortname hex to rgb
|
|
21
|
+
* @drawable false
|
|
22
|
+
*/
|
|
23
|
+
hexToRgb(inputs: Inputs.Color.HexDto): Inputs.Base.ColorRGB;
|
|
24
|
+
/**
|
|
25
|
+
* Creates hex color from rgb
|
|
26
|
+
* @param inputs Color hext
|
|
27
|
+
* @returns hex color
|
|
28
|
+
* @group convert
|
|
29
|
+
* @shortname rgb to hex
|
|
30
|
+
* @drawable false
|
|
31
|
+
*/
|
|
32
|
+
rgbToHex(inputs: Inputs.Color.RGBMinMaxDto): Inputs.Base.Color;
|
|
33
|
+
/**
|
|
34
|
+
* Creates hex color from rgb obj that contains {r, g, b} properties in certain range
|
|
35
|
+
* @param inputs Color hext
|
|
36
|
+
* @returns hex color string
|
|
37
|
+
* @group convert
|
|
38
|
+
* @shortname rgb obj to hex
|
|
39
|
+
* @drawable false
|
|
40
|
+
*/
|
|
41
|
+
rgbObjToHex(inputs: Inputs.Color.RGBObjectMaxDto): Inputs.Base.Color;
|
|
42
|
+
/**
|
|
43
|
+
* Creates rgb color from hex and maps to different range if needed
|
|
44
|
+
* @param inputs Color hext
|
|
45
|
+
* @returns rgb color
|
|
46
|
+
* @group convert
|
|
47
|
+
* @shortname hex to rgb mapped
|
|
48
|
+
* @drawable false
|
|
49
|
+
*/
|
|
50
|
+
hexToRgbMapped(inputs: Inputs.Color.HexDtoMapped): Inputs.Base.ColorRGB;
|
|
51
|
+
/**
|
|
52
|
+
* Get red param
|
|
53
|
+
* @param inputs Color hext
|
|
54
|
+
* @returns rgb color
|
|
55
|
+
* @group hex to
|
|
56
|
+
* @shortname red
|
|
57
|
+
* @drawable false
|
|
58
|
+
*/
|
|
59
|
+
getRedParam(inputs: Inputs.Color.HexDtoMapped): number;
|
|
60
|
+
/**
|
|
61
|
+
* Get green param
|
|
62
|
+
* @param inputs Color hext
|
|
63
|
+
* @returns rgb color
|
|
64
|
+
* @group hex to
|
|
65
|
+
* @shortname green
|
|
66
|
+
* @drawable false
|
|
67
|
+
*/
|
|
68
|
+
getGreenParam(inputs: Inputs.Color.HexDtoMapped): number;
|
|
69
|
+
/**
|
|
70
|
+
* Get blue param
|
|
71
|
+
* @param inputs Color hext
|
|
72
|
+
* @returns blue param
|
|
73
|
+
* @group hex to
|
|
74
|
+
* @shortname blue
|
|
75
|
+
* @drawable false
|
|
76
|
+
*/
|
|
77
|
+
getBlueParam(inputs: Inputs.Color.HexDtoMapped): number;
|
|
78
|
+
/**
|
|
79
|
+
* RGB to red
|
|
80
|
+
* @param inputs Color rgb
|
|
81
|
+
* @returns red param
|
|
82
|
+
* @group rgb to
|
|
83
|
+
* @shortname red
|
|
84
|
+
* @drawable false
|
|
85
|
+
*/
|
|
86
|
+
rgbToRed(inputs: Inputs.Color.RGBObjectDto): number;
|
|
87
|
+
/**
|
|
88
|
+
* RGB to green
|
|
89
|
+
* @param inputs Color rgb
|
|
90
|
+
* @returns green param
|
|
91
|
+
* @group rgb to
|
|
92
|
+
* @shortname green
|
|
93
|
+
* @drawable false
|
|
94
|
+
*/
|
|
95
|
+
rgbToGreen(inputs: Inputs.Color.RGBObjectDto): number;
|
|
96
|
+
/**
|
|
97
|
+
* RGB to blue
|
|
98
|
+
* @param inputs Color rgb
|
|
99
|
+
* @returns blue param
|
|
100
|
+
* @group rgb to
|
|
101
|
+
* @shortname blue
|
|
102
|
+
* @drawable false
|
|
103
|
+
*/
|
|
104
|
+
rgbToBlue(inputs: Inputs.Color.RGBObjectDto): number;
|
|
105
|
+
/**
|
|
106
|
+
* Invert color
|
|
107
|
+
* @param inputs hex color and black and white option
|
|
108
|
+
* @returns inverted color
|
|
109
|
+
* @group hex to
|
|
110
|
+
* @shortname invert color
|
|
111
|
+
* @drawable false
|
|
112
|
+
*/
|
|
113
|
+
invert(inputs: Inputs.Color.InvertHexDto): Inputs.Base.Color;
|
|
114
|
+
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import * as Inputs from "../inputs";
|
|
2
|
-
import { MathBitByBit } from "./math";
|
|
3
|
-
|
|
4
1
|
export class Color {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
constructor(math) {
|
|
3
|
+
this.math = math;
|
|
4
|
+
}
|
|
9
5
|
/**
|
|
10
6
|
* Creates a hex color
|
|
11
7
|
* @param inputs Color hex
|
|
@@ -14,10 +10,9 @@ export class Color {
|
|
|
14
10
|
* @shortname color
|
|
15
11
|
* @drawable false
|
|
16
12
|
*/
|
|
17
|
-
hexColor(inputs
|
|
13
|
+
hexColor(inputs) {
|
|
18
14
|
return inputs.color;
|
|
19
15
|
}
|
|
20
|
-
|
|
21
16
|
/**
|
|
22
17
|
* Creates rgb color from hex
|
|
23
18
|
* @param inputs Color hex
|
|
@@ -26,7 +21,7 @@ export class Color {
|
|
|
26
21
|
* @shortname hex to rgb
|
|
27
22
|
* @drawable false
|
|
28
23
|
*/
|
|
29
|
-
hexToRgb(inputs
|
|
24
|
+
hexToRgb(inputs) {
|
|
30
25
|
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(inputs.color);
|
|
31
26
|
return result ? {
|
|
32
27
|
r: parseInt(result[1], 16),
|
|
@@ -34,7 +29,6 @@ export class Color {
|
|
|
34
29
|
b: parseInt(result[3], 16)
|
|
35
30
|
} : undefined;
|
|
36
31
|
}
|
|
37
|
-
|
|
38
32
|
/**
|
|
39
33
|
* Creates hex color from rgb
|
|
40
34
|
* @param inputs Color hext
|
|
@@ -43,11 +37,10 @@ export class Color {
|
|
|
43
37
|
* @shortname rgb to hex
|
|
44
38
|
* @drawable false
|
|
45
39
|
*/
|
|
46
|
-
rgbToHex(inputs
|
|
40
|
+
rgbToHex(inputs) {
|
|
47
41
|
let r = inputs.r;
|
|
48
42
|
let g = inputs.g;
|
|
49
43
|
let b = inputs.b;
|
|
50
|
-
|
|
51
44
|
// sometimes rgb values are in 0 - 100 or 0 - 1 ranges
|
|
52
45
|
// so we need to remap them to 0 - 255
|
|
53
46
|
if (inputs.max !== 255) {
|
|
@@ -55,13 +48,9 @@ export class Color {
|
|
|
55
48
|
g = Math.round(this.math.remap({ number: g, fromLow: inputs.min, fromHigh: inputs.max, toLow: 0, toHigh: 255 }));
|
|
56
49
|
b = Math.round(this.math.remap({ number: b, fromLow: inputs.min, fromHigh: inputs.max, toLow: 0, toHigh: 255 }));
|
|
57
50
|
}
|
|
58
|
-
|
|
59
51
|
const s = `#${Number(0x1000000 + r * 0x10000 + g * 0x100 + b).toString(16).substring(1, 7)}`;
|
|
60
|
-
|
|
61
52
|
return s;
|
|
62
53
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
54
|
/**
|
|
66
55
|
* Creates hex color from rgb obj that contains {r, g, b} properties in certain range
|
|
67
56
|
* @param inputs Color hext
|
|
@@ -70,10 +59,9 @@ export class Color {
|
|
|
70
59
|
* @shortname rgb obj to hex
|
|
71
60
|
* @drawable false
|
|
72
61
|
*/
|
|
73
|
-
rgbObjToHex(inputs
|
|
62
|
+
rgbObjToHex(inputs) {
|
|
74
63
|
return this.rgbToHex({ r: inputs.rgb.r, g: inputs.rgb.g, b: inputs.rgb.b, min: inputs.min, max: inputs.max });
|
|
75
64
|
}
|
|
76
|
-
|
|
77
65
|
/**
|
|
78
66
|
* Creates rgb color from hex and maps to different range if needed
|
|
79
67
|
* @param inputs Color hext
|
|
@@ -82,7 +70,7 @@ export class Color {
|
|
|
82
70
|
* @shortname hex to rgb mapped
|
|
83
71
|
* @drawable false
|
|
84
72
|
*/
|
|
85
|
-
hexToRgbMapped(inputs
|
|
73
|
+
hexToRgbMapped(inputs) {
|
|
86
74
|
const rgb = this.hexToRgb(inputs);
|
|
87
75
|
return {
|
|
88
76
|
r: this.math.remap({ number: rgb.r, fromLow: 0, fromHigh: 255, toLow: inputs.from, toHigh: inputs.to }),
|
|
@@ -90,7 +78,6 @@ export class Color {
|
|
|
90
78
|
b: this.math.remap({ number: rgb.b, fromLow: 0, fromHigh: 255, toLow: inputs.from, toHigh: inputs.to }),
|
|
91
79
|
};
|
|
92
80
|
}
|
|
93
|
-
|
|
94
81
|
/**
|
|
95
82
|
* Get red param
|
|
96
83
|
* @param inputs Color hext
|
|
@@ -99,11 +86,10 @@ export class Color {
|
|
|
99
86
|
* @shortname red
|
|
100
87
|
* @drawable false
|
|
101
88
|
*/
|
|
102
|
-
getRedParam(inputs
|
|
89
|
+
getRedParam(inputs) {
|
|
103
90
|
const rgb = this.hexToRgbMapped(inputs);
|
|
104
91
|
return rgb.r;
|
|
105
92
|
}
|
|
106
|
-
|
|
107
93
|
/**
|
|
108
94
|
* Get green param
|
|
109
95
|
* @param inputs Color hext
|
|
@@ -112,11 +98,10 @@ export class Color {
|
|
|
112
98
|
* @shortname green
|
|
113
99
|
* @drawable false
|
|
114
100
|
*/
|
|
115
|
-
getGreenParam(inputs
|
|
101
|
+
getGreenParam(inputs) {
|
|
116
102
|
const rgb = this.hexToRgbMapped(inputs);
|
|
117
103
|
return rgb.g;
|
|
118
104
|
}
|
|
119
|
-
|
|
120
105
|
/**
|
|
121
106
|
* Get blue param
|
|
122
107
|
* @param inputs Color hext
|
|
@@ -125,11 +110,10 @@ export class Color {
|
|
|
125
110
|
* @shortname blue
|
|
126
111
|
* @drawable false
|
|
127
112
|
*/
|
|
128
|
-
getBlueParam(inputs
|
|
113
|
+
getBlueParam(inputs) {
|
|
129
114
|
const rgb = this.hexToRgbMapped(inputs);
|
|
130
115
|
return rgb.b;
|
|
131
116
|
}
|
|
132
|
-
|
|
133
117
|
/**
|
|
134
118
|
* RGB to red
|
|
135
119
|
* @param inputs Color rgb
|
|
@@ -138,10 +122,9 @@ export class Color {
|
|
|
138
122
|
* @shortname red
|
|
139
123
|
* @drawable false
|
|
140
124
|
*/
|
|
141
|
-
rgbToRed(inputs
|
|
125
|
+
rgbToRed(inputs) {
|
|
142
126
|
return inputs.rgb.r;
|
|
143
127
|
}
|
|
144
|
-
|
|
145
128
|
/**
|
|
146
129
|
* RGB to green
|
|
147
130
|
* @param inputs Color rgb
|
|
@@ -150,10 +133,9 @@ export class Color {
|
|
|
150
133
|
* @shortname green
|
|
151
134
|
* @drawable false
|
|
152
135
|
*/
|
|
153
|
-
rgbToGreen(inputs
|
|
136
|
+
rgbToGreen(inputs) {
|
|
154
137
|
return inputs.rgb.g;
|
|
155
138
|
}
|
|
156
|
-
|
|
157
139
|
/**
|
|
158
140
|
* RGB to blue
|
|
159
141
|
* @param inputs Color rgb
|
|
@@ -162,10 +144,9 @@ export class Color {
|
|
|
162
144
|
* @shortname blue
|
|
163
145
|
* @drawable false
|
|
164
146
|
*/
|
|
165
|
-
rgbToBlue(inputs
|
|
147
|
+
rgbToBlue(inputs) {
|
|
166
148
|
return inputs.rgb.b;
|
|
167
149
|
}
|
|
168
|
-
|
|
169
150
|
/**
|
|
170
151
|
* Invert color
|
|
171
152
|
* @param inputs hex color and black and white option
|
|
@@ -174,7 +155,7 @@ export class Color {
|
|
|
174
155
|
* @shortname invert color
|
|
175
156
|
* @drawable false
|
|
176
157
|
*/
|
|
177
|
-
invert(inputs
|
|
158
|
+
invert(inputs) {
|
|
178
159
|
const { r, g, b } = this.hexToRgbMapped({ color: inputs.color, from: 0, to: 255 });
|
|
179
160
|
if (inputs.blackAndWhite) {
|
|
180
161
|
return (r * 0.299 + g * 0.587 + b * 0.114) > 186
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import * as Inputs from "../inputs";
|
|
2
|
+
/**
|
|
3
|
+
* Contains various date methods.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Dates {
|
|
6
|
+
/**
|
|
7
|
+
* Returns a date as a string value.
|
|
8
|
+
* @param inputs a date
|
|
9
|
+
* @returns date as string
|
|
10
|
+
* @group convert
|
|
11
|
+
* @shortname date to string
|
|
12
|
+
* @drawable false
|
|
13
|
+
*/
|
|
14
|
+
toDateString(inputs: Inputs.Dates.DateDto): string;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a date as a string value in ISO format.
|
|
17
|
+
* @param inputs a date
|
|
18
|
+
* @returns date as string
|
|
19
|
+
* @group convert
|
|
20
|
+
* @shortname date to iso string
|
|
21
|
+
* @drawable false
|
|
22
|
+
*/
|
|
23
|
+
toISOString(inputs: Inputs.Dates.DateDto): string;
|
|
24
|
+
/**
|
|
25
|
+
* Returns a date as a string value in JSON format.
|
|
26
|
+
* @param inputs a date
|
|
27
|
+
* @returns date as string
|
|
28
|
+
* @group convert
|
|
29
|
+
* @shortname date to json
|
|
30
|
+
* @drawable false
|
|
31
|
+
*/
|
|
32
|
+
toJSON(inputs: Inputs.Dates.DateDto): string;
|
|
33
|
+
/**
|
|
34
|
+
* Returns a string representation of a date. The format of the string depends on the locale.
|
|
35
|
+
* @param inputs a date
|
|
36
|
+
* @returns date as string
|
|
37
|
+
* @group convert
|
|
38
|
+
* @shortname date to locale string
|
|
39
|
+
* @drawable false
|
|
40
|
+
*/
|
|
41
|
+
toString(inputs: Inputs.Dates.DateDto): string;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a time as a string value.
|
|
44
|
+
* @param inputs a date
|
|
45
|
+
* @returns time as string
|
|
46
|
+
* @group convert
|
|
47
|
+
* @shortname date to time string
|
|
48
|
+
* @drawable false
|
|
49
|
+
*/
|
|
50
|
+
toTimeString(inputs: Inputs.Dates.DateDto): string;
|
|
51
|
+
/**
|
|
52
|
+
* Returns a date converted to a string using Universal Coordinated Time (UTC).
|
|
53
|
+
* @param inputs a date
|
|
54
|
+
* @returns date as utc string
|
|
55
|
+
* @group convert
|
|
56
|
+
* @shortname date to utc string
|
|
57
|
+
* @drawable false
|
|
58
|
+
*/
|
|
59
|
+
toUTCString(inputs: Inputs.Dates.DateDto): string;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the current date and time.
|
|
62
|
+
* @returns date
|
|
63
|
+
* @group create
|
|
64
|
+
* @shortname now
|
|
65
|
+
* @drawable false
|
|
66
|
+
*/
|
|
67
|
+
now(): Date;
|
|
68
|
+
/**
|
|
69
|
+
* Creates a new date object using the provided date params.
|
|
70
|
+
* @param inputs a date
|
|
71
|
+
* @returns date
|
|
72
|
+
* @group create
|
|
73
|
+
* @shortname create date
|
|
74
|
+
* @drawable false
|
|
75
|
+
*/
|
|
76
|
+
createDate(inputs: Inputs.Dates.CreateDateDto): Date;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
|
|
79
|
+
* @param inputs a date
|
|
80
|
+
* @returns date
|
|
81
|
+
* @group create
|
|
82
|
+
* @shortname create utc date
|
|
83
|
+
* @drawable false
|
|
84
|
+
*/
|
|
85
|
+
createDateUTC(inputs: Inputs.Dates.CreateDateDto): Date;
|
|
86
|
+
/**
|
|
87
|
+
* Creates a new date object using the provided unix time stamp.
|
|
88
|
+
* @param inputs a unix time stamp
|
|
89
|
+
* @returns date
|
|
90
|
+
* @group create
|
|
91
|
+
* @shortname create from unix timestamp
|
|
92
|
+
* @drawable false
|
|
93
|
+
*/
|
|
94
|
+
createFromUnixTimeStamp(inputs: Inputs.Dates.CreateFromUnixTimeStampDto): Date;
|
|
95
|
+
/**
|
|
96
|
+
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
|
|
97
|
+
* @param inputs a date string
|
|
98
|
+
* @returns the number of milliseconds between that date and midnight, January 1, 1970.
|
|
99
|
+
* @group parse
|
|
100
|
+
* @shortname parse date string
|
|
101
|
+
* @drawable false
|
|
102
|
+
*/
|
|
103
|
+
parseDate(inputs: Inputs.Dates.DateStringDto): number;
|
|
104
|
+
/**
|
|
105
|
+
* Gets the day-of-the-month, using local time.
|
|
106
|
+
* @returns date
|
|
107
|
+
* @group get
|
|
108
|
+
* @shortname get date of month
|
|
109
|
+
* @drawable false
|
|
110
|
+
*/
|
|
111
|
+
getDayOfMonth(inputs: Inputs.Dates.DateDto): number;
|
|
112
|
+
/**
|
|
113
|
+
* Gets the day of the week, using local time.
|
|
114
|
+
* @returns day
|
|
115
|
+
* @group get
|
|
116
|
+
* @shortname get weekday
|
|
117
|
+
* @drawable false
|
|
118
|
+
*/
|
|
119
|
+
getWeekday(inputs: Inputs.Dates.DateDto): number;
|
|
120
|
+
/**
|
|
121
|
+
* Gets the year, using local time.
|
|
122
|
+
* @returns year
|
|
123
|
+
* @group get
|
|
124
|
+
* @shortname get year
|
|
125
|
+
* @drawable false
|
|
126
|
+
*/
|
|
127
|
+
getYear(inputs: Inputs.Dates.DateDto): number;
|
|
128
|
+
/**
|
|
129
|
+
* Gets the month, using local time.
|
|
130
|
+
* @returns month
|
|
131
|
+
* @group get
|
|
132
|
+
* @shortname get month
|
|
133
|
+
* @drawable false
|
|
134
|
+
*/
|
|
135
|
+
getMonth(inputs: Inputs.Dates.DateDto): number;
|
|
136
|
+
/**
|
|
137
|
+
* Gets the hours in a date, using local time.
|
|
138
|
+
* @returns hours
|
|
139
|
+
* @group get
|
|
140
|
+
* @shortname get hours
|
|
141
|
+
* @drawable false
|
|
142
|
+
*/
|
|
143
|
+
getHours(inputs: Inputs.Dates.DateDto): number;
|
|
144
|
+
/**
|
|
145
|
+
* Gets the minutes of a Date object, using local time.
|
|
146
|
+
* @returns minutes
|
|
147
|
+
* @group get
|
|
148
|
+
* @shortname get minutes
|
|
149
|
+
* @drawable false
|
|
150
|
+
*/
|
|
151
|
+
getMinutes(inputs: Inputs.Dates.DateDto): number;
|
|
152
|
+
/**
|
|
153
|
+
* Gets the seconds of a Date object, using local time.
|
|
154
|
+
* @returns seconds
|
|
155
|
+
* @group get
|
|
156
|
+
* @shortname get seconds
|
|
157
|
+
* @drawable false
|
|
158
|
+
*/
|
|
159
|
+
getSeconds(inputs: Inputs.Dates.DateDto): number;
|
|
160
|
+
/**
|
|
161
|
+
* Gets the milliseconds of a Date, using local time.
|
|
162
|
+
* @returns milliseconds
|
|
163
|
+
* @group get
|
|
164
|
+
* @shortname get milliseconds
|
|
165
|
+
* @drawable false
|
|
166
|
+
*/
|
|
167
|
+
getMilliseconds(inputs: Inputs.Dates.DateDto): number;
|
|
168
|
+
/**
|
|
169
|
+
* Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
|
|
170
|
+
* @returns time
|
|
171
|
+
* @group get
|
|
172
|
+
* @shortname get time
|
|
173
|
+
* @drawable false
|
|
174
|
+
*/
|
|
175
|
+
getTime(inputs: Inputs.Dates.DateDto): number;
|
|
176
|
+
/**
|
|
177
|
+
* Gets the year using Universal Coordinated Time (UTC).
|
|
178
|
+
* @returns year
|
|
179
|
+
* @group get
|
|
180
|
+
* @shortname get utc year
|
|
181
|
+
* @drawable false
|
|
182
|
+
*/
|
|
183
|
+
getUTCYear(inputs: Inputs.Dates.DateDto): number;
|
|
184
|
+
/**
|
|
185
|
+
* Gets the month of a Date object using Universal Coordinated Time (UTC).
|
|
186
|
+
* @returns month
|
|
187
|
+
* @group get
|
|
188
|
+
* @shortname get utc month
|
|
189
|
+
* @drawable false
|
|
190
|
+
*/
|
|
191
|
+
getUTCMonth(inputs: Inputs.Dates.DateDto): number;
|
|
192
|
+
/**
|
|
193
|
+
* Gets the day-of-the-month, using Universal Coordinated Time (UTC).
|
|
194
|
+
* @returns day
|
|
195
|
+
* @group get
|
|
196
|
+
* @shortname get utc day
|
|
197
|
+
* @drawable false
|
|
198
|
+
*/
|
|
199
|
+
getUTCDay(inputs: Inputs.Dates.DateDto): number;
|
|
200
|
+
/**
|
|
201
|
+
* Gets the hours value in a Date object using Universal Coordinated Time (UTC).
|
|
202
|
+
* @returns hours
|
|
203
|
+
* @group get
|
|
204
|
+
* @shortname get utc hours
|
|
205
|
+
* @drawable false
|
|
206
|
+
*/
|
|
207
|
+
getUTCHours(inputs: Inputs.Dates.DateDto): number;
|
|
208
|
+
/**
|
|
209
|
+
* Gets the minutes of a Date object using Universal Coordinated Time (UTC).
|
|
210
|
+
* @returns minutes
|
|
211
|
+
* @group get
|
|
212
|
+
* @shortname get utc minutes
|
|
213
|
+
* @drawable false
|
|
214
|
+
*/
|
|
215
|
+
getUTCMinutes(inputs: Inputs.Dates.DateDto): number;
|
|
216
|
+
/**
|
|
217
|
+
* Gets the seconds of a Date object using Universal Coordinated Time (UTC).
|
|
218
|
+
* @returns seconds
|
|
219
|
+
* @group get
|
|
220
|
+
* @shortname get utc seconds
|
|
221
|
+
* @drawable false
|
|
222
|
+
*/
|
|
223
|
+
getUTCSeconds(inputs: Inputs.Dates.DateDto): number;
|
|
224
|
+
/**
|
|
225
|
+
* Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).
|
|
226
|
+
* @returns milliseconds
|
|
227
|
+
* @group get
|
|
228
|
+
* @shortname get utc milliseconds
|
|
229
|
+
* @drawable false
|
|
230
|
+
*/
|
|
231
|
+
getUTCMilliseconds(inputs: Inputs.Dates.DateDto): number;
|
|
232
|
+
/**
|
|
233
|
+
* Sets the year of the Date object using local time.
|
|
234
|
+
* @param inputs a date and the year
|
|
235
|
+
* @returns date
|
|
236
|
+
* @group set
|
|
237
|
+
* @shortname set year
|
|
238
|
+
* @drawable false
|
|
239
|
+
* */
|
|
240
|
+
setYear(inputs: Inputs.Dates.DateYearDto): Date;
|
|
241
|
+
/**
|
|
242
|
+
* Sets the month value in the Date object using local time.
|
|
243
|
+
* @param inputs a date and the month
|
|
244
|
+
* @returns date
|
|
245
|
+
* @group set
|
|
246
|
+
* @shortname set month
|
|
247
|
+
* @drawable false
|
|
248
|
+
* */
|
|
249
|
+
setMonth(inputs: Inputs.Dates.DateMonthDto): Date;
|
|
250
|
+
/**
|
|
251
|
+
* Sets the numeric day-of-the-month value of the Date object using local time.
|
|
252
|
+
* @param inputs a date and the day
|
|
253
|
+
* @returns date
|
|
254
|
+
* @group set
|
|
255
|
+
* @shortname set day of month
|
|
256
|
+
* @drawable false
|
|
257
|
+
*/
|
|
258
|
+
setDayOfMonth(inputs: Inputs.Dates.DateDayDto): Date;
|
|
259
|
+
/**
|
|
260
|
+
* Sets the hour value in the Date object using local time.
|
|
261
|
+
* @param inputs a date and the hours
|
|
262
|
+
* @returns date
|
|
263
|
+
* @group set
|
|
264
|
+
* @shortname set hours
|
|
265
|
+
* @drawable false
|
|
266
|
+
* */
|
|
267
|
+
setHours(inputs: Inputs.Dates.DateHoursDto): Date;
|
|
268
|
+
/**
|
|
269
|
+
* Sets the minutes value in the Date object using local time.
|
|
270
|
+
* @param inputs a date and the minutes
|
|
271
|
+
* @returns date
|
|
272
|
+
* @group set
|
|
273
|
+
* @shortname set minutes
|
|
274
|
+
* @drawable false
|
|
275
|
+
* */
|
|
276
|
+
setMinutes(inputs: Inputs.Dates.DateMinutesDto): Date;
|
|
277
|
+
/**
|
|
278
|
+
* Sets the seconds value in the Date object using local time.
|
|
279
|
+
* @param inputs a date and the seconds
|
|
280
|
+
* @returns date
|
|
281
|
+
* @group set
|
|
282
|
+
* @shortname set seconds
|
|
283
|
+
* @drawable false
|
|
284
|
+
*/
|
|
285
|
+
setSeconds(inputs: Inputs.Dates.DateSecondsDto): Date;
|
|
286
|
+
/**
|
|
287
|
+
* Sets the milliseconds value in the Date object using local time.
|
|
288
|
+
* @param inputs a date and the milliseconds
|
|
289
|
+
* @returns date
|
|
290
|
+
* @group set
|
|
291
|
+
* @shortname set milliseconds
|
|
292
|
+
* @drawable false
|
|
293
|
+
*/
|
|
294
|
+
setMilliseconds(inputs: Inputs.Dates.DateMillisecondsDto): Date;
|
|
295
|
+
/**
|
|
296
|
+
* Sets the date and time value in the Date object.
|
|
297
|
+
* @param inputs a date and the time
|
|
298
|
+
* @returns date
|
|
299
|
+
* @group set
|
|
300
|
+
* @shortname set time
|
|
301
|
+
* @drawable false
|
|
302
|
+
*/
|
|
303
|
+
setTime(inputs: Inputs.Dates.DateTimeDto): Date;
|
|
304
|
+
/**
|
|
305
|
+
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
|
|
306
|
+
* @param inputs a date and the year
|
|
307
|
+
* @returns date
|
|
308
|
+
* @group set
|
|
309
|
+
* @shortname set utc year
|
|
310
|
+
* @drawable false
|
|
311
|
+
* */
|
|
312
|
+
setUTCYear(inputs: Inputs.Dates.DateYearDto): Date;
|
|
313
|
+
/**
|
|
314
|
+
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
|
|
315
|
+
* @param inputs a date and the month
|
|
316
|
+
* @returns date
|
|
317
|
+
* @group set
|
|
318
|
+
* @shortname set utc month
|
|
319
|
+
* @drawable false
|
|
320
|
+
* */
|
|
321
|
+
setUTCMonth(inputs: Inputs.Dates.DateMonthDto): Date;
|
|
322
|
+
/**
|
|
323
|
+
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
|
|
324
|
+
* @param inputs a date and the day
|
|
325
|
+
* @returns date
|
|
326
|
+
* @group set
|
|
327
|
+
* @shortname set utc day
|
|
328
|
+
* @drawable false
|
|
329
|
+
*/
|
|
330
|
+
setUTCDay(inputs: Inputs.Dates.DateDayDto): Date;
|
|
331
|
+
/**
|
|
332
|
+
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
|
|
333
|
+
* @param inputs a date and the hours
|
|
334
|
+
* @returns date
|
|
335
|
+
* @group set
|
|
336
|
+
* @shortname set utc hours
|
|
337
|
+
* @drawable false
|
|
338
|
+
* */
|
|
339
|
+
setUTCHours(inputs: Inputs.Dates.DateHoursDto): Date;
|
|
340
|
+
/**
|
|
341
|
+
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
|
|
342
|
+
* @param inputs a date and the minutes
|
|
343
|
+
* @returns date
|
|
344
|
+
* @group set
|
|
345
|
+
* @shortname set utc minutes
|
|
346
|
+
* @drawable false
|
|
347
|
+
* */
|
|
348
|
+
setUTCMinutes(inputs: Inputs.Dates.DateMinutesDto): Date;
|
|
349
|
+
/**
|
|
350
|
+
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
|
|
351
|
+
* @param inputs a date and the seconds
|
|
352
|
+
* @returns date
|
|
353
|
+
* @group set
|
|
354
|
+
* @shortname set utc seconds
|
|
355
|
+
* @drawable false
|
|
356
|
+
*/
|
|
357
|
+
setUTCSeconds(inputs: Inputs.Dates.DateSecondsDto): Date;
|
|
358
|
+
/**
|
|
359
|
+
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
|
|
360
|
+
* @param inputs a date and the milliseconds
|
|
361
|
+
* @returns date
|
|
362
|
+
* @group set
|
|
363
|
+
* @shortname set utc milliseconds
|
|
364
|
+
* @drawable false
|
|
365
|
+
*/
|
|
366
|
+
setUTCMilliseconds(inputs: Inputs.Dates.DateMillisecondsDto): Date;
|
|
367
|
+
}
|