@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
|
@@ -10,6 +10,27 @@ export declare namespace Base {
|
|
|
10
10
|
type Vector2 = [number, number];
|
|
11
11
|
type Point3 = [number, number, number];
|
|
12
12
|
type Vector3 = [number, number, number];
|
|
13
|
+
type Axis3 = {
|
|
14
|
+
origin: Base.Point3;
|
|
15
|
+
direction: Base.Vector3;
|
|
16
|
+
};
|
|
17
|
+
type Axis2 = {
|
|
18
|
+
origin: Base.Point2;
|
|
19
|
+
direction: Base.Vector2;
|
|
20
|
+
};
|
|
21
|
+
type Plane3 = {
|
|
22
|
+
origin: Base.Point3;
|
|
23
|
+
normal: Base.Vector3;
|
|
24
|
+
direction: Base.Vector3;
|
|
25
|
+
};
|
|
26
|
+
type BoundingBox = {
|
|
27
|
+
min: Base.Point3;
|
|
28
|
+
max: Base.Point3;
|
|
29
|
+
center?: Base.Point3;
|
|
30
|
+
width?: number;
|
|
31
|
+
height?: number;
|
|
32
|
+
length?: number;
|
|
33
|
+
};
|
|
13
34
|
type Line2 = {
|
|
14
35
|
start: Base.Point2;
|
|
15
36
|
end: Base.Point2;
|
|
@@ -32,4 +53,18 @@ export declare namespace Base {
|
|
|
32
53
|
type TransformMatrixes3x3 = TransformMatrix3x3[];
|
|
33
54
|
type TransformMatrix = [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number];
|
|
34
55
|
type TransformMatrixes = TransformMatrix[];
|
|
56
|
+
enum horizontalAlignEnum {
|
|
57
|
+
/**
|
|
58
|
+
* Aligns to the left
|
|
59
|
+
*/
|
|
60
|
+
left = "left",
|
|
61
|
+
/**
|
|
62
|
+
* Aligns to the center
|
|
63
|
+
*/
|
|
64
|
+
center = "center",
|
|
65
|
+
/**
|
|
66
|
+
* Aligns to the right
|
|
67
|
+
*/
|
|
68
|
+
right = "right"
|
|
69
|
+
}
|
|
35
70
|
}
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
export var Base;
|
|
3
|
+
(function (Base) {
|
|
4
|
+
let horizontalAlignEnum;
|
|
5
|
+
(function (horizontalAlignEnum) {
|
|
6
|
+
/**
|
|
7
|
+
* Aligns to the left
|
|
8
|
+
*/
|
|
9
|
+
horizontalAlignEnum["left"] = "left";
|
|
10
|
+
/**
|
|
11
|
+
* Aligns to the center
|
|
12
|
+
*/
|
|
13
|
+
horizontalAlignEnum["center"] = "center";
|
|
14
|
+
/**
|
|
15
|
+
* Aligns to the right
|
|
16
|
+
*/
|
|
17
|
+
horizontalAlignEnum["right"] = "right";
|
|
18
|
+
})(horizontalAlignEnum = Base.horizontalAlignEnum || (Base.horizontalAlignEnum = {}));
|
|
19
|
+
})(Base || (Base = {}));
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
export declare namespace Dates {
|
|
2
|
+
class DateDto {
|
|
3
|
+
constructor(date?: Date);
|
|
4
|
+
/**
|
|
5
|
+
* The date
|
|
6
|
+
* @default undefined
|
|
7
|
+
*/
|
|
8
|
+
date: Date;
|
|
9
|
+
}
|
|
10
|
+
class DateStringDto {
|
|
11
|
+
constructor(dateString?: string);
|
|
12
|
+
/**
|
|
13
|
+
* The date string
|
|
14
|
+
* @default undefined
|
|
15
|
+
*/
|
|
16
|
+
dateString: string;
|
|
17
|
+
}
|
|
18
|
+
class DateSecondsDto {
|
|
19
|
+
constructor(date?: Date, seconds?: number);
|
|
20
|
+
/**
|
|
21
|
+
* The date to update the seconds for
|
|
22
|
+
* @default undefined
|
|
23
|
+
*/
|
|
24
|
+
date: Date;
|
|
25
|
+
/**
|
|
26
|
+
* The seconds of the date
|
|
27
|
+
* @default 30
|
|
28
|
+
* @minimum 0
|
|
29
|
+
* @maximum Infinity
|
|
30
|
+
* @step 1
|
|
31
|
+
*/
|
|
32
|
+
seconds: number;
|
|
33
|
+
}
|
|
34
|
+
class DateDayDto {
|
|
35
|
+
constructor(date?: Date, day?: number);
|
|
36
|
+
/**
|
|
37
|
+
* The date
|
|
38
|
+
* @default undefined
|
|
39
|
+
*/
|
|
40
|
+
date: Date;
|
|
41
|
+
/**
|
|
42
|
+
* The day of the date
|
|
43
|
+
* @default 1
|
|
44
|
+
* @minimum 0
|
|
45
|
+
* @maximum Infinity
|
|
46
|
+
* @step 1
|
|
47
|
+
*/
|
|
48
|
+
day: number;
|
|
49
|
+
}
|
|
50
|
+
class DateYearDto {
|
|
51
|
+
constructor(date?: Date, year?: number);
|
|
52
|
+
/**
|
|
53
|
+
* The date
|
|
54
|
+
* @default undefined
|
|
55
|
+
*/
|
|
56
|
+
date: Date;
|
|
57
|
+
/**
|
|
58
|
+
* The year of the date
|
|
59
|
+
* @default 1
|
|
60
|
+
* @minimum 0
|
|
61
|
+
* @maximum Infinity
|
|
62
|
+
* @step 1
|
|
63
|
+
*/
|
|
64
|
+
year: number;
|
|
65
|
+
}
|
|
66
|
+
class DateMonthDto {
|
|
67
|
+
constructor(date?: Date, month?: number);
|
|
68
|
+
/**
|
|
69
|
+
* The date
|
|
70
|
+
* @default undefined
|
|
71
|
+
*/
|
|
72
|
+
date: Date;
|
|
73
|
+
/**
|
|
74
|
+
* The month of the date
|
|
75
|
+
* @default 1
|
|
76
|
+
* @minimum 0
|
|
77
|
+
* @maximum Infinity
|
|
78
|
+
* @step 1
|
|
79
|
+
*/
|
|
80
|
+
month: number;
|
|
81
|
+
}
|
|
82
|
+
class DateHoursDto {
|
|
83
|
+
constructor(date?: Date, hours?: number);
|
|
84
|
+
/**
|
|
85
|
+
* The date
|
|
86
|
+
* @default undefined
|
|
87
|
+
*/
|
|
88
|
+
date: Date;
|
|
89
|
+
/**
|
|
90
|
+
* The hours of the date
|
|
91
|
+
* @default 1
|
|
92
|
+
* @minimum 0
|
|
93
|
+
* @maximum Infinity
|
|
94
|
+
* @step 1
|
|
95
|
+
*/
|
|
96
|
+
hours: number;
|
|
97
|
+
}
|
|
98
|
+
class DateMinutesDto {
|
|
99
|
+
constructor(date?: Date, minutes?: number);
|
|
100
|
+
/**
|
|
101
|
+
* The date
|
|
102
|
+
* @default undefined
|
|
103
|
+
*/
|
|
104
|
+
date: Date;
|
|
105
|
+
/**
|
|
106
|
+
* The minutes of the date
|
|
107
|
+
* @default 1
|
|
108
|
+
* @minimum 0
|
|
109
|
+
* @maximum Infinity
|
|
110
|
+
* @step 1
|
|
111
|
+
*/
|
|
112
|
+
minutes: number;
|
|
113
|
+
}
|
|
114
|
+
class DateMillisecondsDto {
|
|
115
|
+
constructor(date?: Date, milliseconds?: number);
|
|
116
|
+
/**
|
|
117
|
+
* The date
|
|
118
|
+
* @default undefined
|
|
119
|
+
*/
|
|
120
|
+
date: Date;
|
|
121
|
+
/**
|
|
122
|
+
* The milliseconds of the date
|
|
123
|
+
* @default 1
|
|
124
|
+
* @minimum 0
|
|
125
|
+
* @maximum Infinity
|
|
126
|
+
* @step 1
|
|
127
|
+
*/
|
|
128
|
+
milliseconds: number;
|
|
129
|
+
}
|
|
130
|
+
class DateTimeDto {
|
|
131
|
+
constructor(date?: Date, time?: number);
|
|
132
|
+
/**
|
|
133
|
+
* The date
|
|
134
|
+
* @default undefined
|
|
135
|
+
*/
|
|
136
|
+
date: Date;
|
|
137
|
+
/**
|
|
138
|
+
* The time of the date
|
|
139
|
+
* @default 1
|
|
140
|
+
* @minimum 0
|
|
141
|
+
* @maximum Infinity
|
|
142
|
+
* @step 1
|
|
143
|
+
*/
|
|
144
|
+
time: number;
|
|
145
|
+
}
|
|
146
|
+
class CreateFromUnixTimeStampDto {
|
|
147
|
+
constructor(unixTimeStamp?: number);
|
|
148
|
+
/**
|
|
149
|
+
* The unix time stamp
|
|
150
|
+
* @default 1
|
|
151
|
+
* @minimum 0
|
|
152
|
+
* @maximum Infinity
|
|
153
|
+
* @step 1
|
|
154
|
+
*/
|
|
155
|
+
unixTimeStamp: number;
|
|
156
|
+
}
|
|
157
|
+
class CreateDateDto {
|
|
158
|
+
constructor(year?: number, month?: number, day?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number);
|
|
159
|
+
/**
|
|
160
|
+
* The year of the date
|
|
161
|
+
* @default 1
|
|
162
|
+
* @minimum 0
|
|
163
|
+
* @maximum Infinity
|
|
164
|
+
* @step 1
|
|
165
|
+
*/
|
|
166
|
+
year: number;
|
|
167
|
+
/**
|
|
168
|
+
* The month of the date
|
|
169
|
+
* @default 1
|
|
170
|
+
* @minimum 0
|
|
171
|
+
* @maximum Infinity
|
|
172
|
+
* @step 1
|
|
173
|
+
*/
|
|
174
|
+
month: number;
|
|
175
|
+
/**
|
|
176
|
+
* The day of the month
|
|
177
|
+
* @default 1
|
|
178
|
+
* @minimum 0
|
|
179
|
+
* @maximum Infinity
|
|
180
|
+
* @step 1
|
|
181
|
+
*/
|
|
182
|
+
day: number;
|
|
183
|
+
/**
|
|
184
|
+
* The hours of the date
|
|
185
|
+
* @default 1
|
|
186
|
+
* @minimum 0
|
|
187
|
+
* @maximum Infinity
|
|
188
|
+
* @step 1
|
|
189
|
+
*/
|
|
190
|
+
hours: number;
|
|
191
|
+
/**
|
|
192
|
+
* The minutes of the date
|
|
193
|
+
* @default 1
|
|
194
|
+
* @minimum 0
|
|
195
|
+
* @maximum Infinity
|
|
196
|
+
* @step 1
|
|
197
|
+
*/
|
|
198
|
+
minutes: number;
|
|
199
|
+
/**
|
|
200
|
+
* The seconds of the date
|
|
201
|
+
* @default 1
|
|
202
|
+
* @minimum 0
|
|
203
|
+
* @maximum Infinity
|
|
204
|
+
* @step 1
|
|
205
|
+
*/
|
|
206
|
+
seconds: number;
|
|
207
|
+
/**
|
|
208
|
+
* The milliseconds of the date
|
|
209
|
+
* @default 1
|
|
210
|
+
* @minimum 0
|
|
211
|
+
* @maximum Infinity
|
|
212
|
+
* @step 1
|
|
213
|
+
*/
|
|
214
|
+
milliseconds: number;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
// tslint:disable-next-line: no-namespace
|
|
3
|
+
export var Dates;
|
|
4
|
+
(function (Dates) {
|
|
5
|
+
class DateDto {
|
|
6
|
+
constructor(date) {
|
|
7
|
+
if (date !== undefined) {
|
|
8
|
+
this.date = date;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
Dates.DateDto = DateDto;
|
|
13
|
+
class DateStringDto {
|
|
14
|
+
constructor(dateString) {
|
|
15
|
+
if (dateString !== undefined) {
|
|
16
|
+
this.dateString = dateString;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
Dates.DateStringDto = DateStringDto;
|
|
21
|
+
class DateSecondsDto {
|
|
22
|
+
constructor(date, seconds) {
|
|
23
|
+
/**
|
|
24
|
+
* The seconds of the date
|
|
25
|
+
* @default 30
|
|
26
|
+
* @minimum 0
|
|
27
|
+
* @maximum Infinity
|
|
28
|
+
* @step 1
|
|
29
|
+
*/
|
|
30
|
+
this.seconds = 30;
|
|
31
|
+
if (date !== undefined) {
|
|
32
|
+
this.date = date;
|
|
33
|
+
}
|
|
34
|
+
if (seconds !== undefined) {
|
|
35
|
+
this.seconds = seconds;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
Dates.DateSecondsDto = DateSecondsDto;
|
|
40
|
+
class DateDayDto {
|
|
41
|
+
constructor(date, day) {
|
|
42
|
+
/**
|
|
43
|
+
* The day of the date
|
|
44
|
+
* @default 1
|
|
45
|
+
* @minimum 0
|
|
46
|
+
* @maximum Infinity
|
|
47
|
+
* @step 1
|
|
48
|
+
*/
|
|
49
|
+
this.day = 1;
|
|
50
|
+
if (date !== undefined) {
|
|
51
|
+
this.date = date;
|
|
52
|
+
}
|
|
53
|
+
if (day !== undefined) {
|
|
54
|
+
this.day = day;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
Dates.DateDayDto = DateDayDto;
|
|
59
|
+
class DateYearDto {
|
|
60
|
+
constructor(date, year) {
|
|
61
|
+
/**
|
|
62
|
+
* The year of the date
|
|
63
|
+
* @default 1
|
|
64
|
+
* @minimum 0
|
|
65
|
+
* @maximum Infinity
|
|
66
|
+
* @step 1
|
|
67
|
+
*/
|
|
68
|
+
this.year = 1;
|
|
69
|
+
if (date !== undefined) {
|
|
70
|
+
this.date = date;
|
|
71
|
+
}
|
|
72
|
+
if (year !== undefined) {
|
|
73
|
+
this.year = year;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
Dates.DateYearDto = DateYearDto;
|
|
78
|
+
class DateMonthDto {
|
|
79
|
+
constructor(date, month) {
|
|
80
|
+
/**
|
|
81
|
+
* The month of the date
|
|
82
|
+
* @default 1
|
|
83
|
+
* @minimum 0
|
|
84
|
+
* @maximum Infinity
|
|
85
|
+
* @step 1
|
|
86
|
+
*/
|
|
87
|
+
this.month = 1;
|
|
88
|
+
if (date !== undefined) {
|
|
89
|
+
this.date = date;
|
|
90
|
+
}
|
|
91
|
+
if (month !== undefined) {
|
|
92
|
+
this.month = month;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
Dates.DateMonthDto = DateMonthDto;
|
|
97
|
+
class DateHoursDto {
|
|
98
|
+
constructor(date, hours) {
|
|
99
|
+
/**
|
|
100
|
+
* The hours of the date
|
|
101
|
+
* @default 1
|
|
102
|
+
* @minimum 0
|
|
103
|
+
* @maximum Infinity
|
|
104
|
+
* @step 1
|
|
105
|
+
*/
|
|
106
|
+
this.hours = 1;
|
|
107
|
+
if (date !== undefined) {
|
|
108
|
+
this.date = date;
|
|
109
|
+
}
|
|
110
|
+
if (hours !== undefined) {
|
|
111
|
+
this.hours = hours;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
Dates.DateHoursDto = DateHoursDto;
|
|
116
|
+
class DateMinutesDto {
|
|
117
|
+
constructor(date, minutes) {
|
|
118
|
+
/**
|
|
119
|
+
* The minutes of the date
|
|
120
|
+
* @default 1
|
|
121
|
+
* @minimum 0
|
|
122
|
+
* @maximum Infinity
|
|
123
|
+
* @step 1
|
|
124
|
+
*/
|
|
125
|
+
this.minutes = 1;
|
|
126
|
+
if (date !== undefined) {
|
|
127
|
+
this.date = date;
|
|
128
|
+
}
|
|
129
|
+
if (minutes !== undefined) {
|
|
130
|
+
this.minutes = minutes;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
Dates.DateMinutesDto = DateMinutesDto;
|
|
135
|
+
class DateMillisecondsDto {
|
|
136
|
+
constructor(date, milliseconds) {
|
|
137
|
+
/**
|
|
138
|
+
* The milliseconds of the date
|
|
139
|
+
* @default 1
|
|
140
|
+
* @minimum 0
|
|
141
|
+
* @maximum Infinity
|
|
142
|
+
* @step 1
|
|
143
|
+
*/
|
|
144
|
+
this.milliseconds = 1;
|
|
145
|
+
if (date !== undefined) {
|
|
146
|
+
this.date = date;
|
|
147
|
+
}
|
|
148
|
+
if (milliseconds !== undefined) {
|
|
149
|
+
this.milliseconds = milliseconds;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
Dates.DateMillisecondsDto = DateMillisecondsDto;
|
|
154
|
+
class DateTimeDto {
|
|
155
|
+
constructor(date, time) {
|
|
156
|
+
/**
|
|
157
|
+
* The time of the date
|
|
158
|
+
* @default 1
|
|
159
|
+
* @minimum 0
|
|
160
|
+
* @maximum Infinity
|
|
161
|
+
* @step 1
|
|
162
|
+
*/
|
|
163
|
+
this.time = 1;
|
|
164
|
+
if (date !== undefined) {
|
|
165
|
+
this.date = date;
|
|
166
|
+
}
|
|
167
|
+
if (time !== undefined) {
|
|
168
|
+
this.time = time;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
Dates.DateTimeDto = DateTimeDto;
|
|
173
|
+
class CreateFromUnixTimeStampDto {
|
|
174
|
+
constructor(unixTimeStamp) {
|
|
175
|
+
/**
|
|
176
|
+
* The unix time stamp
|
|
177
|
+
* @default 1
|
|
178
|
+
* @minimum 0
|
|
179
|
+
* @maximum Infinity
|
|
180
|
+
* @step 1
|
|
181
|
+
*/
|
|
182
|
+
this.unixTimeStamp = 1;
|
|
183
|
+
if (unixTimeStamp !== undefined) {
|
|
184
|
+
this.unixTimeStamp = unixTimeStamp;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
Dates.CreateFromUnixTimeStampDto = CreateFromUnixTimeStampDto;
|
|
189
|
+
class CreateDateDto {
|
|
190
|
+
constructor(year, month, day, hours, minutes, seconds, milliseconds) {
|
|
191
|
+
/**
|
|
192
|
+
* The year of the date
|
|
193
|
+
* @default 1
|
|
194
|
+
* @minimum 0
|
|
195
|
+
* @maximum Infinity
|
|
196
|
+
* @step 1
|
|
197
|
+
*/
|
|
198
|
+
this.year = 1;
|
|
199
|
+
/**
|
|
200
|
+
* The month of the date
|
|
201
|
+
* @default 1
|
|
202
|
+
* @minimum 0
|
|
203
|
+
* @maximum Infinity
|
|
204
|
+
* @step 1
|
|
205
|
+
*/
|
|
206
|
+
this.month = 1;
|
|
207
|
+
/**
|
|
208
|
+
* The day of the month
|
|
209
|
+
* @default 1
|
|
210
|
+
* @minimum 0
|
|
211
|
+
* @maximum Infinity
|
|
212
|
+
* @step 1
|
|
213
|
+
*/
|
|
214
|
+
this.day = 1;
|
|
215
|
+
/**
|
|
216
|
+
* The hours of the date
|
|
217
|
+
* @default 1
|
|
218
|
+
* @minimum 0
|
|
219
|
+
* @maximum Infinity
|
|
220
|
+
* @step 1
|
|
221
|
+
*/
|
|
222
|
+
this.hours = 1;
|
|
223
|
+
/**
|
|
224
|
+
* The minutes of the date
|
|
225
|
+
* @default 1
|
|
226
|
+
* @minimum 0
|
|
227
|
+
* @maximum Infinity
|
|
228
|
+
* @step 1
|
|
229
|
+
*/
|
|
230
|
+
this.minutes = 1;
|
|
231
|
+
/**
|
|
232
|
+
* The seconds of the date
|
|
233
|
+
* @default 1
|
|
234
|
+
* @minimum 0
|
|
235
|
+
* @maximum Infinity
|
|
236
|
+
* @step 1
|
|
237
|
+
*/
|
|
238
|
+
this.seconds = 1;
|
|
239
|
+
/**
|
|
240
|
+
* The milliseconds of the date
|
|
241
|
+
* @default 1
|
|
242
|
+
* @minimum 0
|
|
243
|
+
* @maximum Infinity
|
|
244
|
+
* @step 1
|
|
245
|
+
*/
|
|
246
|
+
this.milliseconds = 1;
|
|
247
|
+
if (year !== undefined) {
|
|
248
|
+
this.year = year;
|
|
249
|
+
}
|
|
250
|
+
if (month !== undefined) {
|
|
251
|
+
this.month = month;
|
|
252
|
+
}
|
|
253
|
+
if (day !== undefined) {
|
|
254
|
+
this.day = day;
|
|
255
|
+
}
|
|
256
|
+
if (hours !== undefined) {
|
|
257
|
+
this.hours = hours;
|
|
258
|
+
}
|
|
259
|
+
if (minutes !== undefined) {
|
|
260
|
+
this.minutes = minutes;
|
|
261
|
+
}
|
|
262
|
+
if (seconds !== undefined) {
|
|
263
|
+
this.seconds = seconds;
|
|
264
|
+
}
|
|
265
|
+
if (milliseconds !== undefined) {
|
|
266
|
+
this.milliseconds = milliseconds;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
Dates.CreateDateDto = CreateDateDto;
|
|
271
|
+
})(Dates || (Dates = {}));
|
package/lib/api/inputs/index.js
CHANGED
package/lib/api/inputs/inputs.js
CHANGED
|
@@ -291,6 +291,29 @@ export declare namespace Point {
|
|
|
291
291
|
*/
|
|
292
292
|
transformation: Base.TransformMatrixes[];
|
|
293
293
|
}
|
|
294
|
+
class ThreePointsNormalDto {
|
|
295
|
+
constructor(point1?: Base.Point3, point2?: Base.Point3, point3?: Base.Point3, reverseNormal?: boolean);
|
|
296
|
+
/**
|
|
297
|
+
* Point 1
|
|
298
|
+
* @default undefined
|
|
299
|
+
*/
|
|
300
|
+
point1: Base.Point3;
|
|
301
|
+
/**
|
|
302
|
+
* Point 2
|
|
303
|
+
* @default undefined
|
|
304
|
+
*/
|
|
305
|
+
point2: Base.Point3;
|
|
306
|
+
/**
|
|
307
|
+
* Point 3
|
|
308
|
+
* @default undefined
|
|
309
|
+
*/
|
|
310
|
+
point3: Base.Point3;
|
|
311
|
+
/**
|
|
312
|
+
* Reverse normal direction
|
|
313
|
+
* @default false
|
|
314
|
+
*/
|
|
315
|
+
reverseNormal: boolean;
|
|
316
|
+
}
|
|
294
317
|
class RemoveConsecutiveDuplicatesDto {
|
|
295
318
|
constructor(points?: Base.Point3[], tolerance?: number, checkFirstAndLast?: boolean);
|
|
296
319
|
/**
|
|
@@ -342,6 +342,28 @@ export var Point;
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
Point.TransformsForPointsDto = TransformsForPointsDto;
|
|
345
|
+
class ThreePointsNormalDto {
|
|
346
|
+
constructor(point1, point2, point3, reverseNormal) {
|
|
347
|
+
/**
|
|
348
|
+
* Reverse normal direction
|
|
349
|
+
* @default false
|
|
350
|
+
*/
|
|
351
|
+
this.reverseNormal = false;
|
|
352
|
+
if (point1 !== undefined) {
|
|
353
|
+
this.point1 = point1;
|
|
354
|
+
}
|
|
355
|
+
if (point2 !== undefined) {
|
|
356
|
+
this.point2 = point2;
|
|
357
|
+
}
|
|
358
|
+
if (point3 !== undefined) {
|
|
359
|
+
this.point3 = point3;
|
|
360
|
+
}
|
|
361
|
+
if (reverseNormal !== undefined) {
|
|
362
|
+
this.reverseNormal = reverseNormal;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
Point.ThreePointsNormalDto = ThreePointsNormalDto;
|
|
345
367
|
class RemoveConsecutiveDuplicatesDto {
|
|
346
368
|
constructor(points, tolerance, checkFirstAndLast) {
|
|
347
369
|
/**
|