@bitbybit-dev/base 1.1.1 → 1.2.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 (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,12 @@
1
+ /**
2
+ * Parameters for array handling: the list to act on plus the index, count, depth, comparison or
3
+ * grouping key an operation needs. Geometry calls take and return lists constantly, so these turn up
4
+ * between almost every pair of geometry operations.
5
+ */
1
6
  export declare namespace Lists {
7
+ /**
8
+ * Which end of a list to act on: the first item or the last.
9
+ */
2
10
  enum firstLastEnum {
3
11
  first = "first",
4
12
  last = "last"
@@ -22,7 +30,7 @@ export declare namespace Lists {
22
30
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
23
31
  * @default true
24
32
  */
25
- clone?: boolean;
33
+ clone?: boolean | undefined;
26
34
  }
27
35
  class SubListDto<T> {
28
36
  constructor(list?: T[], indexStart?: number, indexEnd?: number, clone?: boolean);
@@ -51,7 +59,7 @@ export declare namespace Lists {
51
59
  * Tries to clone the data in the component, sometimes it may not be possible if structure is circular
52
60
  * @default true
53
61
  */
54
- clone?: boolean;
62
+ clone?: boolean | undefined;
55
63
  }
56
64
  class ListCloneDto<T> {
57
65
  constructor(list?: T[], clone?: boolean);
@@ -64,7 +72,7 @@ export declare namespace Lists {
64
72
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
65
73
  * @default true
66
74
  */
67
- clone?: boolean;
75
+ clone?: boolean | undefined;
68
76
  }
69
77
  class RepeatInPatternDto<T> {
70
78
  constructor(list?: T[]);
@@ -77,7 +85,7 @@ export declare namespace Lists {
77
85
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
78
86
  * @default true
79
87
  */
80
- clone?: boolean;
88
+ clone?: boolean | undefined;
81
89
  /**
82
90
  * The limit of the length of the list
83
91
  * @default 100
@@ -98,7 +106,7 @@ export declare namespace Lists {
98
106
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
99
107
  * @default true
100
108
  */
101
- clone?: boolean;
109
+ clone?: boolean | undefined;
102
110
  /**
103
111
  * If true, the list will be sorted in ascending order, otherwise in descending order
104
112
  * @default true
@@ -116,7 +124,7 @@ export declare namespace Lists {
116
124
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
117
125
  * @default true
118
126
  */
119
- clone?: boolean;
127
+ clone?: boolean | undefined;
120
128
  /**
121
129
  * If true, the list will be sorted in ascending order, otherwise in descending order
122
130
  * @default true
@@ -197,7 +205,7 @@ export declare namespace Lists {
197
205
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
198
206
  * @default true
199
207
  */
200
- clone?: boolean;
208
+ clone?: boolean | undefined;
201
209
  }
202
210
  class AddItemAtIndexesDto<T> {
203
211
  constructor(list?: T[], item?: T, indexes?: number[], clone?: boolean);
@@ -220,7 +228,7 @@ export declare namespace Lists {
220
228
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
221
229
  * @default true
222
230
  */
223
- clone?: boolean;
231
+ clone?: boolean | undefined;
224
232
  }
225
233
  class AddItemsAtIndexesDto<T> {
226
234
  constructor(list?: T[], items?: T[], indexes?: number[], clone?: boolean);
@@ -243,7 +251,7 @@ export declare namespace Lists {
243
251
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
244
252
  * @default true
245
253
  */
246
- clone?: boolean;
254
+ clone?: boolean | undefined;
247
255
  }
248
256
  class RemoveItemAtIndexDto<T> {
249
257
  constructor(list?: T[], index?: number, clone?: boolean);
@@ -264,7 +272,7 @@ export declare namespace Lists {
264
272
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
265
273
  * @default true
266
274
  */
267
- clone?: boolean;
275
+ clone?: boolean | undefined;
268
276
  }
269
277
  class RemoveItemsAtIndexesDto<T> {
270
278
  constructor(list?: T[], indexes?: number[], clone?: boolean);
@@ -282,7 +290,7 @@ export declare namespace Lists {
282
290
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
283
291
  * @default true
284
292
  */
285
- clone?: boolean;
293
+ clone?: boolean | undefined;
286
294
  }
287
295
  class RemoveNthItemDto<T> {
288
296
  constructor(list?: T[], nth?: number, offset?: number, clone?: boolean);
@@ -311,7 +319,7 @@ export declare namespace Lists {
311
319
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
312
320
  * @default true
313
321
  */
314
- clone?: boolean;
322
+ clone?: boolean | undefined;
315
323
  }
316
324
  class RandomThresholdDto<T> {
317
325
  constructor(list?: T[], threshold?: number, clone?: boolean);
@@ -332,7 +340,7 @@ export declare namespace Lists {
332
340
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
333
341
  * @default true
334
342
  */
335
- clone?: boolean;
343
+ clone?: boolean | undefined;
336
344
  }
337
345
  class RemoveDuplicatesDto<T> {
338
346
  constructor(list?: T[], clone?: boolean);
@@ -345,7 +353,7 @@ export declare namespace Lists {
345
353
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
346
354
  * @default true
347
355
  */
348
- clone?: boolean;
356
+ clone?: boolean | undefined;
349
357
  }
350
358
  class RemoveDuplicatesToleranceDto<T> {
351
359
  constructor(list?: T[], clone?: boolean, tolerance?: number);
@@ -366,7 +374,7 @@ export declare namespace Lists {
366
374
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
367
375
  * @default true
368
376
  */
369
- clone?: boolean;
377
+ clone?: boolean | undefined;
370
378
  }
371
379
  class GetByPatternDto<T> {
372
380
  constructor(list?: T[], pattern?: boolean[]);
@@ -408,7 +416,7 @@ export declare namespace Lists {
408
416
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
409
417
  * @default true
410
418
  */
411
- clone?: boolean;
419
+ clone?: boolean | undefined;
412
420
  }
413
421
  class GetLongestListLength<T> {
414
422
  constructor(lists?: T[]);
@@ -450,7 +458,7 @@ export declare namespace Lists {
450
458
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
451
459
  * @default true
452
460
  */
453
- clone?: boolean;
461
+ clone?: boolean | undefined;
454
462
  }
455
463
  class AddItemFirstLastDto<T> {
456
464
  constructor(list?: T[], item?: T, position?: firstLastEnum, clone?: boolean);
@@ -473,7 +481,7 @@ export declare namespace Lists {
473
481
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
474
482
  * @default true
475
483
  */
476
- clone?: boolean;
484
+ clone?: boolean | undefined;
477
485
  }
478
486
  class ConcatenateDto<T> {
479
487
  constructor(lists?: T[][], clone?: boolean);
@@ -486,7 +494,7 @@ export declare namespace Lists {
486
494
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
487
495
  * @default true
488
496
  */
489
- clone?: boolean;
497
+ clone?: boolean | undefined;
490
498
  }
491
499
  class IncludesDto<T> {
492
500
  constructor(list?: T[], item?: T);
@@ -512,6 +520,6 @@ export declare namespace Lists {
512
520
  * Tries to make structured clone of the incoming list data in the component, sometimes it may not be possible due to circular structures or other types of error
513
521
  * @default true
514
522
  */
515
- clone?: boolean;
523
+ clone?: boolean | undefined;
516
524
  }
517
525
  }
@@ -1,7 +1,15 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
2
  // tslint:disable-next-line: no-namespace
3
+ /**
4
+ * Parameters for array handling: the list to act on plus the index, count, depth, comparison or
5
+ * grouping key an operation needs. Geometry calls take and return lists constantly, so these turn up
6
+ * between almost every pair of geometry operations.
7
+ */
3
8
  export var Lists;
4
9
  (function (Lists) {
10
+ /**
11
+ * Which end of a list to act on: the first item or the last.
12
+ */
5
13
  let firstLastEnum;
6
14
  (function (firstLastEnum) {
7
15
  firstLastEnum["first"] = "first";
@@ -199,6 +207,14 @@ export var Lists;
199
207
  Lists.GroupListDto = GroupListDto;
200
208
  class MultiplyItemDto {
201
209
  constructor(item, times) {
210
+ /**
211
+ * Times to multiply
212
+ * @default 10
213
+ * @minimum 0
214
+ * @maximum Infinity
215
+ * @step 1
216
+ */
217
+ this.times = 10;
202
218
  if (item !== undefined) {
203
219
  this.item = item;
204
220
  }
@@ -1,5 +1,16 @@
1
1
  import { Base } from "./base-inputs";
2
+ /**
3
+ * Parameters for boolean logic and control flow: the operands of comparisons and and/or/not, the
4
+ * branches of a conditional selection, and the gate values that visual scripts use where code would
5
+ * use an if statement.
6
+ */
2
7
  export declare namespace Logic {
8
+ /**
9
+ * The comparison used between two values: less than, less or equal, greater, greater or equal,
10
+ * strict equality and inequality, and their loose equivalents. The strict forms compare type as
11
+ * well as value and are the safer default; the loose forms coerce, which is occasionally what you
12
+ * want when comparing a number against text a user typed.
13
+ */
3
14
  enum BooleanOperatorsEnum {
4
15
  less = "<",
5
16
  lessOrEqual = "<=",
@@ -37,12 +48,12 @@ export declare namespace Logic {
37
48
  boolean: boolean;
38
49
  }
39
50
  class BooleanListDto {
40
- constructor(booleans?: boolean);
51
+ constructor(booleans?: boolean[]);
41
52
  /**
42
53
  * Boolean value
43
54
  * @default undefined
44
55
  */
45
- booleans: any;
56
+ booleans: boolean[];
46
57
  }
47
58
  class ValueGateDto<T> {
48
59
  constructor(value?: T, boolean?: boolean);
@@ -64,13 +75,13 @@ export declare namespace Logic {
64
75
  * @default undefined
65
76
  * @optional true
66
77
  */
67
- value1?: T;
78
+ value1?: T | undefined;
68
79
  /**
69
80
  * Second value to check
70
81
  * @default undefined
71
82
  * @optional true
72
83
  */
73
- value2?: U;
84
+ value2?: U | undefined;
74
85
  }
75
86
  class RandomBooleansDto {
76
87
  constructor(length?: number);
@@ -1,7 +1,18 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
2
  // tslint:disable-next-line: no-namespace
3
+ /**
4
+ * Parameters for boolean logic and control flow: the operands of comparisons and and/or/not, the
5
+ * branches of a conditional selection, and the gate values that visual scripts use where code would
6
+ * use an if statement.
7
+ */
3
8
  export var Logic;
4
9
  (function (Logic) {
10
+ /**
11
+ * The comparison used between two values: less than, less or equal, greater, greater or equal,
12
+ * strict equality and inequality, and their loose equivalents. The strict forms compare type as
13
+ * well as value and are the safer default; the loose forms coerce, which is occasionally what you
14
+ * want when comparing a number against text a user typed.
15
+ */
5
16
  let BooleanOperatorsEnum;
6
17
  (function (BooleanOperatorsEnum) {
7
18
  BooleanOperatorsEnum["less"] = "<";
@@ -15,6 +26,11 @@ export var Logic;
15
26
  })(BooleanOperatorsEnum = Logic.BooleanOperatorsEnum || (Logic.BooleanOperatorsEnum = {}));
16
27
  class ComparisonDto {
17
28
  constructor(first, second, operator) {
29
+ /**
30
+ * Operator
31
+ * @default less
32
+ */
33
+ this.operator = BooleanOperatorsEnum.less;
18
34
  if (first !== undefined) {
19
35
  this.first = first;
20
36
  }
@@ -100,12 +116,61 @@ export var Logic;
100
116
  }
101
117
  Logic.RandomBooleansDto = RandomBooleansDto;
102
118
  class TwoThresholdRandomGradientDto {
119
+ constructor() {
120
+ /**
121
+ * Threshold for the numeric value until which the output will be true
122
+ * @default 1
123
+ * @minimum 0
124
+ * @maximum Infinity
125
+ * @step 0.1
126
+ */
127
+ this.thresholdTotalTrue = 1;
128
+ /**
129
+ * Threshold for the numeric value until which the output will be true
130
+ * @default 2
131
+ * @minimum 0
132
+ * @maximum Infinity
133
+ * @step 0.1
134
+ */
135
+ this.thresholdTotalFalse = 2;
136
+ /**
137
+ * Number of levels to go through in between thresholds for gradient
138
+ * @default 10
139
+ * @minimum 0
140
+ * @maximum Infinity
141
+ * @step 1
142
+ */
143
+ this.nrLevels = 10;
144
+ }
103
145
  }
104
146
  Logic.TwoThresholdRandomGradientDto = TwoThresholdRandomGradientDto;
105
147
  class ThresholdBooleanListDto {
148
+ constructor() {
149
+ /**
150
+ * Threshold for the numeric value until which the output will be true.
151
+ * If number in the list is larger than this threshold it will become false if inverse stays false.
152
+ * @default 1
153
+ * @minimum 0
154
+ * @maximum Infinity
155
+ * @step 0.1
156
+ */
157
+ this.threshold = 1;
158
+ /**
159
+ * True values become false and false values become true
160
+ * @default false
161
+ */
162
+ this.inverse = false;
163
+ }
106
164
  }
107
165
  Logic.ThresholdBooleanListDto = ThresholdBooleanListDto;
108
166
  class ThresholdGapsBooleanListDto {
167
+ constructor() {
168
+ /**
169
+ * True values become false and false values become true
170
+ * @default false
171
+ */
172
+ this.inverse = false;
173
+ }
109
174
  }
110
175
  Logic.ThresholdGapsBooleanListDto = ThresholdGapsBooleanListDto;
111
176
  })(Logic || (Logic = {}));
@@ -1,4 +1,15 @@
1
+ /**
2
+ * Parameters for numeric helpers: the operands of arithmetic and trigonometry, the source and target
3
+ * ranges for remapping a value, rounding and clamping bounds, interpolation factors, and the seed for
4
+ * reproducible randomness. Remapping is the one that appears in nearly every parametric model, because
5
+ * it turns a user-facing slider range into the range the geometry needs.
6
+ */
1
7
  export declare namespace Math {
8
+ /**
9
+ * The arithmetic operation applied to two numbers: add, subtract, multiply, divide, power or
10
+ * modulus. Exists so a visual script can choose the operation at runtime instead of wiring a
11
+ * different node for each one.
12
+ */
2
13
  enum mathTwoNrOperatorEnum {
3
14
  add = "add",
4
15
  subtract = "subtract",
@@ -7,6 +18,13 @@ export declare namespace Math {
7
18
  power = "power",
8
19
  modulus = "modulus"
9
20
  }
21
+ /**
22
+ * The operation applied to a single number: absolute, negate, natural and base-10 logarithms,
23
+ * powers of ten, rounding up, down or to nearest, square root, the trigonometric functions and
24
+ * their inverses, exponential, and conversion between radians and degrees. Note that the
25
+ * trigonometric functions work in radians - use radToDeg and degToRad at the boundary, because
26
+ * almost every angle a user types is in degrees.
27
+ */
10
28
  enum mathOneNrOperatorEnum {
11
29
  absolute = "absolute",
12
30
  negate = "negate",
@@ -28,6 +46,13 @@ export declare namespace Math {
28
46
  radToDeg = "radToDeg",
29
47
  degToRad = "degToRad"
30
48
  }
49
+ /**
50
+ * The easing curve applied when interpolating between two values, in the usual in/out/inOut
51
+ * families - sine, quadratic, cubic, quartic, quintic, exponential and the rest. Governs how an
52
+ * animated or blended value accelerates: easeInOut starts and ends gently, easeIn only starts
53
+ * gently, easeOut only ends gently. Linear interpolation, with no easing, is what makes animation
54
+ * look mechanical.
55
+ */
31
56
  enum easeEnum {
32
57
  easeInSine = "easeInSine",
33
58
  easeOutSine = "easeOutSine",
@@ -1,7 +1,18 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
2
  // tslint:disable-next-line: no-namespace
3
+ /**
4
+ * Parameters for numeric helpers: the operands of arithmetic and trigonometry, the source and target
5
+ * ranges for remapping a value, rounding and clamping bounds, interpolation factors, and the seed for
6
+ * reproducible randomness. Remapping is the one that appears in nearly every parametric model, because
7
+ * it turns a user-facing slider range into the range the geometry needs.
8
+ */
3
9
  export var Math;
4
10
  (function (Math) {
11
+ /**
12
+ * The arithmetic operation applied to two numbers: add, subtract, multiply, divide, power or
13
+ * modulus. Exists so a visual script can choose the operation at runtime instead of wiring a
14
+ * different node for each one.
15
+ */
5
16
  let mathTwoNrOperatorEnum;
6
17
  (function (mathTwoNrOperatorEnum) {
7
18
  mathTwoNrOperatorEnum["add"] = "add";
@@ -11,6 +22,13 @@ export var Math;
11
22
  mathTwoNrOperatorEnum["power"] = "power";
12
23
  mathTwoNrOperatorEnum["modulus"] = "modulus";
13
24
  })(mathTwoNrOperatorEnum = Math.mathTwoNrOperatorEnum || (Math.mathTwoNrOperatorEnum = {}));
25
+ /**
26
+ * The operation applied to a single number: absolute, negate, natural and base-10 logarithms,
27
+ * powers of ten, rounding up, down or to nearest, square root, the trigonometric functions and
28
+ * their inverses, exponential, and conversion between radians and degrees. Note that the
29
+ * trigonometric functions work in radians - use radToDeg and degToRad at the boundary, because
30
+ * almost every angle a user types is in degrees.
31
+ */
14
32
  let mathOneNrOperatorEnum;
15
33
  (function (mathOneNrOperatorEnum) {
16
34
  mathOneNrOperatorEnum["absolute"] = "absolute";
@@ -33,6 +51,13 @@ export var Math;
33
51
  mathOneNrOperatorEnum["radToDeg"] = "radToDeg";
34
52
  mathOneNrOperatorEnum["degToRad"] = "degToRad";
35
53
  })(mathOneNrOperatorEnum = Math.mathOneNrOperatorEnum || (Math.mathOneNrOperatorEnum = {}));
54
+ /**
55
+ * The easing curve applied when interpolating between two values, in the usual in/out/inOut
56
+ * families - sine, quadratic, cubic, quartic, quintic, exponential and the rest. Governs how an
57
+ * animated or blended value accelerates: easeInOut starts and ends gently, easeIn only starts
58
+ * gently, easeOut only ends gently. Linear interpolation, with no easing, is what makes animation
59
+ * look mechanical.
60
+ */
36
61
  let easeEnum;
37
62
  (function (easeEnum) {
38
63
  easeEnum["easeInSine"] = "easeInSine";
@@ -135,6 +160,11 @@ export var Math;
135
160
  * @step 0.1
136
161
  */
137
162
  this.max = 1;
163
+ /**
164
+ * Ease function
165
+ * @default easeInSine
166
+ */
167
+ this.ease = easeEnum.easeInSine;
138
168
  if (x !== undefined) {
139
169
  this.x = x;
140
170
  }
@@ -186,6 +216,11 @@ export var Math;
186
216
  * @step 0.1
187
217
  */
188
218
  this.second = 1;
219
+ /**
220
+ * Point
221
+ * @default add
222
+ */
223
+ this.operation = mathTwoNrOperatorEnum.add;
189
224
  if (first !== undefined) {
190
225
  this.first = first;
191
226
  }
@@ -235,6 +270,11 @@ export var Math;
235
270
  * @step 0.1
236
271
  */
237
272
  this.number = 1;
273
+ /**
274
+ * Point
275
+ * @default absolute
276
+ */
277
+ this.operation = mathOneNrOperatorEnum.absolute;
238
278
  if (number !== undefined) {
239
279
  this.number = number;
240
280
  }
@@ -1,4 +1,9 @@
1
1
  import { Base } from "./base-inputs";
2
+ /**
3
+ * Parameters for polygonal mesh geometry: vertex, index and normal data, the options for building and
4
+ * inspecting a mesh, and the settings that control conversion between the mesh representations the
5
+ * different kernels and the renderer expect.
6
+ */
2
7
  export declare namespace Mesh {
3
8
  class SignedDistanceFromPlaneToPointDto {
4
9
  constructor(point?: Base.Point3, plane?: Base.TrianglePlane3);
@@ -6,12 +11,12 @@ export declare namespace Mesh {
6
11
  * Point from which to find the distance
7
12
  * @default undefined
8
13
  */
9
- point?: Base.Point3;
14
+ point: Base.Point3;
10
15
  /**
11
16
  * Triangle plane to which the distance is calculated
12
17
  * @default undefined
13
18
  */
14
- plane?: Base.TrianglePlane3;
19
+ plane: Base.TrianglePlane3;
15
20
  }
16
21
  class TriangleDto {
17
22
  constructor(triangle?: Base.Triangle3);
@@ -19,7 +24,7 @@ export declare namespace Mesh {
19
24
  * Triangle to be used
20
25
  * @default undefined
21
26
  */
22
- triangle?: Base.Triangle3;
27
+ triangle: Base.Triangle3;
23
28
  }
24
29
  class TriangleToleranceDto {
25
30
  constructor(triangle?: Base.Triangle3);
@@ -27,7 +32,7 @@ export declare namespace Mesh {
27
32
  * Triangle to be used
28
33
  * @default undefined
29
34
  */
30
- triangle?: Base.Triangle3;
35
+ triangle: Base.Triangle3;
31
36
  /**
32
37
  * Tolerance for the calculation
33
38
  * @default 1e-7
@@ -35,7 +40,7 @@ export declare namespace Mesh {
35
40
  * @maximum Infinity
36
41
  * @step 1e-7
37
42
  */
38
- tolerance?: number;
43
+ tolerance?: number | undefined;
39
44
  }
40
45
  class TriangleTriangleToleranceDto {
41
46
  constructor(triangle1?: Base.Triangle3, triangle2?: Base.Triangle3, tolerance?: number);
@@ -43,12 +48,12 @@ export declare namespace Mesh {
43
48
  * First triangle
44
49
  * @default undefined
45
50
  */
46
- triangle1?: Base.Triangle3;
51
+ triangle1: Base.Triangle3;
47
52
  /**
48
53
  * Second triangle
49
54
  * @default undefined
50
55
  */
51
- triangle2?: Base.Triangle3;
56
+ triangle2: Base.Triangle3;
52
57
  /**
53
58
  * Tolerance for the calculation
54
59
  * @default 1e-7
@@ -56,7 +61,7 @@ export declare namespace Mesh {
56
61
  * @maximum Infinity
57
62
  * @step 1e-7
58
63
  */
59
- tolerance?: number;
64
+ tolerance?: number | undefined;
60
65
  }
61
66
  class MeshMeshToleranceDto {
62
67
  constructor(mesh1?: Base.Mesh3, mesh2?: Base.Mesh3, tolerance?: number);
@@ -64,12 +69,12 @@ export declare namespace Mesh {
64
69
  * First mesh
65
70
  * @default undefined
66
71
  */
67
- mesh1?: Base.Mesh3;
72
+ mesh1: Base.Mesh3;
68
73
  /**
69
74
  * Second mesh
70
75
  * @default undefined
71
76
  */
72
- mesh2?: Base.Mesh3;
77
+ mesh2: Base.Mesh3;
73
78
  /**
74
79
  * Tolerance for the calculation
75
80
  * @default 1e-7
@@ -77,6 +82,6 @@ export declare namespace Mesh {
77
82
  * @maximum Infinity
78
83
  * @step 1e-7
79
84
  */
80
- tolerance?: number;
85
+ tolerance?: number | undefined;
81
86
  }
82
87
  }
@@ -1,4 +1,9 @@
1
1
  // tslint:disable-next-line: no-namespace
2
+ /**
3
+ * Parameters for polygonal mesh geometry: vertex, index and normal data, the options for building and
4
+ * inspecting a mesh, and the settings that control conversion between the mesh representations the
5
+ * different kernels and the renderer expect.
6
+ */
2
7
  export var Mesh;
3
8
  (function (Mesh) {
4
9
  class SignedDistanceFromPlaneToPointDto {