@bitbybit-dev/base 1.1.1 → 1.2.0-rc.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.
Files changed (63) hide show
  1. package/README.md +14 -4
  2. package/index.js +0 -3
  3. package/lib/api/GlobalCDNProvider.js +1 -1
  4. package/lib/api/inputs/base-inputs.d.ts +114 -0
  5. package/lib/api/inputs/base-inputs.js +15 -0
  6. package/lib/api/inputs/color-inputs.d.ts +4 -0
  7. package/lib/api/inputs/color-inputs.js +4 -0
  8. package/lib/api/inputs/dates-inputs.d.ts +4 -0
  9. package/lib/api/inputs/dates-inputs.js +4 -0
  10. package/lib/api/inputs/io-inputs.d.ts +10 -6
  11. package/lib/api/inputs/io-inputs.js +4 -0
  12. package/lib/api/inputs/line-inputs.d.ts +36 -31
  13. package/lib/api/inputs/line-inputs.js +13 -0
  14. package/lib/api/inputs/lists-inputs.d.ts +28 -20
  15. package/lib/api/inputs/lists-inputs.js +16 -0
  16. package/lib/api/inputs/logic-inputs.d.ts +15 -4
  17. package/lib/api/inputs/logic-inputs.js +65 -0
  18. package/lib/api/inputs/math-inputs.d.ts +25 -0
  19. package/lib/api/inputs/math-inputs.js +40 -0
  20. package/lib/api/inputs/mesh-inputs.d.ts +16 -11
  21. package/lib/api/inputs/mesh-inputs.js +5 -0
  22. package/lib/api/inputs/point-inputs.d.ts +33 -27
  23. package/lib/api/inputs/point-inputs.js +14 -0
  24. package/lib/api/inputs/polyline-inputs.d.ts +33 -28
  25. package/lib/api/inputs/polyline-inputs.js +5 -0
  26. package/lib/api/inputs/text-inputs.d.ts +27 -14
  27. package/lib/api/inputs/text-inputs.js +13 -0
  28. package/lib/api/inputs/transforms-inputs.d.ts +9 -3
  29. package/lib/api/inputs/transforms-inputs.js +6 -0
  30. package/lib/api/inputs/vector-inputs.d.ts +5 -0
  31. package/lib/api/inputs/vector-inputs.js +69 -0
  32. package/lib/api/models/point/hex-grid-data.d.ts +8 -3
  33. package/lib/api/models/point/hex-grid-data.js +5 -0
  34. package/lib/api/models/simplex.d.ts +19 -250
  35. package/lib/api/models/simplex.js +7 -35
  36. package/lib/api/models/text/vector-char-data.d.ts +3 -3
  37. package/lib/api/models/text/vector-text-data.d.ts +3 -3
  38. package/lib/api/services/color.js +5 -4
  39. package/lib/api/services/geometry-helper.d.ts +5 -5
  40. package/lib/api/services/geometry-helper.js +101 -2
  41. package/lib/api/services/helpers/dxf/dxf-generator.js +20 -69
  42. package/lib/api/services/helpers/mesh-normals.d.ts +9 -0
  43. package/lib/api/services/helpers/mesh-normals.js +56 -0
  44. package/lib/api/services/io.d.ts +4 -0
  45. package/lib/api/services/io.js +4 -0
  46. package/lib/api/services/line.d.ts +2 -2
  47. package/lib/api/services/line.js +18 -51
  48. package/lib/api/services/lists.js +1 -6
  49. package/lib/api/services/mesh.d.ts +2 -1
  50. package/lib/api/services/mesh.js +14 -32
  51. package/lib/api/services/point.d.ts +3 -3
  52. package/lib/api/services/point.js +26 -82
  53. package/lib/api/services/polyline.d.ts +2 -2
  54. package/lib/api/services/polyline.js +13 -43
  55. package/lib/api/services/text.js +1 -9
  56. package/lib/api/services/transforms.js +10 -16
  57. package/lib/api/services/vector.d.ts +4 -4
  58. package/lib/api/services/vector.js +3 -3
  59. package/package.json +53 -91
  60. package/babel.config.cjs +0 -14
  61. package/babel.config.d.cts +0 -5
  62. package/lib/api/unit-test-helper.d.ts +0 -20
  63. package/lib/api/unit-test-helper.js +0 -130
@@ -1,4 +1,10 @@
1
1
  import { Base } from "./base-inputs";
2
+ /**
3
+ * Parameters for creating and working with points: single points, points spread along a line or a
4
+ * curve, points in rectangular and hexagonal grids, spirals and other structured sets, plus the
5
+ * options for transforming, sorting, closest-point queries and distance measurement. Structured point
6
+ * sets are where most parametric models begin.
7
+ */
2
8
  export declare namespace Point {
3
9
  class PointDto {
4
10
  constructor(point?: Base.Point3);
@@ -115,7 +121,7 @@ export declare namespace Point {
115
121
  * Point mesh variable in case it already exists and needs updating
116
122
  * @default undefined
117
123
  */
118
- pointMesh?: T;
124
+ pointMesh?: T | undefined;
119
125
  }
120
126
  class DrawPointsDto<T> {
121
127
  /**
@@ -157,7 +163,7 @@ export declare namespace Point {
157
163
  * Points mesh variable in case it already exists and needs updating
158
164
  * @default undefined
159
165
  */
160
- pointsMesh?: T;
166
+ pointsMesh?: T | undefined;
161
167
  }
162
168
  class TransformPointDto {
163
169
  constructor(point?: Base.Point3, transformation?: Base.TransformMatrixes);
@@ -258,17 +264,17 @@ export declare namespace Point {
258
264
  * Points to transform
259
265
  * @default undefined
260
266
  */
261
- points?: Base.Point3[];
267
+ points: Base.Point3[];
262
268
  /**
263
269
  * The center from which the scaling is applied
264
270
  * @default [0, 0, 0]
265
271
  */
266
- center?: Base.Point3;
272
+ center?: Base.Point3 | undefined;
267
273
  /**
268
274
  * Stretch direction vector
269
275
  * @default [0, 0, 1]
270
276
  */
271
- direction?: Base.Vector3;
277
+ direction?: Base.Vector3 | undefined;
272
278
  /**
273
279
  * The scale factor to apply along the direction vector. 1.0 means no change.
274
280
  * @default 2
@@ -276,7 +282,7 @@ export declare namespace Point {
276
282
  * @maximum Infinity
277
283
  * @step 0.1
278
284
  */
279
- scale?: number;
285
+ scale?: number | undefined;
280
286
  }
281
287
  class RotatePointsCenterAxisDto {
282
288
  constructor(points?: Base.Point3[], angle?: number, axis?: Base.Vector3, center?: Base.Point3);
@@ -346,17 +352,17 @@ export declare namespace Point {
346
352
  * Start point
347
353
  * @default undefined
348
354
  */
349
- start?: Base.Point3;
355
+ start: Base.Point3;
350
356
  /**
351
357
  * Center point
352
358
  * @default undefined
353
359
  */
354
- center?: Base.Point3;
360
+ center: Base.Point3;
355
361
  /**
356
362
  * End point
357
363
  * @default undefined
358
364
  */
359
- end?: Base.Point3;
365
+ end: Base.Point3;
360
366
  /**
361
367
  * Tolerance for the calculation
362
368
  * @default 1e-7
@@ -372,12 +378,12 @@ export declare namespace Point {
372
378
  * Points to transform
373
379
  * @default undefined
374
380
  */
375
- points?: Base.Point3[];
381
+ points: Base.Point3[];
376
382
  /**
377
383
  * Check first and last point for duplicates
378
384
  * @default false
379
385
  */
380
- checkLastWithFirst?: boolean;
386
+ checkLastWithFirst?: boolean | undefined;
381
387
  /**
382
388
  * Tolerance for the calculation
383
389
  * @default 1e-7
@@ -385,7 +391,7 @@ export declare namespace Point {
385
391
  * @maximum Infinity
386
392
  * @step 1e-7
387
393
  */
388
- tolerance?: number;
394
+ tolerance?: number | undefined;
389
395
  }
390
396
  class RemoveConsecutiveDuplicatesDto {
391
397
  constructor(points?: Base.Point3[], tolerance?: number, checkFirstAndLast?: boolean);
@@ -401,7 +407,7 @@ export declare namespace Point {
401
407
  * @maximum Infinity
402
408
  * @step 1e-7
403
409
  */
404
- tolerance: number;
410
+ tolerance?: number | undefined;
405
411
  /**
406
412
  * Check first and last point for duplicates
407
413
  */
@@ -426,12 +432,12 @@ export declare namespace Point {
426
432
  * First point to compare
427
433
  * @default undefined
428
434
  */
429
- point1?: Base.Point3;
435
+ point1: Base.Point3;
430
436
  /**
431
437
  * Second point to compare
432
438
  * @default undefined
433
439
  */
434
- point2?: Base.Point3;
440
+ point2: Base.Point3;
435
441
  /**
436
442
  * Tolerance for the calculation
437
443
  * @default 1e-7
@@ -439,7 +445,7 @@ export declare namespace Point {
439
445
  * @maximum Infinity
440
446
  * @step 1e-7
441
447
  */
442
- tolerance?: number;
448
+ tolerance?: number | undefined;
443
449
  }
444
450
  class StartEndPointsDto {
445
451
  constructor(startPoint?: Base.Point3, endPoint?: Base.Point3);
@@ -531,56 +537,56 @@ export declare namespace Point {
531
537
  * @maximum Infinity
532
538
  * @step 0.1
533
539
  */
534
- width?: number;
540
+ width?: number | undefined;
535
541
  /** Total desired height for the grid area. Note: due to hexagon geometry, the actual grid height might differ slightly if maintaining regular hexagons based on width.
536
542
  * @default 10
537
543
  * @minimum 0
538
544
  * @maximum Infinity
539
545
  * @step 0.1
540
546
  */
541
- height?: number;
547
+ height?: number | undefined;
542
548
  /** Number of hexagons desired in width.
543
549
  * @default 10
544
550
  * @minimum 0
545
551
  * @maximum Infinity
546
552
  * @step 1
547
553
  */
548
- nrHexagonsInWidth?: number;
554
+ nrHexagonsInWidth?: number | undefined;
549
555
  /** Number of hexagons desired in height.
550
556
  * @default 10
551
557
  * @minimum 0
552
558
  * @maximum Infinity
553
559
  * @step 1
554
560
  */
555
- nrHexagonsInHeight?: number;
561
+ nrHexagonsInHeight?: number | undefined;
556
562
  /** If true, the hexagons will be oriented with their flat sides facing up and down.
557
563
  * @default false
558
564
  */
559
- flatTop?: boolean;
565
+ flatTop?: boolean | undefined;
560
566
  /** If true, shift the entire grid up by half hex height.
561
567
  * @default false
562
568
  */
563
- extendTop?: boolean;
569
+ extendTop?: boolean | undefined;
564
570
  /** If true, shift the entire grid down by half hex height.
565
571
  * @default false
566
572
  */
567
- extendBottom?: boolean;
573
+ extendBottom?: boolean | undefined;
568
574
  /** If true, shift the entire grid left by half hex width.
569
575
  * @default false
570
576
  */
571
- extendLeft?: boolean;
577
+ extendLeft?: boolean | undefined;
572
578
  /** If true, shift the entire grid right by half hex width.
573
579
  * @default false
574
580
  */
575
- extendRight?: boolean;
581
+ extendRight?: boolean | undefined;
576
582
  /** If true, the grid center (based on totalWidth/totalHeight) will be at [0,0,0].
577
583
  * @default false
578
584
  */
579
- centerGrid?: boolean;
585
+ centerGrid?: boolean | undefined;
580
586
  /** If true, swaps Y and Z coordinates and sets Y to 0, placing points on the XZ ground plane.
581
587
  * @default false
582
588
  */
583
- pointsOnGround?: boolean;
589
+ pointsOnGround?: boolean | undefined;
584
590
  }
585
591
  class HexGridCentersDto {
586
592
  constructor(nrHexagonsX?: number, nrHexagonsY?: number, radiusHexagon?: number, orientOnCenter?: boolean, pointsOnGround?: boolean);
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Parameters for creating and working with points: single points, points spread along a line or a
3
+ * curve, points in rectangular and hexagonal grids, spirals and other structured sets, plus the
4
+ * options for transforming, sorting, closest-point queries and distance measurement. Structured point
5
+ * sets are where most parametric models begin.
6
+ */
1
7
  export var Point;
2
8
  (function (Point) {
3
9
  class PointDto {
@@ -700,6 +706,14 @@ export var Point;
700
706
  * @step 1
701
707
  */
702
708
  this.nrHexagonsX = 21;
709
+ /**
710
+ * radius of a single hexagon
711
+ * @default 0.2
712
+ * @minimum 0
713
+ * @maximum Infinity
714
+ * @step 0.1
715
+ */
716
+ this.radiusHexagon = 0.2;
703
717
  /**
704
718
  * Orient hexagon points grid on center
705
719
  * @default false
@@ -1,4 +1,9 @@
1
1
  import { Base } from "./base-inputs";
2
+ /**
3
+ * Parameters for connected sequences of line segments: the point list that defines the path, whether
4
+ * it closes back on itself, and the options for measuring, transforming and converting a polyline into
5
+ * a kernel wire ready for solid modelling.
6
+ */
2
7
  export declare namespace Polyline {
3
8
  class PolylineCreateDto {
4
9
  /**
@@ -9,12 +14,12 @@ export declare namespace Polyline {
9
14
  * Points of the polyline
10
15
  * @default undefined
11
16
  */
12
- points?: Base.Point3[];
17
+ points: Base.Point3[];
13
18
  /**
14
19
  * Can contain is closed information
15
20
  * @default false
16
21
  */
17
- isClosed?: boolean;
22
+ isClosed?: boolean | undefined;
18
23
  }
19
24
  class PolylinePropertiesDto {
20
25
  /**
@@ -25,17 +30,17 @@ export declare namespace Polyline {
25
30
  * Points of the polyline
26
31
  * @default undefined
27
32
  */
28
- points?: Base.Point3[];
33
+ points: Base.Point3[];
29
34
  /**
30
35
  * Can contain is closed information
31
36
  * @default false
32
37
  */
33
- isClosed?: boolean;
38
+ isClosed?: boolean | undefined;
34
39
  /**
35
40
  * Optional polyline color
36
41
  * @default #444444
37
42
  */
38
- color?: string | number[];
43
+ color?: string | number[] | undefined;
39
44
  }
40
45
  class PolylineDto {
41
46
  constructor(polyline?: PolylinePropertiesDto);
@@ -43,7 +48,7 @@ export declare namespace Polyline {
43
48
  * Polyline with points
44
49
  * @default undefined
45
50
  */
46
- polyline?: PolylinePropertiesDto;
51
+ polyline: PolylinePropertiesDto;
47
52
  }
48
53
  class PolylinesDto {
49
54
  constructor(polylines?: PolylinePropertiesDto[]);
@@ -51,7 +56,7 @@ export declare namespace Polyline {
51
56
  * Polylines array
52
57
  * @default undefined
53
58
  */
54
- polylines?: PolylinePropertiesDto[];
59
+ polylines: PolylinePropertiesDto[];
55
60
  }
56
61
  class TransformPolylineDto {
57
62
  constructor(polyline?: PolylinePropertiesDto, transformation?: Base.TransformMatrixes);
@@ -59,12 +64,12 @@ export declare namespace Polyline {
59
64
  * Polyline to transform
60
65
  * @default undefined
61
66
  */
62
- polyline?: PolylinePropertiesDto;
67
+ polyline: PolylinePropertiesDto;
63
68
  /**
64
69
  * Transformation matrix or a list of transformation matrixes
65
70
  * @default undefined
66
71
  */
67
- transformation?: Base.TransformMatrixes;
72
+ transformation: Base.TransformMatrixes;
68
73
  }
69
74
  class DrawPolylineDto<T> {
70
75
  /**
@@ -75,7 +80,7 @@ export declare namespace Polyline {
75
80
  * Polyline
76
81
  * @default undefined
77
82
  */
78
- polyline?: PolylinePropertiesDto;
83
+ polyline: PolylinePropertiesDto;
79
84
  /**
80
85
  * Value between 0 and 1
81
86
  * @default 1
@@ -83,12 +88,12 @@ export declare namespace Polyline {
83
88
  * @maximum 1
84
89
  * @step 0.1
85
90
  */
86
- opacity?: number;
91
+ opacity?: number | undefined;
87
92
  /**
88
93
  * Hex colour string
89
94
  * @default #444444
90
95
  */
91
- colours?: string | string[];
96
+ colours?: string | string[] | undefined;
92
97
  /**
93
98
  * Width of the polyline
94
99
  * @default 3
@@ -96,17 +101,17 @@ export declare namespace Polyline {
96
101
  * @maximum Infinity
97
102
  * @step 0.1
98
103
  */
99
- size?: number;
104
+ size?: number | undefined;
100
105
  /**
101
106
  * Indicates wether the position of this polyline will change in time
102
107
  * @default false
103
108
  */
104
- updatable?: boolean;
109
+ updatable?: boolean | undefined;
105
110
  /**
106
111
  * Line mesh variable in case it already exists and needs updating
107
112
  * @default undefined
108
113
  */
109
- polylineMesh?: T;
114
+ polylineMesh?: T | undefined;
110
115
  }
111
116
  class DrawPolylinesDto<T> {
112
117
  /**
@@ -117,7 +122,7 @@ export declare namespace Polyline {
117
122
  * Polylines
118
123
  * @default undefined
119
124
  */
120
- polylines?: PolylinePropertiesDto[];
125
+ polylines: PolylinePropertiesDto[];
121
126
  /**
122
127
  * Value between 0 and 1
123
128
  * @default 1
@@ -125,12 +130,12 @@ export declare namespace Polyline {
125
130
  * @maximum 1
126
131
  * @step 0.1
127
132
  */
128
- opacity?: number;
133
+ opacity?: number | undefined;
129
134
  /**
130
135
  * Hex colour string
131
136
  * @default #444444
132
137
  */
133
- colours?: string | string[];
138
+ colours?: string | string[] | undefined;
134
139
  /**
135
140
  * Width of the polyline
136
141
  * @default 3
@@ -138,17 +143,17 @@ export declare namespace Polyline {
138
143
  * @maximum Infinity
139
144
  * @step 0.1
140
145
  */
141
- size?: number;
146
+ size?: number | undefined;
142
147
  /**
143
148
  * Indicates wether the position of this polyline will change in time
144
149
  * @default false
145
150
  */
146
- updatable?: boolean;
151
+ updatable?: boolean | undefined;
147
152
  /**
148
153
  * Polyline mesh variable in case it already exists and needs updating
149
154
  * @default undefined
150
155
  */
151
- polylinesMesh?: T;
156
+ polylinesMesh?: T | undefined;
152
157
  }
153
158
  class SegmentsToleranceDto {
154
159
  constructor(segments?: Base.Segment3[]);
@@ -156,7 +161,7 @@ export declare namespace Polyline {
156
161
  * Segments array
157
162
  * @default undefined
158
163
  */
159
- segments?: Base.Segment3[];
164
+ segments: Base.Segment3[];
160
165
  /**
161
166
  * Tolerance for the calculation
162
167
  * @default 1e-5
@@ -164,7 +169,7 @@ export declare namespace Polyline {
164
169
  * @maximum Infinity
165
170
  * @step 1e-5
166
171
  */
167
- tolerance?: number;
172
+ tolerance?: number | undefined;
168
173
  }
169
174
  class PolylineToleranceDto {
170
175
  constructor(polyline?: PolylinePropertiesDto, tolerance?: number);
@@ -172,7 +177,7 @@ export declare namespace Polyline {
172
177
  * Polyline to check
173
178
  * @default undefined
174
179
  */
175
- polyline?: PolylinePropertiesDto;
180
+ polyline: PolylinePropertiesDto;
176
181
  /**
177
182
  * Tolerance for the calculation
178
183
  * @default 1e-5
@@ -180,7 +185,7 @@ export declare namespace Polyline {
180
185
  * @maximum Infinity
181
186
  * @step 1e-5
182
187
  */
183
- tolerance?: number;
188
+ tolerance?: number | undefined;
184
189
  }
185
190
  class TwoPolylinesToleranceDto {
186
191
  constructor(polyline1?: PolylinePropertiesDto, polyline2?: PolylinePropertiesDto, tolerance?: number);
@@ -188,12 +193,12 @@ export declare namespace Polyline {
188
193
  * First polyline to check
189
194
  * @default undefined
190
195
  */
191
- polyline1?: PolylinePropertiesDto;
196
+ polyline1: PolylinePropertiesDto;
192
197
  /**
193
198
  * Second polyline to check
194
199
  * @default undefined
195
200
  */
196
- polyline2?: PolylinePropertiesDto;
201
+ polyline2: PolylinePropertiesDto;
197
202
  /**
198
203
  * Tolerance for the calculation
199
204
  * @default 1e-5
@@ -201,6 +206,6 @@ export declare namespace Polyline {
201
206
  * @maximum Infinity
202
207
  * @step 1e-5
203
208
  */
204
- tolerance?: number;
209
+ tolerance?: number | undefined;
205
210
  }
206
211
  }
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Parameters for connected sequences of line segments: the point list that defines the path, whether
3
+ * it closes back on itself, and the options for measuring, transforming and converting a polyline into
4
+ * a kernel wire ready for solid modelling.
5
+ */
1
6
  export var Polyline;
2
7
  (function (Polyline) {
3
8
  class PolylineCreateDto {
@@ -1,4 +1,17 @@
1
1
  import { Base } from "./base-inputs";
2
+ /**
3
+
4
+
5
+ * Parameters for string handling: the text to act on plus the separator, index, pattern, replacement,
6
+
7
+
8
+ * padding or format an operation needs. Used for labels, tags, engraved 3D text and for assembling the
9
+
10
+
11
+ * data a script hands back out.
12
+
13
+
14
+ */
2
15
  export declare namespace Text {
3
16
  class TextDto {
4
17
  constructor(text?: string);
@@ -116,7 +129,7 @@ export declare namespace Text {
116
129
  * @maximum Infinity
117
130
  * @step 1
118
131
  */
119
- end?: number;
132
+ end?: number | undefined;
120
133
  }
121
134
  class TextIndexDto {
122
135
  constructor(text?: string, index?: number);
@@ -234,14 +247,14 @@ export declare namespace Text {
234
247
  * @maximum Infinity
235
248
  * @step 0.1
236
249
  */
237
- xOffset?: number;
250
+ xOffset?: number | undefined;
238
251
  /**
239
252
  * The y offset
240
253
  * @minimum -Infinity
241
254
  * @maximum Infinity
242
255
  * @step 0.1
243
256
  */
244
- yOffset?: number;
257
+ yOffset?: number | undefined;
245
258
  /**
246
259
  * The height of the text
247
260
  * @default 1
@@ -249,7 +262,7 @@ export declare namespace Text {
249
262
  * @maximum Infinity
250
263
  * @step 0.1
251
264
  */
252
- height?: number;
265
+ height?: number | undefined;
253
266
  /**
254
267
  * The extrude offset
255
268
  * @default 0
@@ -257,7 +270,7 @@ export declare namespace Text {
257
270
  * @maximum Infinity
258
271
  * @step 0.1
259
272
  */
260
- extrudeOffset?: number;
273
+ extrudeOffset?: number | undefined;
261
274
  }
262
275
  class VectorTextDto {
263
276
  constructor(text?: string, xOffset?: number, yOffset?: number, height?: number, lineSpacing?: number, letterSpacing?: number, align?: Base.horizontalAlignEnum, extrudeOffset?: number, centerOnOrigin?: boolean);
@@ -265,7 +278,7 @@ export declare namespace Text {
265
278
  * The text
266
279
  * @default Hello World
267
280
  */
268
- text?: string;
281
+ text?: string | undefined;
269
282
  /**
270
283
  * The x offset
271
284
  * @default 0
@@ -273,7 +286,7 @@ export declare namespace Text {
273
286
  * @maximum Infinity
274
287
  * @step 0.1
275
288
  */
276
- xOffset?: number;
289
+ xOffset?: number | undefined;
277
290
  /**
278
291
  * The y offset
279
292
  * @default 0
@@ -281,7 +294,7 @@ export declare namespace Text {
281
294
  * @maximum Infinity
282
295
  * @step 0.1
283
296
  */
284
- yOffset?: number;
297
+ yOffset?: number | undefined;
285
298
  /**
286
299
  * The height of the text
287
300
  * @default 1
@@ -289,7 +302,7 @@ export declare namespace Text {
289
302
  * @maximum Infinity
290
303
  * @step 0.1
291
304
  */
292
- height?: number;
305
+ height?: number | undefined;
293
306
  /**
294
307
  * The line spacing
295
308
  * @default 1.4
@@ -297,7 +310,7 @@ export declare namespace Text {
297
310
  * @maximum Infinity
298
311
  * @step 0.1
299
312
  */
300
- lineSpacing?: number;
313
+ lineSpacing?: number | undefined;
301
314
  /**
302
315
  * The letter spacing offset
303
316
  * @default 0
@@ -305,12 +318,12 @@ export declare namespace Text {
305
318
  * @maximum Infinity
306
319
  * @step 0.1
307
320
  */
308
- letterSpacing?: number;
321
+ letterSpacing?: number | undefined;
309
322
  /**
310
323
  * The extrude offset
311
324
  * @default left
312
325
  */
313
- align?: Base.horizontalAlignEnum;
326
+ align?: Base.horizontalAlignEnum | undefined;
314
327
  /**
315
328
  * The extrude offset
316
329
  * @default 0
@@ -318,11 +331,11 @@ export declare namespace Text {
318
331
  * @maximum Infinity
319
332
  * @step 0.1
320
333
  */
321
- extrudeOffset?: number;
334
+ extrudeOffset?: number | undefined;
322
335
  /**
323
336
  * Will center text on 0, 0, 0
324
337
  * @default false
325
338
  */
326
- centerOnOrigin?: boolean;
339
+ centerOnOrigin?: boolean | undefined;
327
340
  }
328
341
  }
@@ -1,4 +1,17 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
+ /**
3
+
4
+
5
+ * Parameters for string handling: the text to act on plus the separator, index, pattern, replacement,
6
+
7
+
8
+ * padding or format an operation needs. Used for labels, tags, engraved 3D text and for assembling the
9
+
10
+
11
+ * data a script hands back out.
12
+
13
+
14
+ */
2
15
  export var Text;
3
16
  (function (Text) {
4
17
  class TextDto {
@@ -1,4 +1,10 @@
1
1
  import { Base } from "./base-inputs";
2
+ /**
3
+ * Parameters for building transformation matrices: translations, rotations around an axis or a centre,
4
+ * uniform and non-uniform scaling, and the composition of several transforms into one. The result is a
5
+ * matrix that any geometry API will accept, so the same transform can be applied to points, curves and
6
+ * solids alike.
7
+ */
2
8
  export declare namespace Transforms {
3
9
  class RotationCenterAxisDto {
4
10
  constructor(angle?: number, axis?: Base.Vector3, center?: Base.Point3);
@@ -82,18 +88,18 @@ export declare namespace Transforms {
82
88
  /** The center point around which to stretch.
83
89
  * @default [0, 0, 0]
84
90
  */
85
- center?: Base.Point3;
91
+ center?: Base.Point3 | undefined;
86
92
  /** The direction vector along which to stretch. Does not need to be normalized initially.
87
93
  * @default [0, 0, 1]
88
94
  */
89
- direction?: Base.Vector3;
95
+ direction?: Base.Vector3 | undefined;
90
96
  /** The scale factor to apply along the direction vector. 1.0 means no change.
91
97
  * @default 2
92
98
  * @minimum -Infinity
93
99
  * @maximum Infinity
94
100
  * @step 0.1
95
101
  */
96
- scale?: number;
102
+ scale?: number | undefined;
97
103
  }
98
104
  class ScaleCenterXYZDto {
99
105
  constructor(center?: Base.Point3, scaleXyz?: Base.Vector3);
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Parameters for building transformation matrices: translations, rotations around an axis or a centre,
3
+ * uniform and non-uniform scaling, and the composition of several transforms into one. The result is a
4
+ * matrix that any geometry API will accept, so the same transform can be applied to points, curves and
5
+ * solids alike.
6
+ */
1
7
  export var Transforms;
2
8
  (function (Transforms) {
3
9
  class RotationCenterAxisDto {
@@ -1,5 +1,10 @@
1
1
  import { Base } from "./base-inputs";
2
2
  import { Math } from "./math-inputs";
3
+ /**
4
+ * Parameters for vector arithmetic: the operands for addition, subtraction, scaling, dot and cross
5
+ * products, normalisation, angle and distance measurement, projection and interpolation. Vectors are
6
+ * number arrays, so these DTOs mostly carry one or two of them plus a scalar.
7
+ */
3
8
  export declare namespace Vector {
4
9
  class TwoVectorsDto {
5
10
  constructor(first?: number[], second?: number[]);