@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
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
1
|
import { Base } from "./base-inputs";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(point?: Base.Point3) {
|
|
7
|
-
if (point !== undefined) { this.point = point; }
|
|
8
|
-
}
|
|
2
|
+
export declare namespace Point {
|
|
3
|
+
class PointDto {
|
|
4
|
+
constructor(point?: Base.Point3);
|
|
9
5
|
/**
|
|
10
6
|
* Point
|
|
11
7
|
* @default undefined
|
|
12
8
|
*/
|
|
13
9
|
point: Base.Point3;
|
|
14
10
|
}
|
|
15
|
-
|
|
16
|
-
constructor(x?: number, y?: number, z?: number)
|
|
17
|
-
if (x !== undefined) { this.x = x; }
|
|
18
|
-
if (y !== undefined) { this.y = y; }
|
|
19
|
-
if (z !== undefined) { this.z = z; }
|
|
20
|
-
}
|
|
11
|
+
class PointXYZDto {
|
|
12
|
+
constructor(x?: number, y?: number, z?: number);
|
|
21
13
|
/**
|
|
22
14
|
* Point
|
|
23
15
|
* @default 0
|
|
@@ -25,7 +17,7 @@ export namespace Point {
|
|
|
25
17
|
* @maximum Infinity
|
|
26
18
|
* @step 0.1
|
|
27
19
|
*/
|
|
28
|
-
x
|
|
20
|
+
x: number;
|
|
29
21
|
/**
|
|
30
22
|
* Point
|
|
31
23
|
* @default 0
|
|
@@ -33,7 +25,7 @@ export namespace Point {
|
|
|
33
25
|
* @maximum Infinity
|
|
34
26
|
* @step 0.1
|
|
35
27
|
*/
|
|
36
|
-
y
|
|
28
|
+
y: number;
|
|
37
29
|
/**
|
|
38
30
|
* Point
|
|
39
31
|
* @default 0
|
|
@@ -41,13 +33,10 @@ export namespace Point {
|
|
|
41
33
|
* @maximum Infinity
|
|
42
34
|
* @step 0.1
|
|
43
35
|
*/
|
|
44
|
-
z
|
|
36
|
+
z: number;
|
|
45
37
|
}
|
|
46
|
-
|
|
47
|
-
constructor(x?: number, y?: number)
|
|
48
|
-
if (x !== undefined) { this.x = x; }
|
|
49
|
-
if (y !== undefined) { this.y = y; }
|
|
50
|
-
}
|
|
38
|
+
class PointXYDto {
|
|
39
|
+
constructor(x?: number, y?: number);
|
|
51
40
|
/**
|
|
52
41
|
* Point
|
|
53
42
|
* @default 0
|
|
@@ -55,7 +44,7 @@ export namespace Point {
|
|
|
55
44
|
* @maximum Infinity
|
|
56
45
|
* @step 0.1
|
|
57
46
|
*/
|
|
58
|
-
x
|
|
47
|
+
x: number;
|
|
59
48
|
/**
|
|
60
49
|
* Point
|
|
61
50
|
* @default 0
|
|
@@ -63,23 +52,18 @@ export namespace Point {
|
|
|
63
52
|
* @maximum Infinity
|
|
64
53
|
* @step 0.1
|
|
65
54
|
*/
|
|
66
|
-
y
|
|
55
|
+
y: number;
|
|
67
56
|
}
|
|
68
|
-
|
|
69
|
-
constructor(points?: Base.Point3[])
|
|
70
|
-
if (points !== undefined) { this.points = points; }
|
|
71
|
-
}
|
|
57
|
+
class PointsDto {
|
|
58
|
+
constructor(points?: Base.Point3[]);
|
|
72
59
|
/**
|
|
73
60
|
* Points
|
|
74
61
|
* @default undefined
|
|
75
62
|
*/
|
|
76
63
|
points: Base.Point3[];
|
|
77
64
|
}
|
|
78
|
-
|
|
79
|
-
constructor(point1?: Base.Point3, point2?: Base.Point3)
|
|
80
|
-
if (point1 !== undefined) { this.point1 = point1; }
|
|
81
|
-
if (point2 !== undefined) { this.point2 = point2; }
|
|
82
|
-
}
|
|
65
|
+
class TwoPointsDto {
|
|
66
|
+
constructor(point1?: Base.Point3, point2?: Base.Point3);
|
|
83
67
|
/**
|
|
84
68
|
* Point 1
|
|
85
69
|
* @default undefined
|
|
@@ -91,18 +75,11 @@ export namespace Point {
|
|
|
91
75
|
*/
|
|
92
76
|
point2: Base.Point3;
|
|
93
77
|
}
|
|
94
|
-
|
|
78
|
+
class DrawPointDto<T> {
|
|
95
79
|
/**
|
|
96
80
|
* Provide options without default values
|
|
97
81
|
*/
|
|
98
|
-
constructor(point?: Base.Point3, opacity?: number, size?: number, colours?: string | string[], updatable?: boolean, pointMesh?: T)
|
|
99
|
-
if (point !== undefined) { this.point = point; }
|
|
100
|
-
if (opacity !== undefined) { this.opacity = opacity; }
|
|
101
|
-
if (size !== undefined) { this.size = size; }
|
|
102
|
-
if (colours !== undefined) { this.colours = colours; }
|
|
103
|
-
if (updatable !== undefined) { this.updatable = updatable; }
|
|
104
|
-
if (pointMesh !== undefined) { this.pointMesh = pointMesh; }
|
|
105
|
-
}
|
|
82
|
+
constructor(point?: Base.Point3, opacity?: number, size?: number, colours?: string | string[], updatable?: boolean, pointMesh?: T);
|
|
106
83
|
/**
|
|
107
84
|
* Point
|
|
108
85
|
* @default undefined
|
|
@@ -115,7 +92,7 @@ export namespace Point {
|
|
|
115
92
|
* @maximum 1
|
|
116
93
|
* @step 0.1
|
|
117
94
|
*/
|
|
118
|
-
opacity
|
|
95
|
+
opacity: number;
|
|
119
96
|
/**
|
|
120
97
|
* Size of the point
|
|
121
98
|
* @default 3
|
|
@@ -123,35 +100,28 @@ export namespace Point {
|
|
|
123
100
|
* @maximum Infinity
|
|
124
101
|
* @step 0.1
|
|
125
102
|
*/
|
|
126
|
-
size
|
|
103
|
+
size: number;
|
|
127
104
|
/**
|
|
128
105
|
* Hex colour string
|
|
129
106
|
* @default #444444
|
|
130
107
|
*/
|
|
131
|
-
colours: string | string[]
|
|
108
|
+
colours: string | string[];
|
|
132
109
|
/**
|
|
133
110
|
* Indicates wether the position of this point will change in time
|
|
134
111
|
* @default false
|
|
135
112
|
*/
|
|
136
|
-
updatable
|
|
113
|
+
updatable: boolean;
|
|
137
114
|
/**
|
|
138
115
|
* Point mesh variable in case it already exists and needs updating
|
|
139
116
|
* @default undefined
|
|
140
117
|
*/
|
|
141
118
|
pointMesh?: T;
|
|
142
119
|
}
|
|
143
|
-
|
|
120
|
+
class DrawPointsDto<T> {
|
|
144
121
|
/**
|
|
145
122
|
* Provide options without default values
|
|
146
123
|
*/
|
|
147
|
-
constructor(points?: Base.Point3[], opacity?: number, size?: number, colours?: string | string[], updatable?: boolean, pointsMesh?: T)
|
|
148
|
-
if (points !== undefined) { this.points = points; }
|
|
149
|
-
if (opacity !== undefined) { this.opacity = opacity; }
|
|
150
|
-
if (size !== undefined) { this.size = size; }
|
|
151
|
-
if (colours !== undefined) { this.colours = colours; }
|
|
152
|
-
if (updatable !== undefined) { this.updatable = updatable; }
|
|
153
|
-
if (pointsMesh !== undefined) { this.pointsMesh = pointsMesh; }
|
|
154
|
-
}
|
|
124
|
+
constructor(points?: Base.Point3[], opacity?: number, size?: number, colours?: string | string[], updatable?: boolean, pointsMesh?: T);
|
|
155
125
|
/**
|
|
156
126
|
* Point
|
|
157
127
|
* @default undefined
|
|
@@ -164,7 +134,7 @@ export namespace Point {
|
|
|
164
134
|
* @maximum 1
|
|
165
135
|
* @step 0.1
|
|
166
136
|
*/
|
|
167
|
-
opacity
|
|
137
|
+
opacity: number;
|
|
168
138
|
/**
|
|
169
139
|
* Size of the points
|
|
170
140
|
* @default 0.1
|
|
@@ -172,28 +142,25 @@ export namespace Point {
|
|
|
172
142
|
* @maximum Infinity
|
|
173
143
|
* @step 0.1
|
|
174
144
|
*/
|
|
175
|
-
size
|
|
145
|
+
size: number;
|
|
176
146
|
/**
|
|
177
147
|
* Hex colour string or collection of strings
|
|
178
148
|
* @default #444444
|
|
179
149
|
*/
|
|
180
|
-
colours: string | string[]
|
|
150
|
+
colours: string | string[];
|
|
181
151
|
/**
|
|
182
152
|
* Indicates wether the position of this point will change in time
|
|
183
153
|
* @default false
|
|
184
154
|
*/
|
|
185
|
-
updatable
|
|
155
|
+
updatable: boolean;
|
|
186
156
|
/**
|
|
187
157
|
* Points mesh variable in case it already exists and needs updating
|
|
188
158
|
* @default undefined
|
|
189
159
|
*/
|
|
190
160
|
pointsMesh?: T;
|
|
191
161
|
}
|
|
192
|
-
|
|
193
|
-
constructor(point?: Base.Point3, transformation?: Base.TransformMatrixes)
|
|
194
|
-
if (point !== undefined) { this.point = point; }
|
|
195
|
-
if (transformation !== undefined) { this.transformation = transformation; }
|
|
196
|
-
}
|
|
162
|
+
class TransformPointDto {
|
|
163
|
+
constructor(point?: Base.Point3, transformation?: Base.TransformMatrixes);
|
|
197
164
|
/**
|
|
198
165
|
* Point to transform
|
|
199
166
|
* @default undefined
|
|
@@ -205,11 +172,8 @@ export namespace Point {
|
|
|
205
172
|
*/
|
|
206
173
|
transformation: Base.TransformMatrixes;
|
|
207
174
|
}
|
|
208
|
-
|
|
209
|
-
constructor(points?: Base.Point3[], transformation?: Base.TransformMatrixes)
|
|
210
|
-
if (points !== undefined) { this.points = points; }
|
|
211
|
-
if (transformation !== undefined) { this.transformation = transformation; }
|
|
212
|
-
}
|
|
175
|
+
class TransformPointsDto {
|
|
176
|
+
constructor(points?: Base.Point3[], transformation?: Base.TransformMatrixes);
|
|
213
177
|
/**
|
|
214
178
|
* Points to transform
|
|
215
179
|
* @default undefined
|
|
@@ -221,11 +185,8 @@ export namespace Point {
|
|
|
221
185
|
*/
|
|
222
186
|
transformation: Base.TransformMatrixes;
|
|
223
187
|
}
|
|
224
|
-
|
|
225
|
-
constructor(points?: Base.Point3[], translations?: Base.Vector3[])
|
|
226
|
-
if (points !== undefined) { this.points = points; }
|
|
227
|
-
if (translations !== undefined) { this.translations = translations; }
|
|
228
|
-
}
|
|
188
|
+
class TranslatePointsWithVectorsDto {
|
|
189
|
+
constructor(points?: Base.Point3[], translations?: Base.Vector3[]);
|
|
229
190
|
/**
|
|
230
191
|
* Points to transform
|
|
231
192
|
* @default undefined
|
|
@@ -237,11 +198,8 @@ export namespace Point {
|
|
|
237
198
|
*/
|
|
238
199
|
translations: Base.Vector3[];
|
|
239
200
|
}
|
|
240
|
-
|
|
241
|
-
constructor(points?: Base.Point3[], translation?: Base.Vector3)
|
|
242
|
-
if (points !== undefined) { this.points = points; }
|
|
243
|
-
if (translation !== undefined) { this.translation = translation; }
|
|
244
|
-
}
|
|
201
|
+
class TranslatePointsDto {
|
|
202
|
+
constructor(points?: Base.Point3[], translation?: Base.Vector3);
|
|
245
203
|
/**
|
|
246
204
|
* Points to transform
|
|
247
205
|
* @default undefined
|
|
@@ -253,13 +211,8 @@ export namespace Point {
|
|
|
253
211
|
*/
|
|
254
212
|
translation: Base.Vector3;
|
|
255
213
|
}
|
|
256
|
-
|
|
257
|
-
constructor(points?: Base.Point3[], x?: number, y?: number, z?: number)
|
|
258
|
-
if (points !== undefined) { this.points = points; }
|
|
259
|
-
if (x !== undefined) { this.x = x; }
|
|
260
|
-
if (y !== undefined) { this.y = y; }
|
|
261
|
-
if (z !== undefined) { this.z = z; }
|
|
262
|
-
}
|
|
214
|
+
class TranslateXYZPointsDto {
|
|
215
|
+
constructor(points?: Base.Point3[], x?: number, y?: number, z?: number);
|
|
263
216
|
/**
|
|
264
217
|
* Points to transform
|
|
265
218
|
* @default undefined
|
|
@@ -269,25 +222,20 @@ export namespace Point {
|
|
|
269
222
|
* X vector value
|
|
270
223
|
* @default 0
|
|
271
224
|
*/
|
|
272
|
-
x
|
|
225
|
+
x: number;
|
|
273
226
|
/**
|
|
274
227
|
* Y vector value
|
|
275
228
|
* @default 1
|
|
276
229
|
*/
|
|
277
|
-
y
|
|
230
|
+
y: number;
|
|
278
231
|
/**
|
|
279
232
|
* Z vector value
|
|
280
233
|
* @default 0
|
|
281
234
|
*/
|
|
282
|
-
z
|
|
235
|
+
z: number;
|
|
283
236
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
constructor(points?: Base.Point3[], center?: Base.Point3, scaleXyz?: Base.Vector3) {
|
|
287
|
-
if (points !== undefined) { this.points = points; }
|
|
288
|
-
if (center !== undefined) { this.center = center; }
|
|
289
|
-
if (scaleXyz !== undefined) { this.scaleXyz = scaleXyz; }
|
|
290
|
-
}
|
|
237
|
+
class ScalePointsCenterXYZDto {
|
|
238
|
+
constructor(points?: Base.Point3[], center?: Base.Point3, scaleXyz?: Base.Vector3);
|
|
291
239
|
/**
|
|
292
240
|
* Points to transform
|
|
293
241
|
* @default undefined
|
|
@@ -297,20 +245,15 @@ export namespace Point {
|
|
|
297
245
|
* The center from which the scaling is applied
|
|
298
246
|
* @default [0, 0, 0]
|
|
299
247
|
*/
|
|
300
|
-
center: Base.Point3
|
|
248
|
+
center: Base.Point3;
|
|
301
249
|
/**
|
|
302
250
|
* Scaling factors for each axis [1, 2, 1] means that Y axis will be scaled 200% and both x and z axis will remain on 100%
|
|
303
251
|
* @default [1, 1, 1]
|
|
304
252
|
*/
|
|
305
|
-
scaleXyz: Base.Vector3
|
|
253
|
+
scaleXyz: Base.Vector3;
|
|
306
254
|
}
|
|
307
|
-
|
|
308
|
-
constructor(points?: Base.Point3[], angle?: number, axis?: Base.Vector3, center?: Base.Point3)
|
|
309
|
-
if (points !== undefined) { this.points = points; }
|
|
310
|
-
if (angle !== undefined) { this.angle = angle; }
|
|
311
|
-
if (axis !== undefined) { this.axis = axis; }
|
|
312
|
-
if (center !== undefined) { this.center = center; }
|
|
313
|
-
}
|
|
255
|
+
class RotatePointsCenterAxisDto {
|
|
256
|
+
constructor(points?: Base.Point3[], angle?: number, axis?: Base.Vector3, center?: Base.Point3);
|
|
314
257
|
/**
|
|
315
258
|
* Points to transform
|
|
316
259
|
* @default undefined
|
|
@@ -323,23 +266,20 @@ export namespace Point {
|
|
|
323
266
|
* @maximum Infinity
|
|
324
267
|
* @step 1
|
|
325
268
|
*/
|
|
326
|
-
angle
|
|
269
|
+
angle: number;
|
|
327
270
|
/**
|
|
328
271
|
* Axis vector for rotation
|
|
329
272
|
* @default [0, 1, 0]
|
|
330
273
|
*/
|
|
331
|
-
axis: Base.Vector3
|
|
274
|
+
axis: Base.Vector3;
|
|
332
275
|
/**
|
|
333
276
|
* The center from which the axis is pointing
|
|
334
277
|
* @default [0, 0, 0]
|
|
335
278
|
*/
|
|
336
|
-
center: Base.Point3
|
|
279
|
+
center: Base.Point3;
|
|
337
280
|
}
|
|
338
|
-
|
|
339
|
-
constructor(points?: Base.Point3[], transformation?: Base.TransformMatrixes[])
|
|
340
|
-
if (points !== undefined) { this.points = points; }
|
|
341
|
-
if (transformation !== undefined) { this.transformation = transformation; }
|
|
342
|
-
}
|
|
281
|
+
class TransformsForPointsDto {
|
|
282
|
+
constructor(points?: Base.Point3[], transformation?: Base.TransformMatrixes[]);
|
|
343
283
|
/**
|
|
344
284
|
* Points to transform
|
|
345
285
|
* @default undefined
|
|
@@ -351,12 +291,8 @@ export namespace Point {
|
|
|
351
291
|
*/
|
|
352
292
|
transformation: Base.TransformMatrixes[];
|
|
353
293
|
}
|
|
354
|
-
|
|
355
|
-
constructor(points?: Base.Point3[], tolerance?: number, checkFirstAndLast?: boolean)
|
|
356
|
-
if (points !== undefined) { this.points = points; }
|
|
357
|
-
if (tolerance !== undefined) { this.tolerance = tolerance; }
|
|
358
|
-
if (checkFirstAndLast !== undefined) { this.checkFirstAndLast = checkFirstAndLast; }
|
|
359
|
-
}
|
|
294
|
+
class RemoveConsecutiveDuplicatesDto {
|
|
295
|
+
constructor(points?: Base.Point3[], tolerance?: number, checkFirstAndLast?: boolean);
|
|
360
296
|
/**
|
|
361
297
|
* Points to transform
|
|
362
298
|
* @default undefined
|
|
@@ -369,17 +305,14 @@ export namespace Point {
|
|
|
369
305
|
* @maximum Infinity
|
|
370
306
|
* @step 1e-7
|
|
371
307
|
*/
|
|
372
|
-
tolerance
|
|
308
|
+
tolerance: number;
|
|
373
309
|
/**
|
|
374
310
|
* Check first and last point for duplicates
|
|
375
311
|
*/
|
|
376
|
-
checkFirstAndLast
|
|
312
|
+
checkFirstAndLast: boolean;
|
|
377
313
|
}
|
|
378
|
-
|
|
379
|
-
constructor(points?: Base.Point3[], point?: Base.Point3)
|
|
380
|
-
if (points !== undefined) { this.points = points; }
|
|
381
|
-
if (point !== undefined) { this.point = point; }
|
|
382
|
-
}
|
|
314
|
+
class ClosestPointFromPointsDto {
|
|
315
|
+
constructor(points?: Base.Point3[], point?: Base.Point3);
|
|
383
316
|
/**
|
|
384
317
|
* Points to transform
|
|
385
318
|
* @default undefined
|
|
@@ -391,11 +324,8 @@ export namespace Point {
|
|
|
391
324
|
*/
|
|
392
325
|
point: Base.Point3;
|
|
393
326
|
}
|
|
394
|
-
|
|
395
|
-
constructor(startPoint?: Base.Point3, endPoint?: Base.Point3)
|
|
396
|
-
if (startPoint !== undefined) { this.startPoint = startPoint; }
|
|
397
|
-
if (endPoint !== undefined) { this.endPoint = endPoint; }
|
|
398
|
-
}
|
|
327
|
+
class StartEndPointsDto {
|
|
328
|
+
constructor(startPoint?: Base.Point3, endPoint?: Base.Point3);
|
|
399
329
|
/**
|
|
400
330
|
* Start point
|
|
401
331
|
* @default undefined
|
|
@@ -407,11 +337,8 @@ export namespace Point {
|
|
|
407
337
|
*/
|
|
408
338
|
endPoint: Base.Point3;
|
|
409
339
|
}
|
|
410
|
-
|
|
411
|
-
constructor(startPoint?: Base.Point3, endPoints?: Base.Point3[])
|
|
412
|
-
if (startPoint !== undefined) { this.startPoint = startPoint; }
|
|
413
|
-
if (endPoints !== undefined) { this.endPoints = endPoints; }
|
|
414
|
-
}
|
|
340
|
+
class StartEndPointsListDto {
|
|
341
|
+
constructor(startPoint?: Base.Point3, endPoints?: Base.Point3[]);
|
|
415
342
|
/**
|
|
416
343
|
* Start point
|
|
417
344
|
* @default undefined
|
|
@@ -423,12 +350,8 @@ export namespace Point {
|
|
|
423
350
|
*/
|
|
424
351
|
endPoints: Base.Point3[];
|
|
425
352
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
constructor(point?: Base.Point3, amountOfPoints?: number) {
|
|
429
|
-
if (point !== undefined) { this.point = point; }
|
|
430
|
-
if (amountOfPoints !== undefined) { this.amountOfPoints = amountOfPoints; }
|
|
431
|
-
}
|
|
353
|
+
class MultiplyPointDto {
|
|
354
|
+
constructor(point?: Base.Point3, amountOfPoints?: number);
|
|
432
355
|
/**
|
|
433
356
|
* Point for multiplication
|
|
434
357
|
* @default undefined
|
|
@@ -440,15 +363,8 @@ export namespace Point {
|
|
|
440
363
|
*/
|
|
441
364
|
amountOfPoints: number;
|
|
442
365
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
constructor(radius?: number, numberPoints?: number, widening?: number, factor?: number, phi?: number) {
|
|
446
|
-
if (radius !== undefined) { this.radius = radius; }
|
|
447
|
-
if (numberPoints !== undefined) { this.numberPoints = numberPoints; }
|
|
448
|
-
if (widening !== undefined) { this.widening = widening; }
|
|
449
|
-
if (factor !== undefined) { this.factor = factor; }
|
|
450
|
-
if (phi !== undefined) { this.phi = phi; }
|
|
451
|
-
}
|
|
366
|
+
class SpiralDto {
|
|
367
|
+
constructor(radius?: number, numberPoints?: number, widening?: number, factor?: number, phi?: number);
|
|
452
368
|
/**
|
|
453
369
|
* Identifies phi angle
|
|
454
370
|
* @default 0.9
|
|
@@ -456,7 +372,7 @@ export namespace Point {
|
|
|
456
372
|
* @maximum Infinity
|
|
457
373
|
* @step 0.1
|
|
458
374
|
*/
|
|
459
|
-
phi
|
|
375
|
+
phi: number;
|
|
460
376
|
/**
|
|
461
377
|
* Identifies how many points will be created
|
|
462
378
|
* @default 200
|
|
@@ -464,7 +380,7 @@ export namespace Point {
|
|
|
464
380
|
* @maximum Infinity
|
|
465
381
|
* @step 10
|
|
466
382
|
*/
|
|
467
|
-
numberPoints
|
|
383
|
+
numberPoints: number;
|
|
468
384
|
/**
|
|
469
385
|
* Widening factor of the spiral
|
|
470
386
|
* @default 3
|
|
@@ -472,7 +388,7 @@ export namespace Point {
|
|
|
472
388
|
* @maximum Infinity
|
|
473
389
|
* @step 0.1
|
|
474
390
|
*/
|
|
475
|
-
widening
|
|
391
|
+
widening: number;
|
|
476
392
|
/**
|
|
477
393
|
* Radius of the spiral
|
|
478
394
|
* @default 6
|
|
@@ -480,7 +396,7 @@ export namespace Point {
|
|
|
480
396
|
* @maximum Infinity
|
|
481
397
|
* @step 0.1
|
|
482
398
|
*/
|
|
483
|
-
radius
|
|
399
|
+
radius: number;
|
|
484
400
|
/**
|
|
485
401
|
* Factor of the spiral
|
|
486
402
|
* @default 1
|
|
@@ -488,17 +404,10 @@ export namespace Point {
|
|
|
488
404
|
* @maximum Infinity
|
|
489
405
|
* @step 0.1
|
|
490
406
|
*/
|
|
491
|
-
factor
|
|
407
|
+
factor: number;
|
|
492
408
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
constructor(nrHexagonsX?: number, nrHexagonsY?: number, radiusHexagon?: number, orientOnCenter?: boolean, pointsOnGround?: boolean) {
|
|
496
|
-
if (nrHexagonsX !== undefined) { this.nrHexagonsX = nrHexagonsX; }
|
|
497
|
-
if (nrHexagonsY !== undefined) { this.nrHexagonsY = nrHexagonsY; }
|
|
498
|
-
if (radiusHexagon !== undefined) { this.radiusHexagon = radiusHexagon; }
|
|
499
|
-
if (orientOnCenter !== undefined) { this.orientOnCenter = orientOnCenter; }
|
|
500
|
-
if (pointsOnGround !== undefined) { this.pointsOnGround = pointsOnGround; }
|
|
501
|
-
}
|
|
409
|
+
class HexGridCentersDto {
|
|
410
|
+
constructor(nrHexagonsX?: number, nrHexagonsY?: number, radiusHexagon?: number, orientOnCenter?: boolean, pointsOnGround?: boolean);
|
|
502
411
|
/**
|
|
503
412
|
* Number of hexagons on Y direction
|
|
504
413
|
* @default 21
|
|
@@ -506,7 +415,7 @@ export namespace Point {
|
|
|
506
415
|
* @maximum Infinity
|
|
507
416
|
* @step 1
|
|
508
417
|
*/
|
|
509
|
-
nrHexagonsY
|
|
418
|
+
nrHexagonsY: number;
|
|
510
419
|
/**
|
|
511
420
|
* Number of Hexagons on Z direction
|
|
512
421
|
* @default 21
|
|
@@ -514,7 +423,7 @@ export namespace Point {
|
|
|
514
423
|
* @maximum Infinity
|
|
515
424
|
* @step 1
|
|
516
425
|
*/
|
|
517
|
-
nrHexagonsX
|
|
426
|
+
nrHexagonsX: number;
|
|
518
427
|
/**
|
|
519
428
|
* radius of a single hexagon
|
|
520
429
|
* @default 0.2
|
|
@@ -527,11 +436,11 @@ export namespace Point {
|
|
|
527
436
|
* Orient hexagon points grid on center
|
|
528
437
|
* @default false
|
|
529
438
|
*/
|
|
530
|
-
orientOnCenter
|
|
439
|
+
orientOnCenter: boolean;
|
|
531
440
|
/**
|
|
532
441
|
* Orient points on the ground
|
|
533
442
|
* @default false
|
|
534
443
|
*/
|
|
535
|
-
pointsOnGround
|
|
444
|
+
pointsOnGround: boolean;
|
|
536
445
|
}
|
|
537
446
|
}
|