@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.
- package/lib/api/GlobalCDNProvider.js +1 -1
- package/lib/api/inputs/base-inputs.d.ts +13 -12
- package/lib/api/inputs/color-inputs.d.ts +97 -48
- package/lib/api/inputs/color-inputs.js +95 -46
- package/lib/api/inputs/dates-inputs.d.ts +67 -26
- package/lib/api/inputs/dates-inputs.js +57 -16
- package/lib/api/inputs/io-inputs.d.ts +13 -15
- package/lib/api/inputs/io-inputs.js +7 -8
- package/lib/api/inputs/line-inputs.d.ts +88 -33
- package/lib/api/inputs/line-inputs.js +61 -11
- package/lib/api/inputs/lists-inputs.d.ts +207 -96
- package/lib/api/inputs/lists-inputs.js +153 -45
- package/lib/api/inputs/logic-inputs.d.ts +52 -22
- package/lib/api/inputs/logic-inputs.js +41 -12
- package/lib/api/inputs/math-inputs.d.ts +113 -52
- package/lib/api/inputs/math-inputs.js +112 -51
- package/lib/api/inputs/mesh-inputs.d.ts +30 -11
- package/lib/api/inputs/mesh-inputs.js +21 -3
- package/lib/api/inputs/point-inputs.d.ts +240 -107
- package/lib/api/inputs/point-inputs.js +199 -73
- package/lib/api/inputs/polyline-inputs.d.ts +68 -28
- package/lib/api/inputs/polyline-inputs.js +48 -13
- package/lib/api/inputs/text-inputs.d.ts +117 -46
- package/lib/api/inputs/text-inputs.js +111 -41
- package/lib/api/inputs/transforms-inputs.d.ts +65 -23
- package/lib/api/inputs/transforms-inputs.js +64 -22
- package/lib/api/inputs/vector-inputs.d.ts +154 -76
- package/lib/api/inputs/vector-inputs.js +132 -57
- package/lib/api/models/point/hex-grid-data.d.ts +1 -1
- package/lib/api/models/point/hex-grid-data.js +1 -1
- package/lib/api/services/color.d.ts +149 -70
- package/lib/api/services/color.js +149 -70
- package/lib/api/services/dates.d.ts +313 -150
- package/lib/api/services/dates.js +313 -150
- package/lib/api/services/line.d.ts +138 -68
- package/lib/api/services/line.js +138 -68
- package/lib/api/services/lists.d.ts +357 -177
- package/lib/api/services/lists.js +357 -177
- package/lib/api/services/logic.d.ts +98 -45
- package/lib/api/services/logic.js +98 -45
- package/lib/api/services/math.d.ts +363 -211
- package/lib/api/services/math.js +363 -211
- package/lib/api/services/mesh.d.ts +73 -31
- package/lib/api/services/mesh.js +73 -31
- package/lib/api/services/point.d.ts +367 -147
- package/lib/api/services/point.js +367 -147
- package/lib/api/services/polyline.d.ts +146 -71
- package/lib/api/services/polyline.js +146 -71
- package/lib/api/services/text.d.ts +320 -165
- package/lib/api/services/text.js +320 -165
- package/lib/api/services/transforms.d.ts +145 -58
- package/lib/api/services/transforms.js +145 -58
- package/lib/api/services/vector.d.ts +381 -156
- package/lib/api/services/vector.js +381 -156
- package/package.json +1 -1
|
@@ -5,84 +5,106 @@ import { Base } from "./base-inputs";
|
|
|
5
5
|
* a kernel wire ready for solid modelling.
|
|
6
6
|
*/
|
|
7
7
|
export declare namespace Polyline {
|
|
8
|
+
/**
|
|
9
|
+
* Points and a closed flag for `polyline.create`.
|
|
10
|
+
*/
|
|
8
11
|
class PolylineCreateDto {
|
|
9
12
|
/**
|
|
10
13
|
* Provide options without default values
|
|
11
14
|
*/
|
|
12
15
|
constructor(points?: Base.Point3[], isClosed?: boolean);
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
17
|
+
* The points of the polyline, in order along it.
|
|
15
18
|
* @default undefined
|
|
16
19
|
*/
|
|
17
20
|
points: Base.Point3[];
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* When true, the polyline joins its last point back to its first.
|
|
20
23
|
* @default false
|
|
21
24
|
*/
|
|
22
25
|
isClosed?: boolean | undefined;
|
|
23
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* A polyline as a plain object: its points in order, whether it closes back on itself, and an
|
|
29
|
+
* optional color for drawing.
|
|
30
|
+
*/
|
|
24
31
|
class PolylinePropertiesDto {
|
|
25
32
|
/**
|
|
26
33
|
* Provide options without default values
|
|
27
34
|
*/
|
|
28
35
|
constructor(points?: Base.Point3[], isClosed?: boolean);
|
|
29
36
|
/**
|
|
30
|
-
*
|
|
37
|
+
* The points of the polyline, in order along it.
|
|
31
38
|
* @default undefined
|
|
32
39
|
*/
|
|
33
40
|
points: Base.Point3[];
|
|
34
41
|
/**
|
|
35
|
-
*
|
|
42
|
+
* When true, the polyline joins its last point back to its first.
|
|
36
43
|
* @default false
|
|
37
44
|
*/
|
|
38
45
|
isClosed?: boolean | undefined;
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
* A color used when the polyline is drawn, as a hex text such as `#ff0000` or as `[r, g,
|
|
48
|
+
* b]` values from 0 to 1.
|
|
41
49
|
* @default #444444
|
|
42
50
|
*/
|
|
43
51
|
color?: string | number[] | undefined;
|
|
44
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* One polyline for the methods that read it: `polyline.length`, `polyline.getPoints`,
|
|
55
|
+
* `polyline.polylineToSegments` and the rest.
|
|
56
|
+
*/
|
|
45
57
|
class PolylineDto {
|
|
46
58
|
constructor(polyline?: PolylinePropertiesDto);
|
|
47
59
|
/**
|
|
48
|
-
*
|
|
60
|
+
* The polyline object with its points.
|
|
49
61
|
* @default undefined
|
|
50
62
|
*/
|
|
51
63
|
polyline: PolylinePropertiesDto;
|
|
52
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* A list of polylines, for methods that take several at once.
|
|
67
|
+
*/
|
|
53
68
|
class PolylinesDto {
|
|
54
69
|
constructor(polylines?: PolylinePropertiesDto[]);
|
|
55
70
|
/**
|
|
56
|
-
*
|
|
71
|
+
* The polyline objects.
|
|
57
72
|
* @default undefined
|
|
58
73
|
*/
|
|
59
74
|
polylines: PolylinePropertiesDto[];
|
|
60
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* A polyline and the transformation `polyline.transformPolyline` applies to its points.
|
|
78
|
+
*/
|
|
61
79
|
class TransformPolylineDto {
|
|
62
80
|
constructor(polyline?: PolylinePropertiesDto, transformation?: Base.TransformMatrixes);
|
|
63
81
|
/**
|
|
64
|
-
*
|
|
82
|
+
* The polyline whose points are transformed; a new polyline is returned.
|
|
65
83
|
* @default undefined
|
|
66
84
|
*/
|
|
67
85
|
polyline: PolylinePropertiesDto;
|
|
68
86
|
/**
|
|
69
|
-
*
|
|
87
|
+
* A transformation matrix, or a list of them applied in order.
|
|
70
88
|
* @default undefined
|
|
71
89
|
*/
|
|
72
90
|
transformation: Base.TransformMatrixes;
|
|
73
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* One polyline and how to draw it: its width, color and opacity, and whether the drawn mesh
|
|
94
|
+
* will be updated later.
|
|
95
|
+
*/
|
|
74
96
|
class DrawPolylineDto<T> {
|
|
75
97
|
/**
|
|
76
98
|
* Provide options without default values
|
|
77
99
|
*/
|
|
78
100
|
constructor(polyline?: PolylinePropertiesDto, opacity?: number, colours?: string | string[], size?: number, updatable?: boolean, polylineMesh?: T);
|
|
79
101
|
/**
|
|
80
|
-
*
|
|
102
|
+
* The polyline to draw, with its points and closed flag.
|
|
81
103
|
* @default undefined
|
|
82
104
|
*/
|
|
83
105
|
polyline: PolylinePropertiesDto;
|
|
84
106
|
/**
|
|
85
|
-
*
|
|
107
|
+
* How opaque the line is, from 0 (invisible) to 1 (solid).
|
|
86
108
|
* @default 1
|
|
87
109
|
* @minimum 0
|
|
88
110
|
* @maximum 1
|
|
@@ -90,12 +112,12 @@ export declare namespace Polyline {
|
|
|
90
112
|
*/
|
|
91
113
|
opacity?: number | undefined;
|
|
92
114
|
/**
|
|
93
|
-
*
|
|
115
|
+
* Color of the line as a hex text such as `#ff0000`; a list of texts is also accepted.
|
|
94
116
|
* @default #444444
|
|
95
117
|
*/
|
|
96
118
|
colours?: string | string[] | undefined;
|
|
97
119
|
/**
|
|
98
|
-
* Width of the
|
|
120
|
+
* Width of the drawn line.
|
|
99
121
|
* @default 3
|
|
100
122
|
* @minimum 0
|
|
101
123
|
* @maximum Infinity
|
|
@@ -103,28 +125,34 @@ export declare namespace Polyline {
|
|
|
103
125
|
*/
|
|
104
126
|
size?: number | undefined;
|
|
105
127
|
/**
|
|
106
|
-
*
|
|
128
|
+
* When true, the drawn mesh is built so its points can be changed later without redrawing.
|
|
107
129
|
* @default false
|
|
108
130
|
*/
|
|
109
131
|
updatable?: boolean | undefined;
|
|
110
132
|
/**
|
|
111
|
-
*
|
|
133
|
+
* A mesh drawn earlier for this polyline; when given it is updated in place instead of a
|
|
134
|
+
* new one being made.
|
|
112
135
|
* @default undefined
|
|
136
|
+
* @optional true
|
|
113
137
|
*/
|
|
114
138
|
polylineMesh?: T | undefined;
|
|
115
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* A list of polylines and how to draw them: their width, colors and opacity, and whether the
|
|
142
|
+
* drawn mesh will be updated later.
|
|
143
|
+
*/
|
|
116
144
|
class DrawPolylinesDto<T> {
|
|
117
145
|
/**
|
|
118
146
|
* Provide options without default values
|
|
119
147
|
*/
|
|
120
148
|
constructor(polylines?: PolylinePropertiesDto[], opacity?: number, colours?: string | string[], size?: number, updatable?: boolean, polylinesMesh?: T);
|
|
121
149
|
/**
|
|
122
|
-
*
|
|
150
|
+
* The polylines to draw, each with its points and closed flag.
|
|
123
151
|
* @default undefined
|
|
124
152
|
*/
|
|
125
153
|
polylines: PolylinePropertiesDto[];
|
|
126
154
|
/**
|
|
127
|
-
*
|
|
155
|
+
* How opaque the lines are, from 0 (invisible) to 1 (solid).
|
|
128
156
|
* @default 1
|
|
129
157
|
* @minimum 0
|
|
130
158
|
* @maximum 1
|
|
@@ -132,12 +160,12 @@ export declare namespace Polyline {
|
|
|
132
160
|
*/
|
|
133
161
|
opacity?: number | undefined;
|
|
134
162
|
/**
|
|
135
|
-
*
|
|
163
|
+
* One hex color text for all polylines, or one text per polyline.
|
|
136
164
|
* @default #444444
|
|
137
165
|
*/
|
|
138
166
|
colours?: string | string[] | undefined;
|
|
139
167
|
/**
|
|
140
|
-
* Width of the
|
|
168
|
+
* Width of the drawn lines.
|
|
141
169
|
* @default 3
|
|
142
170
|
* @minimum 0
|
|
143
171
|
* @maximum Infinity
|
|
@@ -145,25 +173,30 @@ export declare namespace Polyline {
|
|
|
145
173
|
*/
|
|
146
174
|
size?: number | undefined;
|
|
147
175
|
/**
|
|
148
|
-
*
|
|
176
|
+
* When true, the drawn mesh is built so the points can be changed later without redrawing.
|
|
149
177
|
* @default false
|
|
150
178
|
*/
|
|
151
179
|
updatable?: boolean | undefined;
|
|
152
180
|
/**
|
|
153
|
-
*
|
|
181
|
+
* A mesh drawn earlier for these polylines; when given it is updated in place instead of a
|
|
182
|
+
* new one being made.
|
|
154
183
|
* @default undefined
|
|
184
|
+
* @optional true
|
|
155
185
|
*/
|
|
156
186
|
polylinesMesh?: T | undefined;
|
|
157
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* Loose segments and a tolerance for `polyline.sortSegmentsIntoPolylines`.
|
|
190
|
+
*/
|
|
158
191
|
class SegmentsToleranceDto {
|
|
159
192
|
constructor(segments?: Base.Segment3[]);
|
|
160
193
|
/**
|
|
161
|
-
*
|
|
194
|
+
* The segments to join, each a pair of points, in any order.
|
|
162
195
|
* @default undefined
|
|
163
196
|
*/
|
|
164
197
|
segments: Base.Segment3[];
|
|
165
198
|
/**
|
|
166
|
-
*
|
|
199
|
+
* Two segment ends closer than this, in model units, count as touching.
|
|
167
200
|
* @default 1e-5
|
|
168
201
|
* @minimum -Infinity
|
|
169
202
|
* @maximum Infinity
|
|
@@ -171,15 +204,19 @@ export declare namespace Polyline {
|
|
|
171
204
|
*/
|
|
172
205
|
tolerance?: number | undefined;
|
|
173
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* A polyline and a tolerance for `polyline.polylineSelfIntersection`,
|
|
209
|
+
* `polyline.maxFilletsHalfLine` and `polyline.safestFilletRadius`.
|
|
210
|
+
*/
|
|
174
211
|
class PolylineToleranceDto {
|
|
175
212
|
constructor(polyline?: PolylinePropertiesDto, tolerance?: number);
|
|
176
213
|
/**
|
|
177
|
-
*
|
|
214
|
+
* The polyline to examine.
|
|
178
215
|
* @default undefined
|
|
179
216
|
*/
|
|
180
217
|
polyline: PolylinePropertiesDto;
|
|
181
218
|
/**
|
|
182
|
-
*
|
|
219
|
+
* Distance, in model units, below which two points count as the same.
|
|
183
220
|
* @default 1e-5
|
|
184
221
|
* @minimum -Infinity
|
|
185
222
|
* @maximum Infinity
|
|
@@ -187,20 +224,23 @@ export declare namespace Polyline {
|
|
|
187
224
|
*/
|
|
188
225
|
tolerance?: number | undefined;
|
|
189
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Two polylines and a tolerance for `polyline.twoPolylineIntersection`.
|
|
229
|
+
*/
|
|
190
230
|
class TwoPolylinesToleranceDto {
|
|
191
231
|
constructor(polyline1?: PolylinePropertiesDto, polyline2?: PolylinePropertiesDto, tolerance?: number);
|
|
192
232
|
/**
|
|
193
|
-
*
|
|
233
|
+
* The first polyline.
|
|
194
234
|
* @default undefined
|
|
195
235
|
*/
|
|
196
236
|
polyline1: PolylinePropertiesDto;
|
|
197
237
|
/**
|
|
198
|
-
*
|
|
238
|
+
* The second polyline.
|
|
199
239
|
* @default undefined
|
|
200
240
|
*/
|
|
201
241
|
polyline2: PolylinePropertiesDto;
|
|
202
242
|
/**
|
|
203
|
-
*
|
|
243
|
+
* Crossing points closer together than this, in model units, are reported once.
|
|
204
244
|
* @default 1e-5
|
|
205
245
|
* @minimum -Infinity
|
|
206
246
|
* @maximum Infinity
|
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export var Polyline;
|
|
7
7
|
(function (Polyline) {
|
|
8
|
+
/**
|
|
9
|
+
* Points and a closed flag for `polyline.create`.
|
|
10
|
+
*/
|
|
8
11
|
class PolylineCreateDto {
|
|
9
12
|
/**
|
|
10
13
|
* Provide options without default values
|
|
11
14
|
*/
|
|
12
15
|
constructor(points, isClosed) {
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
17
|
+
* When true, the polyline joins its last point back to its first.
|
|
15
18
|
* @default false
|
|
16
19
|
*/
|
|
17
20
|
this.isClosed = false;
|
|
@@ -24,13 +27,17 @@ export var Polyline;
|
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
Polyline.PolylineCreateDto = PolylineCreateDto;
|
|
30
|
+
/**
|
|
31
|
+
* A polyline as a plain object: its points in order, whether it closes back on itself, and an
|
|
32
|
+
* optional color for drawing.
|
|
33
|
+
*/
|
|
27
34
|
class PolylinePropertiesDto {
|
|
28
35
|
/**
|
|
29
36
|
* Provide options without default values
|
|
30
37
|
*/
|
|
31
38
|
constructor(points, isClosed) {
|
|
32
39
|
/**
|
|
33
|
-
*
|
|
40
|
+
* When true, the polyline joins its last point back to its first.
|
|
34
41
|
* @default false
|
|
35
42
|
*/
|
|
36
43
|
this.isClosed = false;
|
|
@@ -43,6 +50,10 @@ export var Polyline;
|
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
52
|
Polyline.PolylinePropertiesDto = PolylinePropertiesDto;
|
|
53
|
+
/**
|
|
54
|
+
* One polyline for the methods that read it: `polyline.length`, `polyline.getPoints`,
|
|
55
|
+
* `polyline.polylineToSegments` and the rest.
|
|
56
|
+
*/
|
|
46
57
|
class PolylineDto {
|
|
47
58
|
constructor(polyline) {
|
|
48
59
|
if (polyline !== undefined) {
|
|
@@ -51,6 +62,9 @@ export var Polyline;
|
|
|
51
62
|
}
|
|
52
63
|
}
|
|
53
64
|
Polyline.PolylineDto = PolylineDto;
|
|
65
|
+
/**
|
|
66
|
+
* A list of polylines, for methods that take several at once.
|
|
67
|
+
*/
|
|
54
68
|
class PolylinesDto {
|
|
55
69
|
constructor(polylines) {
|
|
56
70
|
if (polylines !== undefined) {
|
|
@@ -59,6 +73,9 @@ export var Polyline;
|
|
|
59
73
|
}
|
|
60
74
|
}
|
|
61
75
|
Polyline.PolylinesDto = PolylinesDto;
|
|
76
|
+
/**
|
|
77
|
+
* A polyline and the transformation `polyline.transformPolyline` applies to its points.
|
|
78
|
+
*/
|
|
62
79
|
class TransformPolylineDto {
|
|
63
80
|
constructor(polyline, transformation) {
|
|
64
81
|
if (polyline !== undefined) {
|
|
@@ -70,13 +87,17 @@ export var Polyline;
|
|
|
70
87
|
}
|
|
71
88
|
}
|
|
72
89
|
Polyline.TransformPolylineDto = TransformPolylineDto;
|
|
90
|
+
/**
|
|
91
|
+
* One polyline and how to draw it: its width, color and opacity, and whether the drawn mesh
|
|
92
|
+
* will be updated later.
|
|
93
|
+
*/
|
|
73
94
|
class DrawPolylineDto {
|
|
74
95
|
/**
|
|
75
96
|
* Provide options without default values
|
|
76
97
|
*/
|
|
77
98
|
constructor(polyline, opacity, colours, size, updatable, polylineMesh) {
|
|
78
99
|
/**
|
|
79
|
-
*
|
|
100
|
+
* How opaque the line is, from 0 (invisible) to 1 (solid).
|
|
80
101
|
* @default 1
|
|
81
102
|
* @minimum 0
|
|
82
103
|
* @maximum 1
|
|
@@ -84,12 +105,12 @@ export var Polyline;
|
|
|
84
105
|
*/
|
|
85
106
|
this.opacity = 1;
|
|
86
107
|
/**
|
|
87
|
-
*
|
|
108
|
+
* Color of the line as a hex text such as `#ff0000`; a list of texts is also accepted.
|
|
88
109
|
* @default #444444
|
|
89
110
|
*/
|
|
90
111
|
this.colours = "#444444";
|
|
91
112
|
/**
|
|
92
|
-
* Width of the
|
|
113
|
+
* Width of the drawn line.
|
|
93
114
|
* @default 3
|
|
94
115
|
* @minimum 0
|
|
95
116
|
* @maximum Infinity
|
|
@@ -97,7 +118,7 @@ export var Polyline;
|
|
|
97
118
|
*/
|
|
98
119
|
this.size = 3;
|
|
99
120
|
/**
|
|
100
|
-
*
|
|
121
|
+
* When true, the drawn mesh is built so its points can be changed later without redrawing.
|
|
101
122
|
* @default false
|
|
102
123
|
*/
|
|
103
124
|
this.updatable = false;
|
|
@@ -122,13 +143,17 @@ export var Polyline;
|
|
|
122
143
|
}
|
|
123
144
|
}
|
|
124
145
|
Polyline.DrawPolylineDto = DrawPolylineDto;
|
|
146
|
+
/**
|
|
147
|
+
* A list of polylines and how to draw them: their width, colors and opacity, and whether the
|
|
148
|
+
* drawn mesh will be updated later.
|
|
149
|
+
*/
|
|
125
150
|
class DrawPolylinesDto {
|
|
126
151
|
/**
|
|
127
152
|
* Provide options without default values
|
|
128
153
|
*/
|
|
129
154
|
constructor(polylines, opacity, colours, size, updatable, polylinesMesh) {
|
|
130
155
|
/**
|
|
131
|
-
*
|
|
156
|
+
* How opaque the lines are, from 0 (invisible) to 1 (solid).
|
|
132
157
|
* @default 1
|
|
133
158
|
* @minimum 0
|
|
134
159
|
* @maximum 1
|
|
@@ -136,12 +161,12 @@ export var Polyline;
|
|
|
136
161
|
*/
|
|
137
162
|
this.opacity = 1;
|
|
138
163
|
/**
|
|
139
|
-
*
|
|
164
|
+
* One hex color text for all polylines, or one text per polyline.
|
|
140
165
|
* @default #444444
|
|
141
166
|
*/
|
|
142
167
|
this.colours = "#444444";
|
|
143
168
|
/**
|
|
144
|
-
* Width of the
|
|
169
|
+
* Width of the drawn lines.
|
|
145
170
|
* @default 3
|
|
146
171
|
* @minimum 0
|
|
147
172
|
* @maximum Infinity
|
|
@@ -149,7 +174,7 @@ export var Polyline;
|
|
|
149
174
|
*/
|
|
150
175
|
this.size = 3;
|
|
151
176
|
/**
|
|
152
|
-
*
|
|
177
|
+
* When true, the drawn mesh is built so the points can be changed later without redrawing.
|
|
153
178
|
* @default false
|
|
154
179
|
*/
|
|
155
180
|
this.updatable = false;
|
|
@@ -174,10 +199,13 @@ export var Polyline;
|
|
|
174
199
|
}
|
|
175
200
|
}
|
|
176
201
|
Polyline.DrawPolylinesDto = DrawPolylinesDto;
|
|
202
|
+
/**
|
|
203
|
+
* Loose segments and a tolerance for `polyline.sortSegmentsIntoPolylines`.
|
|
204
|
+
*/
|
|
177
205
|
class SegmentsToleranceDto {
|
|
178
206
|
constructor(segments) {
|
|
179
207
|
/**
|
|
180
|
-
*
|
|
208
|
+
* Two segment ends closer than this, in model units, count as touching.
|
|
181
209
|
* @default 1e-5
|
|
182
210
|
* @minimum -Infinity
|
|
183
211
|
* @maximum Infinity
|
|
@@ -190,10 +218,14 @@ export var Polyline;
|
|
|
190
218
|
}
|
|
191
219
|
}
|
|
192
220
|
Polyline.SegmentsToleranceDto = SegmentsToleranceDto;
|
|
221
|
+
/**
|
|
222
|
+
* A polyline and a tolerance for `polyline.polylineSelfIntersection`,
|
|
223
|
+
* `polyline.maxFilletsHalfLine` and `polyline.safestFilletRadius`.
|
|
224
|
+
*/
|
|
193
225
|
class PolylineToleranceDto {
|
|
194
226
|
constructor(polyline, tolerance) {
|
|
195
227
|
/**
|
|
196
|
-
*
|
|
228
|
+
* Distance, in model units, below which two points count as the same.
|
|
197
229
|
* @default 1e-5
|
|
198
230
|
* @minimum -Infinity
|
|
199
231
|
* @maximum Infinity
|
|
@@ -209,10 +241,13 @@ export var Polyline;
|
|
|
209
241
|
}
|
|
210
242
|
}
|
|
211
243
|
Polyline.PolylineToleranceDto = PolylineToleranceDto;
|
|
244
|
+
/**
|
|
245
|
+
* Two polylines and a tolerance for `polyline.twoPolylineIntersection`.
|
|
246
|
+
*/
|
|
212
247
|
class TwoPolylinesToleranceDto {
|
|
213
248
|
constructor(polyline1, polyline2, tolerance) {
|
|
214
249
|
/**
|
|
215
|
-
*
|
|
250
|
+
* Crossing points closer together than this, in model units, are reported once.
|
|
216
251
|
* @default 1e-5
|
|
217
252
|
* @minimum -Infinity
|
|
218
253
|
* @maximum Infinity
|