@bitbybit-dev/base 1.5.0 → 1.6.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/lib/api/GlobalCDNProvider.js +1 -1
  2. package/lib/api/bearings/ansi-bearings.constants.d.ts +2 -0
  3. package/lib/api/bearings/ansi-bearings.constants.js +26 -0
  4. package/lib/api/bearings/ansi-bearings.d.ts +4 -0
  5. package/lib/api/bearings/ansi-bearings.js +14 -0
  6. package/lib/api/bearings/bearing-types.d.ts +25 -0
  7. package/lib/api/bearings/bearing-types.js +1 -0
  8. package/lib/api/bearings/bearings.constants.d.ts +1 -0
  9. package/lib/api/bearings/bearings.constants.js +1 -0
  10. package/lib/api/bearings/iso-bearings.constants.d.ts +2 -0
  11. package/lib/api/bearings/iso-bearings.constants.js +30 -0
  12. package/lib/api/bearings/iso-bearings.d.ts +4 -0
  13. package/lib/api/bearings/iso-bearings.js +14 -0
  14. package/lib/api/color-space.d.ts +2 -0
  15. package/lib/api/color-space.js +5 -8
  16. package/lib/api/fasteners/ansi-fasteners.constants.d.ts +16 -0
  17. package/lib/api/fasteners/ansi-fasteners.constants.js +118 -0
  18. package/lib/api/fasteners/ansi-fasteners.d.ts +8 -0
  19. package/lib/api/fasteners/ansi-fasteners.js +64 -0
  20. package/lib/api/fasteners/fastener-types.d.ts +161 -0
  21. package/lib/api/fasteners/fastener-types.js +1 -0
  22. package/lib/api/fasteners/fasteners.constants.d.ts +5 -0
  23. package/lib/api/fasteners/fasteners.constants.js +5 -0
  24. package/lib/api/fasteners/fasteners.d.ts +2 -0
  25. package/lib/api/fasteners/fasteners.js +9 -0
  26. package/lib/api/fasteners/iso-fasteners.constants.d.ts +23 -0
  27. package/lib/api/fasteners/iso-fasteners.constants.js +110 -0
  28. package/lib/api/fasteners/iso-fasteners.d.ts +9 -0
  29. package/lib/api/fasteners/iso-fasteners.js +61 -0
  30. package/lib/api/gears/bevel-gears.d.ts +6 -0
  31. package/lib/api/gears/bevel-gears.js +69 -0
  32. package/lib/api/gears/gear-checks.d.ts +8 -0
  33. package/lib/api/gears/gear-checks.js +69 -0
  34. package/lib/api/gears/gear-pairs.d.ts +4 -0
  35. package/lib/api/gears/gear-pairs.js +140 -0
  36. package/lib/api/gears/gear-types.d.ts +425 -0
  37. package/lib/api/gears/gear-types.js +1 -0
  38. package/lib/api/gears/gears.constants.d.ts +19 -0
  39. package/lib/api/gears/gears.constants.js +19 -0
  40. package/lib/api/gears/gears.d.ts +10 -0
  41. package/lib/api/gears/gears.js +156 -0
  42. package/lib/api/gears/helical-gears.d.ts +5 -0
  43. package/lib/api/gears/helical-gears.js +33 -0
  44. package/lib/api/gears/involute-flank.d.ts +26 -0
  45. package/lib/api/gears/involute-flank.js +158 -0
  46. package/lib/api/gears/racks.d.ts +3 -0
  47. package/lib/api/gears/racks.js +64 -0
  48. package/lib/api/index.d.ts +10 -1
  49. package/lib/api/index.js +0 -1
  50. package/lib/api/inputs/base-inputs.d.ts +450 -3
  51. package/lib/api/inputs/base-inputs.js +12 -0
  52. package/lib/api/inputs/color-inputs.d.ts +14 -0
  53. package/lib/api/inputs/color-inputs.js +19 -0
  54. package/lib/api/inputs/engineering-inputs.d.ts +1539 -0
  55. package/lib/api/inputs/engineering-inputs.js +2181 -0
  56. package/lib/api/inputs/index.d.ts +2 -0
  57. package/lib/api/inputs/index.js +2 -0
  58. package/lib/api/inputs/io-inputs.d.ts +8 -1
  59. package/lib/api/inputs/io-inputs.js +4 -1
  60. package/lib/api/inputs/math-inputs.d.ts +61 -0
  61. package/lib/api/inputs/math-inputs.js +85 -0
  62. package/lib/api/inputs/mesh-inputs.d.ts +170 -0
  63. package/lib/api/inputs/mesh-inputs.js +206 -0
  64. package/lib/api/inputs/point-inputs.d.ts +4 -4
  65. package/lib/api/inputs/polyline-inputs.d.ts +144 -0
  66. package/lib/api/inputs/polyline-inputs.js +151 -0
  67. package/lib/api/inputs/recipes-inputs.d.ts +76 -0
  68. package/lib/api/inputs/recipes-inputs.js +74 -0
  69. package/lib/api/inputs/transforms-inputs.d.ts +34 -0
  70. package/lib/api/inputs/transforms-inputs.js +35 -0
  71. package/lib/api/keys/ansi-keys.constants.d.ts +3 -0
  72. package/lib/api/keys/ansi-keys.constants.js +16 -0
  73. package/lib/api/keys/ansi-keys.d.ts +3 -0
  74. package/lib/api/keys/ansi-keys.js +14 -0
  75. package/lib/api/keys/din-keys.constants.d.ts +3 -0
  76. package/lib/api/keys/din-keys.constants.js +14 -0
  77. package/lib/api/keys/din-keys.d.ts +3 -0
  78. package/lib/api/keys/din-keys.js +13 -0
  79. package/lib/api/keys/key-types.d.ts +17 -0
  80. package/lib/api/keys/key-types.js +1 -0
  81. package/lib/api/keys/keys.constants.d.ts +1 -0
  82. package/lib/api/keys/keys.constants.js +1 -0
  83. package/lib/api/knurls/ansi-knurls.constants.d.ts +4 -0
  84. package/lib/api/knurls/ansi-knurls.constants.js +8 -0
  85. package/lib/api/knurls/ansi-knurls.d.ts +3 -0
  86. package/lib/api/knurls/ansi-knurls.js +20 -0
  87. package/lib/api/knurls/din-knurls.constants.d.ts +2 -0
  88. package/lib/api/knurls/din-knurls.constants.js +2 -0
  89. package/lib/api/knurls/din-knurls.d.ts +3 -0
  90. package/lib/api/knurls/din-knurls.js +19 -0
  91. package/lib/api/knurls/knurl-types.d.ts +24 -0
  92. package/lib/api/knurls/knurl-types.js +1 -0
  93. package/lib/api/knurls/knurls.constants.d.ts +1 -0
  94. package/lib/api/knurls/knurls.constants.js +1 -0
  95. package/lib/api/knurls/knurls.d.ts +2 -0
  96. package/lib/api/knurls/knurls.js +9 -0
  97. package/lib/api/recipes/checks.d.ts +15 -0
  98. package/lib/api/recipes/checks.js +85 -0
  99. package/lib/api/recipes/limits.constants.d.ts +4 -0
  100. package/lib/api/recipes/limits.constants.js +4 -0
  101. package/lib/api/recipes/sources.d.ts +0 -13
  102. package/lib/api/recipes/sources.js +3 -15
  103. package/lib/api/recipes/surface-mesh.d.ts +0 -14
  104. package/lib/api/recipes/surface-mesh.js +8 -21
  105. package/lib/api/recipes/validate-brep.d.ts +2 -0
  106. package/lib/api/recipes/validate-brep.js +330 -0
  107. package/lib/api/recipes/validate.d.ts +0 -31
  108. package/lib/api/recipes/validate.js +7 -115
  109. package/lib/api/resolved-inputs/index.d.ts +80 -0
  110. package/lib/api/retaining-rings/ansi-retaining-rings.constants.d.ts +4 -0
  111. package/lib/api/retaining-rings/ansi-retaining-rings.constants.js +93 -0
  112. package/lib/api/retaining-rings/ansi-retaining-rings.d.ts +4 -0
  113. package/lib/api/retaining-rings/ansi-retaining-rings.js +20 -0
  114. package/lib/api/retaining-rings/din-retaining-rings.constants.d.ts +3 -0
  115. package/lib/api/retaining-rings/din-retaining-rings.constants.js +115 -0
  116. package/lib/api/retaining-rings/din-retaining-rings.d.ts +4 -0
  117. package/lib/api/retaining-rings/din-retaining-rings.js +20 -0
  118. package/lib/api/retaining-rings/retaining-ring-types.d.ts +30 -0
  119. package/lib/api/retaining-rings/retaining-ring-types.js +1 -0
  120. package/lib/api/retaining-rings/retaining-rings.constants.d.ts +1 -0
  121. package/lib/api/retaining-rings/retaining-rings.constants.js +1 -0
  122. package/lib/api/retaining-rings/retaining-rings.d.ts +2 -0
  123. package/lib/api/retaining-rings/retaining-rings.js +9 -0
  124. package/lib/api/services/base-bitbybit.d.ts +42 -0
  125. package/lib/api/services/base-bitbybit.js +43 -0
  126. package/lib/api/services/color.d.ts +35 -2
  127. package/lib/api/services/color.js +48 -12
  128. package/lib/api/services/engineering/engineering.d.ts +12 -0
  129. package/lib/api/services/engineering/engineering.js +13 -0
  130. package/lib/api/services/engineering/index.d.ts +2 -0
  131. package/lib/api/services/engineering/index.js +2 -0
  132. package/lib/api/services/engineering/mechanical/bearings-ansi.d.ts +40 -0
  133. package/lib/api/services/engineering/mechanical/bearings-ansi.js +47 -0
  134. package/lib/api/services/engineering/mechanical/bearings-iso.d.ts +39 -0
  135. package/lib/api/services/engineering/mechanical/bearings-iso.js +46 -0
  136. package/lib/api/services/engineering/mechanical/bearings.d.ts +14 -0
  137. package/lib/api/services/engineering/mechanical/bearings.js +15 -0
  138. package/lib/api/services/engineering/mechanical/fasteners-ansi.d.ts +109 -0
  139. package/lib/api/services/engineering/mechanical/fasteners-ansi.js +133 -0
  140. package/lib/api/services/engineering/mechanical/fasteners-iso.d.ts +123 -0
  141. package/lib/api/services/engineering/mechanical/fasteners-iso.js +151 -0
  142. package/lib/api/services/engineering/mechanical/fasteners.d.ts +13 -0
  143. package/lib/api/services/engineering/mechanical/fasteners.js +14 -0
  144. package/lib/api/services/engineering/mechanical/gears.d.ts +267 -0
  145. package/lib/api/services/engineering/mechanical/gears.js +318 -0
  146. package/lib/api/services/engineering/mechanical/index.d.ts +24 -0
  147. package/lib/api/services/engineering/mechanical/index.js +24 -0
  148. package/lib/api/services/engineering/mechanical/keys-ansi.d.ts +27 -0
  149. package/lib/api/services/engineering/mechanical/keys-ansi.js +32 -0
  150. package/lib/api/services/engineering/mechanical/keys-din.d.ts +26 -0
  151. package/lib/api/services/engineering/mechanical/keys-din.js +31 -0
  152. package/lib/api/services/engineering/mechanical/keys.d.ts +14 -0
  153. package/lib/api/services/engineering/mechanical/keys.js +15 -0
  154. package/lib/api/services/engineering/mechanical/knurls-ansi.d.ts +26 -0
  155. package/lib/api/services/engineering/mechanical/knurls-ansi.js +31 -0
  156. package/lib/api/services/engineering/mechanical/knurls-din.d.ts +26 -0
  157. package/lib/api/services/engineering/mechanical/knurls-din.js +31 -0
  158. package/lib/api/services/engineering/mechanical/knurls.d.ts +14 -0
  159. package/lib/api/services/engineering/mechanical/knurls.js +15 -0
  160. package/lib/api/services/engineering/mechanical/mechanical.d.ts +29 -0
  161. package/lib/api/services/engineering/mechanical/mechanical.js +30 -0
  162. package/lib/api/services/engineering/mechanical/retaining-rings-ansi.d.ts +43 -0
  163. package/lib/api/services/engineering/mechanical/retaining-rings-ansi.js +51 -0
  164. package/lib/api/services/engineering/mechanical/retaining-rings-din.d.ts +43 -0
  165. package/lib/api/services/engineering/mechanical/retaining-rings-din.js +51 -0
  166. package/lib/api/services/engineering/mechanical/retaining-rings.d.ts +13 -0
  167. package/lib/api/services/engineering/mechanical/retaining-rings.js +14 -0
  168. package/lib/api/services/engineering/mechanical/splines-ansi.d.ts +27 -0
  169. package/lib/api/services/engineering/mechanical/splines-ansi.js +32 -0
  170. package/lib/api/services/engineering/mechanical/splines-din.d.ts +26 -0
  171. package/lib/api/services/engineering/mechanical/splines-din.js +31 -0
  172. package/lib/api/services/engineering/mechanical/splines.d.ts +13 -0
  173. package/lib/api/services/engineering/mechanical/splines.js +14 -0
  174. package/lib/api/services/engineering/mechanical/springs.d.ts +27 -0
  175. package/lib/api/services/engineering/mechanical/springs.js +31 -0
  176. package/lib/api/services/engineering/mechanical/threads-ansi.d.ts +40 -0
  177. package/lib/api/services/engineering/mechanical/threads-ansi.js +48 -0
  178. package/lib/api/services/engineering/mechanical/threads-iso.d.ts +40 -0
  179. package/lib/api/services/engineering/mechanical/threads-iso.js +48 -0
  180. package/lib/api/services/engineering/mechanical/threads.d.ts +13 -0
  181. package/lib/api/services/engineering/mechanical/threads.js +14 -0
  182. package/lib/api/services/frame.js +3 -3
  183. package/lib/api/services/geometry-helper.js +8 -111
  184. package/lib/api/services/helpers/color/color-space.d.ts +2 -0
  185. package/lib/api/services/helpers/color/color-space.js +12 -0
  186. package/lib/api/services/helpers/{nurbs.d.ts → curves/nurbs.d.ts} +1 -1
  187. package/lib/api/services/helpers/{surface-triangulation.d.ts → curves/surface-triangulation.d.ts} +2 -2
  188. package/lib/api/services/helpers/{surface-triangulation.js → curves/surface-triangulation.js} +14 -8
  189. package/lib/api/services/helpers/{dxf → files/dxf}/dxf-generator.d.ts +2 -1
  190. package/lib/api/services/helpers/{dxf → files/dxf}/dxf-generator.js +19 -5
  191. package/lib/api/services/helpers/files/dxf/dxf.constants.d.ts +4 -0
  192. package/lib/api/services/helpers/files/dxf/dxf.constants.js +4 -0
  193. package/lib/api/services/helpers/{dxf → files/dxf}/dxf.d.ts +1 -1
  194. package/lib/api/services/helpers/{dxf → files/dxf}/dxf.js +2 -2
  195. package/lib/api/services/helpers/files/glb.constants.d.ts +11 -0
  196. package/lib/api/services/helpers/files/glb.constants.js +11 -0
  197. package/lib/api/services/helpers/files/glb.d.ts +1 -0
  198. package/lib/api/services/helpers/files/glb.js +69 -0
  199. package/lib/api/services/helpers/files/gzip.constants.d.ts +11 -0
  200. package/lib/api/services/helpers/files/gzip.constants.js +11 -0
  201. package/lib/api/services/helpers/files/gzip.d.ts +2 -0
  202. package/lib/api/services/helpers/files/gzip.js +52 -0
  203. package/lib/api/services/helpers/{inflate.constants.d.ts → files/inflate.constants.d.ts} +1 -0
  204. package/lib/api/services/helpers/{inflate.constants.js → files/inflate.constants.js} +1 -0
  205. package/lib/api/services/helpers/{inflate.d.ts → files/inflate.d.ts} +1 -1
  206. package/lib/api/services/helpers/{inflate.js → files/inflate.js} +5 -4
  207. package/lib/api/services/helpers/{zip.d.ts → files/zip.d.ts} +1 -1
  208. package/lib/api/services/helpers/geometry/arcs.d.ts +9 -0
  209. package/lib/api/services/helpers/{arcs.js → geometry/arcs.js} +7 -0
  210. package/lib/api/services/helpers/{frame-axes.d.ts → geometry/frame-axes.d.ts} +8 -5
  211. package/lib/api/services/helpers/{frame-axes.js → geometry/frame-axes.js} +21 -9
  212. package/lib/api/services/helpers/geometry/lengths.constants.d.ts +4 -0
  213. package/lib/api/services/helpers/geometry/lengths.constants.js +3 -0
  214. package/lib/api/services/helpers/geometry/lengths.d.ts +7 -0
  215. package/lib/api/services/helpers/geometry/lengths.js +20 -0
  216. package/lib/api/services/helpers/geometry/matrices.constants.d.ts +8 -0
  217. package/lib/api/services/helpers/geometry/matrices.constants.js +7 -0
  218. package/lib/api/services/helpers/geometry/matrices.d.ts +17 -0
  219. package/lib/api/services/helpers/{matrices.js → geometry/matrices.js} +28 -17
  220. package/lib/api/services/helpers/{paths.d.ts → geometry/paths.d.ts} +2 -1
  221. package/lib/api/services/helpers/{paths.js → geometry/paths.js} +36 -30
  222. package/lib/api/services/helpers/{polygons.d.ts → geometry/polygons.d.ts} +1 -1
  223. package/lib/api/services/helpers/geometry/polygons.js +111 -0
  224. package/lib/api/services/helpers/geometry/scalars.d.ts +9 -0
  225. package/lib/api/services/helpers/geometry/scalars.js +34 -0
  226. package/lib/api/services/helpers/{triangulation.js → geometry/triangulation.js} +11 -6
  227. package/lib/api/services/helpers/geometry/vector-grid.d.ts +12 -0
  228. package/lib/api/services/helpers/geometry/vector-grid.js +149 -0
  229. package/lib/api/services/helpers/{vectors.d.ts → geometry/vectors.d.ts} +8 -1
  230. package/lib/api/services/helpers/geometry/vectors.js +43 -0
  231. package/lib/api/services/helpers/helper-types.d.ts +57 -0
  232. package/lib/api/services/helpers/mesh/mesh-normals.d.ts +21 -0
  233. package/lib/api/services/helpers/{mesh-normals.js → mesh/mesh-normals.js} +54 -65
  234. package/lib/api/services/helpers/mesh/mesh-orientation.d.ts +24 -0
  235. package/lib/api/services/helpers/mesh/mesh-orientation.js +104 -0
  236. package/lib/api/services/helpers/{mesh-primitives.d.ts → mesh/mesh-primitives.d.ts} +1 -1
  237. package/lib/api/services/helpers/{mesh-primitives.js → mesh/mesh-primitives.js} +6 -5
  238. package/lib/api/services/helpers/mesh/mesh-proximity.constants.d.ts +7 -0
  239. package/lib/api/services/helpers/mesh/mesh-proximity.constants.js +11 -0
  240. package/lib/api/services/helpers/mesh/mesh-proximity.d.ts +11 -0
  241. package/lib/api/services/helpers/mesh/mesh-proximity.js +382 -0
  242. package/lib/api/services/index.d.ts +3 -0
  243. package/lib/api/services/index.js +3 -0
  244. package/lib/api/services/io.d.ts +1 -1
  245. package/lib/api/services/io.js +1 -1
  246. package/lib/api/services/line.js +2 -3
  247. package/lib/api/services/math.d.ts +47 -0
  248. package/lib/api/services/math.js +77 -10
  249. package/lib/api/services/mesh.d.ts +174 -2
  250. package/lib/api/services/mesh.js +305 -7
  251. package/lib/api/services/point.js +4 -10
  252. package/lib/api/services/polyline-types.d.ts +6 -0
  253. package/lib/api/services/polyline-types.js +1 -0
  254. package/lib/api/services/polyline.d.ts +163 -1
  255. package/lib/api/services/polyline.js +270 -13
  256. package/lib/api/services/recipes.d.ts +80 -0
  257. package/lib/api/services/recipes.js +107 -0
  258. package/lib/api/services/transforms.d.ts +74 -2
  259. package/lib/api/services/transforms.js +100 -3
  260. package/lib/api/services/vector.d.ts +4 -3
  261. package/lib/api/services/vector.js +14 -14
  262. package/lib/api/splines/ansi-splines.constants.d.ts +9 -0
  263. package/lib/api/splines/ansi-splines.constants.js +9 -0
  264. package/lib/api/splines/ansi-splines.d.ts +3 -0
  265. package/lib/api/splines/ansi-splines.js +28 -0
  266. package/lib/api/splines/din-splines.constants.d.ts +12 -0
  267. package/lib/api/splines/din-splines.constants.js +12 -0
  268. package/lib/api/splines/din-splines.d.ts +3 -0
  269. package/lib/api/splines/din-splines.js +38 -0
  270. package/lib/api/splines/spline-types.d.ts +32 -0
  271. package/lib/api/splines/spline-types.js +1 -0
  272. package/lib/api/splines/splines.constants.d.ts +1 -0
  273. package/lib/api/splines/splines.constants.js +1 -0
  274. package/lib/api/springs/spring-types.d.ts +26 -0
  275. package/lib/api/springs/spring-types.js +1 -0
  276. package/lib/api/springs/springs.constants.d.ts +9 -0
  277. package/lib/api/springs/springs.constants.js +9 -0
  278. package/lib/api/springs/springs.d.ts +2 -0
  279. package/lib/api/springs/springs.js +50 -0
  280. package/lib/api/threads/ansi-threads.constants.d.ts +6 -0
  281. package/lib/api/threads/ansi-threads.constants.js +27 -0
  282. package/lib/api/threads/ansi-threads.d.ts +4 -0
  283. package/lib/api/threads/ansi-threads.js +50 -0
  284. package/lib/api/threads/iso-threads.constants.d.ts +5 -0
  285. package/lib/api/threads/iso-threads.constants.js +20 -0
  286. package/lib/api/threads/iso-threads.d.ts +4 -0
  287. package/lib/api/threads/iso-threads.js +32 -0
  288. package/lib/api/threads/thread-profile.constants.d.ts +3 -0
  289. package/lib/api/threads/thread-profile.constants.js +3 -0
  290. package/lib/api/threads/thread-types.d.ts +66 -0
  291. package/lib/api/threads/thread-types.js +1 -0
  292. package/package.json +1 -1
  293. package/lib/api/recipes/index.d.ts +0 -4
  294. package/lib/api/recipes/index.js +0 -3
  295. package/lib/api/services/helpers/arcs.d.ts +0 -6
  296. package/lib/api/services/helpers/matrices.constants.d.ts +0 -2
  297. package/lib/api/services/helpers/matrices.constants.js +0 -2
  298. package/lib/api/services/helpers/matrices.d.ts +0 -25
  299. package/lib/api/services/helpers/mesh-normals.d.ts +0 -11
  300. package/lib/api/services/helpers/polygons.js +0 -59
  301. package/lib/api/services/helpers/vectors.js +0 -17
  302. /package/lib/api/services/helpers/{nurbs.js → curves/nurbs.js} +0 -0
  303. /package/lib/api/services/helpers/{crc32.d.ts → files/crc32.d.ts} +0 -0
  304. /package/lib/api/services/helpers/{crc32.js → files/crc32.js} +0 -0
  305. /package/lib/api/services/helpers/{zip.constants.d.ts → files/zip.constants.d.ts} +0 -0
  306. /package/lib/api/services/helpers/{zip.constants.js → files/zip.constants.js} +0 -0
  307. /package/lib/api/services/helpers/{zip.js → files/zip.js} +0 -0
  308. /package/lib/api/services/helpers/{triangulation.d.ts → geometry/triangulation.d.ts} +0 -0
  309. /package/lib/api/services/helpers/{mesh-measures.d.ts → mesh/mesh-measures.d.ts} +0 -0
  310. /package/lib/api/services/helpers/{mesh-measures.js → mesh/mesh-measures.js} +0 -0
  311. /package/lib/api/services/helpers/{mesh-primitives.constants.d.ts → mesh/mesh-primitives.constants.d.ts} +0 -0
  312. /package/lib/api/services/helpers/{mesh-primitives.constants.js → mesh/mesh-primitives.constants.js} +0 -0
@@ -0,0 +1,2181 @@
1
+ /* eslint-disable @typescript-eslint/no-namespace */
2
+ import { Base } from "./base-inputs";
3
+ // GENERATED by scripts/gen-inputs.mjs from the fragments in ./engineering/ - do not edit; edit a fragment and run `npm run gen:inputs`.
4
+ /**
5
+ * Parameters for `engineering`: the teeth of gears, and the sizes of fasteners, threads, ball
6
+ * bearings, keys, retaining rings, splines, knurls and compression springs by the standard that
7
+ * sets them. Each standard's sizes come in the `unit` asked for; gears and springs in model units.
8
+ */
9
+ export var Engineering;
10
+ (function (Engineering) {
11
+ /**
12
+ * An ISO metric thread size, from M1.6 to M24: the nominal diameter in millimetres after the M.
13
+ * @optionLabels value
14
+ */
15
+ let isoThreadSizeEnum;
16
+ (function (isoThreadSizeEnum) {
17
+ isoThreadSizeEnum["m1_6"] = "M1.6";
18
+ isoThreadSizeEnum["m2"] = "M2";
19
+ isoThreadSizeEnum["m2_5"] = "M2.5";
20
+ isoThreadSizeEnum["m3"] = "M3";
21
+ isoThreadSizeEnum["m4"] = "M4";
22
+ isoThreadSizeEnum["m5"] = "M5";
23
+ isoThreadSizeEnum["m6"] = "M6";
24
+ isoThreadSizeEnum["m8"] = "M8";
25
+ isoThreadSizeEnum["m10"] = "M10";
26
+ isoThreadSizeEnum["m12"] = "M12";
27
+ isoThreadSizeEnum["m14"] = "M14";
28
+ isoThreadSizeEnum["m16"] = "M16";
29
+ isoThreadSizeEnum["m20"] = "M20";
30
+ isoThreadSizeEnum["m24"] = "M24";
31
+ })(isoThreadSizeEnum = Engineering.isoThreadSizeEnum || (Engineering.isoThreadSizeEnum = {}));
32
+ /**
33
+ * How much room a clearance hole leaves around its screw: close (fine), normal (medium) or loose
34
+ * (coarse), as ISO 273 and ASME B18.2.8 grade it.
35
+ */
36
+ let clearanceFitEnum;
37
+ (function (clearanceFitEnum) {
38
+ clearanceFitEnum["close"] = "close";
39
+ clearanceFitEnum["normal"] = "normal";
40
+ clearanceFitEnum["loose"] = "loose";
41
+ })(clearanceFitEnum = Engineering.clearanceFitEnum || (Engineering.clearanceFitEnum = {}));
42
+ /**
43
+ * The point of an ISO hexagon socket set screw: flat (ISO 4026), cone (ISO 4027), dog (ISO 4028)
44
+ * or cup (ISO 4029).
45
+ */
46
+ let isoSetScrewPointEnum;
47
+ (function (isoSetScrewPointEnum) {
48
+ isoSetScrewPointEnum["flat"] = "flat";
49
+ isoSetScrewPointEnum["cone"] = "cone";
50
+ isoSetScrewPointEnum["dog"] = "dog";
51
+ isoSetScrewPointEnum["cup"] = "cup";
52
+ })(isoSetScrewPointEnum = Engineering.isoSetScrewPointEnum || (Engineering.isoSetScrewPointEnum = {}));
53
+ /**
54
+ * A Unified inch thread size, from #0 to 1 inch: a number for the small sizes, a fraction of an
55
+ * inch for the larger ones.
56
+ * @optionLabels value
57
+ */
58
+ let ansiThreadSizeEnum;
59
+ (function (ansiThreadSizeEnum) {
60
+ ansiThreadSizeEnum["n0"] = "#0";
61
+ ansiThreadSizeEnum["n1"] = "#1";
62
+ ansiThreadSizeEnum["n2"] = "#2";
63
+ ansiThreadSizeEnum["n3"] = "#3";
64
+ ansiThreadSizeEnum["n4"] = "#4";
65
+ ansiThreadSizeEnum["n5"] = "#5";
66
+ ansiThreadSizeEnum["n6"] = "#6";
67
+ ansiThreadSizeEnum["n8"] = "#8";
68
+ ansiThreadSizeEnum["n10"] = "#10";
69
+ ansiThreadSizeEnum["n12"] = "#12";
70
+ ansiThreadSizeEnum["in1_4"] = "1/4";
71
+ ansiThreadSizeEnum["in5_16"] = "5/16";
72
+ ansiThreadSizeEnum["in3_8"] = "3/8";
73
+ ansiThreadSizeEnum["in7_16"] = "7/16";
74
+ ansiThreadSizeEnum["in1_2"] = "1/2";
75
+ ansiThreadSizeEnum["in9_16"] = "9/16";
76
+ ansiThreadSizeEnum["in5_8"] = "5/8";
77
+ ansiThreadSizeEnum["in3_4"] = "3/4";
78
+ ansiThreadSizeEnum["in7_8"] = "7/8";
79
+ ansiThreadSizeEnum["in1"] = "1";
80
+ })(ansiThreadSizeEnum = Engineering.ansiThreadSizeEnum || (Engineering.ansiThreadSizeEnum = {}));
81
+ /**
82
+ * The series of a Unified inch thread: coarse (UNC) or fine (UNF).
83
+ * @optionLabels value
84
+ */
85
+ let ansiThreadSeriesEnum;
86
+ (function (ansiThreadSeriesEnum) {
87
+ ansiThreadSeriesEnum["unc"] = "UNC";
88
+ ansiThreadSeriesEnum["unf"] = "UNF";
89
+ })(ansiThreadSeriesEnum = Engineering.ansiThreadSeriesEnum || (Engineering.ansiThreadSeriesEnum = {}));
90
+ /**
91
+ * The point of an ASME B18.3 hexagon socket set screw: cup, flat, cone, oval or half dog.
92
+ */
93
+ let ansiSetScrewPointEnum;
94
+ (function (ansiSetScrewPointEnum) {
95
+ ansiSetScrewPointEnum["cup"] = "cup";
96
+ ansiSetScrewPointEnum["flat"] = "flat";
97
+ ansiSetScrewPointEnum["cone"] = "cone";
98
+ ansiSetScrewPointEnum["oval"] = "oval";
99
+ ansiSetScrewPointEnum["halfDog"] = "halfDog";
100
+ })(ansiSetScrewPointEnum = Engineering.ansiSetScrewPointEnum || (Engineering.ansiSetScrewPointEnum = {}));
101
+ /**
102
+ * The series of an ASME B18.22.1 type A plain washer: narrow, the former SAE sizes, or wide, the
103
+ * former standard plate sizes.
104
+ */
105
+ let ansiWasherSeriesEnum;
106
+ (function (ansiWasherSeriesEnum) {
107
+ ansiWasherSeriesEnum["narrow"] = "narrow";
108
+ ansiWasherSeriesEnum["wide"] = "wide";
109
+ })(ansiWasherSeriesEnum = Engineering.ansiWasherSeriesEnum || (Engineering.ansiWasherSeriesEnum = {}));
110
+ /**
111
+ * An inch deep groove ball bearing by its R-series designation: the miniature R1-4 to R1810, and
112
+ * R2 to R20, whose number is the bore in sixteenths of an inch.
113
+ * @optionLabels value
114
+ */
115
+ let ansiBallBearingEnum;
116
+ (function (ansiBallBearingEnum) {
117
+ ansiBallBearingEnum["r1_4"] = "R1-4";
118
+ ansiBallBearingEnum["r1_5"] = "R1-5";
119
+ ansiBallBearingEnum["r133"] = "R133";
120
+ ansiBallBearingEnum["r144"] = "R144";
121
+ ansiBallBearingEnum["r155"] = "R155";
122
+ ansiBallBearingEnum["r156"] = "R156";
123
+ ansiBallBearingEnum["r166"] = "R166";
124
+ ansiBallBearingEnum["r168"] = "R168";
125
+ ansiBallBearingEnum["r188"] = "R188";
126
+ ansiBallBearingEnum["r1810"] = "R1810";
127
+ ansiBallBearingEnum["r2"] = "R2";
128
+ ansiBallBearingEnum["r2_5"] = "R2-5";
129
+ ansiBallBearingEnum["r2_6"] = "R2-6";
130
+ ansiBallBearingEnum["r3"] = "R3";
131
+ ansiBallBearingEnum["r4"] = "R4";
132
+ ansiBallBearingEnum["r4a"] = "R4A";
133
+ ansiBallBearingEnum["r6"] = "R6";
134
+ ansiBallBearingEnum["r8"] = "R8";
135
+ ansiBallBearingEnum["r10"] = "R10";
136
+ ansiBallBearingEnum["r12"] = "R12";
137
+ ansiBallBearingEnum["r14"] = "R14";
138
+ ansiBallBearingEnum["r16"] = "R16";
139
+ ansiBallBearingEnum["r18"] = "R18";
140
+ ansiBallBearingEnum["r20"] = "R20";
141
+ })(ansiBallBearingEnum = Engineering.ansiBallBearingEnum || (Engineering.ansiBallBearingEnum = {}));
142
+ /**
143
+ * The diametral pitch of an ANSI B92.1 involute spline as the standard writes it: the pitch over
144
+ * the stub pitch that sets the teeth's depth, such as 16/32. These are the pitches the standard
145
+ * gives its 30 degree flat root side fit, 2.5/5 to 32/64; the finer ones it makes only with a
146
+ * fillet root or at 45 degrees.
147
+ * @optionLabels value
148
+ */
149
+ let ansiSplinePitchEnum;
150
+ (function (ansiSplinePitchEnum) {
151
+ ansiSplinePitchEnum["p2_5_5"] = "2.5/5";
152
+ ansiSplinePitchEnum["p3_6"] = "3/6";
153
+ ansiSplinePitchEnum["p4_8"] = "4/8";
154
+ ansiSplinePitchEnum["p5_10"] = "5/10";
155
+ ansiSplinePitchEnum["p6_12"] = "6/12";
156
+ ansiSplinePitchEnum["p8_16"] = "8/16";
157
+ ansiSplinePitchEnum["p10_20"] = "10/20";
158
+ ansiSplinePitchEnum["p12_24"] = "12/24";
159
+ ansiSplinePitchEnum["p16_32"] = "16/32";
160
+ ansiSplinePitchEnum["p20_40"] = "20/40";
161
+ ansiSplinePitchEnum["p24_48"] = "24/48";
162
+ ansiSplinePitchEnum["p32_64"] = "32/64";
163
+ })(ansiSplinePitchEnum = Engineering.ansiSplinePitchEnum || (Engineering.ansiSplinePitchEnum = {}));
164
+ /**
165
+ * The standard a key and its keyway are sized by: the metric DIN 6885 or the inch ANSI B17.1.
166
+ */
167
+ let keyStandardEnum;
168
+ (function (keyStandardEnum) {
169
+ keyStandardEnum["din"] = "din";
170
+ keyStandardEnum["ansi"] = "ansi";
171
+ })(keyStandardEnum = Engineering.keyStandardEnum || (Engineering.keyStandardEnum = {}));
172
+ /**
173
+ * Where a retaining ring sits: on a shaft (DIN 471, or an external ASME B18.27 ring) or in a bore
174
+ * (DIN 472, or an internal one).
175
+ */
176
+ let retainingRingKindEnum;
177
+ (function (retainingRingKindEnum) {
178
+ retainingRingKindEnum["shaft"] = "shaft";
179
+ retainingRingKindEnum["bore"] = "bore";
180
+ })(retainingRingKindEnum = Engineering.retainingRingKindEnum || (Engineering.retainingRingKindEnum = {}));
181
+ /**
182
+ * The pattern of a knurl: straight grooves (DIN 82 RAA), helical grooves turning left (RBL) or
183
+ * right (RBR), or both crossing in a raised diamond (RGE); ASME B94.6 names the helical ones
184
+ * diagonal.
185
+ */
186
+ let knurlPatternEnum;
187
+ (function (knurlPatternEnum) {
188
+ knurlPatternEnum["straight"] = "straight";
189
+ knurlPatternEnum["left"] = "left";
190
+ knurlPatternEnum["right"] = "right";
191
+ knurlPatternEnum["diamond"] = "diamond";
192
+ })(knurlPatternEnum = Engineering.knurlPatternEnum || (Engineering.knurlPatternEnum = {}));
193
+ /**
194
+ * A deep groove ball bearing by its ISO designation, from the 60 and 62 series and the small 62x
195
+ * and 60x sizes.
196
+ * @optionLabels value
197
+ */
198
+ let isoBallBearingEnum;
199
+ (function (isoBallBearingEnum) {
200
+ isoBallBearingEnum["b623"] = "623";
201
+ isoBallBearingEnum["b624"] = "624";
202
+ isoBallBearingEnum["b625"] = "625";
203
+ isoBallBearingEnum["b626"] = "626";
204
+ isoBallBearingEnum["b608"] = "608";
205
+ isoBallBearingEnum["b609"] = "609";
206
+ isoBallBearingEnum["b6000"] = "6000";
207
+ isoBallBearingEnum["b6001"] = "6001";
208
+ isoBallBearingEnum["b6002"] = "6002";
209
+ isoBallBearingEnum["b6003"] = "6003";
210
+ isoBallBearingEnum["b6004"] = "6004";
211
+ isoBallBearingEnum["b6005"] = "6005";
212
+ isoBallBearingEnum["b6006"] = "6006";
213
+ isoBallBearingEnum["b6007"] = "6007";
214
+ isoBallBearingEnum["b6008"] = "6008";
215
+ isoBallBearingEnum["b6009"] = "6009";
216
+ isoBallBearingEnum["b6010"] = "6010";
217
+ isoBallBearingEnum["b6200"] = "6200";
218
+ isoBallBearingEnum["b6201"] = "6201";
219
+ isoBallBearingEnum["b6202"] = "6202";
220
+ isoBallBearingEnum["b6203"] = "6203";
221
+ isoBallBearingEnum["b6204"] = "6204";
222
+ isoBallBearingEnum["b6205"] = "6205";
223
+ isoBallBearingEnum["b6206"] = "6206";
224
+ isoBallBearingEnum["b6207"] = "6207";
225
+ isoBallBearingEnum["b6208"] = "6208";
226
+ isoBallBearingEnum["b6209"] = "6209";
227
+ isoBallBearingEnum["b6210"] = "6210";
228
+ })(isoBallBearingEnum = Engineering.isoBallBearingEnum || (Engineering.isoBallBearingEnum = {}));
229
+ /**
230
+ * The teeth of an involute spur gear, shared by `engineering.mechanical.gears.spurGearSizes` and
231
+ * `engineering.mechanical.gears.spurGearOutline`: their size, their shape and how loosely they fit.
232
+ */
233
+ class SpurGearSharedDto {
234
+ constructor() {
235
+ /**
236
+ * The size of the teeth: the pitch circle's diameter divided by the number of teeth, in
237
+ * model units. Gears mesh only with gears of the same module.
238
+ * @default 0.2
239
+ * @minimum 0
240
+ * @exclusiveMinimum true
241
+ * @maximum Infinity
242
+ * @step 0.05
243
+ */
244
+ this.module = 0.2;
245
+ /**
246
+ * How many teeth the gear has, at least 3.
247
+ * @default 20
248
+ * @minimum 3
249
+ * @maximum Infinity
250
+ * @step 1
251
+ */
252
+ this.teeth = 20;
253
+ /**
254
+ * The angle at which meshing teeth push on each other, in degrees; 20 is the common
255
+ * standard, and meshing gears share it.
256
+ * @default 20
257
+ * @minimum 0
258
+ * @exclusiveMinimum true
259
+ * @maximum 45
260
+ * @exclusiveMaximum true
261
+ * @step 0.5
262
+ */
263
+ this.pressureAngle = 20;
264
+ /**
265
+ * How far the teeth are moved out from the pitch circle, as a share of the module. Positive
266
+ * values give thicker teeth that small gears need, negative values thinner ones.
267
+ * @default 0
268
+ * @minimum -Infinity
269
+ * @maximum Infinity
270
+ * @step 0.05
271
+ */
272
+ this.profileShift = 0;
273
+ /**
274
+ * How much thinner each tooth is at the pitch circle than a tight fit, in model units; two
275
+ * meshing gears leave the sum of their backlash between their teeth.
276
+ * @default 0
277
+ * @minimum 0
278
+ * @maximum Infinity
279
+ * @step 0.01
280
+ */
281
+ this.backlash = 0;
282
+ /**
283
+ * How far the teeth reach above the pitch circle, as a share of the module.
284
+ * @default 1
285
+ * @minimum 0
286
+ * @exclusiveMinimum true
287
+ * @maximum Infinity
288
+ * @step 0.05
289
+ */
290
+ this.addendum = 1;
291
+ /**
292
+ * How deep the gaps reach below the pitch circle, as a share of the module; more than
293
+ * `addendum` leaves room for the tips of the mating gear.
294
+ * @default 1.25
295
+ * @minimum 0
296
+ * @exclusiveMinimum true
297
+ * @maximum Infinity
298
+ * @step 0.05
299
+ */
300
+ this.dedendum = 1.25;
301
+ /**
302
+ * The radius that rounds the bottom of each gap, as a share of the module. It shrinks to
303
+ * fit a narrow gap, and 0 leaves a sharp corner.
304
+ * @default 0.38
305
+ * @minimum 0
306
+ * @maximum Infinity
307
+ * @step 0.01
308
+ */
309
+ this.rootFillet = 0.38;
310
+ }
311
+ }
312
+ Engineering.SpurGearSharedDto = SpurGearSharedDto;
313
+ /**
314
+ * The teeth of a spur gear for `engineering.mechanical.gears.spurGearSizes`.
315
+ */
316
+ class SpurGearSizesDto extends SpurGearSharedDto {
317
+ constructor(module, teeth, pressureAngle, profileShift, backlash, addendum, dedendum, rootFillet) {
318
+ super();
319
+ if (module !== undefined) {
320
+ this.module = module;
321
+ }
322
+ if (teeth !== undefined) {
323
+ this.teeth = teeth;
324
+ }
325
+ if (pressureAngle !== undefined) {
326
+ this.pressureAngle = pressureAngle;
327
+ }
328
+ if (profileShift !== undefined) {
329
+ this.profileShift = profileShift;
330
+ }
331
+ if (backlash !== undefined) {
332
+ this.backlash = backlash;
333
+ }
334
+ if (addendum !== undefined) {
335
+ this.addendum = addendum;
336
+ }
337
+ if (dedendum !== undefined) {
338
+ this.dedendum = dedendum;
339
+ }
340
+ if (rootFillet !== undefined) {
341
+ this.rootFillet = rootFillet;
342
+ }
343
+ }
344
+ }
345
+ Engineering.SpurGearSizesDto = SpurGearSizesDto;
346
+ /**
347
+ * The teeth of a spur gear for `engineering.mechanical.gears.spurGearOutline`, with how far it is turned and
348
+ * how finely its curves become points.
349
+ */
350
+ class SpurGearOutlineDto extends SpurGearSharedDto {
351
+ constructor(rotation, segments, module, teeth, pressureAngle, profileShift, backlash, addendum, dedendum, rootFillet) {
352
+ super();
353
+ /**
354
+ * How far the gear is turned about its centre, in degrees. At 0 a tooth points along +X.
355
+ * @default 0
356
+ * @minimum -Infinity
357
+ * @maximum Infinity
358
+ * @step 1
359
+ */
360
+ this.rotation = 0;
361
+ /**
362
+ * How many straight pieces stand for each curve of the outline: each tip, flank piece and
363
+ * root.
364
+ * @default 8
365
+ * @minimum 1
366
+ * @maximum Infinity
367
+ * @step 1
368
+ */
369
+ this.segments = 8;
370
+ if (rotation !== undefined) {
371
+ this.rotation = rotation;
372
+ }
373
+ if (segments !== undefined) {
374
+ this.segments = segments;
375
+ }
376
+ if (module !== undefined) {
377
+ this.module = module;
378
+ }
379
+ if (teeth !== undefined) {
380
+ this.teeth = teeth;
381
+ }
382
+ if (pressureAngle !== undefined) {
383
+ this.pressureAngle = pressureAngle;
384
+ }
385
+ if (profileShift !== undefined) {
386
+ this.profileShift = profileShift;
387
+ }
388
+ if (backlash !== undefined) {
389
+ this.backlash = backlash;
390
+ }
391
+ if (addendum !== undefined) {
392
+ this.addendum = addendum;
393
+ }
394
+ if (dedendum !== undefined) {
395
+ this.dedendum = dedendum;
396
+ }
397
+ if (rootFillet !== undefined) {
398
+ this.rootFillet = rootFillet;
399
+ }
400
+ }
401
+ }
402
+ Engineering.SpurGearOutlineDto = SpurGearOutlineDto;
403
+ /**
404
+ * The teeth of an involute ring gear, cut on the inside of a ring, shared by
405
+ * `engineering.mechanical.gears.ringGearSizes` and `engineering.mechanical.gears.ringGearOutline`: their size, their
406
+ * shape and how loosely they fit.
407
+ */
408
+ class RingGearSharedDto {
409
+ constructor() {
410
+ /**
411
+ * The size of the teeth: the pitch circle's diameter divided by the number of teeth, in
412
+ * model units. It meshes only with gears of the same module.
413
+ * @default 0.2
414
+ * @minimum 0
415
+ * @exclusiveMinimum true
416
+ * @maximum Infinity
417
+ * @step 0.05
418
+ */
419
+ this.module = 0.2;
420
+ /**
421
+ * How many teeth the ring has; about 34 at least at 20 degrees, so that the tips of its
422
+ * teeth stay outside the base circle.
423
+ * @default 40
424
+ * @minimum 3
425
+ * @maximum Infinity
426
+ * @step 1
427
+ */
428
+ this.teeth = 40;
429
+ /**
430
+ * The angle at which meshing teeth push on each other, in degrees; 20 is the common
431
+ * standard, and meshing gears share it.
432
+ * @default 20
433
+ * @minimum 0
434
+ * @exclusiveMinimum true
435
+ * @maximum 45
436
+ * @exclusiveMaximum true
437
+ * @step 0.5
438
+ */
439
+ this.pressureAngle = 20;
440
+ /**
441
+ * How much thinner each tooth is at the pitch circle than a tight fit, in model units; two
442
+ * meshing gears leave the sum of their backlash between their teeth.
443
+ * @default 0
444
+ * @minimum 0
445
+ * @maximum Infinity
446
+ * @step 0.01
447
+ */
448
+ this.backlash = 0;
449
+ /**
450
+ * How far the teeth reach in from the pitch circle toward the centre, as a share of the
451
+ * module.
452
+ * @default 1
453
+ * @minimum 0
454
+ * @exclusiveMinimum true
455
+ * @maximum Infinity
456
+ * @step 0.05
457
+ */
458
+ this.addendum = 1;
459
+ /**
460
+ * How deep the gaps reach out beyond the pitch circle, as a share of the module; more than
461
+ * `addendum` leaves room for the tips of the mating gear.
462
+ * @default 1.25
463
+ * @minimum 0
464
+ * @exclusiveMinimum true
465
+ * @maximum Infinity
466
+ * @step 0.05
467
+ */
468
+ this.dedendum = 1.25;
469
+ /**
470
+ * The radius that rounds the bottom of each gap, as a share of the module. It shrinks to
471
+ * fit a narrow gap, and 0 leaves a sharp corner.
472
+ * @default 0.38
473
+ * @minimum 0
474
+ * @maximum Infinity
475
+ * @step 0.01
476
+ */
477
+ this.rootFillet = 0.38;
478
+ }
479
+ }
480
+ Engineering.RingGearSharedDto = RingGearSharedDto;
481
+ /**
482
+ * The teeth of a ring gear for `engineering.mechanical.gears.ringGearSizes`.
483
+ */
484
+ class RingGearSizesDto extends RingGearSharedDto {
485
+ constructor(module, teeth, pressureAngle, backlash, addendum, dedendum, rootFillet) {
486
+ super();
487
+ if (module !== undefined) {
488
+ this.module = module;
489
+ }
490
+ if (teeth !== undefined) {
491
+ this.teeth = teeth;
492
+ }
493
+ if (pressureAngle !== undefined) {
494
+ this.pressureAngle = pressureAngle;
495
+ }
496
+ if (backlash !== undefined) {
497
+ this.backlash = backlash;
498
+ }
499
+ if (addendum !== undefined) {
500
+ this.addendum = addendum;
501
+ }
502
+ if (dedendum !== undefined) {
503
+ this.dedendum = dedendum;
504
+ }
505
+ if (rootFillet !== undefined) {
506
+ this.rootFillet = rootFillet;
507
+ }
508
+ }
509
+ }
510
+ Engineering.RingGearSizesDto = RingGearSizesDto;
511
+ /**
512
+ * The teeth of a ring gear for `engineering.mechanical.gears.ringGearOutline`, with how far it is turned and
513
+ * how finely its curves become points.
514
+ */
515
+ class RingGearOutlineDto extends RingGearSharedDto {
516
+ constructor(rotation, segments, module, teeth, pressureAngle, backlash, addendum, dedendum, rootFillet) {
517
+ super();
518
+ /**
519
+ * How far the ring is turned about its centre, in degrees. At 0 a tooth points along +X.
520
+ * @default 0
521
+ * @minimum -Infinity
522
+ * @maximum Infinity
523
+ * @step 1
524
+ */
525
+ this.rotation = 0;
526
+ /**
527
+ * How many straight pieces stand for each curve of the outline: each tip, flank piece and
528
+ * root.
529
+ * @default 8
530
+ * @minimum 1
531
+ * @maximum Infinity
532
+ * @step 1
533
+ */
534
+ this.segments = 8;
535
+ if (rotation !== undefined) {
536
+ this.rotation = rotation;
537
+ }
538
+ if (segments !== undefined) {
539
+ this.segments = segments;
540
+ }
541
+ if (module !== undefined) {
542
+ this.module = module;
543
+ }
544
+ if (teeth !== undefined) {
545
+ this.teeth = teeth;
546
+ }
547
+ if (pressureAngle !== undefined) {
548
+ this.pressureAngle = pressureAngle;
549
+ }
550
+ if (backlash !== undefined) {
551
+ this.backlash = backlash;
552
+ }
553
+ if (addendum !== undefined) {
554
+ this.addendum = addendum;
555
+ }
556
+ if (dedendum !== undefined) {
557
+ this.dedendum = dedendum;
558
+ }
559
+ if (rootFillet !== undefined) {
560
+ this.rootFillet = rootFillet;
561
+ }
562
+ }
563
+ }
564
+ Engineering.RingGearOutlineDto = RingGearOutlineDto;
565
+ /**
566
+ * The teeth of an involute rack, shared by `engineering.mechanical.gears.rackSizes` and
567
+ * `engineering.mechanical.gears.rackOutline`: their size and shape, how loosely they fit and how deep the
568
+ * rack is.
569
+ */
570
+ class RackSharedDto {
571
+ constructor() {
572
+ /**
573
+ * The module of the gears the rack meshes with, in model units.
574
+ * @default 0.2
575
+ * @minimum 0
576
+ * @exclusiveMinimum true
577
+ * @maximum Infinity
578
+ * @step 0.05
579
+ */
580
+ this.module = 0.2;
581
+ /**
582
+ * How many teeth the rack has, at least 1.
583
+ * @default 10
584
+ * @minimum 1
585
+ * @maximum Infinity
586
+ * @step 1
587
+ */
588
+ this.teeth = 10;
589
+ /**
590
+ * The angle of each flank from square to the pitch line, in degrees; it matches the gears'.
591
+ * @default 20
592
+ * @minimum 0
593
+ * @exclusiveMinimum true
594
+ * @maximum 45
595
+ * @exclusiveMaximum true
596
+ * @step 0.5
597
+ */
598
+ this.pressureAngle = 20;
599
+ /**
600
+ * How much thinner each tooth is at the pitch line than a tight fit, in model units.
601
+ * @default 0
602
+ * @minimum 0
603
+ * @maximum Infinity
604
+ * @step 0.01
605
+ */
606
+ this.backlash = 0;
607
+ /**
608
+ * How far the teeth reach above the pitch line, as a share of the module.
609
+ * @default 1
610
+ * @minimum 0
611
+ * @exclusiveMinimum true
612
+ * @maximum Infinity
613
+ * @step 0.05
614
+ */
615
+ this.addendum = 1;
616
+ /**
617
+ * How deep the gaps reach below the pitch line, as a share of the module.
618
+ * @default 1.25
619
+ * @minimum 0
620
+ * @exclusiveMinimum true
621
+ * @maximum Infinity
622
+ * @step 0.05
623
+ */
624
+ this.dedendum = 1.25;
625
+ /**
626
+ * The radius that rounds the bottom of each gap, as a share of the module; it shrinks to
627
+ * fit.
628
+ * @default 0.38
629
+ * @minimum 0
630
+ * @maximum Infinity
631
+ * @step 0.01
632
+ */
633
+ this.rootFillet = 0.38;
634
+ /**
635
+ * How far the back of the rack lies below the pitch line, in model units, beyond the gaps.
636
+ * @default 0.6
637
+ * @minimum 0
638
+ * @exclusiveMinimum true
639
+ * @maximum Infinity
640
+ * @step 0.1
641
+ */
642
+ this.height = 0.6;
643
+ }
644
+ }
645
+ Engineering.RackSharedDto = RackSharedDto;
646
+ /**
647
+ * The teeth of a rack for `engineering.mechanical.gears.rackSizes`.
648
+ */
649
+ class RackSizesDto extends RackSharedDto {
650
+ constructor(module, teeth, pressureAngle, backlash, addendum, dedendum, rootFillet, height) {
651
+ super();
652
+ if (module !== undefined) {
653
+ this.module = module;
654
+ }
655
+ if (teeth !== undefined) {
656
+ this.teeth = teeth;
657
+ }
658
+ if (pressureAngle !== undefined) {
659
+ this.pressureAngle = pressureAngle;
660
+ }
661
+ if (backlash !== undefined) {
662
+ this.backlash = backlash;
663
+ }
664
+ if (addendum !== undefined) {
665
+ this.addendum = addendum;
666
+ }
667
+ if (dedendum !== undefined) {
668
+ this.dedendum = dedendum;
669
+ }
670
+ if (rootFillet !== undefined) {
671
+ this.rootFillet = rootFillet;
672
+ }
673
+ if (height !== undefined) {
674
+ this.height = height;
675
+ }
676
+ }
677
+ }
678
+ Engineering.RackSizesDto = RackSizesDto;
679
+ /**
680
+ * The teeth of a rack for `engineering.mechanical.gears.rackOutline`, with how finely its curves become
681
+ * points.
682
+ */
683
+ class RackOutlineDto extends RackSharedDto {
684
+ constructor(segments, module, teeth, pressureAngle, backlash, addendum, dedendum, rootFillet, height) {
685
+ super();
686
+ /**
687
+ * How many straight pieces stand for each rounded root.
688
+ * @default 8
689
+ * @minimum 1
690
+ * @maximum Infinity
691
+ * @step 1
692
+ */
693
+ this.segments = 8;
694
+ if (segments !== undefined) {
695
+ this.segments = segments;
696
+ }
697
+ if (module !== undefined) {
698
+ this.module = module;
699
+ }
700
+ if (teeth !== undefined) {
701
+ this.teeth = teeth;
702
+ }
703
+ if (pressureAngle !== undefined) {
704
+ this.pressureAngle = pressureAngle;
705
+ }
706
+ if (backlash !== undefined) {
707
+ this.backlash = backlash;
708
+ }
709
+ if (addendum !== undefined) {
710
+ this.addendum = addendum;
711
+ }
712
+ if (dedendum !== undefined) {
713
+ this.dedendum = dedendum;
714
+ }
715
+ if (rootFillet !== undefined) {
716
+ this.rootFillet = rootFillet;
717
+ }
718
+ if (height !== undefined) {
719
+ this.height = height;
720
+ }
721
+ }
722
+ }
723
+ Engineering.RackOutlineDto = RackOutlineDto;
724
+ /**
725
+ * The teeth of an involute helical gear, shared by `engineering.mechanical.gears.helicalGearSizes` and
726
+ * `engineering.mechanical.gears.helicalGearOutline`: their size and lean, their shape and how loosely they
727
+ * fit, measured square to the teeth.
728
+ */
729
+ class HelicalGearSharedDto {
730
+ constructor() {
731
+ /**
732
+ * The normal module: the tooth size measured square to the teeth, in model units, as the
733
+ * cutter's module. Only gears of one module mesh.
734
+ * @default 0.2
735
+ * @minimum 0
736
+ * @exclusiveMinimum true
737
+ * @maximum Infinity
738
+ * @step 0.05
739
+ */
740
+ this.module = 0.2;
741
+ /**
742
+ * How many teeth the gear has, at least 3.
743
+ * @default 20
744
+ * @minimum 3
745
+ * @maximum Infinity
746
+ * @step 1
747
+ */
748
+ this.teeth = 20;
749
+ /**
750
+ * The teeth's lean from the axis in degrees: positive for a right hand, negative for a left.
751
+ * Two external helical gears mesh at one angle in opposite hands.
752
+ * @default 15
753
+ * @minimum -45
754
+ * @exclusiveMinimum true
755
+ * @maximum 45
756
+ * @exclusiveMaximum true
757
+ * @step 1
758
+ */
759
+ this.helixAngle = 15;
760
+ /**
761
+ * The angle at which meshing teeth push on each other, in degrees, measured square to the
762
+ * teeth; 20 is the common standard, and meshing gears share it.
763
+ * @default 20
764
+ * @minimum 0
765
+ * @exclusiveMinimum true
766
+ * @maximum 45
767
+ * @exclusiveMaximum true
768
+ * @step 0.5
769
+ */
770
+ this.pressureAngle = 20;
771
+ /**
772
+ * How far the teeth are moved out from the pitch circle, as a share of the module. Positive
773
+ * values give thicker teeth that small gears need, negative values thinner ones.
774
+ * @default 0
775
+ * @minimum -Infinity
776
+ * @maximum Infinity
777
+ * @step 0.05
778
+ */
779
+ this.profileShift = 0;
780
+ /**
781
+ * How much thinner each tooth is round the pitch circle than a tight fit, in model units; two
782
+ * meshing gears leave the sum of their backlash between their teeth.
783
+ * @default 0
784
+ * @minimum 0
785
+ * @maximum Infinity
786
+ * @step 0.01
787
+ */
788
+ this.backlash = 0;
789
+ /**
790
+ * How far the teeth reach above the pitch circle, as a share of the module.
791
+ * @default 1
792
+ * @minimum 0
793
+ * @exclusiveMinimum true
794
+ * @maximum Infinity
795
+ * @step 0.05
796
+ */
797
+ this.addendum = 1;
798
+ /**
799
+ * How deep the gaps reach below the pitch circle, as a share of the module; more than
800
+ * `addendum` leaves room for the tips of the mating gear.
801
+ * @default 1.25
802
+ * @minimum 0
803
+ * @exclusiveMinimum true
804
+ * @maximum Infinity
805
+ * @step 0.05
806
+ */
807
+ this.dedendum = 1.25;
808
+ /**
809
+ * The radius that rounds the bottom of each gap, as a share of the module. It shrinks to
810
+ * fit a narrow gap, and 0 leaves a sharp corner.
811
+ * @default 0.38
812
+ * @minimum 0
813
+ * @maximum Infinity
814
+ * @step 0.01
815
+ */
816
+ this.rootFillet = 0.38;
817
+ }
818
+ }
819
+ Engineering.HelicalGearSharedDto = HelicalGearSharedDto;
820
+ /**
821
+ * The teeth of a helical gear for `engineering.mechanical.gears.helicalGearSizes`.
822
+ */
823
+ class HelicalGearSizesDto extends HelicalGearSharedDto {
824
+ constructor(module, teeth, helixAngle, pressureAngle, profileShift, backlash, addendum, dedendum, rootFillet) {
825
+ super();
826
+ if (module !== undefined) {
827
+ this.module = module;
828
+ }
829
+ if (teeth !== undefined) {
830
+ this.teeth = teeth;
831
+ }
832
+ if (helixAngle !== undefined) {
833
+ this.helixAngle = helixAngle;
834
+ }
835
+ if (pressureAngle !== undefined) {
836
+ this.pressureAngle = pressureAngle;
837
+ }
838
+ if (profileShift !== undefined) {
839
+ this.profileShift = profileShift;
840
+ }
841
+ if (backlash !== undefined) {
842
+ this.backlash = backlash;
843
+ }
844
+ if (addendum !== undefined) {
845
+ this.addendum = addendum;
846
+ }
847
+ if (dedendum !== undefined) {
848
+ this.dedendum = dedendum;
849
+ }
850
+ if (rootFillet !== undefined) {
851
+ this.rootFillet = rootFillet;
852
+ }
853
+ }
854
+ }
855
+ Engineering.HelicalGearSizesDto = HelicalGearSizesDto;
856
+ /**
857
+ * The teeth of a helical gear for `engineering.mechanical.gears.helicalGearOutline`, with how far it is turned
858
+ * and how finely its curves become points.
859
+ */
860
+ class HelicalGearOutlineDto extends HelicalGearSharedDto {
861
+ constructor(rotation, segments, module, teeth, helixAngle, pressureAngle, profileShift, backlash, addendum, dedendum, rootFillet) {
862
+ super();
863
+ /**
864
+ * How far the gear is turned about its centre, in degrees. At 0 a tooth points along +X.
865
+ * @default 0
866
+ * @minimum -Infinity
867
+ * @maximum Infinity
868
+ * @step 1
869
+ */
870
+ this.rotation = 0;
871
+ /**
872
+ * How many straight pieces stand for each curve of the outline: each tip, flank piece and
873
+ * root.
874
+ * @default 8
875
+ * @minimum 1
876
+ * @maximum Infinity
877
+ * @step 1
878
+ */
879
+ this.segments = 8;
880
+ if (rotation !== undefined) {
881
+ this.rotation = rotation;
882
+ }
883
+ if (segments !== undefined) {
884
+ this.segments = segments;
885
+ }
886
+ if (module !== undefined) {
887
+ this.module = module;
888
+ }
889
+ if (teeth !== undefined) {
890
+ this.teeth = teeth;
891
+ }
892
+ if (helixAngle !== undefined) {
893
+ this.helixAngle = helixAngle;
894
+ }
895
+ if (pressureAngle !== undefined) {
896
+ this.pressureAngle = pressureAngle;
897
+ }
898
+ if (profileShift !== undefined) {
899
+ this.profileShift = profileShift;
900
+ }
901
+ if (backlash !== undefined) {
902
+ this.backlash = backlash;
903
+ }
904
+ if (addendum !== undefined) {
905
+ this.addendum = addendum;
906
+ }
907
+ if (dedendum !== undefined) {
908
+ this.dedendum = dedendum;
909
+ }
910
+ if (rootFillet !== undefined) {
911
+ this.rootFillet = rootFillet;
912
+ }
913
+ }
914
+ }
915
+ Engineering.HelicalGearOutlineDto = HelicalGearOutlineDto;
916
+ /**
917
+ * The teeth of a straight bevel gear, shared by `engineering.mechanical.gears.bevelGearSizes` and
918
+ * `engineering.mechanical.gears.bevelGearOutline`: their size at the back, the gear they mesh with and the
919
+ * angle between the two, their shape and how loosely they fit.
920
+ */
921
+ class BevelGearSharedDto {
922
+ constructor() {
923
+ /**
924
+ * The tooth size at the back, the gear's outer end: the outer pitch diameter divided by the
925
+ * teeth, in model units. Only gears of one module mesh.
926
+ * @default 0.2
927
+ * @minimum 0
928
+ * @exclusiveMinimum true
929
+ * @maximum Infinity
930
+ * @step 0.05
931
+ */
932
+ this.module = 0.2;
933
+ /**
934
+ * How many teeth the gear has, at least 3.
935
+ * @default 20
936
+ * @minimum 3
937
+ * @maximum Infinity
938
+ * @step 1
939
+ */
940
+ this.teeth = 20;
941
+ /**
942
+ * How many teeth the gear it meshes with has. With `shaftAngle` it sets the cone the gear
943
+ * rolls on.
944
+ * @default 20
945
+ * @minimum 3
946
+ * @maximum Infinity
947
+ * @step 1
948
+ */
949
+ this.mateTeeth = 20;
950
+ /**
951
+ * The angle between the two gears' axes, in degrees; 90 turns a drive through a right angle.
952
+ * @default 90
953
+ * @minimum 0
954
+ * @exclusiveMinimum true
955
+ * @maximum 180
956
+ * @exclusiveMaximum true
957
+ * @step 1
958
+ */
959
+ this.shaftAngle = 90;
960
+ /**
961
+ * The angle at which meshing teeth push on each other, in degrees; 20 is the common
962
+ * standard, and meshing gears share it.
963
+ * @default 20
964
+ * @minimum 0
965
+ * @exclusiveMinimum true
966
+ * @maximum 45
967
+ * @exclusiveMaximum true
968
+ * @step 0.5
969
+ */
970
+ this.pressureAngle = 20;
971
+ /**
972
+ * How much thinner each tooth is at the outer pitch circle than a tight fit, in model units.
973
+ * @default 0
974
+ * @minimum 0
975
+ * @maximum Infinity
976
+ * @step 0.01
977
+ */
978
+ this.backlash = 0;
979
+ /**
980
+ * How far the teeth reach above the pitch cone at the back, as a share of the module.
981
+ * @default 1
982
+ * @minimum 0
983
+ * @exclusiveMinimum true
984
+ * @maximum Infinity
985
+ * @step 0.05
986
+ */
987
+ this.addendum = 1;
988
+ /**
989
+ * How deep the gaps reach below the pitch cone at the back, as a share of the module.
990
+ * @default 1.25
991
+ * @minimum 0
992
+ * @exclusiveMinimum true
993
+ * @maximum Infinity
994
+ * @step 0.05
995
+ */
996
+ this.dedendum = 1.25;
997
+ /**
998
+ * The radius that rounds the bottom of each gap at the back, as a share of the module; it
999
+ * shrinks to fit a narrow gap.
1000
+ * @default 0.38
1001
+ * @minimum 0
1002
+ * @maximum Infinity
1003
+ * @step 0.01
1004
+ */
1005
+ this.rootFillet = 0.38;
1006
+ }
1007
+ }
1008
+ Engineering.BevelGearSharedDto = BevelGearSharedDto;
1009
+ /**
1010
+ * The teeth of a bevel gear for `engineering.mechanical.gears.bevelGearSizes`.
1011
+ */
1012
+ class BevelGearSizesDto extends BevelGearSharedDto {
1013
+ constructor(module, teeth, mateTeeth, shaftAngle, pressureAngle, backlash, addendum, dedendum, rootFillet) {
1014
+ super();
1015
+ if (module !== undefined) {
1016
+ this.module = module;
1017
+ }
1018
+ if (teeth !== undefined) {
1019
+ this.teeth = teeth;
1020
+ }
1021
+ if (mateTeeth !== undefined) {
1022
+ this.mateTeeth = mateTeeth;
1023
+ }
1024
+ if (shaftAngle !== undefined) {
1025
+ this.shaftAngle = shaftAngle;
1026
+ }
1027
+ if (pressureAngle !== undefined) {
1028
+ this.pressureAngle = pressureAngle;
1029
+ }
1030
+ if (backlash !== undefined) {
1031
+ this.backlash = backlash;
1032
+ }
1033
+ if (addendum !== undefined) {
1034
+ this.addendum = addendum;
1035
+ }
1036
+ if (dedendum !== undefined) {
1037
+ this.dedendum = dedendum;
1038
+ }
1039
+ if (rootFillet !== undefined) {
1040
+ this.rootFillet = rootFillet;
1041
+ }
1042
+ }
1043
+ }
1044
+ Engineering.BevelGearSizesDto = BevelGearSizesDto;
1045
+ /**
1046
+ * The teeth of a bevel gear for `engineering.mechanical.gears.bevelGearOutline`, with how far it is turned and
1047
+ * how finely its curves become points.
1048
+ */
1049
+ class BevelGearOutlineDto extends BevelGearSharedDto {
1050
+ constructor(rotation, segments, module, teeth, mateTeeth, shaftAngle, pressureAngle, backlash, addendum, dedendum, rootFillet) {
1051
+ super();
1052
+ /**
1053
+ * How far the gear is turned about its centre, in degrees. At 0 a tooth points along +X.
1054
+ * @default 0
1055
+ * @minimum -Infinity
1056
+ * @maximum Infinity
1057
+ * @step 1
1058
+ */
1059
+ this.rotation = 0;
1060
+ /**
1061
+ * How many straight pieces stand for each curve of the outline: each tip, flank piece and
1062
+ * root.
1063
+ * @default 8
1064
+ * @minimum 1
1065
+ * @maximum Infinity
1066
+ * @step 1
1067
+ */
1068
+ this.segments = 8;
1069
+ if (rotation !== undefined) {
1070
+ this.rotation = rotation;
1071
+ }
1072
+ if (segments !== undefined) {
1073
+ this.segments = segments;
1074
+ }
1075
+ if (module !== undefined) {
1076
+ this.module = module;
1077
+ }
1078
+ if (teeth !== undefined) {
1079
+ this.teeth = teeth;
1080
+ }
1081
+ if (mateTeeth !== undefined) {
1082
+ this.mateTeeth = mateTeeth;
1083
+ }
1084
+ if (shaftAngle !== undefined) {
1085
+ this.shaftAngle = shaftAngle;
1086
+ }
1087
+ if (pressureAngle !== undefined) {
1088
+ this.pressureAngle = pressureAngle;
1089
+ }
1090
+ if (backlash !== undefined) {
1091
+ this.backlash = backlash;
1092
+ }
1093
+ if (addendum !== undefined) {
1094
+ this.addendum = addendum;
1095
+ }
1096
+ if (dedendum !== undefined) {
1097
+ this.dedendum = dedendum;
1098
+ }
1099
+ if (rootFillet !== undefined) {
1100
+ this.rootFillet = rootFillet;
1101
+ }
1102
+ }
1103
+ }
1104
+ Engineering.BevelGearOutlineDto = BevelGearOutlineDto;
1105
+ /**
1106
+ * Two external spur gears in mesh, for `engineering.mechanical.gears.gearPair`: the module, pressure
1107
+ * angle and tooth heights they share, their teeth and their profile shifts.
1108
+ */
1109
+ class GearPairDto {
1110
+ constructor(module, teethA, teethB, pressureAngle, profileShiftA, profileShiftB, addendum, dedendum) {
1111
+ /**
1112
+ * The module both gears share, in model units.
1113
+ * @default 0.2
1114
+ * @minimum 0
1115
+ * @exclusiveMinimum true
1116
+ * @maximum Infinity
1117
+ * @step 0.05
1118
+ */
1119
+ this.module = 0.2;
1120
+ /**
1121
+ * How many teeth the first gear has, at least 3.
1122
+ * @default 20
1123
+ * @minimum 3
1124
+ * @maximum Infinity
1125
+ * @step 1
1126
+ */
1127
+ this.teethA = 20;
1128
+ /**
1129
+ * How many teeth the second gear has, at least 3.
1130
+ * @default 30
1131
+ * @minimum 3
1132
+ * @maximum Infinity
1133
+ * @step 1
1134
+ */
1135
+ this.teethB = 30;
1136
+ /**
1137
+ * The pressure angle both gears share, in degrees.
1138
+ * @default 20
1139
+ * @minimum 0
1140
+ * @exclusiveMinimum true
1141
+ * @maximum 45
1142
+ * @exclusiveMaximum true
1143
+ * @step 0.5
1144
+ */
1145
+ this.pressureAngle = 20;
1146
+ /**
1147
+ * The first gear's profile shift, as a share of the module. Shifts that pull a tip inside its
1148
+ * base circle, or work the pair past 45 degrees, are refused.
1149
+ * @default 0
1150
+ * @minimum -Infinity
1151
+ * @maximum Infinity
1152
+ * @step 0.05
1153
+ */
1154
+ this.profileShiftA = 0;
1155
+ /**
1156
+ * The second gear's profile shift, as a share of the module. Shifts that pull a tip inside its
1157
+ * base circle, or work the pair past 45 degrees, are refused.
1158
+ * @default 0
1159
+ * @minimum -Infinity
1160
+ * @maximum Infinity
1161
+ * @step 0.05
1162
+ */
1163
+ this.profileShiftB = 0;
1164
+ /**
1165
+ * How far the teeth of both reach above their pitch circles, as a share of the module.
1166
+ * @default 1
1167
+ * @minimum 0
1168
+ * @exclusiveMinimum true
1169
+ * @maximum Infinity
1170
+ * @step 0.05
1171
+ */
1172
+ this.addendum = 1;
1173
+ /**
1174
+ * How deep the gaps of both reach below their pitch circles, as a share of the module; it
1175
+ * sets the clearance between each gear's tips and the other's roots.
1176
+ * @default 1.25
1177
+ * @minimum 0
1178
+ * @exclusiveMinimum true
1179
+ * @maximum Infinity
1180
+ * @step 0.05
1181
+ */
1182
+ this.dedendum = 1.25;
1183
+ if (module !== undefined) {
1184
+ this.module = module;
1185
+ }
1186
+ if (teethA !== undefined) {
1187
+ this.teethA = teethA;
1188
+ }
1189
+ if (teethB !== undefined) {
1190
+ this.teethB = teethB;
1191
+ }
1192
+ if (pressureAngle !== undefined) {
1193
+ this.pressureAngle = pressureAngle;
1194
+ }
1195
+ if (profileShiftA !== undefined) {
1196
+ this.profileShiftA = profileShiftA;
1197
+ }
1198
+ if (profileShiftB !== undefined) {
1199
+ this.profileShiftB = profileShiftB;
1200
+ }
1201
+ if (addendum !== undefined) {
1202
+ this.addendum = addendum;
1203
+ }
1204
+ if (dedendum !== undefined) {
1205
+ this.dedendum = dedendum;
1206
+ }
1207
+ }
1208
+ }
1209
+ Engineering.GearPairDto = GearPairDto;
1210
+ /**
1211
+ * A spur gear meshing inside a ring gear, for `engineering.mechanical.gears.internalGearPair`: the module and
1212
+ * pressure angle they share and their teeth.
1213
+ */
1214
+ class InternalGearPairDto {
1215
+ constructor(module, pinionTeeth, ringTeeth, pressureAngle, addendum) {
1216
+ /**
1217
+ * The module both gears share, in model units.
1218
+ * @default 0.2
1219
+ * @minimum 0
1220
+ * @exclusiveMinimum true
1221
+ * @maximum Infinity
1222
+ * @step 0.05
1223
+ */
1224
+ this.module = 0.2;
1225
+ /**
1226
+ * How many teeth the spur gear has, at least 3. Fewer than about 20 interfere with a
1227
+ * standard ring of any size.
1228
+ * @default 24
1229
+ * @minimum 3
1230
+ * @maximum Infinity
1231
+ * @step 1
1232
+ */
1233
+ this.pinionTeeth = 24;
1234
+ /**
1235
+ * The ring's teeth: more than the spur gear's, and enough to keep their tips outside its base
1236
+ * circle, 34 at 20 degrees with an addendum of 1.
1237
+ * @default 60
1238
+ * @minimum 3
1239
+ * @maximum Infinity
1240
+ * @step 1
1241
+ */
1242
+ this.ringTeeth = 60;
1243
+ /**
1244
+ * The pressure angle both gears share, in degrees.
1245
+ * @default 20
1246
+ * @minimum 0
1247
+ * @exclusiveMinimum true
1248
+ * @maximum 45
1249
+ * @exclusiveMaximum true
1250
+ * @step 0.5
1251
+ */
1252
+ this.pressureAngle = 20;
1253
+ /**
1254
+ * How far the teeth of both reach beyond their pitch circles, as a share of the module.
1255
+ * @default 1
1256
+ * @minimum 0
1257
+ * @exclusiveMinimum true
1258
+ * @maximum Infinity
1259
+ * @step 0.05
1260
+ */
1261
+ this.addendum = 1;
1262
+ if (module !== undefined) {
1263
+ this.module = module;
1264
+ }
1265
+ if (pinionTeeth !== undefined) {
1266
+ this.pinionTeeth = pinionTeeth;
1267
+ }
1268
+ if (ringTeeth !== undefined) {
1269
+ this.ringTeeth = ringTeeth;
1270
+ }
1271
+ if (pressureAngle !== undefined) {
1272
+ this.pressureAngle = pressureAngle;
1273
+ }
1274
+ if (addendum !== undefined) {
1275
+ this.addendum = addendum;
1276
+ }
1277
+ }
1278
+ }
1279
+ Engineering.InternalGearPairDto = InternalGearPairDto;
1280
+ /**
1281
+ * A planetary gear set, for `engineering.mechanical.gears.planetarySet`: the module and pressure angle its
1282
+ * gears share, the sun's and a planet's teeth and how many planets run round the sun.
1283
+ */
1284
+ class PlanetarySetDto {
1285
+ constructor(module, sunTeeth, planetTeeth, planets, pressureAngle, addendum) {
1286
+ /**
1287
+ * The module all its gears share, in model units.
1288
+ * @default 0.2
1289
+ * @minimum 0
1290
+ * @exclusiveMinimum true
1291
+ * @maximum Infinity
1292
+ * @step 0.05
1293
+ */
1294
+ this.module = 0.2;
1295
+ /**
1296
+ * How many teeth the sun has, at least 3.
1297
+ * @default 24
1298
+ * @minimum 3
1299
+ * @maximum Infinity
1300
+ * @step 1
1301
+ */
1302
+ this.sunTeeth = 24;
1303
+ /**
1304
+ * How many teeth each planet has, at least 3. A planet meshes inside the ring, so fewer than
1305
+ * about 20 interfere with it.
1306
+ * @default 24
1307
+ * @minimum 3
1308
+ * @maximum Infinity
1309
+ * @step 1
1310
+ */
1311
+ this.planetTeeth = 24;
1312
+ /**
1313
+ * How many planets run round the sun, evenly spaced.
1314
+ * @default 4
1315
+ * @minimum 1
1316
+ * @maximum Infinity
1317
+ * @step 1
1318
+ */
1319
+ this.planets = 4;
1320
+ /**
1321
+ * The pressure angle all its gears share, in degrees.
1322
+ * @default 20
1323
+ * @minimum 0
1324
+ * @exclusiveMinimum true
1325
+ * @maximum 45
1326
+ * @exclusiveMaximum true
1327
+ * @step 0.5
1328
+ */
1329
+ this.pressureAngle = 20;
1330
+ /**
1331
+ * How far the teeth reach beyond their pitch circles, as a share of the module.
1332
+ * @default 1
1333
+ * @minimum 0
1334
+ * @exclusiveMinimum true
1335
+ * @maximum Infinity
1336
+ * @step 0.05
1337
+ */
1338
+ this.addendum = 1;
1339
+ if (module !== undefined) {
1340
+ this.module = module;
1341
+ }
1342
+ if (sunTeeth !== undefined) {
1343
+ this.sunTeeth = sunTeeth;
1344
+ }
1345
+ if (planetTeeth !== undefined) {
1346
+ this.planetTeeth = planetTeeth;
1347
+ }
1348
+ if (planets !== undefined) {
1349
+ this.planets = planets;
1350
+ }
1351
+ if (pressureAngle !== undefined) {
1352
+ this.pressureAngle = pressureAngle;
1353
+ }
1354
+ if (addendum !== undefined) {
1355
+ this.addendum = addendum;
1356
+ }
1357
+ }
1358
+ }
1359
+ Engineering.PlanetarySetDto = PlanetarySetDto;
1360
+ /**
1361
+ * A diametral pitch and the unit to give the module in, for
1362
+ * `engineering.mechanical.gears.moduleFromDiametralPitch`, which turns an inch gear's size into
1363
+ * the module the gear methods take.
1364
+ */
1365
+ class ModuleFromDiametralPitchDto {
1366
+ constructor(diametralPitch, unit) {
1367
+ /**
1368
+ * How many teeth the gear has per inch of its pitch circle's diameter; a larger pitch means
1369
+ * smaller teeth.
1370
+ * @default 10
1371
+ * @minimum 0
1372
+ * @exclusiveMinimum true
1373
+ * @maximum Infinity
1374
+ * @step 1
1375
+ */
1376
+ this.diametralPitch = 10;
1377
+ /**
1378
+ * The unit to give the module in, the model's.
1379
+ * @default inch
1380
+ */
1381
+ this.unit = Base.unitOfLengthEnum.inch;
1382
+ if (diametralPitch !== undefined) {
1383
+ this.diametralPitch = diametralPitch;
1384
+ }
1385
+ if (unit !== undefined) {
1386
+ this.unit = unit;
1387
+ }
1388
+ }
1389
+ }
1390
+ Engineering.ModuleFromDiametralPitchDto = ModuleFromDiametralPitchDto;
1391
+ /**
1392
+ * An ISO metric thread size and the unit its sizes come back in, shared by the ISO thread and
1393
+ * fastener sizes of `engineering.mechanical`.
1394
+ */
1395
+ class IsoSizeSharedDto {
1396
+ constructor() {
1397
+ /**
1398
+ * The thread size, such as M8.
1399
+ * @default m3
1400
+ */
1401
+ this.size = isoThreadSizeEnum.m3;
1402
+ /**
1403
+ * The unit every length the method takes or gives is in; the size names a metric thread
1404
+ * whatever it is.
1405
+ * @default millimetre
1406
+ */
1407
+ this.unit = Base.unitOfLengthEnum.millimetre;
1408
+ }
1409
+ }
1410
+ Engineering.IsoSizeSharedDto = IsoSizeSharedDto;
1411
+ /**
1412
+ * An ISO metric thread size and a unit, for the cap screw, nut and washer sizes of
1413
+ * `engineering.mechanical.fasteners.iso`.
1414
+ */
1415
+ class IsoSizeDto extends IsoSizeSharedDto {
1416
+ constructor(size, unit) {
1417
+ super();
1418
+ if (size !== undefined) {
1419
+ this.size = size;
1420
+ }
1421
+ if (unit !== undefined) {
1422
+ this.unit = unit;
1423
+ }
1424
+ }
1425
+ }
1426
+ Engineering.IsoSizeDto = IsoSizeDto;
1427
+ /**
1428
+ * An ISO metric thread size and, for a fine thread, its pitch, for
1429
+ * `engineering.mechanical.threads.iso.thread`.
1430
+ */
1431
+ class IsoThreadDto extends IsoSizeSharedDto {
1432
+ constructor(size, pitch, unit) {
1433
+ super();
1434
+ if (size !== undefined) {
1435
+ this.size = size;
1436
+ }
1437
+ if (pitch !== undefined) {
1438
+ this.pitch = pitch;
1439
+ }
1440
+ if (unit !== undefined) {
1441
+ this.unit = unit;
1442
+ }
1443
+ }
1444
+ }
1445
+ Engineering.IsoThreadDto = IsoThreadDto;
1446
+ /**
1447
+ * An ISO metric thread size, how much room is left around it and a unit, for
1448
+ * `engineering.mechanical.fasteners.iso.clearanceHole`.
1449
+ */
1450
+ class IsoClearanceHoleDto extends IsoSizeSharedDto {
1451
+ constructor(size, fit, unit) {
1452
+ super();
1453
+ /**
1454
+ * How much room the hole leaves around the screw.
1455
+ * @default normal
1456
+ */
1457
+ this.fit = clearanceFitEnum.normal;
1458
+ if (size !== undefined) {
1459
+ this.size = size;
1460
+ }
1461
+ if (fit !== undefined) {
1462
+ this.fit = fit;
1463
+ }
1464
+ if (unit !== undefined) {
1465
+ this.unit = unit;
1466
+ }
1467
+ }
1468
+ }
1469
+ Engineering.IsoClearanceHoleDto = IsoClearanceHoleDto;
1470
+ /**
1471
+ * An ISO hexagon bolt's thread size and length and a unit, for
1472
+ * `engineering.mechanical.fasteners.iso.hexBoltSizes`.
1473
+ */
1474
+ class IsoHexBoltSizesDto extends IsoSizeSharedDto {
1475
+ constructor(size, length, unit) {
1476
+ super();
1477
+ /**
1478
+ * The length of the bolt from under its head to its tip, in `unit`, which sets how much of
1479
+ * it ISO 4014 threads.
1480
+ * @default 10
1481
+ * @minimum 0
1482
+ * @exclusiveMinimum true
1483
+ * @maximum Infinity
1484
+ * @step 1
1485
+ */
1486
+ this.length = 10;
1487
+ if (size !== undefined) {
1488
+ this.size = size;
1489
+ }
1490
+ if (length !== undefined) {
1491
+ this.length = length;
1492
+ }
1493
+ if (unit !== undefined) {
1494
+ this.unit = unit;
1495
+ }
1496
+ }
1497
+ }
1498
+ Engineering.IsoHexBoltSizesDto = IsoHexBoltSizesDto;
1499
+ /**
1500
+ * An ISO set screw's thread size, point and length and a unit, for
1501
+ * `engineering.mechanical.fasteners.iso.setScrewSizes`.
1502
+ */
1503
+ class IsoSetScrewSizesDto extends IsoSizeSharedDto {
1504
+ constructor(size, point, length, unit) {
1505
+ super();
1506
+ /**
1507
+ * The shape of the screw's end that bears on the part.
1508
+ * @default flat
1509
+ */
1510
+ this.point = isoSetScrewPointEnum.flat;
1511
+ if (size !== undefined) {
1512
+ this.size = size;
1513
+ }
1514
+ if (point !== undefined) {
1515
+ this.point = point;
1516
+ }
1517
+ if (length !== undefined) {
1518
+ this.length = length;
1519
+ }
1520
+ if (unit !== undefined) {
1521
+ this.unit = unit;
1522
+ }
1523
+ }
1524
+ }
1525
+ Engineering.IsoSetScrewSizesDto = IsoSetScrewSizesDto;
1526
+ /**
1527
+ * A Unified inch thread size and the unit its sizes come back in, shared by the ASME thread and
1528
+ * fastener sizes of `engineering.mechanical`.
1529
+ */
1530
+ class AnsiSizeSharedDto {
1531
+ constructor() {
1532
+ /**
1533
+ * The thread size, such as 1/4 or #10.
1534
+ * @default in1_4
1535
+ */
1536
+ this.size = ansiThreadSizeEnum.in1_4;
1537
+ /**
1538
+ * The unit every length the method takes or gives is in; the size names an inch thread
1539
+ * whatever it is.
1540
+ * @default inch
1541
+ */
1542
+ this.unit = Base.unitOfLengthEnum.inch;
1543
+ }
1544
+ }
1545
+ Engineering.AnsiSizeSharedDto = AnsiSizeSharedDto;
1546
+ /**
1547
+ * A Unified inch thread size and a unit, for the cap screw and nut sizes of
1548
+ * `engineering.mechanical.fasteners.ansi`.
1549
+ */
1550
+ class AnsiSizeDto extends AnsiSizeSharedDto {
1551
+ constructor(size, unit) {
1552
+ super();
1553
+ if (size !== undefined) {
1554
+ this.size = size;
1555
+ }
1556
+ if (unit !== undefined) {
1557
+ this.unit = unit;
1558
+ }
1559
+ }
1560
+ }
1561
+ Engineering.AnsiSizeDto = AnsiSizeDto;
1562
+ /**
1563
+ * A Unified inch thread size, its series or its own threads per inch, and a unit, for
1564
+ * `engineering.mechanical.threads.ansi.thread`.
1565
+ */
1566
+ class AnsiThreadDto extends AnsiSizeSharedDto {
1567
+ constructor(size, series, threadsPerInch, unit) {
1568
+ super();
1569
+ /**
1570
+ * Whether the thread is coarse (UNC) or fine (UNF); #0, which has no coarse thread, is cut fine.
1571
+ * @default unc
1572
+ */
1573
+ this.series = ansiThreadSeriesEnum.unc;
1574
+ if (size !== undefined) {
1575
+ this.size = size;
1576
+ }
1577
+ if (series !== undefined) {
1578
+ this.series = series;
1579
+ }
1580
+ if (threadsPerInch !== undefined) {
1581
+ this.threadsPerInch = threadsPerInch;
1582
+ }
1583
+ if (unit !== undefined) {
1584
+ this.unit = unit;
1585
+ }
1586
+ }
1587
+ }
1588
+ Engineering.AnsiThreadDto = AnsiThreadDto;
1589
+ /**
1590
+ * A Unified inch thread size, how much room is left around it and a unit, for
1591
+ * `engineering.mechanical.fasteners.ansi.clearanceHole`.
1592
+ */
1593
+ class AnsiClearanceHoleDto extends AnsiSizeSharedDto {
1594
+ constructor(size, fit, unit) {
1595
+ super();
1596
+ /**
1597
+ * How much room the hole leaves around the screw.
1598
+ * @default normal
1599
+ */
1600
+ this.fit = clearanceFitEnum.normal;
1601
+ if (size !== undefined) {
1602
+ this.size = size;
1603
+ }
1604
+ if (fit !== undefined) {
1605
+ this.fit = fit;
1606
+ }
1607
+ if (unit !== undefined) {
1608
+ this.unit = unit;
1609
+ }
1610
+ }
1611
+ }
1612
+ Engineering.AnsiClearanceHoleDto = AnsiClearanceHoleDto;
1613
+ /**
1614
+ * An ASME hex cap screw's thread size and length and a unit, for
1615
+ * `engineering.mechanical.fasteners.ansi.hexBoltSizes`.
1616
+ */
1617
+ class AnsiHexBoltSizesDto extends AnsiSizeSharedDto {
1618
+ constructor(size, length, unit) {
1619
+ super();
1620
+ /**
1621
+ * The length of the screw from under its head to its tip, in `unit`, which sets how much of
1622
+ * it ASME B18.2.1 threads.
1623
+ * @default 1
1624
+ * @minimum 0
1625
+ * @exclusiveMinimum true
1626
+ * @maximum Infinity
1627
+ * @step 0.125
1628
+ */
1629
+ this.length = 1;
1630
+ if (size !== undefined) {
1631
+ this.size = size;
1632
+ }
1633
+ if (length !== undefined) {
1634
+ this.length = length;
1635
+ }
1636
+ if (unit !== undefined) {
1637
+ this.unit = unit;
1638
+ }
1639
+ }
1640
+ }
1641
+ Engineering.AnsiHexBoltSizesDto = AnsiHexBoltSizesDto;
1642
+ /**
1643
+ * A Unified inch thread size, a washer series and a unit, for
1644
+ * `engineering.mechanical.fasteners.ansi.washerSizes`.
1645
+ */
1646
+ class AnsiWasherSizesDto extends AnsiSizeSharedDto {
1647
+ constructor(size, series, unit) {
1648
+ super();
1649
+ /**
1650
+ * Whether the washer is narrow or wide around its hole.
1651
+ * @default narrow
1652
+ */
1653
+ this.series = ansiWasherSeriesEnum.narrow;
1654
+ if (size !== undefined) {
1655
+ this.size = size;
1656
+ }
1657
+ if (series !== undefined) {
1658
+ this.series = series;
1659
+ }
1660
+ if (unit !== undefined) {
1661
+ this.unit = unit;
1662
+ }
1663
+ }
1664
+ }
1665
+ Engineering.AnsiWasherSizesDto = AnsiWasherSizesDto;
1666
+ /**
1667
+ * An ASME set screw's thread size, point, thread series and length and a unit, for
1668
+ * `engineering.mechanical.fasteners.ansi.setScrewSizes`.
1669
+ */
1670
+ class AnsiSetScrewSizesDto extends AnsiSizeSharedDto {
1671
+ constructor(size, point, series, length, unit) {
1672
+ super();
1673
+ /**
1674
+ * The shape of the screw's end that bears on the part.
1675
+ * @default cup
1676
+ */
1677
+ this.point = ansiSetScrewPointEnum.cup;
1678
+ /**
1679
+ * Whether the screw's thread is coarse (UNC) or fine (UNF), which sets the root its point
1680
+ * starts from; #0, which has no coarse thread, is cut fine.
1681
+ * @default unc
1682
+ */
1683
+ this.series = ansiThreadSeriesEnum.unc;
1684
+ if (size !== undefined) {
1685
+ this.size = size;
1686
+ }
1687
+ if (point !== undefined) {
1688
+ this.point = point;
1689
+ }
1690
+ if (series !== undefined) {
1691
+ this.series = series;
1692
+ }
1693
+ if (length !== undefined) {
1694
+ this.length = length;
1695
+ }
1696
+ if (unit !== undefined) {
1697
+ this.unit = unit;
1698
+ }
1699
+ }
1700
+ }
1701
+ Engineering.AnsiSetScrewSizesDto = AnsiSetScrewSizesDto;
1702
+ /**
1703
+ * An ISO deep groove ball bearing's designation and a unit, for
1704
+ * `engineering.mechanical.bearings.iso.ballBearingSizes`.
1705
+ */
1706
+ class IsoBallBearingSizesDto {
1707
+ constructor(designation, unit) {
1708
+ /**
1709
+ * The bearing, such as 6204 or 608.
1710
+ * @default b608
1711
+ */
1712
+ this.designation = isoBallBearingEnum.b608;
1713
+ /**
1714
+ * The unit the bearing's sizes come back in.
1715
+ * @default millimetre
1716
+ */
1717
+ this.unit = Base.unitOfLengthEnum.millimetre;
1718
+ if (designation !== undefined) {
1719
+ this.designation = designation;
1720
+ }
1721
+ if (unit !== undefined) {
1722
+ this.unit = unit;
1723
+ }
1724
+ }
1725
+ }
1726
+ Engineering.IsoBallBearingSizesDto = IsoBallBearingSizesDto;
1727
+ /**
1728
+ * An inch deep groove ball bearing's designation, whether it is shielded and a unit, for
1729
+ * `engineering.mechanical.bearings.ansi.ballBearingSizes`.
1730
+ */
1731
+ class AnsiBallBearingSizesDto {
1732
+ constructor(designation, shields, unit) {
1733
+ /**
1734
+ * The bearing, such as R8 or R188.
1735
+ * @default r8
1736
+ */
1737
+ this.designation = ansiBallBearingEnum.r8;
1738
+ /**
1739
+ * When true, the width of the shielded bearing, which on several R-series sizes is wider than
1740
+ * the open one.
1741
+ * @default false
1742
+ */
1743
+ this.shields = false;
1744
+ /**
1745
+ * The unit the bearing's sizes come back in.
1746
+ * @default inch
1747
+ */
1748
+ this.unit = Base.unitOfLengthEnum.inch;
1749
+ if (designation !== undefined) {
1750
+ this.designation = designation;
1751
+ }
1752
+ if (shields !== undefined) {
1753
+ this.shields = shields;
1754
+ }
1755
+ if (unit !== undefined) {
1756
+ this.unit = unit;
1757
+ }
1758
+ }
1759
+ }
1760
+ Engineering.AnsiBallBearingSizesDto = AnsiBallBearingSizesDto;
1761
+ /**
1762
+ * The shaft a DIN 6885 parallel key sits in and a unit, for
1763
+ * `engineering.mechanical.keys.din.parallelKeySizes`.
1764
+ */
1765
+ class DinParallelKeySizesDto {
1766
+ constructor(shaftDiameter, unit) {
1767
+ /**
1768
+ * The diameter of the shaft, in `unit`, which sets the key's width and height; DIN 6885 keys
1769
+ * shafts over 6 and up to 65 millimetres.
1770
+ * @default 20
1771
+ * @minimum 0
1772
+ * @exclusiveMinimum true
1773
+ * @maximum Infinity
1774
+ * @step 1
1775
+ */
1776
+ this.shaftDiameter = 20;
1777
+ /**
1778
+ * The unit the shaft's diameter and the key's sizes are in.
1779
+ * @default millimetre
1780
+ */
1781
+ this.unit = Base.unitOfLengthEnum.millimetre;
1782
+ if (shaftDiameter !== undefined) {
1783
+ this.shaftDiameter = shaftDiameter;
1784
+ }
1785
+ if (unit !== undefined) {
1786
+ this.unit = unit;
1787
+ }
1788
+ }
1789
+ }
1790
+ Engineering.DinParallelKeySizesDto = DinParallelKeySizesDto;
1791
+ /**
1792
+ * The shaft an ANSI B17.1 parallel key sits in and a unit, for
1793
+ * `engineering.mechanical.keys.ansi.parallelKeySizes`.
1794
+ */
1795
+ class AnsiParallelKeySizesDto {
1796
+ constructor(shaftDiameter, unit) {
1797
+ /**
1798
+ * The diameter of the shaft, in `unit`, which sets the square key's size; ANSI B17.1's square
1799
+ * keys cover shafts over 5/16 and up to 6-1/2 inches.
1800
+ * @default 1
1801
+ * @minimum 0
1802
+ * @exclusiveMinimum true
1803
+ * @maximum Infinity
1804
+ * @step 0.125
1805
+ */
1806
+ this.shaftDiameter = 1;
1807
+ /**
1808
+ * The unit the shaft's diameter and the key's sizes are in.
1809
+ * @default inch
1810
+ */
1811
+ this.unit = Base.unitOfLengthEnum.inch;
1812
+ if (shaftDiameter !== undefined) {
1813
+ this.shaftDiameter = shaftDiameter;
1814
+ }
1815
+ if (unit !== undefined) {
1816
+ this.unit = unit;
1817
+ }
1818
+ }
1819
+ }
1820
+ Engineering.AnsiParallelKeySizesDto = AnsiParallelKeySizesDto;
1821
+ /**
1822
+ * Shaft or bore and a unit, for `engineering.mechanical.retainingRings.din.diameters`, which lists
1823
+ * the diameters DIN 471 and DIN 472 give rings for.
1824
+ */
1825
+ class DinRetainingRingDiametersDto {
1826
+ constructor(kind, unit) {
1827
+ /**
1828
+ * Whether the rings sit on a shaft or in a bore.
1829
+ * @default shaft
1830
+ */
1831
+ this.kind = retainingRingKindEnum.shaft;
1832
+ /**
1833
+ * The unit the diameters come back in.
1834
+ * @default millimetre
1835
+ */
1836
+ this.unit = Base.unitOfLengthEnum.millimetre;
1837
+ if (kind !== undefined) {
1838
+ this.kind = kind;
1839
+ }
1840
+ if (unit !== undefined) {
1841
+ this.unit = unit;
1842
+ }
1843
+ }
1844
+ }
1845
+ Engineering.DinRetainingRingDiametersDto = DinRetainingRingDiametersDto;
1846
+ /**
1847
+ * A shaft's or a bore's diameter, which DIN ring it takes and a unit, for
1848
+ * `engineering.mechanical.retainingRings.din.retainingRingSizes`.
1849
+ */
1850
+ class DinRetainingRingSizesDto {
1851
+ constructor(kind, diameter, unit) {
1852
+ /**
1853
+ * Whether the ring sits on a shaft or in a bore.
1854
+ * @default shaft
1855
+ */
1856
+ this.kind = retainingRingKindEnum.shaft;
1857
+ /**
1858
+ * The shaft's or the bore's diameter in `unit`, one DIN 471 or DIN 472 lists: from 3 to 100
1859
+ * millimetres for shafts, from 8 to 100 for bores.
1860
+ * @default 20
1861
+ * @minimum 0
1862
+ * @exclusiveMinimum true
1863
+ * @maximum Infinity
1864
+ * @step 1
1865
+ */
1866
+ this.diameter = 20;
1867
+ /**
1868
+ * The unit the diameter and the ring's sizes are in.
1869
+ * @default millimetre
1870
+ */
1871
+ this.unit = Base.unitOfLengthEnum.millimetre;
1872
+ if (kind !== undefined) {
1873
+ this.kind = kind;
1874
+ }
1875
+ if (diameter !== undefined) {
1876
+ this.diameter = diameter;
1877
+ }
1878
+ if (unit !== undefined) {
1879
+ this.unit = unit;
1880
+ }
1881
+ }
1882
+ }
1883
+ Engineering.DinRetainingRingSizesDto = DinRetainingRingSizesDto;
1884
+ /**
1885
+ * Shaft or bore and a unit, for `engineering.mechanical.retainingRings.ansi.diameters`, which
1886
+ * lists the diameters the inch tapered rings come for.
1887
+ */
1888
+ class AnsiRetainingRingDiametersDto {
1889
+ constructor(kind, unit) {
1890
+ /**
1891
+ * Whether the rings sit on a shaft or in a bore.
1892
+ * @default shaft
1893
+ */
1894
+ this.kind = retainingRingKindEnum.shaft;
1895
+ /**
1896
+ * The unit the diameters come back in.
1897
+ * @default inch
1898
+ */
1899
+ this.unit = Base.unitOfLengthEnum.inch;
1900
+ if (kind !== undefined) {
1901
+ this.kind = kind;
1902
+ }
1903
+ if (unit !== undefined) {
1904
+ this.unit = unit;
1905
+ }
1906
+ }
1907
+ }
1908
+ Engineering.AnsiRetainingRingDiametersDto = AnsiRetainingRingDiametersDto;
1909
+ /**
1910
+ * A shaft's or a bore's diameter, which inch tapered ring it takes and a unit, for
1911
+ * `engineering.mechanical.retainingRings.ansi.retainingRingSizes`.
1912
+ */
1913
+ class AnsiRetainingRingSizesDto {
1914
+ constructor(kind, diameter, unit) {
1915
+ /**
1916
+ * Whether the ring sits on a shaft or in a bore.
1917
+ * @default shaft
1918
+ */
1919
+ this.kind = retainingRingKindEnum.shaft;
1920
+ /**
1921
+ * The shaft's or the bore's diameter in `unit`, one the inch rings list: from 1/8 to 2 inches
1922
+ * for shafts, from 1/4 to 2 for bores.
1923
+ * @default 0.75
1924
+ * @minimum 0
1925
+ * @exclusiveMinimum true
1926
+ * @maximum Infinity
1927
+ * @step 0.125
1928
+ */
1929
+ this.diameter = 0.75;
1930
+ /**
1931
+ * The unit the diameter and the ring's sizes are in.
1932
+ * @default inch
1933
+ */
1934
+ this.unit = Base.unitOfLengthEnum.inch;
1935
+ if (kind !== undefined) {
1936
+ this.kind = kind;
1937
+ }
1938
+ if (diameter !== undefined) {
1939
+ this.diameter = diameter;
1940
+ }
1941
+ if (unit !== undefined) {
1942
+ this.unit = unit;
1943
+ }
1944
+ }
1945
+ }
1946
+ Engineering.AnsiRetainingRingSizesDto = AnsiRetainingRingSizesDto;
1947
+ /**
1948
+ * A DIN 5480 involute spline's reference diameter and module, and the unit its sizes come back
1949
+ * in, for `engineering.mechanical.splines.din.involuteSplineSizes`.
1950
+ */
1951
+ class DinInvoluteSplineSizesDto {
1952
+ constructor(referenceDiameter, module, unit) {
1953
+ /**
1954
+ * The diameter the spline is named by, in millimetres as DIN 5480 names it, such as 25 in
1955
+ * W 25x1.25x18.
1956
+ * @default 25
1957
+ * @minimum 0
1958
+ * @exclusiveMinimum true
1959
+ * @maximum Infinity
1960
+ * @step 1
1961
+ */
1962
+ this.referenceDiameter = 25;
1963
+ /**
1964
+ * The module of its teeth in millimetres, one of DIN 5480's: 0.5, 0.6, 0.75, 0.8, 1, 1.25,
1965
+ * 1.5, 1.75, 2, 2.5, 3, 4, 5, 6, 8 or 10.
1966
+ * @default 1.25
1967
+ * @minimum 0.5
1968
+ * @maximum 10
1969
+ * @step 0.05
1970
+ */
1971
+ this.module = 1.25;
1972
+ /**
1973
+ * The unit the spline's sizes come back in.
1974
+ * @default millimetre
1975
+ */
1976
+ this.unit = Base.unitOfLengthEnum.millimetre;
1977
+ if (referenceDiameter !== undefined) {
1978
+ this.referenceDiameter = referenceDiameter;
1979
+ }
1980
+ if (module !== undefined) {
1981
+ this.module = module;
1982
+ }
1983
+ if (unit !== undefined) {
1984
+ this.unit = unit;
1985
+ }
1986
+ }
1987
+ }
1988
+ Engineering.DinInvoluteSplineSizesDto = DinInvoluteSplineSizesDto;
1989
+ /**
1990
+ * An ANSI B92.1 involute spline's teeth and pitch, and the unit its sizes come back in, for
1991
+ * `engineering.mechanical.splines.ansi.involuteSplineSizes`.
1992
+ */
1993
+ class AnsiInvoluteSplineSizesDto {
1994
+ constructor(teeth, pitch, unit) {
1995
+ /**
1996
+ * How many teeth the spline has, a whole number from 6 to 60.
1997
+ * @default 24
1998
+ * @minimum 6
1999
+ * @maximum 60
2000
+ * @step 1
2001
+ */
2002
+ this.teeth = 24;
2003
+ /**
2004
+ * The pitch over the stub pitch, such as 16/32.
2005
+ * @default p16_32
2006
+ */
2007
+ this.pitch = ansiSplinePitchEnum.p16_32;
2008
+ /**
2009
+ * The unit the spline's sizes come back in.
2010
+ * @default inch
2011
+ */
2012
+ this.unit = Base.unitOfLengthEnum.inch;
2013
+ if (teeth !== undefined) {
2014
+ this.teeth = teeth;
2015
+ }
2016
+ if (pitch !== undefined) {
2017
+ this.pitch = pitch;
2018
+ }
2019
+ if (unit !== undefined) {
2020
+ this.unit = unit;
2021
+ }
2022
+ }
2023
+ }
2024
+ Engineering.AnsiInvoluteSplineSizesDto = AnsiInvoluteSplineSizesDto;
2025
+ /**
2026
+ * A cylinder's diameter, an ASME B94.6 diametral pitch, a pattern and a unit, for
2027
+ * `engineering.mechanical.knurls.ansi.knurlSizes`.
2028
+ */
2029
+ class AnsiKnurlSizesDto {
2030
+ constructor(diameter, diametralPitch, pattern, unit) {
2031
+ /**
2032
+ * The cylinder's diameter in `unit`.
2033
+ * @default 0.5
2034
+ * @minimum 0
2035
+ * @exclusiveMinimum true
2036
+ * @maximum Infinity
2037
+ * @step 0.125
2038
+ */
2039
+ this.diameter = 0.5;
2040
+ /**
2041
+ * Teeth to an inch of diameter, one of ASME B94.6's: 64, 96, 128 or 160.
2042
+ * @default 96
2043
+ * @minimum 64
2044
+ * @maximum 160
2045
+ * @step 32
2046
+ */
2047
+ this.diametralPitch = 96;
2048
+ /**
2049
+ * The grooves' pattern; left and right are B94.6's diagonal knurls.
2050
+ * @default straight
2051
+ */
2052
+ this.pattern = knurlPatternEnum.straight;
2053
+ /**
2054
+ * The unit the diameter and the grooves' sizes are in.
2055
+ * @default inch
2056
+ */
2057
+ this.unit = Base.unitOfLengthEnum.inch;
2058
+ if (diameter !== undefined) {
2059
+ this.diameter = diameter;
2060
+ }
2061
+ if (diametralPitch !== undefined) {
2062
+ this.diametralPitch = diametralPitch;
2063
+ }
2064
+ if (pattern !== undefined) {
2065
+ this.pattern = pattern;
2066
+ }
2067
+ if (unit !== undefined) {
2068
+ this.unit = unit;
2069
+ }
2070
+ }
2071
+ }
2072
+ Engineering.AnsiKnurlSizesDto = AnsiKnurlSizesDto;
2073
+ /**
2074
+ * A cylinder's diameter, a DIN 82 pitch, a pattern and a unit, for
2075
+ * `engineering.mechanical.knurls.din.knurlSizes`.
2076
+ */
2077
+ class DinKnurlSizesDto {
2078
+ constructor(diameter, pitch, pattern, unit) {
2079
+ /**
2080
+ * The cylinder's diameter in `unit`, more than twice `pitch` (which is in millimetres).
2081
+ * @default 20
2082
+ * @minimum 0
2083
+ * @exclusiveMinimum true
2084
+ * @maximum Infinity
2085
+ * @step 1
2086
+ */
2087
+ this.diameter = 20;
2088
+ /**
2089
+ * The distance between grooves round the circumference, in millimetres, one of DIN 82's: 0.5,
2090
+ * 0.6, 0.8, 1, 1.2 or 1.6.
2091
+ * @default 1
2092
+ * @minimum 0.5
2093
+ * @maximum 1.6
2094
+ * @step 0.1
2095
+ */
2096
+ this.pitch = 1;
2097
+ /**
2098
+ * The grooves' pattern.
2099
+ * @default straight
2100
+ */
2101
+ this.pattern = knurlPatternEnum.straight;
2102
+ /**
2103
+ * The unit the diameter and the grooves' sizes are in.
2104
+ * @default millimetre
2105
+ */
2106
+ this.unit = Base.unitOfLengthEnum.millimetre;
2107
+ if (diameter !== undefined) {
2108
+ this.diameter = diameter;
2109
+ }
2110
+ if (pitch !== undefined) {
2111
+ this.pitch = pitch;
2112
+ }
2113
+ if (pattern !== undefined) {
2114
+ this.pattern = pattern;
2115
+ }
2116
+ if (unit !== undefined) {
2117
+ this.unit = unit;
2118
+ }
2119
+ }
2120
+ }
2121
+ Engineering.DinKnurlSizesDto = DinKnurlSizesDto;
2122
+ /**
2123
+ * A compression spring with closed and ground ends, for
2124
+ * `engineering.mechanical.springs.compressionSpringPath`: its wire, its coils and its length.
2125
+ */
2126
+ class CompressionSpringPathDto {
2127
+ constructor(wireDiameter, diameter, activeCoils, length) {
2128
+ /**
2129
+ * The diameter of the wire, in model units.
2130
+ * @default 0.2
2131
+ * @minimum 0
2132
+ * @exclusiveMinimum true
2133
+ * @maximum Infinity
2134
+ * @step 0.05
2135
+ */
2136
+ this.wireDiameter = 0.2;
2137
+ /**
2138
+ * The outside diameter of the coils, in model units; more than three times `wireDiameter`.
2139
+ * @default 2
2140
+ * @minimum 0
2141
+ * @exclusiveMinimum true
2142
+ * @maximum Infinity
2143
+ * @step 0.1
2144
+ */
2145
+ this.diameter = 2;
2146
+ /**
2147
+ * How many coils spring, besides the closed coil at each end; it may be a fraction, and at
2148
+ * most 1000.
2149
+ * @default 6
2150
+ * @minimum 0
2151
+ * @exclusiveMinimum true
2152
+ * @maximum 1000
2153
+ * @step 0.5
2154
+ */
2155
+ this.activeCoils = 6;
2156
+ /**
2157
+ * The spring's length from one ground end to the other, free or compressed; at least the
2158
+ * solid length, where every coil touches the next.
2159
+ * @default 4
2160
+ * @minimum 0
2161
+ * @exclusiveMinimum true
2162
+ * @maximum Infinity
2163
+ * @step 0.1
2164
+ */
2165
+ this.length = 4;
2166
+ if (wireDiameter !== undefined) {
2167
+ this.wireDiameter = wireDiameter;
2168
+ }
2169
+ if (diameter !== undefined) {
2170
+ this.diameter = diameter;
2171
+ }
2172
+ if (activeCoils !== undefined) {
2173
+ this.activeCoils = activeCoils;
2174
+ }
2175
+ if (length !== undefined) {
2176
+ this.length = length;
2177
+ }
2178
+ }
2179
+ }
2180
+ Engineering.CompressionSpringPathDto = CompressionSpringPathDto;
2181
+ })(Engineering || (Engineering = {}));