@bitbybit-dev/cad-cloud-sdk 1.7.0 → 1.8.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.
@@ -1,6 +1,6 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // AUTO-GENERATED by generate-pipeline-types.ts — do not edit manually.
3
- // Generated from operation-catalog.json v1.7.0
3
+ // Generated from operation-catalog.json v1.8.0
4
4
  // ---------------------------------------------------------------------------
5
5
 
6
6
  /* eslint-disable @typescript-eslint/no-empty-object-type */
@@ -42,14 +42,24 @@ export type OperationPath =
42
42
  | "csv.queryRowsByValue"
43
43
  | "io.drawing.arcSegment"
44
44
  | "io.drawing.circleSegment"
45
+ | "io.drawing.clippedHatchLines"
46
+ | "io.drawing.dimensionExtent"
47
+ | "io.drawing.dimensionPicture"
45
48
  | "io.drawing.dxfToSvg"
46
49
  | "io.drawing.ellipseSegment"
50
+ | "io.drawing.hatch"
51
+ | "io.drawing.hatchLines"
52
+ | "io.drawing.hatchOutlines"
47
53
  | "io.drawing.lineSegment"
48
54
  | "io.drawing.part"
49
55
  | "io.drawing.path"
50
56
  | "io.drawing.polylineSegment"
57
+ | "io.drawing.scaleParts"
51
58
  | "io.drawing.splineSegment"
52
59
  | "io.drawing.svgToDxf"
60
+ | "io.drawing.text"
61
+ | "io.drawing.textSize"
62
+ | "io.drawing.textStrokes"
53
63
  | "io.dxf.arcSegment"
54
64
  | "io.dxf.circleSegment"
55
65
  | "io.dxf.dxfCreate"
@@ -411,6 +421,7 @@ export type OperationPath =
411
421
  | "occt.analysis.surfaces.closestPoints"
412
422
  | "occt.analysis.surfaces.curvaturesOnUVs"
413
423
  | "occt.analysis.surfaces.surfaceType"
424
+ | "occt.assembly.manager.addDocumentPmi"
414
425
  | "occt.assembly.manager.buildAssemblyDocument"
415
426
  | "occt.assembly.manager.combineStructure"
416
427
  | "occt.assembly.manager.createAssemblyNode"
@@ -418,6 +429,10 @@ export type OperationPath =
418
429
  | "occt.assembly.manager.createInstanceNode"
419
430
  | "occt.assembly.manager.createPart"
420
431
  | "occt.assembly.manager.createPartUpdate"
432
+ | "occt.assembly.manager.createPmiDatum"
433
+ | "occt.assembly.manager.createPmiDimension"
434
+ | "occt.assembly.manager.createPmiShape"
435
+ | "occt.assembly.manager.createPmiTolerance"
421
436
  | "occt.assembly.manager.deleteDocument"
422
437
  | "occt.assembly.manager.exportDocumentToGltf"
423
438
  | "occt.assembly.manager.exportDocumentToGltfWithDraco"
@@ -427,9 +442,13 @@ export type OperationPath =
427
442
  | "occt.assembly.manager.loadGltfToDoc"
428
443
  | "occt.assembly.manager.loadObjToDoc"
429
444
  | "occt.assembly.manager.loadStepToDoc"
445
+ | "occt.assembly.manager.removeDocumentPmi"
430
446
  | "occt.assembly.manager.setDocLabelColor"
447
+ | "occt.assembly.manager.setDocLabelColors"
431
448
  | "occt.assembly.manager.setDocLabelName"
449
+ | "occt.assembly.manager.setDocLabelNames"
432
450
  | "occt.assembly.query.getAssemblyHierarchy"
451
+ | "occt.assembly.query.getDocumentAnnotations"
433
452
  | "occt.assembly.query.getDocumentParts"
434
453
  | "occt.assembly.query.getDocumentPmi"
435
454
  | "occt.assembly.query.getLabelColor"
@@ -600,7 +619,9 @@ export type OperationPath =
600
619
  | "occt.operations.extrude"
601
620
  | "occt.operations.extrudeShapes"
602
621
  | "occt.operations.extrudeWithHistory"
622
+ | "occt.operations.hatchedSectionByFrame"
603
623
  | "occt.operations.hiddenLines"
624
+ | "occt.operations.hiddenLinesByKind"
604
625
  | "occt.operations.loft"
605
626
  | "occt.operations.loftAdvanced"
606
627
  | "occt.operations.loftAdvancedWithHistory"
@@ -1881,6 +1902,153 @@ export interface OperationParams {
1881
1902
  /** The direction the circle's plane faces. Leave it out for a circle in the XY plane. */
1882
1903
  normal?: [number, number, number] | PipelineRef;
1883
1904
  };
1905
+ /**
1906
+ * Gives the lines of a hatch's pattern clipped to its region, for a renderer that draws them
1907
+ * itself.
1908
+ *
1909
+ * Inside follows the even-odd rule over every boundary, as `io.svg.svgCreate` fills a hatch, and
1910
+ * curves are followed within `tolerance`. The lines stand where `hatchLines` puts them. `solid`
1911
+ * gives none; a spacing too fine for the region throws.
1912
+ */
1913
+ "io.drawing.clippedHatchLines": {
1914
+ /**
1915
+ * The closed paths that bound the region, in the drawing's XY plane; a boundary inside another
1916
+ * cuts a hole, and one inside that hole is filled again.
1917
+ */
1918
+ boundaries: unknown[] | PipelineRef;
1919
+ /** What the region is filled with; `solid` has no lines. */
1920
+ pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
1921
+ /** The angle of the pattern's lines in degrees, counterclockwise from the X axis. */
1922
+ angle?: number | PipelineRef;
1923
+ /** The distance between the pattern's lines, in drawing units. */
1924
+ spacing?: number | PipelineRef;
1925
+ /**
1926
+ * How far, in drawing units, the outline may stray from a curved boundary: arcs, circles,
1927
+ * ellipses and splines become straight pieces this close to the curve.
1928
+ */
1929
+ tolerance?: number | PipelineRef;
1930
+ };
1931
+ /**
1932
+ * Measures the box a dimension's picture fills, the box `dimensionPicture` gives, without drawing
1933
+ * the letters.
1934
+ *
1935
+ * The box holds the whole height the stroke font's letters may reach, so a layout can make room
1936
+ * before drawing.
1937
+ * Example: a linear dimension from [0, 0] to [60, 0] at offset 12 -> min [0, 0.875], max [60, 17.04]
1938
+ */
1939
+ "io.drawing.dimensionExtent": {
1940
+ /**
1941
+ * For `linear`, the first point measured; for `diameter`, `radius` and `angular`, the center of
1942
+ * the circle or the point where the two arms of the angle meet.
1943
+ */
1944
+ start: [number, number] | PipelineRef;
1945
+ /**
1946
+ * For `linear`, the second point measured; for `diameter` and `radius`, a point on the circle; for
1947
+ * `angular`, a point on the first arm, where the arc passes.
1948
+ */
1949
+ end: [number, number] | PipelineRef;
1950
+ /** What the dimension measures; it decides what `start`, `end`, `offset` and `angle` mean. */
1951
+ kind?: "linear" | "diameter" | "radius" | "angular" | PipelineRef;
1952
+ /**
1953
+ * For `linear`, the direction measured along, such as [1, 0] for a horizontal dimension; left
1954
+ * out, from `start` to `end`. Other kinds ignore it.
1955
+ */
1956
+ direction?: [number, number] | PipelineRef;
1957
+ /**
1958
+ * For `linear`, how far the dimension line stands from `start`, in drawing units, to the left of
1959
+ * `direction`; negative puts it right. Other kinds ignore it.
1960
+ */
1961
+ offset?: number | PipelineRef;
1962
+ /**
1963
+ * For `angular`, the angle in degrees from the first arm, the one through `end`,
1964
+ * counterclockwise to the second arm. Other kinds ignore it.
1965
+ */
1966
+ angle?: number | PipelineRef;
1967
+ /**
1968
+ * The number written; left out, the one measured. A diameter is written after the diameter
1969
+ * sign, a radius after R, an angle before the degree sign.
1970
+ */
1971
+ value?: number | PipelineRef;
1972
+ /** How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5. */
1973
+ decimalPlaces?: number | PipelineRef;
1974
+ /**
1975
+ * How far above the value the measure may lie, written `+0.1`, or `±0.1` when equal to
1976
+ * `lowerTolerance`; 0 when only `lowerTolerance` is given.
1977
+ */
1978
+ upperTolerance?: number | PipelineRef;
1979
+ /**
1980
+ * How far below the value the measure may lie, as an amount, written `-0.05`; 0 when only
1981
+ * `upperTolerance` is given. Without either, no tolerance is written.
1982
+ */
1983
+ lowerTolerance?: number | PipelineRef;
1984
+ /** The height of the text's digits, in drawing units; the gaps around the lines are sized from it. */
1985
+ textHeight?: number | PipelineRef;
1986
+ /**
1987
+ * The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left
1988
+ * out, it is `textHeight`.
1989
+ */
1990
+ arrowLength?: number | PipelineRef;
1991
+ };
1992
+ /**
1993
+ * Draws a dimension in the drawing's plane: its dimension line or arc, its extension lines, filled
1994
+ * arrowheads touching them, and its value in the stroke font.
1995
+ *
1996
+ * The text reads from left to right or from bottom to top, past the line's end when the line is
1997
+ * too short for it; arrows go outside a span too short for them.
1998
+ */
1999
+ "io.drawing.dimensionPicture": {
2000
+ /**
2001
+ * For `linear`, the first point measured; for `diameter`, `radius` and `angular`, the center of
2002
+ * the circle or the point where the two arms of the angle meet.
2003
+ */
2004
+ start: [number, number] | PipelineRef;
2005
+ /**
2006
+ * For `linear`, the second point measured; for `diameter` and `radius`, a point on the circle; for
2007
+ * `angular`, a point on the first arm, where the arc passes.
2008
+ */
2009
+ end: [number, number] | PipelineRef;
2010
+ /** What the dimension measures; it decides what `start`, `end`, `offset` and `angle` mean. */
2011
+ kind?: "linear" | "diameter" | "radius" | "angular" | PipelineRef;
2012
+ /**
2013
+ * For `linear`, the direction measured along, such as [1, 0] for a horizontal dimension; left
2014
+ * out, from `start` to `end`. Other kinds ignore it.
2015
+ */
2016
+ direction?: [number, number] | PipelineRef;
2017
+ /**
2018
+ * For `linear`, how far the dimension line stands from `start`, in drawing units, to the left of
2019
+ * `direction`; negative puts it right. Other kinds ignore it.
2020
+ */
2021
+ offset?: number | PipelineRef;
2022
+ /**
2023
+ * For `angular`, the angle in degrees from the first arm, the one through `end`,
2024
+ * counterclockwise to the second arm. Other kinds ignore it.
2025
+ */
2026
+ angle?: number | PipelineRef;
2027
+ /**
2028
+ * The number written; left out, the one measured. A diameter is written after the diameter
2029
+ * sign, a radius after R, an angle before the degree sign.
2030
+ */
2031
+ value?: number | PipelineRef;
2032
+ /** How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5. */
2033
+ decimalPlaces?: number | PipelineRef;
2034
+ /**
2035
+ * How far above the value the measure may lie, written `+0.1`, or `±0.1` when equal to
2036
+ * `lowerTolerance`; 0 when only `lowerTolerance` is given.
2037
+ */
2038
+ upperTolerance?: number | PipelineRef;
2039
+ /**
2040
+ * How far below the value the measure may lie, as an amount, written `-0.05`; 0 when only
2041
+ * `upperTolerance` is given. Without either, no tolerance is written.
2042
+ */
2043
+ lowerTolerance?: number | PipelineRef;
2044
+ /** The height of the text's digits, in drawing units; the gaps around the lines are sized from it. */
2045
+ textHeight?: number | PipelineRef;
2046
+ /**
2047
+ * The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left
2048
+ * out, it is `textHeight`.
2049
+ */
2050
+ arrowLength?: number | PipelineRef;
2051
+ };
1884
2052
  /**
1885
2053
  * Converts a DXF file into an SVG file, reading it as `io.dxf.dxfRead` does and writing it as
1886
2054
  * `io.svg.svgCreate` does.
@@ -1945,6 +2113,78 @@ export interface OperationParams {
1945
2113
  */
1946
2114
  normal?: [number, number, number] | PipelineRef;
1947
2115
  };
2116
+ /**
2117
+ * Makes a hatched region for a drawing part's `hatches`: what the boundaries enclose, filled with
2118
+ * a pattern of lines or with solid ink.
2119
+ *
2120
+ * A boundary inside another cuts a hole, and a boundary whose ends do not meet is closed by a
2121
+ * straight line.
2122
+ */
2123
+ "io.drawing.hatch": {
2124
+ /** The closed paths that bound the region, in the drawing's XY plane. */
2125
+ boundaries: unknown[] | PipelineRef;
2126
+ /** What the region is filled with. */
2127
+ pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
2128
+ /**
2129
+ * The angle of the pattern's lines in degrees, counterclockwise from the X axis; `solid`
2130
+ * ignores it.
2131
+ */
2132
+ angle?: number | PipelineRef;
2133
+ /**
2134
+ * The distance between the pattern's lines, in drawing units; `solid` ignores it. DXF writes
2135
+ * it as a scale of the pattern in `acad.pat` for an inch drawing, in `acadiso.pat` otherwise.
2136
+ */
2137
+ spacing?: number | PipelineRef;
2138
+ };
2139
+ /**
2140
+ * Gives the lines of a hatch's pattern, each from side to side of the box around its
2141
+ * boundaries, for a renderer that draws them itself and clips them to the region.
2142
+ *
2143
+ * The lines stand where `io.svg.svgCreate` and `io.dxf.dxfCreate` put them, each whole. `solid`
2144
+ * gives none, and a spacing too fine for the region throws.
2145
+ */
2146
+ "io.drawing.hatchLines": {
2147
+ /** The closed paths that bound the region, in the drawing's XY plane. */
2148
+ boundaries: unknown[] | PipelineRef;
2149
+ /** What the region is filled with. */
2150
+ pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
2151
+ /**
2152
+ * The angle of the pattern's lines in degrees, counterclockwise from the X axis; `solid`
2153
+ * ignores it.
2154
+ */
2155
+ angle?: number | PipelineRef;
2156
+ /**
2157
+ * The distance between the pattern's lines, in drawing units; `solid` ignores it. DXF writes
2158
+ * it as a scale of the pattern in `acad.pat` for an inch drawing, in `acadiso.pat` otherwise.
2159
+ */
2160
+ spacing?: number | PipelineRef;
2161
+ };
2162
+ /**
2163
+ * Gives the outlines of a hatch's region as closed loops of points, curves followed within
2164
+ * `tolerance`, for a renderer that fills the region itself.
2165
+ *
2166
+ * Each loop lists every corner once. Fill them under the even-odd rule, as
2167
+ * `mesh.triangulateLoops` does, to keep the holes open.
2168
+ * Example: a circle of radius 5 at tolerance 0.01 -> one loop of 50 points
2169
+ */
2170
+ "io.drawing.hatchOutlines": {
2171
+ /**
2172
+ * The closed paths that bound the region, in the drawing's XY plane; a boundary inside another
2173
+ * cuts a hole, and one inside that hole is filled again.
2174
+ */
2175
+ boundaries: unknown[] | PipelineRef;
2176
+ /** What the region is filled with; `solid` has no lines. */
2177
+ pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
2178
+ /** The angle of the pattern's lines in degrees, counterclockwise from the X axis. */
2179
+ angle?: number | PipelineRef;
2180
+ /** The distance between the pattern's lines, in drawing units. */
2181
+ spacing?: number | PipelineRef;
2182
+ /**
2183
+ * How far, in drawing units, the outline may stray from a curved boundary: arcs, circles,
2184
+ * ellipses and splines become straight pieces this close to the curve.
2185
+ */
2186
+ tolerance?: number | PipelineRef;
2187
+ };
1948
2188
  /** Makes a straight segment of a drawing path, from `start` to `end`. */
1949
2189
  "io.drawing.lineSegment": {
1950
2190
  /** Where the line starts. */
@@ -1970,6 +2210,15 @@ export interface OperationParams {
1970
2210
  color?: unknown | PipelineRef;
1971
2211
  /** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
1972
2212
  lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
2213
+ /**
2214
+ * How wide the part's lines and text strokes are, in drawing units. Left out, the writer's own
2215
+ * width is used: the drawing's `strokeWidth` in SVG, the layer's in DXF.
2216
+ */
2217
+ lineWeight?: number | PipelineRef;
2218
+ /** Lines of text on the part's layer, in its color. */
2219
+ texts?: unknown[] | PipelineRef;
2220
+ /** Hatched regions on the part's layer, in its color. */
2221
+ hatches?: unknown[] | PipelineRef;
1973
2222
  };
1974
2223
  /**
1975
2224
  * Joins segments into one path, drawn in order like the edges of a wire; segments that meet
@@ -2000,6 +2249,23 @@ export interface OperationParams {
2000
2249
  */
2001
2250
  bulges?: number[] | PipelineRef;
2002
2251
  };
2252
+ /**
2253
+ * Scales drawing parts about the origin, returning new parts and leaving the given ones unchanged.
2254
+ *
2255
+ * Points, radii, axes, text heights, hatch spacings and line weights are multiplied by `factor`;
2256
+ * angles, bulges, knots and weights stay. Scale before writing with `io.dxf.dxfCreate` or
2257
+ * `io.svg.svgCreate`: their `unit` labels the drawing and never scales it. A factor not above 0
2258
+ * throws.
2259
+ */
2260
+ "io.drawing.scaleParts": {
2261
+ /** The parts to scale; they stay as they are and scaled copies come back. */
2262
+ parts: unknown[] | PipelineRef;
2263
+ /**
2264
+ * What every length is multiplied by: 2 doubles the drawing, 25.4 turns inches into
2265
+ * millimetres.
2266
+ */
2267
+ factor?: number | PipelineRef;
2268
+ };
2003
2269
  /**
2004
2270
  * Makes a B-spline or NURBS curve of a drawing path from its control points and degree, with
2005
2271
  * its knots and weights when they are given.
@@ -2062,6 +2328,87 @@ export interface OperationParams {
2062
2328
  */
2063
2329
  curveTolerance?: number | PipelineRef;
2064
2330
  };
2331
+ /**
2332
+ * Makes a line of text for a drawing part's `texts`, in the single-line stroke font.
2333
+ *
2334
+ * The text is placed by a point on its baseline; `anchor` says whether that point is its start,
2335
+ * middle or end, `rotation` turns it and `widthFactor` narrows or widens its letters.
2336
+ */
2337
+ "io.drawing.text": {
2338
+ /**
2339
+ * The text, one line of it: a control character, such as a line break, a tab or U+0085, is
2340
+ * refused; a line separator is drawn as a question mark.
2341
+ */
2342
+ text: string | PipelineRef;
2343
+ /** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
2344
+ position: [number, number, number] | PipelineRef;
2345
+ /** The height of a capital letter, in drawing units. */
2346
+ height?: number | PipelineRef;
2347
+ /** Which point of the baseline `position` is: where the text starts, its middle or its end. */
2348
+ anchor?: unknown | PipelineRef;
2349
+ /** The angle of the baseline in degrees, counterclockwise from the X axis. */
2350
+ rotation?: number | PipelineRef;
2351
+ /**
2352
+ * How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
2353
+ * cell, above 1 widens it.
2354
+ */
2355
+ widthFactor?: number | PipelineRef;
2356
+ };
2357
+ /**
2358
+ * Measures a drawing text: its length along the baseline, and how far the font's ink reaches
2359
+ * above and below it.
2360
+ *
2361
+ * The width is what `io.svg.svgCreate` draws and `io.dxf.dxfCreate` fits the text to; the
2362
+ * position is not needed to measure it. A text that is not one line throws.
2363
+ * Example: 'I' at height 21 -> width 8, above 25, below 7
2364
+ */
2365
+ "io.drawing.textSize": {
2366
+ /**
2367
+ * The text, one line of it: a control character, such as a line break, a tab or U+0085, is
2368
+ * refused; a line separator is drawn as a question mark.
2369
+ */
2370
+ text: string | PipelineRef;
2371
+ /** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
2372
+ position: [number, number, number] | PipelineRef;
2373
+ /** The height of a capital letter, in drawing units. */
2374
+ height?: number | PipelineRef;
2375
+ /** Which point of the baseline `position` is: where the text starts, its middle or its end. */
2376
+ anchor?: unknown | PipelineRef;
2377
+ /** The angle of the baseline in degrees, counterclockwise from the X axis. */
2378
+ rotation?: number | PipelineRef;
2379
+ /**
2380
+ * How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
2381
+ * cell, above 1 widens it.
2382
+ */
2383
+ widthFactor?: number | PipelineRef;
2384
+ };
2385
+ /**
2386
+ * Draws a drawing text as the strokes of its letters, each a list of points in the drawing's
2387
+ * coordinates, placed, turned and narrowed as the text says.
2388
+ *
2389
+ * These are the strokes `io.svg.svgCreate` writes. A text that is not one line throws.
2390
+ * Example: 'I' at height 21 from [10, 20] -> one stroke, [[14, 41, 0], [14, 20, 0]]
2391
+ */
2392
+ "io.drawing.textStrokes": {
2393
+ /**
2394
+ * The text, one line of it: a control character, such as a line break, a tab or U+0085, is
2395
+ * refused; a line separator is drawn as a question mark.
2396
+ */
2397
+ text: string | PipelineRef;
2398
+ /** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
2399
+ position: [number, number, number] | PipelineRef;
2400
+ /** The height of a capital letter, in drawing units. */
2401
+ height?: number | PipelineRef;
2402
+ /** Which point of the baseline `position` is: where the text starts, its middle or its end. */
2403
+ anchor?: unknown | PipelineRef;
2404
+ /** The angle of the baseline in degrees, counterclockwise from the X axis. */
2405
+ rotation?: number | PipelineRef;
2406
+ /**
2407
+ * How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
2408
+ * cell, above 1 widens it.
2409
+ */
2410
+ widthFactor?: number | PipelineRef;
2411
+ };
2065
2412
  /** Makes a circular arc for a drawing, under its former DXF name. */
2066
2413
  "io.dxf.arcSegment": {
2067
2414
  /** The center of the arc's circle. */
@@ -2123,13 +2470,18 @@ export interface OperationParams {
2123
2470
  * it where the version cannot hold the curve exactly.
2124
2471
  */
2125
2472
  curveTolerance?: number | PipelineRef;
2473
+ /**
2474
+ * The length of one unit of a dash pattern, in drawing units: `hidden` is 2 units of dash
2475
+ * and 1 of gap. Left out, a two-hundredth of the drawing's size.
2476
+ */
2477
+ lineTypeScale?: number | PipelineRef;
2126
2478
  };
2127
2479
  /**
2128
2480
  * Reads a DXF file into path parts by layer, color and line type, the model `dxfCreate` writes.
2129
2481
  *
2130
- * Lines, arcs, circles, ellipses, polylines and splines are read exactly in the file's
2131
- * coordinates, block inserts expanded. Text, dimensions and hatches are left out and named in
2132
- * `warnings`; splines given only by fit points are read by `occt.io.loadDxf`.
2482
+ * Lines, arcs, circles, ellipses, polylines and splines are read exactly, block inserts
2483
+ * expanded, with single-line texts and hatches. Multi-line text and dimensions are named in
2484
+ * `warnings`; `occt.io.loadDxf` reads splines given only by fit points.
2133
2485
  */
2134
2486
  "io.dxf.dxfRead": {
2135
2487
  /**
@@ -2195,6 +2547,15 @@ export interface OperationParams {
2195
2547
  color?: unknown | PipelineRef;
2196
2548
  /** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
2197
2549
  lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
2550
+ /**
2551
+ * How wide the part's lines and text strokes are, in drawing units. Left out, the writer's own
2552
+ * width is used: the drawing's `strokeWidth` in SVG, the layer's in DXF.
2553
+ */
2554
+ lineWeight?: number | PipelineRef;
2555
+ /** Lines of text on the part's layer, in its color. */
2556
+ texts?: unknown[] | PipelineRef;
2557
+ /** Hatched regions on the part's layer, in its color. */
2558
+ hatches?: unknown[] | PipelineRef;
2198
2559
  };
2199
2560
  /** Makes connected straight segments for a drawing, under its former DXF name. */
2200
2561
  "io.dxf.polylineSegment": {
@@ -2240,8 +2601,8 @@ export interface OperationParams {
2240
2601
  * Writes one drawing path as SVG path data, the text of a `path` element's `d` attribute.
2241
2602
  *
2242
2603
  * Segments that meet are drawn as one stroke, reversed where a segment ends where the stroke is,
2243
- * and a stroke that returns to its start is closed. Curves are kept exact as `svgCreate` keeps
2244
- * them.
2604
+ * and a stroke that returns to its start is closed. Curves stay exact as in `svgCreate`, or with
2605
+ * `cubicsOnly` become cubic Beziers within `tolerance`.
2245
2606
  */
2246
2607
  "io.svg.pathData": {
2247
2608
  /** The path to write as SVG path data. */
@@ -2256,13 +2617,19 @@ export interface OperationParams {
2256
2617
  * cubic curves that stand in for it.
2257
2618
  */
2258
2619
  tolerance?: number | PipelineRef;
2620
+ /**
2621
+ * When true, every curve is written as cubic Beziers (`C`), arcs within `tolerance`, for
2622
+ * renderers that draw only lines and cubics.
2623
+ */
2624
+ cubicsOnly?: boolean | PipelineRef;
2259
2625
  };
2260
2626
  /**
2261
2627
  * Writes an SVG file from path parts, each layer an Inkscape layer.
2262
2628
  *
2263
2629
  * Arcs, circles, ellipses and bulges stay exact arcs, unweighted splines up to degree 3 exact
2264
- * Beziers, others cubics within `tolerance` (at least a millionth of the drawing). Y points up, Z
2265
- * is dropped and `unit` gives the true size. A drawing too large to write throws.
2630
+ * Beziers, others cubics within `tolerance`. Texts become letter strokes, hatches patterned
2631
+ * regions. Y points up, Z is dropped and `unit` gives the true size. A drawing too large to
2632
+ * write throws.
2266
2633
  */
2267
2634
  "io.svg.svgCreate": {
2268
2635
  /** The parts of the drawing; each layer becomes a group that Inkscape reads as a layer. */
@@ -2287,13 +2654,18 @@ export interface OperationParams {
2287
2654
  * or higher degree spline) and the cubic curves that stand in for it.
2288
2655
  */
2289
2656
  tolerance?: number | PipelineRef;
2657
+ /**
2658
+ * The length of one unit of a dash pattern, in drawing units: `hidden` is 2 units of dash
2659
+ * and 1 of gap. Left out, a two-hundredth of the drawing's size.
2660
+ */
2661
+ lineTypeScale?: number | PipelineRef;
2290
2662
  };
2291
2663
  /**
2292
- * Reads an SVG file into path parts by layer, color and line type, the model `svgCreate` writes.
2664
+ * Reads an SVG file into path parts by layer, color and line type.
2293
2665
  *
2294
- * Lines, arcs and Bezier curves are read exactly, transforms applied and Y turned up. Inkscape
2666
+ * Lines, arcs and Bezier curves are read exactly, transforms applied, Y up. Inkscape
2295
2667
  * layers are layers, each stroke color (else fill) a color, each dash pattern a line type. Text
2296
- * and images are left out and named in `warnings`.
2668
+ * and images are left out, named in `warnings`; `svgCreate`'s texts and hatches return as paths.
2297
2669
  */
2298
2670
  "io.svg.svgRead": {
2299
2671
  /** The whole text of an SVG file. */
@@ -5834,8 +6206,13 @@ export interface OperationParams {
5834
6206
  */
5835
6207
  circularSegments?: number | PipelineRef;
5836
6208
  /**
5837
- * When true, each solid turns a quarter turn about X so the recipe's Z points along Y, which is
5838
- * up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
6209
+ * `zUpToYUp` turns each solid a quarter turn about X so the recipe's Z points along Y, and
6210
+ * `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
6211
+ */
6212
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
6213
+ /**
6214
+ * When true, the solids turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
6215
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
5839
6216
  */
5840
6217
  adjustZtoY?: boolean | PipelineRef;
5841
6218
  /**
@@ -5860,8 +6237,13 @@ export interface OperationParams {
5860
6237
  /** How many flat sides each circle of the recipe is divided into; more is rounder. */
5861
6238
  circularSegments?: number | PipelineRef;
5862
6239
  /**
5863
- * When true, every placement turns a quarter turn about X so the recipe's Z points along Y,
5864
- * which is up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
6240
+ * Whether the placements turn: `zUpToYUp` turns each a quarter turn about X so the recipe's Z
6241
+ * points along Y, which is up when drawn; `keep` leaves them. `yUpToZUp` is refused.
6242
+ */
6243
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
6244
+ /**
6245
+ * When true, the placements turn as `upAxis` `zUpToYUp` does; false, its old default, decides
6246
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
5865
6247
  */
5866
6248
  adjustZtoY?: boolean | PipelineRef;
5867
6249
  /**
@@ -5891,8 +6273,13 @@ export interface OperationParams {
5891
6273
  */
5892
6274
  roots?: number[] | PipelineRef;
5893
6275
  /**
5894
- * When true, each mesh turns a quarter turn about X so the recipe's Z points along Y, as
5895
- * `recipes.build` turns its solids: `(x, y, z)` becomes `(x, z, -y)`.
6276
+ * Whether the meshes turn: `zUpToYUp` turns each a quarter turn about X so the recipe's Z points
6277
+ * along Y, as `recipes.build` turns its solids; `keep` leaves them. `yUpToZUp` is refused.
6278
+ */
6279
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
6280
+ /**
6281
+ * When true, the meshes turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
6282
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
5896
6283
  */
5897
6284
  adjustZtoY?: boolean | PipelineRef;
5898
6285
  };
@@ -6849,6 +7236,24 @@ export interface OperationParams {
6849
7236
  /** The shape to work on; it is not changed. */
6850
7237
  shape: unknown | PipelineRef;
6851
7238
  };
7239
+ /**
7240
+ * Adds dimensions, datums and tolerances to a document as product manufacturing
7241
+ * information, all of them or, when one is refused, none.
7242
+ *
7243
+ * Each names a part's faces, edges or vertices. It answers the changed document, which
7244
+ * `exportDocumentToStep` writes as STEP AP242 with their pictures; `assembly.query.getDocumentPmi`
7245
+ * lists the items with their labels, as taken here. Calls add up until `removeDocumentPmi`.
7246
+ */
7247
+ "occt.assembly.manager.addDocumentPmi": {
7248
+ /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7249
+ document: unknown | PipelineRef;
7250
+ /** Dimensions to write, each from `createPmiDimension` or given as an object. */
7251
+ dimensions?: unknown[] | PipelineRef;
7252
+ /** The datums to add; each must be referred to by one of `tolerances`. */
7253
+ datums?: unknown[] | PipelineRef;
7254
+ /** The geometric tolerances to add. */
7255
+ tolerances?: unknown[] | PipelineRef;
7256
+ };
6852
7257
  /**
6853
7258
  * Builds an assembly document from a structure, or applies the structure to an existing
6854
7259
  * document.
@@ -7030,11 +7435,164 @@ export interface OperationParams {
7030
7435
  /** The new color of the part as `{ r, g, b, a }` from 0 to 1; leave it out to keep the old one. */
7031
7436
  colorRgba?: unknown | PipelineRef;
7032
7437
  };
7438
+ /**
7439
+ * Describes a datum for `addDocumentPmi`: its letter and the shapes it is taken from.
7440
+ *
7441
+ * A tolerance in the same call must refer to it by letter, as a STEP file keeps a datum only
7442
+ * through its tolerances. A letter names one datum in a document, given again only on its
7443
+ * shapes. Nothing is written until `addDocumentPmi`.
7444
+ */
7445
+ "occt.assembly.manager.createPmiDatum": {
7446
+ /** The shapes the datum is taken from. */
7447
+ shapeRefs: unknown[] | PipelineRef;
7448
+ /**
7449
+ * One to three capital letters, A to Z, naming one datum in the document; a letter it already
7450
+ * has is given again only on that datum's shapes.
7451
+ */
7452
+ letter?: string | PipelineRef;
7453
+ /** The name of its `presentation`, when that has none of its own. */
7454
+ name?: string | PipelineRef;
7455
+ /**
7456
+ * A presentation drawn by the caller, or an annotation read back; left out, or with no lines and
7457
+ * no fills, the datum is written without one.
7458
+ */
7459
+ presentation?: unknown | PipelineRef;
7460
+ };
7461
+ /**
7462
+ * Describes a dimension for `addDocumentPmi`: what it states, its value and tolerance, the
7463
+ * shapes it measures, and where its picture is drawn.
7464
+ *
7465
+ * With `start` and `end` the picture is drawn as `io.drawing.dimensionPicture` draws it, in the
7466
+ * plane `normal` faces, in the part's own axes; a `presentation` replaces it. Nothing is written
7467
+ * until `addDocumentPmi`.
7468
+ */
7469
+ "occt.assembly.manager.createPmiDimension": {
7470
+ /** The nominal value, in the document's length unit, or in degrees for an `angle`. */
7471
+ value: number | PipelineRef;
7472
+ /** The shapes it measures, or measures from, each a part and one face, edge or vertex of it. */
7473
+ shapeRefs: unknown[] | PipelineRef;
7474
+ /**
7475
+ * What the dimension states; `linearDistance` and `angle` need `otherShapeRefs`, the sizes take
7476
+ * none.
7477
+ */
7478
+ type?: "Location_LinearDistance" | "Location_Angular" | "Size_Diameter" | "Size_Radius" | "Size_CurveLength" | PipelineRef;
7479
+ /** The shapes a `linearDistance` or an `angle` measures to; an empty list counts as none. */
7480
+ otherShapeRefs?: unknown[] | PipelineRef;
7481
+ /**
7482
+ * How far above the value the measure may lie, in degrees for an `angle`. Left out with
7483
+ * `lowerTolerance`, there is no tolerance; left out alone, it is 0.
7484
+ */
7485
+ upperTolerance?: number | PipelineRef;
7486
+ /**
7487
+ * How far below the value the measure may lie, as an amount. Left out with `upperTolerance`, the
7488
+ * dimension has no tolerance; left out alone, it is 0.
7489
+ */
7490
+ lowerTolerance?: number | PipelineRef;
7491
+ /**
7492
+ * The name of the picture `start` and `end` draw, which readers show and `getDocumentAnnotations`
7493
+ * reads back; a `presentation` without a name of its own takes it.
7494
+ */
7495
+ name?: string | PipelineRef;
7496
+ /**
7497
+ * For `linearDistance` and `curveLength` the first point measured, for the others the center of
7498
+ * the circle or angle; without it and `end`, nothing is drawn.
7499
+ */
7500
+ start?: [number, number, number] | PipelineRef;
7501
+ /**
7502
+ * For `linearDistance` and `curveLength` the second point measured; for `diameter` and `radius` a
7503
+ * point of the circle; for an `angle` a point on its first arm, where the arc passes.
7504
+ */
7505
+ end?: [number, number, number] | PipelineRef;
7506
+ /**
7507
+ * The picture's plane normal, facing the reader; an angle turns counterclockwise about it. Left
7508
+ * out, +Z, or -Y when `start` to `end` runs along Z.
7509
+ */
7510
+ normal?: [number, number, number] | PipelineRef;
7511
+ /**
7512
+ * For `linearDistance`, the direction the distance is measured along; left out, from `start` to
7513
+ * `end`. Other types ignore it.
7514
+ */
7515
+ direction?: [number, number, number] | PipelineRef;
7516
+ /**
7517
+ * For `linearDistance` and `curveLength`, how far the dimension line stands from `start`, to the
7518
+ * left of the measured direction seen from `normal`; negative puts it right.
7519
+ */
7520
+ offset?: number | PipelineRef;
7521
+ /** The height of the picture's digits, in the document's length unit; its arrows are as long. */
7522
+ textHeight?: number | PipelineRef;
7523
+ /** How many decimals the picture writes the value with; trailing zeros are dropped. */
7524
+ decimalPlaces?: number | PipelineRef;
7525
+ /**
7526
+ * A presentation drawn by the caller, or an annotation read back, used instead of the picture
7527
+ * `start` and `end` draw; one with no lines and no fills counts as none.
7528
+ */
7529
+ presentation?: unknown | PipelineRef;
7530
+ };
7531
+ /**
7532
+ * Describes one shape of a part for a dimension, datum or tolerance: the part's label and which
7533
+ * face, edge or vertex of it.
7534
+ *
7535
+ * Faces, edges and vertices count from 0 as `shapes.face.getFace`, `shapes.edge.getEdge` and
7536
+ * `shapes.vertex.getVertices` count them on the part's shape, which `assembly.query.getShapeFromLabel`
7537
+ * reads; `kind` `part` means the whole part.
7538
+ */
7539
+ "occt.assembly.manager.createPmiShape": {
7540
+ /**
7541
+ * The label of the part, such as `0:1:1:1`, as `assembly.query.getDocumentParts` lists it: a
7542
+ * part, not an assembly or an instance that places one.
7543
+ */
7544
+ part: string | PipelineRef;
7545
+ /** Whether the whole part is meant, or one face, edge or vertex of it. */
7546
+ kind?: "part" | "face" | "edge" | "vertex" | PipelineRef;
7547
+ /**
7548
+ * Which face, edge or vertex, counting from 0 as `shapes.face.getFace`, `shapes.edge.getEdge`
7549
+ * and `shapes.vertex.getVertices` count them on the part's shape; the whole part ignores it.
7550
+ */
7551
+ index?: number | PipelineRef;
7552
+ };
7553
+ /**
7554
+ * Describes a geometric tolerance for `addDocumentPmi`: what it controls, its value, the shapes
7555
+ * it applies to and the letters of the datums it refers to, primary first.
7556
+ *
7557
+ * Only `position`, `perpendicularity` and `parallelism` take a diameter zone or a material
7558
+ * condition. Nothing is written until `addDocumentPmi`.
7559
+ */
7560
+ "occt.assembly.manager.createPmiTolerance": {
7561
+ /** The width of its tolerance zone, in the document's length unit. */
7562
+ value: number | PipelineRef;
7563
+ /** The shapes it applies to. */
7564
+ shapeRefs: unknown[] | PipelineRef;
7565
+ /** What the tolerance controls. */
7566
+ type?: "Flatness" | "CircularityOrRoundness" | "Cylindricity" | "ProfileOfSurface" | "Perpendicularity" | "Parallelism" | "Position" | PipelineRef;
7567
+ /**
7568
+ * The letters of the datums it refers to, primary first, at most three, each given in the same
7569
+ * call, a datum the document has again on its own shapes.
7570
+ */
7571
+ datumLetters?: unknown[] | PipelineRef;
7572
+ /**
7573
+ * When true, the zone is a cylinder, written with the diameter sign before the value; only
7574
+ * `position`, `perpendicularity` and `parallelism` take it.
7575
+ */
7576
+ diameterZone?: boolean | PipelineRef;
7577
+ /**
7578
+ * The material condition it applies at; only `position`, `perpendicularity` and `parallelism`
7579
+ * take one other than `none`.
7580
+ */
7581
+ material?: "none" | "maximum" | "least" | PipelineRef;
7582
+ /** The name of its `presentation`, when that has none of its own. */
7583
+ name?: string | PipelineRef;
7584
+ /**
7585
+ * A presentation drawn by the caller, or an annotation read back; left out, or with no lines and
7586
+ * no fills, the tolerance is written without one.
7587
+ */
7588
+ presentation?: unknown | PipelineRef;
7589
+ };
7033
7590
  /**
7034
7591
  * Deletes an assembly document and frees the memory it holds.
7035
7592
  *
7036
7593
  * A document built with `buildAssemblyDocument` or loaded with `loadStepToDoc` stays in memory
7037
- * until this is called, so delete it once its shapes and exports have been read.
7594
+ * until deleted; deleting it deletes the documents its changes made too, and deleting one of
7595
+ * those, such as `setDocLabelColor` answers, frees that one alone, which is made again when read.
7038
7596
  */
7039
7597
  "occt.assembly.manager.deleteDocument": {
7040
7598
  /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
@@ -7059,8 +7617,8 @@ export interface OperationParams {
7059
7617
  */
7060
7618
  meshAngle?: number | PipelineRef;
7061
7619
  /**
7062
- * When true, extra vertices are added inside curved faces for a closer fit, at the cost of
7063
- * speed.
7620
+ * When true, flat and cylindrical faces get vertices inside them, not only along their edges;
7621
+ * when false, triangles can cut straight across a wide cylindrical face such as a bore.
7064
7622
  */
7065
7623
  internalVerticesMode?: boolean | PipelineRef;
7066
7624
  /**
@@ -7112,8 +7670,8 @@ export interface OperationParams {
7112
7670
  */
7113
7671
  meshAngle?: number | PipelineRef;
7114
7672
  /**
7115
- * When true, extra vertices are added inside curved faces for a closer fit, at the cost of
7116
- * speed.
7673
+ * When true, flat and cylindrical faces get vertices inside them, not only along their edges;
7674
+ * when false, triangles can cut straight across a wide cylindrical face such as a bore.
7117
7675
  */
7118
7676
  internalVerticesMode?: boolean | PipelineRef;
7119
7677
  /**
@@ -7216,8 +7774,9 @@ export interface OperationParams {
7216
7774
  * Writes an assembly document as a STEP file with its hierarchy, names and colors, and returns
7217
7775
  * the file's bytes.
7218
7776
  *
7219
- * `author` and `organization` go into the file header; `compress` writes gzip-compressed STEP-Z
7220
- * instead. Failure throws an error.
7777
+ * `compress` writes gzip-compressed STEP-Z. A document holding dimensions, datums or tolerances is
7778
+ * written as STEP AP242 with them and their pictures, those of each part in that part's own
7779
+ * context and units.
7221
7780
  */
7222
7781
  "occt.assembly.manager.exportDocumentToStep": {
7223
7782
  /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
@@ -7280,17 +7839,30 @@ export interface OperationParams {
7280
7839
  */
7281
7840
  stepData: unknown | PipelineRef;
7282
7841
  };
7842
+ /**
7843
+ * Removes every dimension, datum and geometric tolerance from a document, with their pictures and
7844
+ * the saved views that showed only them.
7845
+ *
7846
+ * It answers the document without them, which exports as one that never held PMI and which
7847
+ * `addDocumentPmi` writes into as into a fresh one.
7848
+ */
7849
+ "occt.assembly.manager.removeDocumentPmi": {
7850
+ /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7851
+ document: unknown | PipelineRef;
7852
+ };
7283
7853
  /**
7284
7854
  * Colors a label of a document, a part, instance or assembly, with red, green, blue and alpha
7285
7855
  * from 0 to 1.
7286
7856
  *
7287
- * The color is kept when the document is exported to STEP or glTF.
7857
+ * It answers the colored document, which an export or a read given it shows, STEP and glTF
7858
+ * included. A label that names no part, instance or assembly of the document is refused;
7859
+ * `setDocLabelColors` colors many labels in one change.
7288
7860
  */
7289
7861
  "occt.assembly.manager.setDocLabelColor": {
7290
- /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7291
- document: unknown | PipelineRef;
7292
7862
  /** The label of the part, instance or assembly to color, such as `0:1:1:1`. */
7293
7863
  label: string | PipelineRef;
7864
+ /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7865
+ document: unknown | PipelineRef;
7294
7866
  /** The red channel, from 0 to 1. */
7295
7867
  r?: number | PipelineRef;
7296
7868
  /** The green channel, from 0 to 1. */
@@ -7300,15 +7872,61 @@ export interface OperationParams {
7300
7872
  /** The opacity, from 0 for transparent to 1 for opaque. */
7301
7873
  a?: number | PipelineRef;
7302
7874
  };
7303
- /** Renames a label of a document, a part, instance or assembly. */
7304
- "occt.assembly.manager.setDocLabelName": {
7875
+ /**
7876
+ * Colors many labels of a document, parts, instances or assemblies, with one color in one
7877
+ * change.
7878
+ *
7879
+ * It answers the colored document as `setDocLabelColor` does, one change for the whole list. A
7880
+ * label that names no part, instance or assembly is refused before any is colored; an empty
7881
+ * list answers the document as it was.
7882
+ */
7883
+ "occt.assembly.manager.setDocLabelColors": {
7884
+ /**
7885
+ * The labels of the parts, instances or assemblies to color, such as `0:1:1:1`; each takes the
7886
+ * one color.
7887
+ */
7888
+ labels: unknown[] | PipelineRef;
7305
7889
  /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7306
7890
  document: unknown | PipelineRef;
7891
+ /** The red channel, from 0 to 1. */
7892
+ r?: number | PipelineRef;
7893
+ /** The green channel, from 0 to 1. */
7894
+ g?: number | PipelineRef;
7895
+ /** The blue channel, from 0 to 1. */
7896
+ b?: number | PipelineRef;
7897
+ /** The opacity, from 0 for transparent to 1 for opaque. */
7898
+ a?: number | PipelineRef;
7899
+ };
7900
+ /**
7901
+ * Renames a label of a document, a part, instance or assembly.
7902
+ *
7903
+ * It answers the renamed document, which an export or a read given it shows. A label that names
7904
+ * no part, instance or assembly of the document is refused; `setDocLabelNames` renames many
7905
+ * labels in one change.
7906
+ */
7907
+ "occt.assembly.manager.setDocLabelName": {
7307
7908
  /** The label of the part, instance or assembly to rename, such as `0:1:1:1`. */
7308
7909
  label: string | PipelineRef;
7910
+ /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7911
+ document: unknown | PipelineRef;
7309
7912
  /** The new name written to the label. */
7310
7913
  name?: string | PipelineRef;
7311
7914
  };
7915
+ /**
7916
+ * Renames many labels of a document, parts, instances or assemblies, in one change.
7917
+ *
7918
+ * `names` holds each label's new name, in the order of `labels`. A label that is no part,
7919
+ * instance or assembly, a name that is not text, a count unlike the labels' or a label given two
7920
+ * names is refused before any is renamed.
7921
+ */
7922
+ "occt.assembly.manager.setDocLabelNames": {
7923
+ /** The labels of the parts, instances or assemblies to rename, such as `0:1:1:1`. */
7924
+ labels: unknown[] | PipelineRef;
7925
+ /** The new name of each label in `labels`, in the same order; the lists are equally long. */
7926
+ names: unknown[] | PipelineRef;
7927
+ /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7928
+ document: unknown | PipelineRef;
7929
+ };
7312
7930
  /**
7313
7931
  * Reads the whole assembly tree of a document as a flat list of nodes with their parents, so it
7314
7932
  * can be walked or shown as a tree.
@@ -7321,6 +7939,32 @@ export interface OperationParams {
7321
7939
  /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
7322
7940
  document: unknown | PipelineRef;
7323
7941
  };
7942
+ /**
7943
+ * Reads the dimensions, tolerances and datums a document carries as a STEP AP242 file draws
7944
+ * them, and the views the file saved.
7945
+ *
7946
+ * Each has its plane, its lines as polylines and its letters as loops to fill even-odd, in the
7947
+ * document's axes and units or turned Y-up; a part placed twice shows its annotations twice.
7948
+ * Experimental.
7949
+ */
7950
+ "occt.assembly.query.getDocumentAnnotations": {
7951
+ /**
7952
+ * The document from `loadStepToDoc` or another loader, holding the annotations a STEP AP242
7953
+ * file brings along.
7954
+ */
7955
+ document: unknown | PipelineRef;
7956
+ /**
7957
+ * How far, in the document's units, a curved annotation line may stray from its curve; smaller
7958
+ * draws circles and arcs with more points, up to about 130 points a circle.
7959
+ */
7960
+ deflection?: number | PipelineRef;
7961
+ /**
7962
+ * Whether the annotations and saved views turn, as `docToMesh` with the same `upAxis` turns the
7963
+ * parts: `zUpToYUp` from Z-up into Y-up, `yUpToZUp` into Z-up, and `keep` leaves the
7964
+ * document's axes.
7965
+ */
7966
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
7967
+ };
7324
7968
  /**
7325
7969
  * Lists every part and sub-assembly in a document with its label, name, type, color and how
7326
7970
  * many times it is placed.
@@ -7332,12 +7976,12 @@ export interface OperationParams {
7332
7976
  document: unknown | PipelineRef;
7333
7977
  };
7334
7978
  /**
7335
- * Reads the product manufacturing information a document holds, as a STEP AP242 file brings it:
7336
- * dimensions, geometric tolerances and the datums they refer to.
7979
+ * Reads the product manufacturing information a document holds: dimensions, geometric tolerances
7980
+ * and the datums they refer to, each under its own label.
7337
7981
  *
7338
- * Each entry names its shapes by label, which `getShapeFromLabel` reads. Lengths are in the
7339
- * document's unit, millimeters for a loaded STEP file, and angles in degrees; a document without
7340
- * any gives empty lists.
7982
+ * Each entry names its shapes by label, which `getShapeFromLabel` reads, and in `shapeRefs` as the
7983
+ * part and index `manager.addDocumentPmi` takes. Lengths are in the document's unit, angles in
7984
+ * degrees; a document without any gives empty lists.
7341
7985
  */
7342
7986
  "occt.assembly.query.getDocumentPmi": {
7343
7987
  /** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
@@ -8166,8 +8810,13 @@ export interface OperationParams {
8166
8810
  */
8167
8811
  relativeDeflection?: boolean | PipelineRef;
8168
8812
  /**
8169
- * When true, the mesh is made Z-up for tools that treat Z as up: turned a quarter about X under
8170
- * right-handed conventions, with Y and Z swapped otherwise.
8813
+ * `zUpToYUp` turns the mesh from the file's Z-up into Y-up, as `io.loadSTEPorIGES` turns a
8814
+ * shape; `yUpToZUp` makes it Z-up for tools that treat Z as up; `keep` leaves it.
8815
+ */
8816
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
8817
+ /**
8818
+ * When true, the mesh turns as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
8819
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
8171
8820
  */
8172
8821
  adjustYtoZ?: boolean | PipelineRef;
8173
8822
  /**
@@ -8217,8 +8866,13 @@ export interface OperationParams {
8217
8866
  */
8218
8867
  relativeDeflection?: boolean | PipelineRef;
8219
8868
  /**
8220
- * When true, the meshes are made Z-up for tools that treat Z as up: turned a quarter about X under
8221
- * right-handed conventions, with Y and Z swapped otherwise.
8869
+ * `zUpToYUp` turns the meshes from the file's Z-up into Y-up, as `io.loadSTEPorIGES` turns a
8870
+ * shape; `yUpToZUp` makes them Z-up for tools that treat Z as up; `keep` leaves them.
8871
+ */
8872
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
8873
+ /**
8874
+ * When true, the meshes turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
8875
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
8222
8876
  */
8223
8877
  adjustYtoZ?: boolean | PipelineRef;
8224
8878
  /**
@@ -9607,11 +10261,14 @@ export interface OperationParams {
9607
10261
  shape: unknown | PipelineRef;
9608
10262
  /** The edges to round, all with the same radius profile. */
9609
10263
  edges: unknown[] | PipelineRef;
9610
- /** The radius in model units at each position in `paramsU`; the lists must have the same length. */
10264
+ /**
10265
+ * The radius in model units, above 0, at each position in `paramsU`; the lists must have the
10266
+ * same length.
10267
+ */
9611
10268
  radiusList: number[] | PipelineRef;
9612
10269
  /**
9613
- * Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: first and
9614
- * last positions at the curve's ends, those between along its parameter.
10270
+ * Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: a fraction of
10271
+ * each edge's own length from the start of its curve.
9615
10272
  */
9616
10273
  paramsU: number[] | PipelineRef;
9617
10274
  };
@@ -9624,11 +10281,14 @@ export interface OperationParams {
9624
10281
  shape: unknown | PipelineRef;
9625
10282
  /** The edges to round, all with the same radius profile. */
9626
10283
  edges: unknown[] | PipelineRef;
9627
- /** The radius in model units at each position in `paramsU`; the lists must have the same length. */
10284
+ /**
10285
+ * The radius in model units, above 0, at each position in `paramsU`; the lists must have the
10286
+ * same length.
10287
+ */
9628
10288
  radiusList: number[] | PipelineRef;
9629
10289
  /**
9630
- * Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: first and
9631
- * last positions at the curve's ends, those between along its parameter.
10290
+ * Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: a fraction of
10291
+ * each edge's own length from the start of its curve.
9632
10292
  */
9633
10293
  paramsU: number[] | PipelineRef;
9634
10294
  };
@@ -9650,8 +10310,8 @@ export interface OperationParams {
9650
10310
  */
9651
10311
  radiusLists: unknown[] | PipelineRef;
9652
10312
  /**
9653
- * One list per edge of positions, read as in `filletEdgeVariableRadius` (first and last at the
9654
- * ends of the edge's curve), each pairing with the matching list in `radiusLists`.
10313
+ * One list of positions per edge, each a fraction of that edge's own length as
10314
+ * `filletEdgeVariableRadius` reads it, pairing with the matching list in `radiusLists`.
9655
10315
  */
9656
10316
  paramsULists: unknown[] | PipelineRef;
9657
10317
  };
@@ -9670,8 +10330,8 @@ export interface OperationParams {
9670
10330
  */
9671
10331
  radiusLists: unknown[] | PipelineRef;
9672
10332
  /**
9673
- * One list per edge of positions, read as in `filletEdgeVariableRadius` (first and last at the
9674
- * ends of the edge's curve), each pairing with the matching list in `radiusLists`.
10333
+ * One list of positions per edge, each a fraction of that edge's own length as
10334
+ * `filletEdgeVariableRadius` reads it, pairing with the matching list in `radiusLists`.
9675
10335
  */
9676
10336
  paramsULists: unknown[] | PipelineRef;
9677
10337
  };
@@ -9702,20 +10362,23 @@ export interface OperationParams {
9702
10362
  /**
9703
10363
  * Rounds one edge of a shape with a radius that changes along it.
9704
10364
  *
9705
- * `radiusList` holds the radius at each `paramsU` position; the first and last stand for the
9706
- * start and end of the edge's curve, whatever its orientation, and the radius may overshoot
9707
- * between positions. The lists must be equally long, or an error is thrown.
10365
+ * `radiusList` holds the radius at each `paramsU` position, a fraction of the edge's length from
10366
+ * its curve's start, whatever its orientation; between positions it may overshoot. A position
10367
+ * outside 0 to 1, a radius not above 0 or one position with two radii is refused.
9708
10368
  */
9709
10369
  "occt.fillets.filletEdgeVariableRadius": {
9710
10370
  /** The shape the edge belongs to. */
9711
10371
  shape: unknown | PipelineRef;
9712
10372
  /** The edge to round with a changing radius. */
9713
10373
  edge: unknown | PipelineRef;
9714
- /** The radius in model units at each position in `paramsU`; the lists must have the same length. */
10374
+ /**
10375
+ * The radius in model units, above 0, at each position in `paramsU`; the lists must have the
10376
+ * same length.
10377
+ */
9715
10378
  radiusList: number[] | PipelineRef;
9716
10379
  /**
9717
- * Where each radius applies: the first position is the curve's start, the last its end, those
9718
- * between fractions of its parameter, which match its length only on lines and arcs.
10380
+ * Where each radius applies: a fraction of the edge's length from the start of its curve, 0 to 1,
10381
+ * in any order; an end without one takes the nearest radius.
9719
10382
  */
9720
10383
  paramsU: number[] | PipelineRef;
9721
10384
  };
@@ -9728,11 +10391,14 @@ export interface OperationParams {
9728
10391
  shape: unknown | PipelineRef;
9729
10392
  /** The edge to round with a changing radius. */
9730
10393
  edge: unknown | PipelineRef;
9731
- /** The radius in model units at each position in `paramsU`; the lists must have the same length. */
10394
+ /**
10395
+ * The radius in model units, above 0, at each position in `paramsU`; the lists must have the
10396
+ * same length.
10397
+ */
9732
10398
  radiusList: number[] | PipelineRef;
9733
10399
  /**
9734
- * Where each radius applies: the first position is the curve's start, the last its end, those
9735
- * between fractions of its parameter, which match its length only on lines and arcs.
10400
+ * Where each radius applies: a fraction of the edge's length from the start of its curve, 0 to 1,
10401
+ * in any order; an end without one takes the nearest radius.
9736
10402
  */
9737
10403
  paramsU: number[] | PipelineRef;
9738
10404
  };
@@ -9951,8 +10617,8 @@ export interface OperationParams {
9951
10617
  */
9952
10618
  meshRelative?: boolean | PipelineRef;
9953
10619
  /**
9954
- * When true, extra vertices are added inside curved faces for a closer fit, at the cost of
9955
- * speed.
10620
+ * When true, flat and cylindrical faces get vertices inside them, not only along their edges;
10621
+ * when false, triangles can cut straight across a wide cylindrical face such as a bore.
9956
10622
  */
9957
10623
  internalVerticesMode?: boolean | PipelineRef;
9958
10624
  /**
@@ -9979,7 +10645,15 @@ export interface OperationParams {
9979
10645
  * `mat4` always as a matrix, `trs` always as the three parts.
9980
10646
  */
9981
10647
  transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
9982
- /** When true, the file's Z-up is turned into glTF's Y-up; false keeps Z up. */
10648
+ /**
10649
+ * Whether the model turns: `zUpToYUp` turns the file's Z-up into glTF's Y-up, and `keep` keeps
10650
+ * Z up. `yUpToZUp` is refused.
10651
+ */
10652
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
10653
+ /**
10654
+ * When false, the model keeps its axes as `keep` does; true, its old default, decides nothing.
10655
+ * False wins over `upAxis` at its default; beside another chosen turn it is refused.
10656
+ */
9983
10657
  adjustZtoY?: boolean | PipelineRef;
9984
10658
  /**
9985
10659
  * A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps
@@ -10036,8 +10710,8 @@ export interface OperationParams {
10036
10710
  */
10037
10711
  meshRelative?: boolean | PipelineRef;
10038
10712
  /**
10039
- * When true, extra vertices are added inside curved faces for a closer fit, at the cost of
10040
- * speed.
10713
+ * When true, flat and cylindrical faces get vertices inside them, not only along their edges;
10714
+ * when false, triangles can cut straight across a wide cylindrical face such as a bore.
10041
10715
  */
10042
10716
  internalVerticesMode?: boolean | PipelineRef;
10043
10717
  /**
@@ -10064,7 +10738,15 @@ export interface OperationParams {
10064
10738
  * `mat4` always as a matrix, `trs` always as the three parts.
10065
10739
  */
10066
10740
  transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
10067
- /** When true, the file's Z-up is turned into glTF's Y-up; false keeps Z up. */
10741
+ /**
10742
+ * Whether the model turns: `zUpToYUp` turns the file's Z-up into glTF's Y-up, and `keep` keeps
10743
+ * Z up. `yUpToZUp` is refused.
10744
+ */
10745
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
10746
+ /**
10747
+ * When false, the model keeps its axes as `keep` does; true, its old default, decides nothing.
10748
+ * False wins over `upAxis` at its default; beside another chosen turn it is refused.
10749
+ */
10068
10750
  adjustZtoY?: boolean | PipelineRef;
10069
10751
  /**
10070
10752
  * A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps
@@ -10123,8 +10805,8 @@ export interface OperationParams {
10123
10805
  */
10124
10806
  meshRelative?: boolean | PipelineRef;
10125
10807
  /**
10126
- * When true, extra vertices are added inside curved faces for a closer fit, at the cost of
10127
- * speed.
10808
+ * When true, flat and cylindrical faces get vertices inside them, not only along their edges;
10809
+ * when false, triangles can cut straight across a wide cylindrical face such as a bore.
10128
10810
  */
10129
10811
  internalVerticesMode?: boolean | PipelineRef;
10130
10812
  /**
@@ -10325,7 +11007,7 @@ export interface OperationParams {
10325
11007
  * that carries the whole mesh.
10326
11008
  *
10327
11009
  * With `asFaces` true the faces share their corners' edges in a compound that
10328
- * `shapeFix.sewWithReport` can join into a shell. `adjustZtoY` turns Z-up into Y-up, and a file
11010
+ * `shapeFix.sewWithReport` can join into a shell. `upAxis` `zUpToYUp` turns Z-up into Y-up, and a file
10329
11011
  * without triangles is refused.
10330
11012
  */
10331
11013
  "occt.io.loadStl": {
@@ -10339,7 +11021,15 @@ export interface OperationParams {
10339
11021
  * one face carries the whole mesh, light to draw but not for modelling.
10340
11022
  */
10341
11023
  asFaces?: boolean | PipelineRef;
10342
- /** When true, the file's Z-up is turned into this library's Y-up. */
11024
+ /**
11025
+ * Whether the shape turns: `zUpToYUp` turns the file's Z-up into this library's Y-up, and `keep`
11026
+ * leaves the file's axes. `yUpToZUp` is refused.
11027
+ */
11028
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11029
+ /**
11030
+ * When false, the shape keeps its axes as `keep` does; true, its old default, decides nothing.
11031
+ * False wins over `upAxis` at its default; beside another chosen turn it is refused.
11032
+ */
10343
11033
  adjustZtoY?: boolean | PipelineRef;
10344
11034
  };
10345
11035
  /**
@@ -10540,7 +11230,7 @@ export interface OperationParams {
10540
11230
  * browser download of the file.
10541
11231
  *
10542
11232
  * `precision` is the meshing tolerance in model units. With the conventions set the file shows
10543
- * what the screen shows, Z-up with `adjustYtoZ`. The file name may hold no spaces or slashes;
11233
+ * what the screen shows, Z-up under `yUpToZUp`. The file name may hold no spaces or slashes;
10544
11234
  * `saveShapeObjAndReturn` gives the text instead.
10545
11235
  */
10546
11236
  "occt.io.saveShapeObj": {
@@ -10557,8 +11247,13 @@ export interface OperationParams {
10557
11247
  */
10558
11248
  precision?: number | PipelineRef;
10559
11249
  /**
10560
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10561
- * what the screen shows either way; without them this swaps Y and Z.
11250
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11251
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11252
+ */
11253
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11254
+ /**
11255
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11256
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10562
11257
  */
10563
11258
  adjustYtoZ?: boolean | PipelineRef;
10564
11259
  /**
@@ -10572,7 +11267,7 @@ export interface OperationParams {
10572
11267
  * the file's text.
10573
11268
  *
10574
11269
  * `precision` is the meshing tolerance in model units and coordinates keep six decimals. With
10575
- * the conventions set the file shows what the screen shows, Z-up with `adjustYtoZ`. `mtl` stays
11270
+ * the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`. `mtl` stays
10576
11271
  * empty, since a shape carries no colors; `assembly.manager.exportDocumentToObj` writes colored
10577
11272
  * parts.
10578
11273
  */
@@ -10590,8 +11285,13 @@ export interface OperationParams {
10590
11285
  */
10591
11286
  precision?: number | PipelineRef;
10592
11287
  /**
10593
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10594
- * what the screen shows either way; without them this swaps Y and Z.
11288
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11289
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11290
+ */
11291
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11292
+ /**
11293
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11294
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10595
11295
  */
10596
11296
  adjustYtoZ?: boolean | PipelineRef;
10597
11297
  /**
@@ -10605,7 +11305,7 @@ export interface OperationParams {
10605
11305
  * download of the file.
10606
11306
  *
10607
11307
  * `precision` is the meshing tolerance in model units. With the conventions set the file shows
10608
- * what the screen shows, Z-up with `adjustYtoZ`. `fileName` names the download and
11308
+ * what the screen shows, Z-up under `yUpToZUp`. `fileName` names the download and
10609
11309
  * `tryDownload` false skips it; `saveShapePlyAndReturn` gives the text instead.
10610
11310
  */
10611
11311
  "occt.io.saveShapePly": {
@@ -10619,8 +11319,13 @@ export interface OperationParams {
10619
11319
  */
10620
11320
  precision?: number | PipelineRef;
10621
11321
  /**
10622
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10623
- * what the screen shows either way; without them this swaps Y and Z.
11322
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11323
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11324
+ */
11325
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11326
+ /**
11327
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11328
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10624
11329
  */
10625
11330
  adjustYtoZ?: boolean | PipelineRef;
10626
11331
  /**
@@ -10635,7 +11340,7 @@ export interface OperationParams {
10635
11340
  *
10636
11341
  * Coordinates keep six significant digits, so past 1000 units they keep two decimals.
10637
11342
  * `precision` is the meshing tolerance in model units. With the conventions set the file shows
10638
- * what the screen shows, Z-up with `adjustYtoZ`.
11343
+ * what the screen shows, Z-up under `yUpToZUp`.
10639
11344
  */
10640
11345
  "occt.io.saveShapePlyAndReturn": {
10641
11346
  /** The shape written to the file. */
@@ -10648,8 +11353,13 @@ export interface OperationParams {
10648
11353
  */
10649
11354
  precision?: number | PipelineRef;
10650
11355
  /**
10651
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10652
- * what the screen shows either way; without them this swaps Y and Z.
11356
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11357
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11358
+ */
11359
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11360
+ /**
11361
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11362
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10653
11363
  */
10654
11364
  adjustYtoZ?: boolean | PipelineRef;
10655
11365
  /**
@@ -10662,7 +11372,7 @@ export interface OperationParams {
10662
11372
  * Writes a shape as STEP, the exchange format for exact CAD geometry, and starts a browser
10663
11373
  * download of the file.
10664
11374
  *
10665
- * With `adjustYtoZ` true the file is Z-up: with the conventions set it shows what the screen
11375
+ * With `upAxis` `yUpToZUp` the file is Z-up: with the conventions set it shows what the screen
10666
11376
  * shows, without them Y and Z are swapped. The file is in millimetres;
10667
11377
  * `saveShapeSTEPAndReturn` returns the text.
10668
11378
  */
@@ -10672,12 +11382,17 @@ export interface OperationParams {
10672
11382
  /** The name the downloaded file gets; `.step` is appended when missing. */
10673
11383
  fileName?: string | PipelineRef;
10674
11384
  /**
10675
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10676
- * what the screen shows either way; without them this swaps Y and Z.
11385
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11386
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11387
+ */
11388
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11389
+ /**
11390
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11391
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10677
11392
  */
10678
11393
  adjustYtoZ?: boolean | PipelineRef;
10679
11394
  /**
10680
- * When true, `adjustYtoZ` turns the shape 90 degrees about X instead of swapping, for a
11395
+ * When true, `upAxis` `yUpToZUp` turns the shape 90 degrees about X instead of swapping, for a
10681
11396
  * right-handed scene.
10682
11397
  */
10683
11398
  fromRightHanded?: boolean | PipelineRef;
@@ -10695,7 +11410,7 @@ export interface OperationParams {
10695
11410
  /**
10696
11411
  * Writes a shape as STEP, the exchange format for exact CAD geometry, and returns its text.
10697
11412
  *
10698
- * With `adjustYtoZ` true the file is Z-up, as CAD programs expect: with the conventions set it
11413
+ * With `upAxis` `yUpToZUp` the file is Z-up, as CAD programs expect: with the conventions set it
10699
11414
  * shows what the screen shows, and without them Y and Z are swapped. The file is in
10700
11415
  * millimetres, a shape in another `unit` scaled to them.
10701
11416
  */
@@ -10705,12 +11420,17 @@ export interface OperationParams {
10705
11420
  /** The name the downloaded file gets; `.step` is appended when missing. */
10706
11421
  fileName?: string | PipelineRef;
10707
11422
  /**
10708
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10709
- * what the screen shows either way; without them this swaps Y and Z.
11423
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11424
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11425
+ */
11426
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11427
+ /**
11428
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11429
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10710
11430
  */
10711
11431
  adjustYtoZ?: boolean | PipelineRef;
10712
11432
  /**
10713
- * When true, `adjustYtoZ` turns the shape 90 degrees about X instead of swapping, for a
11433
+ * When true, `upAxis` `yUpToZUp` turns the shape 90 degrees about X instead of swapping, for a
10714
11434
  * right-handed scene.
10715
11435
  */
10716
11436
  fromRightHanded?: boolean | PipelineRef;
@@ -10730,7 +11450,7 @@ export interface OperationParams {
10730
11450
  * download of the file.
10731
11451
  *
10732
11452
  * `precision` is the meshing tolerance in model units and `binary` writes the smaller binary
10733
- * form. With the conventions set the file shows what the screen shows, Z-up with `adjustYtoZ`.
11453
+ * form. With the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`.
10734
11454
  * `saveShapeStlAndReturn` gives the file instead.
10735
11455
  */
10736
11456
  "occt.io.saveShapeStl": {
@@ -10744,8 +11464,13 @@ export interface OperationParams {
10744
11464
  */
10745
11465
  precision?: number | PipelineRef;
10746
11466
  /**
10747
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10748
- * what the screen shows either way; without them this swaps Y and Z.
11467
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11468
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11469
+ */
11470
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11471
+ /**
11472
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11473
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10749
11474
  */
10750
11475
  adjustYtoZ?: boolean | PipelineRef;
10751
11476
  /**
@@ -10764,7 +11489,7 @@ export interface OperationParams {
10764
11489
  * text, or its bytes when `binary` is true.
10765
11490
  *
10766
11491
  * `precision` is the meshing tolerance in model units, smaller following curves more closely.
10767
- * With the conventions set the file shows what the screen shows, Z-up with `adjustYtoZ`.
11492
+ * With the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`.
10768
11493
  * `fileName` and `tryDownload` matter only for a download.
10769
11494
  */
10770
11495
  "occt.io.saveShapeStlAndReturn": {
@@ -10778,8 +11503,13 @@ export interface OperationParams {
10778
11503
  */
10779
11504
  precision?: number | PipelineRef;
10780
11505
  /**
10781
- * When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
10782
- * what the screen shows either way; without them this swaps Y and Z.
11506
+ * `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
11507
+ * `keep` writes the model's axes. `zUpToYUp` is refused.
11508
+ */
11509
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
11510
+ /**
11511
+ * When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
11512
+ * nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
10783
11513
  */
10784
11514
  adjustYtoZ?: boolean | PipelineRef;
10785
11515
  /**
@@ -11165,6 +11895,41 @@ export interface OperationParams {
11165
11895
  /** The direction and distance of the sweep as one vector, in model units. */
11166
11896
  direction?: [number, number, number] | PipelineRef;
11167
11897
  };
11898
+ /**
11899
+ * Cuts shapes with the plane of a frame and hatches the cut faces in one call: for each shape its
11900
+ * cut faces, their hatch lines as edges, and each face's hatch as drawing data in the frame's
11901
+ * coordinates.
11902
+ *
11903
+ * The hatches write to DXF or SVG beside `hiddenLines` of the same frame, and `bitbybit.draw`
11904
+ * draws the result. Experimental.
11905
+ */
11906
+ "occt.operations.hatchedSectionByFrame": {
11907
+ /** The shapes to cut, such as the parts of an assembly; each gives its own cut faces. */
11908
+ shapes: unknown[] | PipelineRef;
11909
+ /**
11910
+ * The plane to cut along, through the frame's origin square to its normal, which points at the
11911
+ * side taken away; the hatch data takes its direction as X.
11912
+ */
11913
+ frame: unknown | PipelineRef;
11914
+ /** What the cut faces are filled with: single lines, pairs, crossed lines or solid ink. */
11915
+ pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
11916
+ /** The angle of the hatch lines in degrees, counterclockwise from the frame's direction. */
11917
+ angle?: number | PipelineRef;
11918
+ /** The distance between the hatch lines, in model units. */
11919
+ spacing?: number | PipelineRef;
11920
+ /**
11921
+ * When true, a shape whose cut faces come within `spacing` of an earlier shape's is hatched at
11922
+ * another angle, `angle` plus 90, 30, 120, 60 or 150.
11923
+ */
11924
+ neighbourAngles?: boolean | PipelineRef;
11925
+ /**
11926
+ * How far, in model units, a curved cut edge may stray from the straight pieces the hatch lines
11927
+ * are clipped against.
11928
+ */
11929
+ curveTolerance?: number | PipelineRef;
11930
+ /** How close the ends of two section edges must lie to be joined into one wire, in model units. */
11931
+ tolerance?: number | PipelineRef;
11932
+ };
11168
11933
  /**
11169
11934
  * Draws a shape seen from a view frame as a technical drawing does, flat on the XZ plane: the
11170
11935
  * edges the eye sees and those that faces hide.
@@ -11191,8 +11956,8 @@ export interface OperationParams {
11191
11956
  */
11192
11957
  smoothEdges?: boolean | PipelineRef;
11193
11958
  /**
11194
- * When true, the edges that faces cover are collected in `hidden`; when false, `hidden` stays
11195
- * empty.
11959
+ * When true, the edges that faces cover are drawn too; when false, the hidden part of the
11960
+ * result stays empty.
11196
11961
  */
11197
11962
  hiddenEdges?: boolean | PipelineRef;
11198
11963
  /**
@@ -11205,6 +11970,58 @@ export interface OperationParams {
11205
11970
  * faces more closely.
11206
11971
  */
11207
11972
  precision?: number | PipelineRef;
11973
+ /**
11974
+ * When true, the drawing is tidied: a curve seen edge-on becomes a line, and a hidden edge
11975
+ * lying wholly under other edges is left out.
11976
+ */
11977
+ tidy?: boolean | PipelineRef;
11978
+ };
11979
+ /**
11980
+ * Draws a shape as `hiddenLines` does, with the edges sorted by kind, so a drawing can give
11981
+ * each its own line weight.
11982
+ *
11983
+ * `sharp` holds the edges where faces meet at an angle, `outline` the silhouettes of curved
11984
+ * faces and `smooth` the edges where faces meet without a crease; `hiddenSharp`,
11985
+ * `hiddenOutline` and `hiddenSmooth` hold the same where faces cover them.
11986
+ */
11987
+ "occt.operations.hiddenLinesByKind": {
11988
+ /** The shape to draw. */
11989
+ shape: unknown | PipelineRef;
11990
+ /**
11991
+ * The view: the eye sits on the side the normal points to and looks back along it, and the
11992
+ * drawing's x runs along the direction from the frame's origin.
11993
+ */
11994
+ frame: unknown | PipelineRef;
11995
+ /**
11996
+ * When true, the drawing is made from the exact geometry; when false, from a mesh, which is
11997
+ * faster and draws parallel views only.
11998
+ */
11999
+ exact?: boolean | PipelineRef;
12000
+ /**
12001
+ * When true, the edges where faces meet without a crease, such as the borders of a fillet, are
12002
+ * drawn too.
12003
+ */
12004
+ smoothEdges?: boolean | PipelineRef;
12005
+ /**
12006
+ * When true, the edges that faces cover are drawn too; when false, the hidden part of the
12007
+ * result stays empty.
12008
+ */
12009
+ hiddenEdges?: boolean | PipelineRef;
12010
+ /**
12011
+ * How far the eye sits from the frame's origin along its normal for a perspective, in model
12012
+ * units; 0 draws a parallel view. A perspective needs `exact`.
12013
+ */
12014
+ focus?: number | PipelineRef;
12015
+ /**
12016
+ * The meshing tolerance in model units when `exact` is false; a smaller value follows curved
12017
+ * faces more closely.
12018
+ */
12019
+ precision?: number | PipelineRef;
12020
+ /**
12021
+ * When true, the drawing is tidied: a curve seen edge-on becomes a line, and a hidden edge
12022
+ * lying wholly under other edges is left out.
12023
+ */
12024
+ tidy?: boolean | PipelineRef;
11208
12025
  };
11209
12026
  /**
11210
12027
  * Builds a surface through a series of wires, like skin stretched over ribs: each wire is one
@@ -14371,8 +15188,13 @@ export interface OperationParams {
14371
15188
  */
14372
15189
  recipe: unknown | PipelineRef;
14373
15190
  /**
14374
- * When true, each shape turns a quarter turn about X so the recipe's Z points along Y, which is
14375
- * up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
15191
+ * `zUpToYUp` turns each shape a quarter turn about X so the recipe's Z points along Y, and
15192
+ * `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
15193
+ */
15194
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
15195
+ /**
15196
+ * When true, the shapes turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
15197
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
14376
15198
  */
14377
15199
  adjustZtoY?: boolean | PipelineRef;
14378
15200
  /**
@@ -14899,7 +15721,7 @@ export interface OperationParams {
14899
15721
  * faces.
14900
15722
  *
14901
15723
  * `precision` is the meshing tolerance in model units: smaller values follow curved surfaces
14902
- * more closely and give more triangles. `adjustYtoZ` makes the points Z-up for tools that treat
15724
+ * more closely and give more triangles. `upAxis` `yUpToZUp` makes the points Z-up for tools that treat
14903
15725
  * Z as up, and `reversedPoints` flips the winding of each triangle.
14904
15726
  */
14905
15727
  "occt.shapeFacesToPolygonPoints": {
@@ -14911,8 +15733,13 @@ export interface OperationParams {
14911
15733
  */
14912
15734
  precision?: number | PipelineRef;
14913
15735
  /**
14914
- * When true, the points are made Z-up for tools that treat Z as up: turned a quarter about X under
14915
- * right-handed conventions, with Y and Z swapped otherwise.
15736
+ * `yUpToZUp` makes the points Z-up for tools that treat Z as up, turned about X when right-handed,
15737
+ * else with Y and Z swapped; `keep` leaves them. `zUpToYUp` is refused.
15738
+ */
15739
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
15740
+ /**
15741
+ * When true, the points turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
15742
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
14916
15743
  */
14917
15744
  adjustYtoZ?: boolean | PipelineRef;
14918
15745
  /**
@@ -20042,8 +20869,13 @@ export interface OperationParams {
20042
20869
  */
20043
20870
  precisionShare?: number | PipelineRef;
20044
20871
  /**
20045
- * When true, the meshes are made Z-up for tools that treat Z as up: turned a quarter about X under
20046
- * right-handed conventions, with Y and Z swapped otherwise.
20872
+ * `yUpToZUp` makes the meshes Z-up for tools that treat Z as up, turned about X when right-handed,
20873
+ * else with Y and Z swapped; `keep` leaves them. `zUpToYUp` is refused.
20874
+ */
20875
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
20876
+ /**
20877
+ * When true, the meshes turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
20878
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
20047
20879
  */
20048
20880
  adjustYtoZ?: boolean | PipelineRef;
20049
20881
  /**
@@ -20133,8 +20965,13 @@ export interface OperationParams {
20133
20965
  */
20134
20966
  precisionShare?: number | PipelineRef;
20135
20967
  /**
20136
- * When true, the mesh is made Z-up for tools that treat Z as up: turned a quarter about X under
20137
- * right-handed conventions, with Y and Z swapped otherwise.
20968
+ * `yUpToZUp` makes the mesh Z-up for tools that treat Z as up, turned about X when right-handed,
20969
+ * else with Y and Z swapped; `keep` leaves it. `zUpToYUp` is refused.
20970
+ */
20971
+ upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
20972
+ /**
20973
+ * When true, the mesh turns as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
20974
+ * True wins over `upAxis` at its default; beside another chosen turn it is refused.
20138
20975
  */
20139
20976
  adjustYtoZ?: boolean | PipelineRef;
20140
20977
  /**
@@ -22429,9 +23266,9 @@ export interface OperationParams {
22429
23266
  /**
22430
23267
  * Draws one character as line paths with a simple stroke font.
22431
23268
  *
22432
- * The paths lie flat on the XZ plane, scaled so the character is `height` tall, and are
22433
- * returned with the character's width and height. An unknown character is drawn as a question
22434
- * mark.
23269
+ * The paths lie flat on the XZ plane, the character `height` tall, and come with its width and
23270
+ * height. Accented Latin letters are drawn with their marks, other unknown characters as a
23271
+ * question mark.
22435
23272
  * Example: 'A' at height 10 -> the strokes of an A, 10 units tall
22436
23273
  */
22437
23274
  "text.vectorChar": {