@bitbybit-dev/base 0.19.9 → 0.20.1
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/lib/api/inputs/base-inputs.d.ts +35 -0
- package/lib/api/inputs/base-inputs.js +19 -1
- package/lib/api/inputs/dates-inputs.d.ts +216 -0
- package/lib/api/inputs/dates-inputs.js +271 -0
- package/lib/api/inputs/index.d.ts +1 -0
- package/lib/api/inputs/index.js +1 -0
- package/lib/api/inputs/inputs.d.ts +1 -0
- package/lib/api/inputs/inputs.js +1 -0
- package/lib/api/inputs/point-inputs.d.ts +23 -0
- package/lib/api/inputs/point-inputs.js +22 -0
- package/lib/api/inputs/text-inputs.d.ts +106 -0
- package/lib/api/inputs/text-inputs.js +141 -0
- package/lib/api/inputs/vector-inputs.d.ts +20 -0
- package/lib/api/inputs/vector-inputs.js +21 -0
- package/lib/api/models/index.d.ts +1 -0
- package/lib/api/models/index.js +1 -0
- package/lib/api/models/simplex.d.ts +206 -0
- package/lib/api/models/simplex.js +112 -0
- package/lib/api/models/text/bucket.d.ts +2 -0
- package/lib/api/models/text/bucket.js +2 -0
- package/lib/api/models/text/index.d.ts +1 -0
- package/lib/api/models/text/index.js +1 -0
- package/lib/api/models/text/vector-char-data.d.ts +19 -0
- package/lib/api/models/text/vector-char-data.js +13 -0
- package/lib/api/models/text/vector-text-data.d.ts +19 -0
- package/lib/api/models/text/vector-text-data.js +13 -0
- package/lib/api/services/dates.d.ts +367 -0
- package/lib/api/services/dates.js +450 -0
- package/lib/api/services/index.d.ts +1 -0
- package/lib/api/services/index.js +1 -0
- package/lib/api/services/point.d.ts +21 -1
- package/lib/api/services/point.js +79 -1
- package/lib/api/services/text.d.ts +24 -0
- package/lib/api/services/text.js +157 -0
- package/lib/api/services/vector.d.ts +9 -0
- package/lib/api/services/vector.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VectorCharData } from "./vector-char-data";
|
|
2
|
+
export declare class VectorTextData {
|
|
3
|
+
constructor(width?: number, height?: number, chars?: VectorCharData[]);
|
|
4
|
+
/**
|
|
5
|
+
* The width of the char
|
|
6
|
+
* @default undefined
|
|
7
|
+
*/
|
|
8
|
+
width?: number;
|
|
9
|
+
/**
|
|
10
|
+
* The height of the char
|
|
11
|
+
* @default undefined
|
|
12
|
+
*/
|
|
13
|
+
height?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The segments of the char
|
|
16
|
+
* @default undefined
|
|
17
|
+
*/
|
|
18
|
+
chars?: VectorCharData[];
|
|
19
|
+
}
|
|
@@ -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
|
+
}
|