@bitbybit-dev/base 1.2.0 → 1.3.0-rc.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.
Files changed (55) hide show
  1. package/lib/api/GlobalCDNProvider.js +1 -1
  2. package/lib/api/inputs/base-inputs.d.ts +13 -12
  3. package/lib/api/inputs/color-inputs.d.ts +97 -48
  4. package/lib/api/inputs/color-inputs.js +95 -46
  5. package/lib/api/inputs/dates-inputs.d.ts +67 -26
  6. package/lib/api/inputs/dates-inputs.js +57 -16
  7. package/lib/api/inputs/io-inputs.d.ts +13 -15
  8. package/lib/api/inputs/io-inputs.js +7 -8
  9. package/lib/api/inputs/line-inputs.d.ts +88 -33
  10. package/lib/api/inputs/line-inputs.js +61 -11
  11. package/lib/api/inputs/lists-inputs.d.ts +207 -96
  12. package/lib/api/inputs/lists-inputs.js +153 -45
  13. package/lib/api/inputs/logic-inputs.d.ts +52 -22
  14. package/lib/api/inputs/logic-inputs.js +41 -12
  15. package/lib/api/inputs/math-inputs.d.ts +113 -52
  16. package/lib/api/inputs/math-inputs.js +112 -51
  17. package/lib/api/inputs/mesh-inputs.d.ts +30 -11
  18. package/lib/api/inputs/mesh-inputs.js +21 -3
  19. package/lib/api/inputs/point-inputs.d.ts +240 -107
  20. package/lib/api/inputs/point-inputs.js +199 -73
  21. package/lib/api/inputs/polyline-inputs.d.ts +68 -28
  22. package/lib/api/inputs/polyline-inputs.js +48 -13
  23. package/lib/api/inputs/text-inputs.d.ts +117 -46
  24. package/lib/api/inputs/text-inputs.js +111 -41
  25. package/lib/api/inputs/transforms-inputs.d.ts +65 -23
  26. package/lib/api/inputs/transforms-inputs.js +64 -22
  27. package/lib/api/inputs/vector-inputs.d.ts +154 -76
  28. package/lib/api/inputs/vector-inputs.js +132 -57
  29. package/lib/api/models/point/hex-grid-data.d.ts +1 -1
  30. package/lib/api/models/point/hex-grid-data.js +1 -1
  31. package/lib/api/services/color.d.ts +149 -70
  32. package/lib/api/services/color.js +149 -70
  33. package/lib/api/services/dates.d.ts +313 -150
  34. package/lib/api/services/dates.js +313 -150
  35. package/lib/api/services/line.d.ts +138 -68
  36. package/lib/api/services/line.js +138 -68
  37. package/lib/api/services/lists.d.ts +357 -177
  38. package/lib/api/services/lists.js +357 -177
  39. package/lib/api/services/logic.d.ts +98 -45
  40. package/lib/api/services/logic.js +98 -45
  41. package/lib/api/services/math.d.ts +363 -211
  42. package/lib/api/services/math.js +363 -211
  43. package/lib/api/services/mesh.d.ts +73 -31
  44. package/lib/api/services/mesh.js +73 -31
  45. package/lib/api/services/point.d.ts +367 -147
  46. package/lib/api/services/point.js +367 -147
  47. package/lib/api/services/polyline.d.ts +146 -71
  48. package/lib/api/services/polyline.js +146 -71
  49. package/lib/api/services/text.d.ts +320 -165
  50. package/lib/api/services/text.js +320 -165
  51. package/lib/api/services/transforms.d.ts +145 -58
  52. package/lib/api/services/transforms.js +145 -58
  53. package/lib/api/services/vector.d.ts +381 -156
  54. package/lib/api/services/vector.js +381 -156
  55. package/package.json +1 -1
@@ -14,10 +14,14 @@
14
14
  */
15
15
  export var Text;
16
16
  (function (Text) {
17
+ /**
18
+ * One text for the single-text methods of `text`: `trim`, `toUpperCase`, `reverse`, `length`,
19
+ * `isEmpty` and the rest.
20
+ */
17
21
  class TextDto {
18
22
  constructor(text) {
19
23
  /**
20
- * The text
24
+ * The text the method works on; it is not changed, a new text is returned.
21
25
  * @default Hello World
22
26
  */
23
27
  this.text = "Hello World";
@@ -27,15 +31,18 @@ export var Text;
27
31
  }
28
32
  }
29
33
  Text.TextDto = TextDto;
34
+ /**
35
+ * A text and a separator for `text.split`.
36
+ */
30
37
  class TextSplitDto {
31
38
  constructor(text, separator) {
32
39
  /**
33
- * Text to split
40
+ * The text to cut into pieces.
34
41
  * @default a,b,c
35
42
  */
36
43
  this.text = "a,b,c";
37
44
  /**
38
- * Text to split by
45
+ * The text that marks a cut; it is dropped from the pieces.
39
46
  * @default ,
40
47
  */
41
48
  this.separator = ",";
@@ -48,20 +55,23 @@ export var Text;
48
55
  }
49
56
  }
50
57
  Text.TextSplitDto = TextSplitDto;
58
+ /**
59
+ * A text, what to look for in it and what to put in its place, for `text.replaceAll`.
60
+ */
51
61
  class TextReplaceDto {
52
62
  constructor(text, search, replaceWith) {
53
63
  /**
54
- * Text to replace
64
+ * The text to make the replacements in.
55
65
  * @default a-c
56
66
  */
57
67
  this.text = "a-c";
58
68
  /**
59
- * Text to search for
69
+ * The text to look for; every occurrence is replaced.
60
70
  * @default -
61
71
  */
62
72
  this.search = "-";
63
73
  /**
64
- * Text to replace found occurences
74
+ * The text that takes the place of each occurrence.
65
75
  * @default b
66
76
  */
67
77
  this.replaceWith = "b";
@@ -77,10 +87,13 @@ export var Text;
77
87
  }
78
88
  }
79
89
  Text.TextReplaceDto = TextReplaceDto;
90
+ /**
91
+ * Texts and a separator for `text.join`, which writes them one after another.
92
+ */
80
93
  class TextJoinDto {
81
94
  constructor(list, separator) {
82
95
  /**
83
- * Text to join by
96
+ * The text placed between neighbors; an empty text joins them directly.
84
97
  * @default ,
85
98
  */
86
99
  this.separator = ",";
@@ -93,6 +106,9 @@ export var Text;
93
106
  }
94
107
  }
95
108
  Text.TextJoinDto = TextJoinDto;
109
+ /**
110
+ * Any value for `text.toString`, which turns it into text the way JavaScript prints it.
111
+ */
96
112
  class ToStringDto {
97
113
  constructor(item) {
98
114
  if (item !== undefined) {
@@ -101,6 +117,10 @@ export var Text;
101
117
  }
102
118
  }
103
119
  Text.ToStringDto = ToStringDto;
120
+ /**
121
+ * A list of values for `text.toStringEach`, which turns each into text the way JavaScript
122
+ * prints it.
123
+ */
104
124
  class ToStringEachDto {
105
125
  constructor(list) {
106
126
  if (list !== undefined) {
@@ -109,15 +129,18 @@ export var Text;
109
129
  }
110
130
  }
111
131
  Text.ToStringEachDto = ToStringEachDto;
132
+ /**
133
+ * A text with numbered placeholders and the values for `text.format` to fill in.
134
+ */
112
135
  class TextFormatDto {
113
136
  constructor(text, values) {
114
137
  /**
115
- * Text to format
138
+ * The text with placeholders such as `{0}` and `{1}`.
116
139
  * @default Hello {0}
117
140
  */
118
141
  this.text = "Hello {0}";
119
142
  /**
120
- * Values to format
143
+ * The values, in placeholder order: the first fills `{0}`, the second `{1}`.
121
144
  * @default ["World"]
122
145
  */
123
146
  this.values = ["World"];
@@ -130,15 +153,19 @@ export var Text;
130
153
  }
131
154
  }
132
155
  Text.TextFormatDto = TextFormatDto;
156
+ /**
157
+ * A text and something to look for in it, for `text.includes`, `text.startsWith`,
158
+ * `text.endsWith`, `text.indexOf` and `text.lastIndexOf`.
159
+ */
133
160
  class TextSearchDto {
134
161
  constructor(text, search) {
135
162
  /**
136
- * Text to search in
163
+ * The text to look in.
137
164
  * @default hello world
138
165
  */
139
166
  this.text = "hello world";
140
167
  /**
141
- * Text to search for
168
+ * The text to look for, matched exactly, including case.
142
169
  * @default world
143
170
  */
144
171
  this.search = "world";
@@ -151,15 +178,18 @@ export var Text;
151
178
  }
152
179
  }
153
180
  Text.TextSearchDto = TextSearchDto;
181
+ /**
182
+ * A text and a range of positions for `text.substring` and `text.slice`.
183
+ */
154
184
  class TextSubstringDto {
155
185
  constructor(text, start, end) {
156
186
  /**
157
- * Text to extract from
187
+ * The text to take characters from.
158
188
  * @default hello world
159
189
  */
160
190
  this.text = "hello world";
161
191
  /**
162
- * Start index
192
+ * Position of the first character to take, counting from 0.
163
193
  * @default 0
164
194
  * @minimum 0
165
195
  * @maximum Infinity
@@ -167,7 +197,8 @@ export var Text;
167
197
  */
168
198
  this.start = 0;
169
199
  /**
170
- * End index
200
+ * Position just after the last character to take; leave it out to take everything to the
201
+ * end.
171
202
  * @default 5
172
203
  * @minimum 0
173
204
  * @maximum Infinity
@@ -186,15 +217,18 @@ export var Text;
186
217
  }
187
218
  }
188
219
  Text.TextSubstringDto = TextSubstringDto;
220
+ /**
221
+ * A text and a position for `text.charAt`.
222
+ */
189
223
  class TextIndexDto {
190
224
  constructor(text, index) {
191
225
  /**
192
- * Text to get character from
226
+ * The text to read a character from.
193
227
  * @default hello
194
228
  */
195
229
  this.text = "hello";
196
230
  /**
197
- * Index of character
231
+ * Position of the character, counting from 0.
198
232
  * @default 0
199
233
  * @minimum 0
200
234
  * @maximum Infinity
@@ -210,15 +244,18 @@ export var Text;
210
244
  }
211
245
  }
212
246
  Text.TextIndexDto = TextIndexDto;
247
+ /**
248
+ * A text, a length and a filler for `text.padStart` and `text.padEnd`.
249
+ */
213
250
  class TextPadDto {
214
251
  constructor(text, length, padString) {
215
252
  /**
216
- * Text to pad
253
+ * The text to lengthen.
217
254
  * @default x
218
255
  */
219
256
  this.text = "x";
220
257
  /**
221
- * Target length
258
+ * The length to reach; a text already that long stays as it is.
222
259
  * @default 3
223
260
  * @minimum 0
224
261
  * @maximum Infinity
@@ -226,7 +263,7 @@ export var Text;
226
263
  */
227
264
  this.length = 3;
228
265
  /**
229
- * String to pad with
266
+ * The filler repeated until the length is reached; the last repeat is cut short if needed.
230
267
  * @default a
231
268
  */
232
269
  this.padString = "a";
@@ -242,15 +279,18 @@ export var Text;
242
279
  }
243
280
  }
244
281
  Text.TextPadDto = TextPadDto;
282
+ /**
283
+ * A text and a count for `text.repeat`.
284
+ */
245
285
  class TextRepeatDto {
246
286
  constructor(text, count) {
247
287
  /**
248
- * Text to repeat
288
+ * The text that is written out again and again.
249
289
  * @default ha
250
290
  */
251
291
  this.text = "ha";
252
292
  /**
253
- * Number of repetitions
293
+ * How many times the text appears in the result.
254
294
  * @default 3
255
295
  * @minimum 0
256
296
  * @maximum Infinity
@@ -266,10 +306,13 @@ export var Text;
266
306
  }
267
307
  }
268
308
  Text.TextRepeatDto = TextRepeatDto;
309
+ /**
310
+ * Texts for `text.concat`, joined with nothing between them.
311
+ */
269
312
  class TextConcatDto {
270
313
  constructor(texts) {
271
314
  /**
272
- * Texts to concatenate
315
+ * The texts to join, in order.
273
316
  * @default ["hello", " ", "world"]
274
317
  */
275
318
  this.texts = ["hello", " ", "world"];
@@ -279,20 +322,26 @@ export var Text;
279
322
  }
280
323
  }
281
324
  Text.TextConcatDto = TextConcatDto;
325
+ /**
326
+ * A text and a regular expression for `text.regexTest`, `text.regexMatch`, `text.regexSearch`
327
+ * and `text.regexSplit`.
328
+ */
282
329
  class TextRegexDto {
283
330
  constructor(text, pattern, flags) {
284
331
  /**
285
- * Text to search in
332
+ * The text the pattern is applied to.
286
333
  * @default hello123world
287
334
  */
288
335
  this.text = "hello123world";
289
336
  /**
290
- * Regular expression pattern
337
+ * The regular expression, written as it would be between the slashes in JavaScript, such as
338
+ * `[0-9]+`.
291
339
  * @default [0-9]+
292
340
  */
293
341
  this.pattern = "[0-9]+";
294
342
  /**
295
- * Regular expression flags (g, i, m, s, u, y)
343
+ * The regular expression flags: `g` for every match, `i` to ignore case, `m` for
344
+ * line-by-line anchors, and `s`, `u`, `y` as in JavaScript.
296
345
  * @default g
297
346
  */
298
347
  this.flags = "g";
@@ -308,25 +357,31 @@ export var Text;
308
357
  }
309
358
  }
310
359
  Text.TextRegexDto = TextRegexDto;
360
+ /**
361
+ * A text, a regular expression and a replacement for `text.regexReplace`.
362
+ */
311
363
  class TextRegexReplaceDto {
312
364
  constructor(text, pattern, flags, replaceWith) {
313
365
  /**
314
- * Text to search in
366
+ * The text to make the replacements in.
315
367
  * @default hello123world456
316
368
  */
317
369
  this.text = "hello123world456";
318
370
  /**
319
- * Regular expression pattern
371
+ * The regular expression, written as it would be between the slashes in JavaScript, such as
372
+ * `[0-9]+`.
320
373
  * @default [0-9]+
321
374
  */
322
375
  this.pattern = "[0-9]+";
323
376
  /**
324
- * Regular expression flags (g, i, m, s, u, y)
377
+ * The regular expression flags: `g` replaces every match instead of the first, `i` ignores
378
+ * case, and `m`, `s`, `u`, `y` work as in JavaScript.
325
379
  * @default g
326
380
  */
327
381
  this.flags = "g";
328
382
  /**
329
- * Text to replace matches with
383
+ * The text that takes the place of each match; `$1` and the like refer to capture groups,
384
+ * as in JavaScript.
330
385
  * @default X
331
386
  */
332
387
  this.replaceWith = "X";
@@ -345,15 +400,20 @@ export var Text;
345
400
  }
346
401
  }
347
402
  Text.TextRegexReplaceDto = TextRegexReplaceDto;
403
+ /**
404
+ * One character and its size and placement for `text.vectorChar`, which draws it as stroke
405
+ * paths on the XZ plane.
406
+ */
348
407
  class VectorCharDto {
349
408
  constructor(char, xOffset, yOffset, height, extrudeOffset) {
350
409
  /**
351
- * The text
410
+ * The character to draw; only its first character is used, and an unknown one is drawn as a
411
+ * question mark.
352
412
  * @default A
353
413
  */
354
414
  this.char = "A";
355
415
  /**
356
- * The x offset
416
+ * How far to shift the strokes along X, in model units.
357
417
  * @default 0
358
418
  * @minimum -Infinity
359
419
  * @maximum Infinity
@@ -361,14 +421,16 @@ export var Text;
361
421
  */
362
422
  this.xOffset = 0;
363
423
  /**
364
- * The y offset
424
+ * How far to shift the strokes along the second axis of the character plane, in model
425
+ * units.
365
426
  * @minimum -Infinity
366
427
  * @maximum Infinity
367
428
  * @step 0.1
429
+ * @optional true
368
430
  */
369
431
  this.yOffset = 0;
370
432
  /**
371
- * The height of the text
433
+ * The height of a capital letter, in model units; the strokes are scaled to it.
372
434
  * @default 1
373
435
  * @minimum -Infinity
374
436
  * @maximum Infinity
@@ -376,7 +438,8 @@ export var Text;
376
438
  */
377
439
  this.height = 1;
378
440
  /**
379
- * The extrude offset
441
+ * A margin, in model units, taken off the height and split above and below, so an extruded
442
+ * character keeps its full size.
380
443
  * @default 0
381
444
  * @minimum -Infinity
382
445
  * @maximum Infinity
@@ -401,10 +464,14 @@ export var Text;
401
464
  }
402
465
  }
403
466
  Text.VectorCharDto = VectorCharDto;
467
+ /**
468
+ * A text and its layout for `text.vectorText`, which draws it line by line as stroke paths on
469
+ * the XZ plane.
470
+ */
404
471
  class VectorTextDto {
405
472
  constructor(text, xOffset, yOffset, height, lineSpacing, letterSpacing, align, extrudeOffset, centerOnOrigin) {
406
473
  /**
407
- * The x offset
474
+ * How far to shift the whole block along X, in model units.
408
475
  * @default 0
409
476
  * @minimum -Infinity
410
477
  * @maximum Infinity
@@ -412,7 +479,7 @@ export var Text;
412
479
  */
413
480
  this.xOffset = 0;
414
481
  /**
415
- * The y offset
482
+ * How far to shift the whole block along the second axis of the text plane, in model units.
416
483
  * @default 0
417
484
  * @minimum -Infinity
418
485
  * @maximum Infinity
@@ -420,7 +487,7 @@ export var Text;
420
487
  */
421
488
  this.yOffset = 0;
422
489
  /**
423
- * The height of the text
490
+ * The height of a capital letter, in model units.
424
491
  * @default 1
425
492
  * @minimum -Infinity
426
493
  * @maximum Infinity
@@ -428,7 +495,8 @@ export var Text;
428
495
  */
429
496
  this.height = 1;
430
497
  /**
431
- * The line spacing
498
+ * The distance between lines as a multiple of the height; 1.4 leaves a little air between
499
+ * them.
432
500
  * @default 1.4
433
501
  * @minimum -Infinity
434
502
  * @maximum Infinity
@@ -436,7 +504,8 @@ export var Text;
436
504
  */
437
505
  this.lineSpacing = 1.4;
438
506
  /**
439
- * The letter spacing offset
507
+ * Extra space between characters as a multiple of the height; 0 uses the font's own
508
+ * spacing.
440
509
  * @default 0
441
510
  * @minimum -Infinity
442
511
  * @maximum Infinity
@@ -444,7 +513,8 @@ export var Text;
444
513
  */
445
514
  this.letterSpacing = 0;
446
515
  /**
447
- * The extrude offset
516
+ * A margin, in model units, taken off the height and split above and below each character,
517
+ * so extruded text keeps its full size.
448
518
  * @default 0
449
519
  * @minimum -Infinity
450
520
  * @maximum Infinity
@@ -452,7 +522,7 @@ export var Text;
452
522
  */
453
523
  this.extrudeOffset = 0;
454
524
  /**
455
- * Will center text on 0, 0, 0
525
+ * When true, the middle of the whole text block is moved to the origin.
456
526
  * @default false
457
527
  */
458
528
  this.centerOnOrigin = false;
@@ -1,15 +1,19 @@
1
1
  import { Base } from "./base-inputs";
2
2
  /**
3
- * Parameters for building transformation matrices: translations, rotations around an axis or a centre,
3
+ * Parameters for building transformation matrices: translations, rotations around an axis or a center,
4
4
  * uniform and non-uniform scaling, and the composition of several transforms into one. The result is a
5
5
  * matrix that any geometry API will accept, so the same transform can be applied to points, curves and
6
6
  * solids alike.
7
7
  */
8
8
  export declare namespace Transforms {
9
+ /**
10
+ * An axis, a center and an angle for `transforms.rotationCenterAxis`.
11
+ */
9
12
  class RotationCenterAxisDto {
10
13
  constructor(angle?: number, axis?: Base.Vector3, center?: Base.Point3);
11
14
  /**
12
- * Angle of rotation in degrees
15
+ * How far to turn, in degrees; positive is counter-clockwise when the axis points toward
16
+ * you.
13
17
  * @default 90
14
18
  * @minimum -Infinity
15
19
  * @maximum Infinity
@@ -17,20 +21,25 @@ export declare namespace Transforms {
17
21
  */
18
22
  angle: number;
19
23
  /**
20
- * Axis vector for rotation
24
+ * The direction of the axis to turn around.
21
25
  * @default [0, 1, 0]
22
26
  */
23
27
  axis: Base.Vector3;
24
28
  /**
25
- * The center from which the axis is pointing
29
+ * A point the axis passes through; it stays in place.
26
30
  * @default [0, 0, 0]
27
31
  */
28
32
  center: Base.Point3;
29
33
  }
34
+ /**
35
+ * A center and an angle for `transforms.rotationCenterX`, `transforms.rotationCenterY` and
36
+ * `transforms.rotationCenterZ`.
37
+ */
30
38
  class RotationCenterDto {
31
39
  constructor(angle?: number, center?: Base.Point3);
32
40
  /**
33
- * Angle of rotation in degrees
41
+ * How far to turn, in degrees; positive is counter-clockwise when the axis points toward
42
+ * you.
34
43
  * @default 90
35
44
  * @minimum -Infinity
36
45
  * @maximum Infinity
@@ -38,15 +47,18 @@ export declare namespace Transforms {
38
47
  */
39
48
  angle: number;
40
49
  /**
41
- * The center from which the axis is pointing
50
+ * The point the axis passes through; it stays in place.
42
51
  * @default [0, 0, 0]
43
52
  */
44
53
  center: Base.Point3;
45
54
  }
55
+ /**
56
+ * Three angles and a center for `transforms.rotationCenterYawPitchRoll`.
57
+ */
46
58
  class RotationCenterYawPitchRollDto {
47
59
  constructor(yaw?: number, pitch?: number, roll?: number, center?: Base.Point3);
48
60
  /**
49
- * Yaw angle (Rotation around X) in degrees
61
+ * The turn about the Y axis, in degrees.
50
62
  * @default 0
51
63
  * @minimum -Infinity
52
64
  * @maximum Infinity
@@ -54,7 +66,7 @@ export declare namespace Transforms {
54
66
  */
55
67
  yaw: number;
56
68
  /**
57
- * Pitch angle (Rotation around Y) in degrees
69
+ * The turn about the X axis, in degrees.
58
70
  * @default 0
59
71
  * @minimum -Infinity
60
72
  * @maximum Infinity
@@ -62,7 +74,7 @@ export declare namespace Transforms {
62
74
  */
63
75
  pitch: number;
64
76
  /**
65
- * Roll angle (Rotation around Z) in degrees
77
+ * The turn about the Z axis, in degrees.
66
78
  * @default 0
67
79
  * @minimum -Infinity
68
80
  * @maximum Infinity
@@ -70,54 +82,74 @@ export declare namespace Transforms {
70
82
  */
71
83
  roll: number;
72
84
  /**
73
- * The center from which the rotations are applied
85
+ * The point the rotation turns around; it stays in place.
74
86
  * @default [0, 0, 0]
75
87
  */
76
88
  center: Base.Point3;
77
89
  }
90
+ /**
91
+ * A factor per axis for `transforms.scaleXYZ`, measured from the origin.
92
+ */
78
93
  class ScaleXYZDto {
79
94
  constructor(scaleXyz?: Base.Vector3);
80
95
  /**
81
- * 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%
96
+ * The factor for each axis as `[x, y, z]`: `[1, 2, 1]` doubles distances along Y and leaves
97
+ * X and Z as they are.
82
98
  * @default [1, 1, 1]
83
99
  */
84
100
  scaleXyz: Base.Vector3;
85
101
  }
102
+ /**
103
+ * A center, a direction and a factor for `transforms.stretchDirFromCenter`.
104
+ */
86
105
  class StretchDirCenterDto {
87
106
  constructor(scale?: number, center?: Base.Point3, direction?: Base.Vector3);
88
- /** The center point around which to stretch.
107
+ /**
108
+ * The point that stays in place; distances are measured from it.
89
109
  * @default [0, 0, 0]
90
110
  */
91
111
  center?: Base.Point3 | undefined;
92
- /** The direction vector along which to stretch. Does not need to be normalized initially.
112
+ /**
113
+ * The direction to stretch along; its length does not matter. Distances across it do not
114
+ * change.
93
115
  * @default [0, 0, 1]
94
- */
116
+ */
95
117
  direction?: Base.Vector3 | undefined;
96
- /** The scale factor to apply along the direction vector. 1.0 means no change.
118
+ /**
119
+ * The factor applied along the direction; 1 changes nothing, 2 doubles distances from the
120
+ * center along it.
97
121
  * @default 2
98
122
  * @minimum -Infinity
99
123
  * @maximum Infinity
100
124
  * @step 0.1
101
- */
125
+ */
102
126
  scale?: number | undefined;
103
127
  }
128
+ /**
129
+ * A center and a factor per axis for `transforms.scaleCenterXYZ`.
130
+ */
104
131
  class ScaleCenterXYZDto {
105
132
  constructor(center?: Base.Point3, scaleXyz?: Base.Vector3);
106
133
  /**
107
- * The center from which the scaling is applied
134
+ * The point that stays in place while everything else moves away from it or toward it.
108
135
  * @default [0, 0, 0]
109
136
  */
110
137
  center: Base.Point3;
111
138
  /**
112
- * 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%
139
+ * The factor for each axis as `[x, y, z]`: `[1, 2, 1]` doubles distances along Y and leaves
140
+ * X and Z as they are.
113
141
  * @default [1, 1, 1]
114
142
  */
115
143
  scaleXyz: Base.Vector3;
116
144
  }
145
+ /**
146
+ * One factor for `transforms.uniformScale`, applied on every axis from the origin.
147
+ */
117
148
  class UniformScaleDto {
118
149
  constructor(scale?: number);
119
150
  /**
120
- * Uniform scale factor for all x, y, z directions. 1 will keep everything on original size, 2 will scale 200%;
151
+ * The factor on every axis: 1 changes nothing, 2 doubles every size and distance from the
152
+ * origin.
121
153
  * @default 1
122
154
  * @minimum -Infinity
123
155
  * @maximum Infinity
@@ -125,10 +157,14 @@ export declare namespace Transforms {
125
157
  */
126
158
  scale: number;
127
159
  }
160
+ /**
161
+ * One factor and a center for `transforms.uniformScaleFromCenter`.
162
+ */
128
163
  class UniformScaleFromCenterDto {
129
164
  constructor(scale?: number, center?: Base.Point3);
130
165
  /**
131
- * Scale factor for all x, y, z directions. 1 will keep everything on original size, 2 will scale 200%;
166
+ * The factor on every axis: 1 changes nothing, 2 doubles every size and distance from the
167
+ * center.
132
168
  * @default 1
133
169
  * @minimum -Infinity
134
170
  * @maximum Infinity
@@ -136,23 +172,29 @@ export declare namespace Transforms {
136
172
  */
137
173
  scale: number;
138
174
  /**
139
- * Center position of the scaling
175
+ * The point that stays in place while everything else moves away from it or toward it.
140
176
  * @default [0, 0, 0]
141
177
  */
142
178
  center: Base.Point3;
143
179
  }
180
+ /**
181
+ * A vector for `transforms.translationXYZ`, which builds the matrix that moves by it.
182
+ */
144
183
  class TranslationXYZDto {
145
184
  constructor(translation?: Base.Vector3);
146
185
  /**
147
- * Translation vector with [x, y, z] distances
186
+ * How far to move along each axis, as `[x, y, z]` in model units.
148
187
  * @default [0, 0, 0]
149
188
  */
150
189
  translation: Base.Vector3;
151
190
  }
191
+ /**
192
+ * Several vectors for `transforms.translationsXYZ`, one transformation each.
193
+ */
152
194
  class TranslationsXYZDto {
153
195
  constructor(translations?: Base.Vector3[]);
154
196
  /**
155
- * Translation vectors with [x, y, z] distances
197
+ * The vectors to move by, each `[x, y, z]` in model units; the result keeps their order.
156
198
  * @default undefined
157
199
  */
158
200
  translations: Base.Vector3[];