@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.
- package/lib/api/GlobalCDNProvider.js +1 -1
- package/lib/api/bearings/ansi-bearings.constants.d.ts +2 -0
- package/lib/api/bearings/ansi-bearings.constants.js +26 -0
- package/lib/api/bearings/ansi-bearings.d.ts +4 -0
- package/lib/api/bearings/ansi-bearings.js +14 -0
- package/lib/api/bearings/bearing-types.d.ts +25 -0
- package/lib/api/bearings/bearing-types.js +1 -0
- package/lib/api/bearings/bearings.constants.d.ts +1 -0
- package/lib/api/bearings/bearings.constants.js +1 -0
- package/lib/api/bearings/iso-bearings.constants.d.ts +2 -0
- package/lib/api/bearings/iso-bearings.constants.js +30 -0
- package/lib/api/bearings/iso-bearings.d.ts +4 -0
- package/lib/api/bearings/iso-bearings.js +14 -0
- package/lib/api/color-space.d.ts +2 -0
- package/lib/api/color-space.js +5 -8
- package/lib/api/fasteners/ansi-fasteners.constants.d.ts +16 -0
- package/lib/api/fasteners/ansi-fasteners.constants.js +118 -0
- package/lib/api/fasteners/ansi-fasteners.d.ts +8 -0
- package/lib/api/fasteners/ansi-fasteners.js +64 -0
- package/lib/api/fasteners/fastener-types.d.ts +161 -0
- package/lib/api/fasteners/fastener-types.js +1 -0
- package/lib/api/fasteners/fasteners.constants.d.ts +5 -0
- package/lib/api/fasteners/fasteners.constants.js +5 -0
- package/lib/api/fasteners/fasteners.d.ts +2 -0
- package/lib/api/fasteners/fasteners.js +9 -0
- package/lib/api/fasteners/iso-fasteners.constants.d.ts +23 -0
- package/lib/api/fasteners/iso-fasteners.constants.js +110 -0
- package/lib/api/fasteners/iso-fasteners.d.ts +9 -0
- package/lib/api/fasteners/iso-fasteners.js +61 -0
- package/lib/api/gears/bevel-gears.d.ts +6 -0
- package/lib/api/gears/bevel-gears.js +69 -0
- package/lib/api/gears/gear-checks.d.ts +8 -0
- package/lib/api/gears/gear-checks.js +69 -0
- package/lib/api/gears/gear-pairs.d.ts +4 -0
- package/lib/api/gears/gear-pairs.js +140 -0
- package/lib/api/gears/gear-types.d.ts +425 -0
- package/lib/api/gears/gear-types.js +1 -0
- package/lib/api/gears/gears.constants.d.ts +19 -0
- package/lib/api/gears/gears.constants.js +19 -0
- package/lib/api/gears/gears.d.ts +10 -0
- package/lib/api/gears/gears.js +156 -0
- package/lib/api/gears/helical-gears.d.ts +5 -0
- package/lib/api/gears/helical-gears.js +33 -0
- package/lib/api/gears/involute-flank.d.ts +26 -0
- package/lib/api/gears/involute-flank.js +158 -0
- package/lib/api/gears/racks.d.ts +3 -0
- package/lib/api/gears/racks.js +64 -0
- package/lib/api/index.d.ts +10 -1
- package/lib/api/index.js +0 -1
- package/lib/api/inputs/base-inputs.d.ts +450 -3
- package/lib/api/inputs/base-inputs.js +12 -0
- package/lib/api/inputs/color-inputs.d.ts +14 -0
- package/lib/api/inputs/color-inputs.js +19 -0
- package/lib/api/inputs/engineering-inputs.d.ts +1539 -0
- package/lib/api/inputs/engineering-inputs.js +2181 -0
- package/lib/api/inputs/index.d.ts +2 -0
- package/lib/api/inputs/index.js +2 -0
- package/lib/api/inputs/io-inputs.d.ts +8 -1
- package/lib/api/inputs/io-inputs.js +4 -1
- package/lib/api/inputs/math-inputs.d.ts +61 -0
- package/lib/api/inputs/math-inputs.js +85 -0
- package/lib/api/inputs/mesh-inputs.d.ts +170 -0
- package/lib/api/inputs/mesh-inputs.js +206 -0
- package/lib/api/inputs/point-inputs.d.ts +4 -4
- package/lib/api/inputs/polyline-inputs.d.ts +144 -0
- package/lib/api/inputs/polyline-inputs.js +151 -0
- package/lib/api/inputs/recipes-inputs.d.ts +76 -0
- package/lib/api/inputs/recipes-inputs.js +74 -0
- package/lib/api/inputs/transforms-inputs.d.ts +34 -0
- package/lib/api/inputs/transforms-inputs.js +35 -0
- package/lib/api/keys/ansi-keys.constants.d.ts +3 -0
- package/lib/api/keys/ansi-keys.constants.js +16 -0
- package/lib/api/keys/ansi-keys.d.ts +3 -0
- package/lib/api/keys/ansi-keys.js +14 -0
- package/lib/api/keys/din-keys.constants.d.ts +3 -0
- package/lib/api/keys/din-keys.constants.js +14 -0
- package/lib/api/keys/din-keys.d.ts +3 -0
- package/lib/api/keys/din-keys.js +13 -0
- package/lib/api/keys/key-types.d.ts +17 -0
- package/lib/api/keys/key-types.js +1 -0
- package/lib/api/keys/keys.constants.d.ts +1 -0
- package/lib/api/keys/keys.constants.js +1 -0
- package/lib/api/knurls/ansi-knurls.constants.d.ts +4 -0
- package/lib/api/knurls/ansi-knurls.constants.js +8 -0
- package/lib/api/knurls/ansi-knurls.d.ts +3 -0
- package/lib/api/knurls/ansi-knurls.js +20 -0
- package/lib/api/knurls/din-knurls.constants.d.ts +2 -0
- package/lib/api/knurls/din-knurls.constants.js +2 -0
- package/lib/api/knurls/din-knurls.d.ts +3 -0
- package/lib/api/knurls/din-knurls.js +19 -0
- package/lib/api/knurls/knurl-types.d.ts +24 -0
- package/lib/api/knurls/knurl-types.js +1 -0
- package/lib/api/knurls/knurls.constants.d.ts +1 -0
- package/lib/api/knurls/knurls.constants.js +1 -0
- package/lib/api/knurls/knurls.d.ts +2 -0
- package/lib/api/knurls/knurls.js +9 -0
- package/lib/api/recipes/checks.d.ts +15 -0
- package/lib/api/recipes/checks.js +85 -0
- package/lib/api/recipes/limits.constants.d.ts +4 -0
- package/lib/api/recipes/limits.constants.js +4 -0
- package/lib/api/recipes/sources.d.ts +0 -13
- package/lib/api/recipes/sources.js +3 -15
- package/lib/api/recipes/surface-mesh.d.ts +0 -14
- package/lib/api/recipes/surface-mesh.js +8 -21
- package/lib/api/recipes/validate-brep.d.ts +2 -0
- package/lib/api/recipes/validate-brep.js +330 -0
- package/lib/api/recipes/validate.d.ts +0 -31
- package/lib/api/recipes/validate.js +7 -115
- package/lib/api/resolved-inputs/index.d.ts +80 -0
- package/lib/api/retaining-rings/ansi-retaining-rings.constants.d.ts +4 -0
- package/lib/api/retaining-rings/ansi-retaining-rings.constants.js +93 -0
- package/lib/api/retaining-rings/ansi-retaining-rings.d.ts +4 -0
- package/lib/api/retaining-rings/ansi-retaining-rings.js +20 -0
- package/lib/api/retaining-rings/din-retaining-rings.constants.d.ts +3 -0
- package/lib/api/retaining-rings/din-retaining-rings.constants.js +115 -0
- package/lib/api/retaining-rings/din-retaining-rings.d.ts +4 -0
- package/lib/api/retaining-rings/din-retaining-rings.js +20 -0
- package/lib/api/retaining-rings/retaining-ring-types.d.ts +30 -0
- package/lib/api/retaining-rings/retaining-ring-types.js +1 -0
- package/lib/api/retaining-rings/retaining-rings.constants.d.ts +1 -0
- package/lib/api/retaining-rings/retaining-rings.constants.js +1 -0
- package/lib/api/retaining-rings/retaining-rings.d.ts +2 -0
- package/lib/api/retaining-rings/retaining-rings.js +9 -0
- package/lib/api/services/base-bitbybit.d.ts +42 -0
- package/lib/api/services/base-bitbybit.js +43 -0
- package/lib/api/services/color.d.ts +35 -2
- package/lib/api/services/color.js +48 -12
- package/lib/api/services/engineering/engineering.d.ts +12 -0
- package/lib/api/services/engineering/engineering.js +13 -0
- package/lib/api/services/engineering/index.d.ts +2 -0
- package/lib/api/services/engineering/index.js +2 -0
- package/lib/api/services/engineering/mechanical/bearings-ansi.d.ts +40 -0
- package/lib/api/services/engineering/mechanical/bearings-ansi.js +47 -0
- package/lib/api/services/engineering/mechanical/bearings-iso.d.ts +39 -0
- package/lib/api/services/engineering/mechanical/bearings-iso.js +46 -0
- package/lib/api/services/engineering/mechanical/bearings.d.ts +14 -0
- package/lib/api/services/engineering/mechanical/bearings.js +15 -0
- package/lib/api/services/engineering/mechanical/fasteners-ansi.d.ts +109 -0
- package/lib/api/services/engineering/mechanical/fasteners-ansi.js +133 -0
- package/lib/api/services/engineering/mechanical/fasteners-iso.d.ts +123 -0
- package/lib/api/services/engineering/mechanical/fasteners-iso.js +151 -0
- package/lib/api/services/engineering/mechanical/fasteners.d.ts +13 -0
- package/lib/api/services/engineering/mechanical/fasteners.js +14 -0
- package/lib/api/services/engineering/mechanical/gears.d.ts +267 -0
- package/lib/api/services/engineering/mechanical/gears.js +318 -0
- package/lib/api/services/engineering/mechanical/index.d.ts +24 -0
- package/lib/api/services/engineering/mechanical/index.js +24 -0
- package/lib/api/services/engineering/mechanical/keys-ansi.d.ts +27 -0
- package/lib/api/services/engineering/mechanical/keys-ansi.js +32 -0
- package/lib/api/services/engineering/mechanical/keys-din.d.ts +26 -0
- package/lib/api/services/engineering/mechanical/keys-din.js +31 -0
- package/lib/api/services/engineering/mechanical/keys.d.ts +14 -0
- package/lib/api/services/engineering/mechanical/keys.js +15 -0
- package/lib/api/services/engineering/mechanical/knurls-ansi.d.ts +26 -0
- package/lib/api/services/engineering/mechanical/knurls-ansi.js +31 -0
- package/lib/api/services/engineering/mechanical/knurls-din.d.ts +26 -0
- package/lib/api/services/engineering/mechanical/knurls-din.js +31 -0
- package/lib/api/services/engineering/mechanical/knurls.d.ts +14 -0
- package/lib/api/services/engineering/mechanical/knurls.js +15 -0
- package/lib/api/services/engineering/mechanical/mechanical.d.ts +29 -0
- package/lib/api/services/engineering/mechanical/mechanical.js +30 -0
- package/lib/api/services/engineering/mechanical/retaining-rings-ansi.d.ts +43 -0
- package/lib/api/services/engineering/mechanical/retaining-rings-ansi.js +51 -0
- package/lib/api/services/engineering/mechanical/retaining-rings-din.d.ts +43 -0
- package/lib/api/services/engineering/mechanical/retaining-rings-din.js +51 -0
- package/lib/api/services/engineering/mechanical/retaining-rings.d.ts +13 -0
- package/lib/api/services/engineering/mechanical/retaining-rings.js +14 -0
- package/lib/api/services/engineering/mechanical/splines-ansi.d.ts +27 -0
- package/lib/api/services/engineering/mechanical/splines-ansi.js +32 -0
- package/lib/api/services/engineering/mechanical/splines-din.d.ts +26 -0
- package/lib/api/services/engineering/mechanical/splines-din.js +31 -0
- package/lib/api/services/engineering/mechanical/splines.d.ts +13 -0
- package/lib/api/services/engineering/mechanical/splines.js +14 -0
- package/lib/api/services/engineering/mechanical/springs.d.ts +27 -0
- package/lib/api/services/engineering/mechanical/springs.js +31 -0
- package/lib/api/services/engineering/mechanical/threads-ansi.d.ts +40 -0
- package/lib/api/services/engineering/mechanical/threads-ansi.js +48 -0
- package/lib/api/services/engineering/mechanical/threads-iso.d.ts +40 -0
- package/lib/api/services/engineering/mechanical/threads-iso.js +48 -0
- package/lib/api/services/engineering/mechanical/threads.d.ts +13 -0
- package/lib/api/services/engineering/mechanical/threads.js +14 -0
- package/lib/api/services/frame.js +3 -3
- package/lib/api/services/geometry-helper.js +8 -111
- package/lib/api/services/helpers/color/color-space.d.ts +2 -0
- package/lib/api/services/helpers/color/color-space.js +12 -0
- package/lib/api/services/helpers/{nurbs.d.ts → curves/nurbs.d.ts} +1 -1
- package/lib/api/services/helpers/{surface-triangulation.d.ts → curves/surface-triangulation.d.ts} +2 -2
- package/lib/api/services/helpers/{surface-triangulation.js → curves/surface-triangulation.js} +14 -8
- package/lib/api/services/helpers/{dxf → files/dxf}/dxf-generator.d.ts +2 -1
- package/lib/api/services/helpers/{dxf → files/dxf}/dxf-generator.js +19 -5
- package/lib/api/services/helpers/files/dxf/dxf.constants.d.ts +4 -0
- package/lib/api/services/helpers/files/dxf/dxf.constants.js +4 -0
- package/lib/api/services/helpers/{dxf → files/dxf}/dxf.d.ts +1 -1
- package/lib/api/services/helpers/{dxf → files/dxf}/dxf.js +2 -2
- package/lib/api/services/helpers/files/glb.constants.d.ts +11 -0
- package/lib/api/services/helpers/files/glb.constants.js +11 -0
- package/lib/api/services/helpers/files/glb.d.ts +1 -0
- package/lib/api/services/helpers/files/glb.js +69 -0
- package/lib/api/services/helpers/files/gzip.constants.d.ts +11 -0
- package/lib/api/services/helpers/files/gzip.constants.js +11 -0
- package/lib/api/services/helpers/files/gzip.d.ts +2 -0
- package/lib/api/services/helpers/files/gzip.js +52 -0
- package/lib/api/services/helpers/{inflate.constants.d.ts → files/inflate.constants.d.ts} +1 -0
- package/lib/api/services/helpers/{inflate.constants.js → files/inflate.constants.js} +1 -0
- package/lib/api/services/helpers/{inflate.d.ts → files/inflate.d.ts} +1 -1
- package/lib/api/services/helpers/{inflate.js → files/inflate.js} +5 -4
- package/lib/api/services/helpers/{zip.d.ts → files/zip.d.ts} +1 -1
- package/lib/api/services/helpers/geometry/arcs.d.ts +9 -0
- package/lib/api/services/helpers/{arcs.js → geometry/arcs.js} +7 -0
- package/lib/api/services/helpers/{frame-axes.d.ts → geometry/frame-axes.d.ts} +8 -5
- package/lib/api/services/helpers/{frame-axes.js → geometry/frame-axes.js} +21 -9
- package/lib/api/services/helpers/geometry/lengths.constants.d.ts +4 -0
- package/lib/api/services/helpers/geometry/lengths.constants.js +3 -0
- package/lib/api/services/helpers/geometry/lengths.d.ts +7 -0
- package/lib/api/services/helpers/geometry/lengths.js +20 -0
- package/lib/api/services/helpers/geometry/matrices.constants.d.ts +8 -0
- package/lib/api/services/helpers/geometry/matrices.constants.js +7 -0
- package/lib/api/services/helpers/geometry/matrices.d.ts +17 -0
- package/lib/api/services/helpers/{matrices.js → geometry/matrices.js} +28 -17
- package/lib/api/services/helpers/{paths.d.ts → geometry/paths.d.ts} +2 -1
- package/lib/api/services/helpers/{paths.js → geometry/paths.js} +36 -30
- package/lib/api/services/helpers/{polygons.d.ts → geometry/polygons.d.ts} +1 -1
- package/lib/api/services/helpers/geometry/polygons.js +111 -0
- package/lib/api/services/helpers/geometry/scalars.d.ts +9 -0
- package/lib/api/services/helpers/geometry/scalars.js +34 -0
- package/lib/api/services/helpers/{triangulation.js → geometry/triangulation.js} +11 -6
- package/lib/api/services/helpers/geometry/vector-grid.d.ts +12 -0
- package/lib/api/services/helpers/geometry/vector-grid.js +149 -0
- package/lib/api/services/helpers/{vectors.d.ts → geometry/vectors.d.ts} +8 -1
- package/lib/api/services/helpers/geometry/vectors.js +43 -0
- package/lib/api/services/helpers/helper-types.d.ts +57 -0
- package/lib/api/services/helpers/mesh/mesh-normals.d.ts +21 -0
- package/lib/api/services/helpers/{mesh-normals.js → mesh/mesh-normals.js} +54 -65
- package/lib/api/services/helpers/mesh/mesh-orientation.d.ts +24 -0
- package/lib/api/services/helpers/mesh/mesh-orientation.js +104 -0
- package/lib/api/services/helpers/{mesh-primitives.d.ts → mesh/mesh-primitives.d.ts} +1 -1
- package/lib/api/services/helpers/{mesh-primitives.js → mesh/mesh-primitives.js} +6 -5
- package/lib/api/services/helpers/mesh/mesh-proximity.constants.d.ts +7 -0
- package/lib/api/services/helpers/mesh/mesh-proximity.constants.js +11 -0
- package/lib/api/services/helpers/mesh/mesh-proximity.d.ts +11 -0
- package/lib/api/services/helpers/mesh/mesh-proximity.js +382 -0
- package/lib/api/services/index.d.ts +3 -0
- package/lib/api/services/index.js +3 -0
- package/lib/api/services/io.d.ts +1 -1
- package/lib/api/services/io.js +1 -1
- package/lib/api/services/line.js +2 -3
- package/lib/api/services/math.d.ts +47 -0
- package/lib/api/services/math.js +77 -10
- package/lib/api/services/mesh.d.ts +174 -2
- package/lib/api/services/mesh.js +305 -7
- package/lib/api/services/point.js +4 -10
- package/lib/api/services/polyline-types.d.ts +6 -0
- package/lib/api/services/polyline-types.js +1 -0
- package/lib/api/services/polyline.d.ts +163 -1
- package/lib/api/services/polyline.js +270 -13
- package/lib/api/services/recipes.d.ts +80 -0
- package/lib/api/services/recipes.js +107 -0
- package/lib/api/services/transforms.d.ts +74 -2
- package/lib/api/services/transforms.js +100 -3
- package/lib/api/services/vector.d.ts +4 -3
- package/lib/api/services/vector.js +14 -14
- package/lib/api/splines/ansi-splines.constants.d.ts +9 -0
- package/lib/api/splines/ansi-splines.constants.js +9 -0
- package/lib/api/splines/ansi-splines.d.ts +3 -0
- package/lib/api/splines/ansi-splines.js +28 -0
- package/lib/api/splines/din-splines.constants.d.ts +12 -0
- package/lib/api/splines/din-splines.constants.js +12 -0
- package/lib/api/splines/din-splines.d.ts +3 -0
- package/lib/api/splines/din-splines.js +38 -0
- package/lib/api/splines/spline-types.d.ts +32 -0
- package/lib/api/splines/spline-types.js +1 -0
- package/lib/api/splines/splines.constants.d.ts +1 -0
- package/lib/api/splines/splines.constants.js +1 -0
- package/lib/api/springs/spring-types.d.ts +26 -0
- package/lib/api/springs/spring-types.js +1 -0
- package/lib/api/springs/springs.constants.d.ts +9 -0
- package/lib/api/springs/springs.constants.js +9 -0
- package/lib/api/springs/springs.d.ts +2 -0
- package/lib/api/springs/springs.js +50 -0
- package/lib/api/threads/ansi-threads.constants.d.ts +6 -0
- package/lib/api/threads/ansi-threads.constants.js +27 -0
- package/lib/api/threads/ansi-threads.d.ts +4 -0
- package/lib/api/threads/ansi-threads.js +50 -0
- package/lib/api/threads/iso-threads.constants.d.ts +5 -0
- package/lib/api/threads/iso-threads.constants.js +20 -0
- package/lib/api/threads/iso-threads.d.ts +4 -0
- package/lib/api/threads/iso-threads.js +32 -0
- package/lib/api/threads/thread-profile.constants.d.ts +3 -0
- package/lib/api/threads/thread-profile.constants.js +3 -0
- package/lib/api/threads/thread-types.d.ts +66 -0
- package/lib/api/threads/thread-types.js +1 -0
- package/package.json +1 -1
- package/lib/api/recipes/index.d.ts +0 -4
- package/lib/api/recipes/index.js +0 -3
- package/lib/api/services/helpers/arcs.d.ts +0 -6
- package/lib/api/services/helpers/matrices.constants.d.ts +0 -2
- package/lib/api/services/helpers/matrices.constants.js +0 -2
- package/lib/api/services/helpers/matrices.d.ts +0 -25
- package/lib/api/services/helpers/mesh-normals.d.ts +0 -11
- package/lib/api/services/helpers/polygons.js +0 -59
- package/lib/api/services/helpers/vectors.js +0 -17
- /package/lib/api/services/helpers/{nurbs.js → curves/nurbs.js} +0 -0
- /package/lib/api/services/helpers/{crc32.d.ts → files/crc32.d.ts} +0 -0
- /package/lib/api/services/helpers/{crc32.js → files/crc32.js} +0 -0
- /package/lib/api/services/helpers/{zip.constants.d.ts → files/zip.constants.d.ts} +0 -0
- /package/lib/api/services/helpers/{zip.constants.js → files/zip.constants.js} +0 -0
- /package/lib/api/services/helpers/{zip.js → files/zip.js} +0 -0
- /package/lib/api/services/helpers/{triangulation.d.ts → geometry/triangulation.d.ts} +0 -0
- /package/lib/api/services/helpers/{mesh-measures.d.ts → mesh/mesh-measures.d.ts} +0 -0
- /package/lib/api/services/helpers/{mesh-measures.js → mesh/mesh-measures.js} +0 -0
- /package/lib/api/services/helpers/{mesh-primitives.constants.d.ts → mesh/mesh-primitives.constants.d.ts} +0 -0
- /package/lib/api/services/helpers/{mesh-primitives.constants.js → mesh/mesh-primitives.constants.js} +0 -0
|
@@ -5,6 +5,7 @@ import * as Inputs from "../inputs";
|
|
|
5
5
|
* the way `resolveDto` hands a DTO to the code that reads it.
|
|
6
6
|
*/
|
|
7
7
|
export declare namespace Color {
|
|
8
|
+
type ChannelDto = WithDefaults<Inputs.Color.ChannelDto, "channel">;
|
|
8
9
|
type HexDto = WithDefaults<Inputs.Color.HexDto, "color">;
|
|
9
10
|
type HexDtoMapped = WithDefaults<Inputs.Color.HexDtoMapped, "color" | "from" | "to">;
|
|
10
11
|
type InvertHexDto = WithDefaults<Inputs.Color.InvertHexDto, "color" | "blackAndWhite">;
|
|
@@ -38,6 +39,57 @@ export declare namespace Dates {
|
|
|
38
39
|
type DateTimeDto = WithDefaults<Inputs.Dates.DateTimeDto, "time">;
|
|
39
40
|
type DateYearDto = WithDefaults<Inputs.Dates.DateYearDto, "year">;
|
|
40
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* The Engineering inputs DTOs as their defaults leave them: every property with a default is present,
|
|
44
|
+
* the way `resolveDto` hands a DTO to the code that reads it.
|
|
45
|
+
*/
|
|
46
|
+
export declare namespace Engineering {
|
|
47
|
+
type AnsiBallBearingSizesDto = WithDefaults<Inputs.Engineering.AnsiBallBearingSizesDto, "designation" | "shields" | "unit">;
|
|
48
|
+
type AnsiClearanceHoleDto = WithDefaults<Inputs.Engineering.AnsiClearanceHoleDto, "fit" | "size" | "unit">;
|
|
49
|
+
type AnsiHexBoltSizesDto = WithDefaults<Inputs.Engineering.AnsiHexBoltSizesDto, "length" | "size" | "unit">;
|
|
50
|
+
type AnsiInvoluteSplineSizesDto = WithDefaults<Inputs.Engineering.AnsiInvoluteSplineSizesDto, "teeth" | "pitch" | "unit">;
|
|
51
|
+
type AnsiKnurlSizesDto = WithDefaults<Inputs.Engineering.AnsiKnurlSizesDto, "diameter" | "diametralPitch" | "pattern" | "unit">;
|
|
52
|
+
type AnsiParallelKeySizesDto = WithDefaults<Inputs.Engineering.AnsiParallelKeySizesDto, "shaftDiameter" | "unit">;
|
|
53
|
+
type AnsiRetainingRingDiametersDto = WithDefaults<Inputs.Engineering.AnsiRetainingRingDiametersDto, "kind" | "unit">;
|
|
54
|
+
type AnsiRetainingRingSizesDto = WithDefaults<Inputs.Engineering.AnsiRetainingRingSizesDto, "kind" | "diameter" | "unit">;
|
|
55
|
+
type AnsiSetScrewSizesDto = WithDefaults<Inputs.Engineering.AnsiSetScrewSizesDto, "point" | "series" | "size" | "unit">;
|
|
56
|
+
type AnsiSizeDto = WithDefaults<Inputs.Engineering.AnsiSizeDto, "size" | "unit">;
|
|
57
|
+
type AnsiSizeSharedDto = WithDefaults<Inputs.Engineering.AnsiSizeSharedDto, "size" | "unit">;
|
|
58
|
+
type AnsiThreadDto = WithDefaults<Inputs.Engineering.AnsiThreadDto, "series" | "size" | "unit">;
|
|
59
|
+
type AnsiWasherSizesDto = WithDefaults<Inputs.Engineering.AnsiWasherSizesDto, "series" | "size" | "unit">;
|
|
60
|
+
type BevelGearOutlineDto = WithDefaults<Inputs.Engineering.BevelGearOutlineDto, "rotation" | "segments" | "module" | "teeth" | "mateTeeth" | "shaftAngle" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
61
|
+
type BevelGearSharedDto = WithDefaults<Inputs.Engineering.BevelGearSharedDto, "module" | "teeth" | "mateTeeth" | "shaftAngle" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
62
|
+
type BevelGearSizesDto = WithDefaults<Inputs.Engineering.BevelGearSizesDto, "module" | "teeth" | "mateTeeth" | "shaftAngle" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
63
|
+
type CompressionSpringPathDto = WithDefaults<Inputs.Engineering.CompressionSpringPathDto, "wireDiameter" | "diameter" | "activeCoils" | "length">;
|
|
64
|
+
type DinInvoluteSplineSizesDto = WithDefaults<Inputs.Engineering.DinInvoluteSplineSizesDto, "referenceDiameter" | "module" | "unit">;
|
|
65
|
+
type DinKnurlSizesDto = WithDefaults<Inputs.Engineering.DinKnurlSizesDto, "diameter" | "pitch" | "pattern" | "unit">;
|
|
66
|
+
type DinParallelKeySizesDto = WithDefaults<Inputs.Engineering.DinParallelKeySizesDto, "shaftDiameter" | "unit">;
|
|
67
|
+
type DinRetainingRingDiametersDto = WithDefaults<Inputs.Engineering.DinRetainingRingDiametersDto, "kind" | "unit">;
|
|
68
|
+
type DinRetainingRingSizesDto = WithDefaults<Inputs.Engineering.DinRetainingRingSizesDto, "kind" | "diameter" | "unit">;
|
|
69
|
+
type GearPairDto = WithDefaults<Inputs.Engineering.GearPairDto, "module" | "teethA" | "teethB" | "pressureAngle" | "profileShiftA" | "profileShiftB" | "addendum" | "dedendum">;
|
|
70
|
+
type HelicalGearOutlineDto = WithDefaults<Inputs.Engineering.HelicalGearOutlineDto, "rotation" | "segments" | "module" | "teeth" | "helixAngle" | "pressureAngle" | "profileShift" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
71
|
+
type HelicalGearSharedDto = WithDefaults<Inputs.Engineering.HelicalGearSharedDto, "module" | "teeth" | "helixAngle" | "pressureAngle" | "profileShift" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
72
|
+
type HelicalGearSizesDto = WithDefaults<Inputs.Engineering.HelicalGearSizesDto, "module" | "teeth" | "helixAngle" | "pressureAngle" | "profileShift" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
73
|
+
type InternalGearPairDto = WithDefaults<Inputs.Engineering.InternalGearPairDto, "module" | "pinionTeeth" | "ringTeeth" | "pressureAngle" | "addendum">;
|
|
74
|
+
type IsoBallBearingSizesDto = WithDefaults<Inputs.Engineering.IsoBallBearingSizesDto, "designation" | "unit">;
|
|
75
|
+
type IsoClearanceHoleDto = WithDefaults<Inputs.Engineering.IsoClearanceHoleDto, "fit" | "size" | "unit">;
|
|
76
|
+
type IsoHexBoltSizesDto = WithDefaults<Inputs.Engineering.IsoHexBoltSizesDto, "length" | "size" | "unit">;
|
|
77
|
+
type IsoSetScrewSizesDto = WithDefaults<Inputs.Engineering.IsoSetScrewSizesDto, "point" | "size" | "unit">;
|
|
78
|
+
type IsoSizeDto = WithDefaults<Inputs.Engineering.IsoSizeDto, "size" | "unit">;
|
|
79
|
+
type IsoSizeSharedDto = WithDefaults<Inputs.Engineering.IsoSizeSharedDto, "size" | "unit">;
|
|
80
|
+
type IsoThreadDto = WithDefaults<Inputs.Engineering.IsoThreadDto, "size" | "unit">;
|
|
81
|
+
type ModuleFromDiametralPitchDto = WithDefaults<Inputs.Engineering.ModuleFromDiametralPitchDto, "diametralPitch" | "unit">;
|
|
82
|
+
type PlanetarySetDto = WithDefaults<Inputs.Engineering.PlanetarySetDto, "module" | "sunTeeth" | "planetTeeth" | "planets" | "pressureAngle" | "addendum">;
|
|
83
|
+
type RackOutlineDto = WithDefaults<Inputs.Engineering.RackOutlineDto, "segments" | "module" | "teeth" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet" | "height">;
|
|
84
|
+
type RackSharedDto = WithDefaults<Inputs.Engineering.RackSharedDto, "module" | "teeth" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet" | "height">;
|
|
85
|
+
type RackSizesDto = WithDefaults<Inputs.Engineering.RackSizesDto, "module" | "teeth" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet" | "height">;
|
|
86
|
+
type RingGearOutlineDto = WithDefaults<Inputs.Engineering.RingGearOutlineDto, "rotation" | "segments" | "module" | "teeth" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
87
|
+
type RingGearSharedDto = WithDefaults<Inputs.Engineering.RingGearSharedDto, "module" | "teeth" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
88
|
+
type RingGearSizesDto = WithDefaults<Inputs.Engineering.RingGearSizesDto, "module" | "teeth" | "pressureAngle" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
89
|
+
type SpurGearOutlineDto = WithDefaults<Inputs.Engineering.SpurGearOutlineDto, "rotation" | "segments" | "module" | "teeth" | "pressureAngle" | "profileShift" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
90
|
+
type SpurGearSharedDto = WithDefaults<Inputs.Engineering.SpurGearSharedDto, "module" | "teeth" | "pressureAngle" | "profileShift" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
91
|
+
type SpurGearSizesDto = WithDefaults<Inputs.Engineering.SpurGearSizesDto, "module" | "teeth" | "pressureAngle" | "profileShift" | "backlash" | "addendum" | "dedendum" | "rootFillet">;
|
|
92
|
+
}
|
|
41
93
|
/**
|
|
42
94
|
* The Frame inputs DTOs as their defaults leave them: every property with a default is present,
|
|
43
95
|
* the way `resolveDto` hands a DTO to the code that reads it.
|
|
@@ -161,8 +213,10 @@ export declare namespace Math {
|
|
|
161
213
|
type ActionOnOneNumberDto = WithDefaults<Inputs.Math.ActionOnOneNumberDto, "number" | "operation">;
|
|
162
214
|
type ActionOnTwoNumbersDto = WithDefaults<Inputs.Math.ActionOnTwoNumbersDto, "first" | "second" | "operation">;
|
|
163
215
|
type ClampDto = WithDefaults<Inputs.Math.ClampDto, "number" | "min" | "max">;
|
|
216
|
+
type ConvertLengthDto = WithDefaults<Inputs.Math.ConvertLengthDto, "value" | "from" | "to">;
|
|
164
217
|
type EaseDto = WithDefaults<Inputs.Math.EaseDto, "x" | "min" | "max" | "ease">;
|
|
165
218
|
type EvalArithmeticDto = WithDefaults<Inputs.Math.EvalArithmeticDto, "expression">;
|
|
219
|
+
type FractionTextDto = WithDefaults<Inputs.Math.FractionTextDto, "number" | "denominator">;
|
|
166
220
|
type InverseLerpDto = WithDefaults<Inputs.Math.InverseLerpDto, "start" | "end" | "value">;
|
|
167
221
|
type LerpDto = WithDefaults<Inputs.Math.LerpDto, "start" | "end" | "t">;
|
|
168
222
|
type ModulusDto = WithDefaults<Inputs.Math.ModulusDto, "number" | "modulus">;
|
|
@@ -175,6 +229,7 @@ export declare namespace Math {
|
|
|
175
229
|
type RoundToDecimalsDto = WithDefaults<Inputs.Math.RoundToDecimalsDto, "number" | "decimalPlaces">;
|
|
176
230
|
type ToFixedDto = WithDefaults<Inputs.Math.ToFixedDto, "decimalPlaces">;
|
|
177
231
|
type TwoNumbersDto = WithDefaults<Inputs.Math.TwoNumbersDto, "first" | "second">;
|
|
232
|
+
type UnitOfLengthDto = WithDefaults<Inputs.Math.UnitOfLengthDto, "unit">;
|
|
178
233
|
type WrapDto = WithDefaults<Inputs.Math.WrapDto, "number" | "min" | "max">;
|
|
179
234
|
}
|
|
180
235
|
/**
|
|
@@ -182,8 +237,15 @@ export declare namespace Math {
|
|
|
182
237
|
* the way `resolveDto` hands a DTO to the code that reads it.
|
|
183
238
|
*/
|
|
184
239
|
export declare namespace Mesh {
|
|
240
|
+
type CreasedNormalsDto = WithDefaults<Inputs.Mesh.CreasedNormalsDto, "angle">;
|
|
241
|
+
type FrustumDto = WithDefaults<Inputs.Mesh.FrustumDto, "center" | "direction" | "bottomRadius" | "topRadius" | "height" | "sides">;
|
|
242
|
+
type IcosphereDto = WithDefaults<Inputs.Mesh.IcosphereDto, "center" | "radius" | "detail">;
|
|
243
|
+
type IndexedMeshDto = Inputs.Mesh.IndexedMeshDto;
|
|
185
244
|
type MeshDto = Inputs.Mesh.MeshDto;
|
|
245
|
+
type MeshesWithinDto = WithDefaults<Inputs.Mesh.MeshesWithinDto, "distance">;
|
|
186
246
|
type MeshMeshToleranceDto = WithDefaults<Inputs.Mesh.MeshMeshToleranceDto, "tolerance">;
|
|
247
|
+
type MeshPointDto = Inputs.Mesh.MeshPointDto;
|
|
248
|
+
type MeshToIndexedDto = WithDefaults<Inputs.Mesh.MeshToIndexedDto, "tolerance">;
|
|
187
249
|
type PolygonWithHolesDto = Inputs.Mesh.PolygonWithHolesDto;
|
|
188
250
|
type SignedDistanceFromPlaneToPointDto = Inputs.Mesh.SignedDistanceFromPlaneToPointDto;
|
|
189
251
|
type TriangleDto = Inputs.Mesh.TriangleDto;
|
|
@@ -232,15 +294,31 @@ export declare namespace Point {
|
|
|
232
294
|
export declare namespace Polyline {
|
|
233
295
|
type DrawPolylineDto<T> = WithDefaults<Inputs.Polyline.DrawPolylineDto<T>, "opacity" | "colours" | "size" | "updatable">;
|
|
234
296
|
type DrawPolylinesDto<T> = WithDefaults<Inputs.Polyline.DrawPolylinesDto<T>, "opacity" | "colours" | "size" | "updatable">;
|
|
297
|
+
type OrientPolygon2Dto = WithDefaults<Inputs.Polyline.OrientPolygon2Dto, "counterClockwise">;
|
|
298
|
+
type PointInPolygon2Dto = Inputs.Polyline.PointInPolygon2Dto;
|
|
299
|
+
type Polygon2Dto = Inputs.Polyline.Polygon2Dto;
|
|
235
300
|
type PolylineCreateDto = WithDefaults<Inputs.Polyline.PolylineCreateDto, "isClosed">;
|
|
236
301
|
type PolylineDto = Inputs.Polyline.PolylineDto;
|
|
237
302
|
type PolylinePropertiesDto = WithDefaults<Inputs.Polyline.PolylinePropertiesDto, "isClosed">;
|
|
238
303
|
type PolylinesDto = Inputs.Polyline.PolylinesDto;
|
|
304
|
+
type PolylineSweepDto = WithDefaults<Inputs.Polyline.PolylineSweepDto, "firstDirection">;
|
|
305
|
+
type PolylineTangentsDto = Inputs.Polyline.PolylineTangentsDto;
|
|
239
306
|
type PolylineToleranceDto = WithDefaults<Inputs.Polyline.PolylineToleranceDto, "tolerance">;
|
|
307
|
+
type RoundPolygon2Dto = WithDefaults<Inputs.Polyline.RoundPolygon2Dto, "radius" | "segments">;
|
|
308
|
+
type RoundPolylineDto = WithDefaults<Inputs.Polyline.RoundPolylineDto, "radius" | "segments">;
|
|
240
309
|
type SegmentsToleranceDto = WithDefaults<Inputs.Polyline.SegmentsToleranceDto, "tolerance">;
|
|
241
310
|
type TransformPolylineDto = Inputs.Polyline.TransformPolylineDto;
|
|
242
311
|
type TwoPolylinesToleranceDto = WithDefaults<Inputs.Polyline.TwoPolylinesToleranceDto, "tolerance">;
|
|
243
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* The Recipes inputs DTOs as their defaults leave them: every property with a default is present,
|
|
315
|
+
* the way `resolveDto` hands a DTO to the code that reads it.
|
|
316
|
+
*/
|
|
317
|
+
export declare namespace Recipes {
|
|
318
|
+
type RecipeDto = Inputs.Recipes.RecipeDto;
|
|
319
|
+
type RecipeSourceDto = WithDefaults<Inputs.Recipes.RecipeSourceDto, "node">;
|
|
320
|
+
type RecipeSurfaceMeshesDto = WithDefaults<Inputs.Recipes.RecipeSurfaceMeshesDto, "adjustZtoY">;
|
|
321
|
+
}
|
|
244
322
|
/**
|
|
245
323
|
* The Text inputs DTOs as their defaults leave them: every property with a default is present,
|
|
246
324
|
* the way `resolveDto` hands a DTO to the code that reads it.
|
|
@@ -275,6 +353,8 @@ export declare namespace Transforms {
|
|
|
275
353
|
type ScaleCenterXYZDto = WithDefaults<Inputs.Transforms.ScaleCenterXYZDto, "center" | "scaleXyz">;
|
|
276
354
|
type ScaleXYZDto = WithDefaults<Inputs.Transforms.ScaleXYZDto, "scaleXyz">;
|
|
277
355
|
type StretchDirCenterDto = WithDefaults<Inputs.Transforms.StretchDirCenterDto, "center" | "direction" | "scale">;
|
|
356
|
+
type TransformationDto = Inputs.Transforms.TransformationDto;
|
|
357
|
+
type TransformationToleranceDto = WithDefaults<Inputs.Transforms.TransformationToleranceDto, "tolerance">;
|
|
278
358
|
type TranslationsXYZDto = Inputs.Transforms.TranslationsXYZDto;
|
|
279
359
|
type TranslationXYZDto = WithDefaults<Inputs.Transforms.TranslationXYZDto, "translation">;
|
|
280
360
|
type UniformScaleDto = WithDefaults<Inputs.Transforms.UniformScaleDto, "scale">;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export const ANSI_SHAFT_RINGS = [
|
|
2
|
+
{ nominal: 0.125, thickness: 0.01, freeDiameter: 0.112, lugWidth: 0.046, sectionWidth: 0.018, lugHoleDiameter: 0.024, grooveDiameter: 0.117, grooveWidth: 0.012, edgeDistance: 0.012 },
|
|
3
|
+
{ nominal: 0.156, thickness: 0.01, freeDiameter: 0.142, lugWidth: 0.054, sectionWidth: 0.026, lugHoleDiameter: 0.024, grooveDiameter: 0.146, grooveWidth: 0.012, edgeDistance: 0.015 },
|
|
4
|
+
{ nominal: 0.188, thickness: 0.015, freeDiameter: 0.168, lugWidth: 0.05, sectionWidth: 0.025, lugHoleDiameter: 0.024, grooveDiameter: 0.175, grooveWidth: 0.018, edgeDistance: 0.0195 },
|
|
5
|
+
{ nominal: 0.197, thickness: 0.015, freeDiameter: 0.179, lugWidth: 0.056, sectionWidth: 0.026, lugHoleDiameter: 0.024, grooveDiameter: 0.185, grooveWidth: 0.018, edgeDistance: 0.018 },
|
|
6
|
+
{ nominal: 0.219, thickness: 0.015, freeDiameter: 0.196, lugWidth: 0.056, sectionWidth: 0.028, lugHoleDiameter: 0.024, grooveDiameter: 0.205, grooveWidth: 0.018, edgeDistance: 0.021 },
|
|
7
|
+
{ nominal: 0.236, thickness: 0.015, freeDiameter: 0.215, lugWidth: 0.056, sectionWidth: 0.03, lugHoleDiameter: 0.024, grooveDiameter: 0.222, grooveWidth: 0.018, edgeDistance: 0.021 },
|
|
8
|
+
{ nominal: 0.25, thickness: 0.025, freeDiameter: 0.225, lugWidth: 0.08, sectionWidth: 0.035, lugHoleDiameter: 0.039, grooveDiameter: 0.23, grooveWidth: 0.029, edgeDistance: 0.03 },
|
|
9
|
+
{ nominal: 0.276, thickness: 0.025, freeDiameter: 0.25, lugWidth: 0.081, sectionWidth: 0.035, lugHoleDiameter: 0.039, grooveDiameter: 0.255, grooveWidth: 0.029, edgeDistance: 0.0315 },
|
|
10
|
+
{ nominal: 0.281, thickness: 0.025, freeDiameter: 0.256, lugWidth: 0.08, sectionWidth: 0.038, lugHoleDiameter: 0.039, grooveDiameter: 0.261, grooveWidth: 0.029, edgeDistance: 0.03 },
|
|
11
|
+
{ nominal: 0.312, thickness: 0.025, freeDiameter: 0.281, lugWidth: 0.087, sectionWidth: 0.04, lugHoleDiameter: 0.039, grooveDiameter: 0.29, grooveWidth: 0.029, edgeDistance: 0.033 },
|
|
12
|
+
{ nominal: 0.344, thickness: 0.025, freeDiameter: 0.309, lugWidth: 0.087, sectionWidth: 0.042, lugHoleDiameter: 0.039, grooveDiameter: 0.321, grooveWidth: 0.029, edgeDistance: 0.0345 },
|
|
13
|
+
{ nominal: 0.354, thickness: 0.025, freeDiameter: 0.32, lugWidth: 0.087, sectionWidth: 0.046, lugHoleDiameter: 0.039, grooveDiameter: 0.33, grooveWidth: 0.029, edgeDistance: 0.036 },
|
|
14
|
+
{ nominal: 0.375, thickness: 0.025, freeDiameter: 0.338, lugWidth: 0.088, sectionWidth: 0.05, lugHoleDiameter: 0.039, grooveDiameter: 0.352, grooveWidth: 0.029, edgeDistance: 0.0345 },
|
|
15
|
+
{ nominal: 0.394, thickness: 0.025, freeDiameter: 0.354, lugWidth: 0.087, sectionWidth: 0.052, lugHoleDiameter: 0.039, grooveDiameter: 0.369, grooveWidth: 0.029, edgeDistance: 0.0375 },
|
|
16
|
+
{ nominal: 0.406, thickness: 0.025, freeDiameter: 0.366, lugWidth: 0.087, sectionWidth: 0.054, lugHoleDiameter: 0.039, grooveDiameter: 0.382, grooveWidth: 0.029, edgeDistance: 0.036 },
|
|
17
|
+
{ nominal: 0.438, thickness: 0.025, freeDiameter: 0.395, lugWidth: 0.088, sectionWidth: 0.055, lugHoleDiameter: 0.039, grooveDiameter: 0.412, grooveWidth: 0.029, edgeDistance: 0.039 },
|
|
18
|
+
{ nominal: 0.469, thickness: 0.025, freeDiameter: 0.428, lugWidth: 0.088, sectionWidth: 0.06, lugHoleDiameter: 0.039, grooveDiameter: 0.443, grooveWidth: 0.029, edgeDistance: 0.039 },
|
|
19
|
+
{ nominal: 0.5, thickness: 0.035, freeDiameter: 0.461, lugWidth: 0.108, sectionWidth: 0.065, lugHoleDiameter: 0.045, grooveDiameter: 0.468, grooveWidth: 0.039, edgeDistance: 0.048 },
|
|
20
|
+
{ nominal: 0.551, thickness: 0.035, freeDiameter: 0.509, lugWidth: 0.108, sectionWidth: 0.053, lugHoleDiameter: 0.045, grooveDiameter: 0.519, grooveWidth: 0.039, edgeDistance: 0.048 },
|
|
21
|
+
{ nominal: 0.562, thickness: 0.035, freeDiameter: 0.521, lugWidth: 0.108, sectionWidth: 0.072, lugHoleDiameter: 0.045, grooveDiameter: 0.53, grooveWidth: 0.039, edgeDistance: 0.048 },
|
|
22
|
+
{ nominal: 0.594, thickness: 0.035, freeDiameter: 0.55, lugWidth: 0.109, sectionWidth: 0.076, lugHoleDiameter: 0.045, grooveDiameter: 0.559, grooveWidth: 0.039, edgeDistance: 0.0525 },
|
|
23
|
+
{ nominal: 0.625, thickness: 0.035, freeDiameter: 0.579, lugWidth: 0.11, sectionWidth: 0.08, lugHoleDiameter: 0.045, grooveDiameter: 0.588, grooveWidth: 0.039, edgeDistance: 0.0555 },
|
|
24
|
+
{ nominal: 0.672, thickness: 0.035, freeDiameter: 0.621, lugWidth: 0.11, sectionWidth: 0.082, lugHoleDiameter: 0.045, grooveDiameter: 0.631, grooveWidth: 0.039, edgeDistance: 0.0615 },
|
|
25
|
+
{ nominal: 0.688, thickness: 0.042, freeDiameter: 0.635, lugWidth: 0.136, sectionWidth: 0.084, lugHoleDiameter: 0.05, grooveDiameter: 0.646, grooveWidth: 0.046, edgeDistance: 0.063 },
|
|
26
|
+
{ nominal: 0.75, thickness: 0.042, freeDiameter: 0.693, lugWidth: 0.136, sectionWidth: 0.092, lugHoleDiameter: 0.05, grooveDiameter: 0.704, grooveWidth: 0.046, edgeDistance: 0.069 },
|
|
27
|
+
{ nominal: 0.781, thickness: 0.042, freeDiameter: 0.722, lugWidth: 0.136, sectionWidth: 0.094, lugHoleDiameter: 0.05, grooveDiameter: 0.733, grooveWidth: 0.046, edgeDistance: 0.072 },
|
|
28
|
+
{ nominal: 0.812, thickness: 0.042, freeDiameter: 0.751, lugWidth: 0.136, sectionWidth: 0.096, lugHoleDiameter: 0.05, grooveDiameter: 0.762, grooveWidth: 0.046, edgeDistance: 0.075 },
|
|
29
|
+
{ nominal: 0.844, thickness: 0.042, freeDiameter: 0.7775, lugWidth: 0.137, sectionWidth: 0.1, lugHoleDiameter: 0.05, grooveDiameter: 0.791, grooveWidth: 0.046, edgeDistance: 0.0795 },
|
|
30
|
+
{ nominal: 0.875, thickness: 0.042, freeDiameter: 0.81, lugWidth: 0.137, sectionWidth: 0.104, lugHoleDiameter: 0.05, grooveDiameter: 0.821, grooveWidth: 0.046, edgeDistance: 0.081 },
|
|
31
|
+
{ nominal: 0.938, thickness: 0.042, freeDiameter: 0.867, lugWidth: 0.166, sectionWidth: 0.11, lugHoleDiameter: 0.076, grooveDiameter: 0.882, grooveWidth: 0.046, edgeDistance: 0.084 },
|
|
32
|
+
{ nominal: 0.984, thickness: 0.042, freeDiameter: 0.91, lugWidth: 0.167, sectionWidth: 0.114, lugHoleDiameter: 0.076, grooveDiameter: 0.926, grooveWidth: 0.046, edgeDistance: 0.087 },
|
|
33
|
+
{ nominal: 1, thickness: 0.042, freeDiameter: 0.925, lugWidth: 0.167, sectionWidth: 0.116, lugHoleDiameter: 0.076, grooveDiameter: 0.94, grooveWidth: 0.046, edgeDistance: 0.09 },
|
|
34
|
+
{ nominal: 1.023, thickness: 0.042, freeDiameter: 0.946, lugWidth: 0.168, sectionWidth: 0.118, lugHoleDiameter: 0.076, grooveDiameter: 0.961, grooveWidth: 0.046, edgeDistance: 0.093 },
|
|
35
|
+
{ nominal: 1.062, thickness: 0.05, freeDiameter: 0.982, lugWidth: 0.181, sectionWidth: 0.122, lugHoleDiameter: 0.076, grooveDiameter: 0.998, grooveWidth: 0.056, edgeDistance: 0.096 },
|
|
36
|
+
{ nominal: 1.125, thickness: 0.05, freeDiameter: 1.041, lugWidth: 0.182, sectionWidth: 0.128, lugHoleDiameter: 0.076, grooveDiameter: 1.059, grooveWidth: 0.056, edgeDistance: 0.099 },
|
|
37
|
+
{ nominal: 1.188, thickness: 0.05, freeDiameter: 1.098, lugWidth: 0.182, sectionWidth: 0.132, lugHoleDiameter: 0.076, grooveDiameter: 1.118, grooveWidth: 0.056, edgeDistance: 0.105 },
|
|
38
|
+
{ nominal: 1.25, thickness: 0.05, freeDiameter: 1.156, lugWidth: 0.183, sectionWidth: 0.14, lugHoleDiameter: 0.076, grooveDiameter: 1.176, grooveWidth: 0.056, edgeDistance: 0.111 },
|
|
39
|
+
{ nominal: 1.312, thickness: 0.05, freeDiameter: 1.214, lugWidth: 0.183, sectionWidth: 0.146, lugHoleDiameter: 0.076, grooveDiameter: 1.232, grooveWidth: 0.056, edgeDistance: 0.12 },
|
|
40
|
+
{ nominal: 1.375, thickness: 0.05, freeDiameter: 1.272, lugWidth: 0.184, sectionWidth: 0.152, lugHoleDiameter: 0.076, grooveDiameter: 1.291, grooveWidth: 0.056, edgeDistance: 0.126 },
|
|
41
|
+
{ nominal: 1.438, thickness: 0.05, freeDiameter: 1.333, lugWidth: 0.184, sectionWidth: 0.16, lugHoleDiameter: 0.076, grooveDiameter: 1.35, grooveWidth: 0.056, edgeDistance: 0.132 },
|
|
42
|
+
{ nominal: 1.5, thickness: 0.05, freeDiameter: 1.387, lugWidth: 0.214, sectionWidth: 0.168, lugHoleDiameter: 0.118, grooveDiameter: 1.406, grooveWidth: 0.056, edgeDistance: 0.141 },
|
|
43
|
+
{ nominal: 1.562, thickness: 0.062, freeDiameter: 1.446, lugWidth: 0.235, sectionWidth: 0.172, lugHoleDiameter: 0.123, grooveDiameter: 1.468, grooveWidth: 0.068, edgeDistance: 0.141 },
|
|
44
|
+
{ nominal: 1.625, thickness: 0.062, freeDiameter: 1.503, lugWidth: 0.235, sectionWidth: 0.18, lugHoleDiameter: 0.123, grooveDiameter: 1.529, grooveWidth: 0.068, edgeDistance: 0.144 },
|
|
45
|
+
{ nominal: 1.688, thickness: 0.062, freeDiameter: 1.56, lugWidth: 0.235, sectionWidth: 0.184, lugHoleDiameter: 0.123, grooveDiameter: 1.589, grooveWidth: 0.068, edgeDistance: 0.1485 },
|
|
46
|
+
{ nominal: 1.75, thickness: 0.062, freeDiameter: 1.618, lugWidth: 0.237, sectionWidth: 0.188, lugHoleDiameter: 0.123, grooveDiameter: 1.65, grooveWidth: 0.068, edgeDistance: 0.15 },
|
|
47
|
+
{ nominal: 1.772, thickness: 0.062, freeDiameter: 1.637, lugWidth: 0.237, sectionWidth: 0.19, lugHoleDiameter: 0.123, grooveDiameter: 1.669, grooveWidth: 0.068, edgeDistance: 0.1545 },
|
|
48
|
+
{ nominal: 1.812, thickness: 0.062, freeDiameter: 1.675, lugWidth: 0.238, sectionWidth: 0.192, lugHoleDiameter: 0.123, grooveDiameter: 1.708, grooveWidth: 0.068, edgeDistance: 0.156 },
|
|
49
|
+
{ nominal: 1.875, thickness: 0.062, freeDiameter: 1.735, lugWidth: 0.239, sectionWidth: 0.196, lugHoleDiameter: 0.123, grooveDiameter: 1.769, grooveWidth: 0.068, edgeDistance: 0.159 },
|
|
50
|
+
{ nominal: 1.969, thickness: 0.062, freeDiameter: 1.819, lugWidth: 0.245, sectionWidth: 0.2, lugHoleDiameter: 0.123, grooveDiameter: 1.857, grooveWidth: 0.068, edgeDistance: 0.168 },
|
|
51
|
+
{ nominal: 2, thickness: 0.062, freeDiameter: 1.85, lugWidth: 0.239, sectionWidth: 0.204, lugHoleDiameter: 0.123, grooveDiameter: 1.886, grooveWidth: 0.068, edgeDistance: 0.171 },
|
|
52
|
+
];
|
|
53
|
+
export const ANSI_BORE_RINGS = [
|
|
54
|
+
{ nominal: 0.25, thickness: 0.015, freeDiameter: 0.28, lugWidth: 0.065, sectionWidth: 0.025, lugHoleDiameter: 0.029, grooveDiameter: 0.268, grooveWidth: 0.018, edgeDistance: 0.027 },
|
|
55
|
+
{ nominal: 0.312, thickness: 0.015, freeDiameter: 0.346, lugWidth: 0.066, sectionWidth: 0.033, lugHoleDiameter: 0.029, grooveDiameter: 0.33, grooveWidth: 0.018, edgeDistance: 0.027 },
|
|
56
|
+
{ nominal: 0.375, thickness: 0.025, freeDiameter: 0.415, lugWidth: 0.082, sectionWidth: 0.04, lugHoleDiameter: 0.039, grooveDiameter: 0.397, grooveWidth: 0.029, edgeDistance: 0.033 },
|
|
57
|
+
{ nominal: 0.438, thickness: 0.025, freeDiameter: 0.482, lugWidth: 0.098, sectionWidth: 0.049, lugHoleDiameter: 0.039, grooveDiameter: 0.461, grooveWidth: 0.029, edgeDistance: 0.036 },
|
|
58
|
+
{ nominal: 0.453, thickness: 0.025, freeDiameter: 0.498, lugWidth: 0.098, sectionWidth: 0.05, lugHoleDiameter: 0.045, grooveDiameter: 0.477, grooveWidth: 0.029, edgeDistance: 0.036 },
|
|
59
|
+
{ nominal: 0.5, thickness: 0.035, freeDiameter: 0.548, lugWidth: 0.114, sectionWidth: 0.053, lugHoleDiameter: 0.045, grooveDiameter: 0.53, grooveWidth: 0.039, edgeDistance: 0.045 },
|
|
60
|
+
{ nominal: 0.512, thickness: 0.035, freeDiameter: 0.56, lugWidth: 0.114, sectionWidth: 0.053, lugHoleDiameter: 0.045, grooveDiameter: 0.542, grooveWidth: 0.039, edgeDistance: 0.045 },
|
|
61
|
+
{ nominal: 0.562, thickness: 0.035, freeDiameter: 0.62, lugWidth: 0.132, sectionWidth: 0.053, lugHoleDiameter: 0.045, grooveDiameter: 0.596, grooveWidth: 0.039, edgeDistance: 0.051 },
|
|
62
|
+
{ nominal: 0.625, thickness: 0.035, freeDiameter: 0.694, lugWidth: 0.132, sectionWidth: 0.06, lugHoleDiameter: 0.06, grooveDiameter: 0.665, grooveWidth: 0.039, edgeDistance: 0.06 },
|
|
63
|
+
{ nominal: 0.688, thickness: 0.035, freeDiameter: 0.763, lugWidth: 0.132, sectionWidth: 0.063, lugHoleDiameter: 0.06, grooveDiameter: 0.732, grooveWidth: 0.039, edgeDistance: 0.066 },
|
|
64
|
+
{ nominal: 0.75, thickness: 0.035, freeDiameter: 0.831, lugWidth: 0.142, sectionWidth: 0.07, lugHoleDiameter: 0.06, grooveDiameter: 0.796, grooveWidth: 0.039, edgeDistance: 0.069 },
|
|
65
|
+
{ nominal: 0.777, thickness: 0.042, freeDiameter: 0.859, lugWidth: 0.146, sectionWidth: 0.074, lugHoleDiameter: 0.06, grooveDiameter: 0.825, grooveWidth: 0.046, edgeDistance: 0.072 },
|
|
66
|
+
{ nominal: 0.812, thickness: 0.042, freeDiameter: 0.901, lugWidth: 0.155, sectionWidth: 0.077, lugHoleDiameter: 0.06, grooveDiameter: 0.862, grooveWidth: 0.046, edgeDistance: 0.075 },
|
|
67
|
+
{ nominal: 0.866, thickness: 0.042, freeDiameter: 0.961, lugWidth: 0.155, sectionWidth: 0.081, lugHoleDiameter: 0.06, grooveDiameter: 0.92, grooveWidth: 0.046, edgeDistance: 0.081 },
|
|
68
|
+
{ nominal: 0.875, thickness: 0.042, freeDiameter: 0.971, lugWidth: 0.155, sectionWidth: 0.084, lugHoleDiameter: 0.06, grooveDiameter: 0.931, grooveWidth: 0.046, edgeDistance: 0.084 },
|
|
69
|
+
{ nominal: 0.901, thickness: 0.042, freeDiameter: 1, lugWidth: 0.155, sectionWidth: 0.087, lugHoleDiameter: 0.06, grooveDiameter: 0.959, grooveWidth: 0.046, edgeDistance: 0.087 },
|
|
70
|
+
{ nominal: 0.938, thickness: 0.042, freeDiameter: 1.041, lugWidth: 0.155, sectionWidth: 0.091, lugHoleDiameter: 0.06, grooveDiameter: 1, grooveWidth: 0.046, edgeDistance: 0.093 },
|
|
71
|
+
{ nominal: 1, thickness: 0.042, freeDiameter: 1.111, lugWidth: 0.155, sectionWidth: 0.104, lugHoleDiameter: 0.06, grooveDiameter: 1.066, grooveWidth: 0.046, edgeDistance: 0.099 },
|
|
72
|
+
{ nominal: 1.023, thickness: 0.042, freeDiameter: 1.136, lugWidth: 0.155, sectionWidth: 0.106, lugHoleDiameter: 0.06, grooveDiameter: 1.091, grooveWidth: 0.046, edgeDistance: 0.102 },
|
|
73
|
+
{ nominal: 1.062, thickness: 0.05, freeDiameter: 1.18, lugWidth: 0.18, sectionWidth: 0.11, lugHoleDiameter: 0.076, grooveDiameter: 1.13, grooveWidth: 0.056, edgeDistance: 0.102 },
|
|
74
|
+
{ nominal: 1.125, thickness: 0.05, freeDiameter: 1.249, lugWidth: 0.18, sectionWidth: 0.116, lugHoleDiameter: 0.076, grooveDiameter: 1.197, grooveWidth: 0.056, edgeDistance: 0.108 },
|
|
75
|
+
{ nominal: 1.188, thickness: 0.05, freeDiameter: 1.319, lugWidth: 0.18, sectionWidth: 0.12, lugHoleDiameter: 0.076, grooveDiameter: 1.262, grooveWidth: 0.056, edgeDistance: 0.111 },
|
|
76
|
+
{ nominal: 1.25, thickness: 0.05, freeDiameter: 1.388, lugWidth: 0.18, sectionWidth: 0.124, lugHoleDiameter: 0.076, grooveDiameter: 1.33, grooveWidth: 0.056, edgeDistance: 0.12 },
|
|
77
|
+
{ nominal: 1.312, thickness: 0.05, freeDiameter: 1.456, lugWidth: 0.18, sectionWidth: 0.13, lugHoleDiameter: 0.076, grooveDiameter: 1.396, grooveWidth: 0.056, edgeDistance: 0.126 },
|
|
78
|
+
{ nominal: 1.375, thickness: 0.05, freeDiameter: 1.526, lugWidth: 0.18, sectionWidth: 0.13, lugHoleDiameter: 0.076, grooveDiameter: 1.461, grooveWidth: 0.056, edgeDistance: 0.129 },
|
|
79
|
+
{ nominal: 1.438, thickness: 0.05, freeDiameter: 1.596, lugWidth: 0.18, sectionWidth: 0.133, lugHoleDiameter: 0.076, grooveDiameter: 1.528, grooveWidth: 0.056, edgeDistance: 0.135 },
|
|
80
|
+
{ nominal: 1.456, thickness: 0.05, freeDiameter: 1.616, lugWidth: 0.18, sectionWidth: 0.133, lugHoleDiameter: 0.076, grooveDiameter: 1.548, grooveWidth: 0.056, edgeDistance: 0.138 },
|
|
81
|
+
{ nominal: 1.5, thickness: 0.05, freeDiameter: 1.66, lugWidth: 0.18, sectionWidth: 0.133, lugHoleDiameter: 0.076, grooveDiameter: 1.594, grooveWidth: 0.056, edgeDistance: 0.141 },
|
|
82
|
+
{ nominal: 1.562, thickness: 0.062, freeDiameter: 1.734, lugWidth: 0.202, sectionWidth: 0.157, lugHoleDiameter: 0.076, grooveDiameter: 1.658, grooveWidth: 0.068, edgeDistance: 0.144 },
|
|
83
|
+
{ nominal: 1.625, thickness: 0.062, freeDiameter: 1.804, lugWidth: 0.227, sectionWidth: 0.164, lugHoleDiameter: 0.076, grooveDiameter: 1.725, grooveWidth: 0.068, edgeDistance: 0.15 },
|
|
84
|
+
{ nominal: 1.653, thickness: 0.062, freeDiameter: 1.835, lugWidth: 0.23, sectionWidth: 0.167, lugHoleDiameter: 0.076, grooveDiameter: 1.755, grooveWidth: 0.068, edgeDistance: 0.153 },
|
|
85
|
+
{ nominal: 1.688, thickness: 0.062, freeDiameter: 1.874, lugWidth: 0.23, sectionWidth: 0.17, lugHoleDiameter: 0.076, grooveDiameter: 1.792, grooveWidth: 0.068, edgeDistance: 0.156 },
|
|
86
|
+
{ nominal: 1.75, thickness: 0.062, freeDiameter: 1.942, lugWidth: 0.23, sectionWidth: 0.17, lugHoleDiameter: 0.076, grooveDiameter: 1.858, grooveWidth: 0.068, edgeDistance: 0.162 },
|
|
87
|
+
{ nominal: 1.812, thickness: 0.062, freeDiameter: 2.012, lugWidth: 0.23, sectionWidth: 0.17, lugHoleDiameter: 0.091, grooveDiameter: 1.922, grooveWidth: 0.068, edgeDistance: 0.165 },
|
|
88
|
+
{ nominal: 1.85, thickness: 0.062, freeDiameter: 2.054, lugWidth: 0.234, sectionWidth: 0.17, lugHoleDiameter: 0.091, grooveDiameter: 1.962, grooveWidth: 0.068, edgeDistance: 0.168 },
|
|
89
|
+
{ nominal: 1.875, thickness: 0.062, freeDiameter: 2.072, lugWidth: 0.234, sectionWidth: 0.17, lugHoleDiameter: 0.091, grooveDiameter: 1.989, grooveWidth: 0.068, edgeDistance: 0.171 },
|
|
90
|
+
{ nominal: 1.938, thickness: 0.062, freeDiameter: 2.141, lugWidth: 0.23, sectionWidth: 0.17, lugHoleDiameter: 0.091, grooveDiameter: 2.056, grooveWidth: 0.068, edgeDistance: 0.177 },
|
|
91
|
+
{ nominal: 2, thickness: 0.062, freeDiameter: 2.21, lugWidth: 0.23, sectionWidth: 0.17, lugHoleDiameter: 0.091, grooveDiameter: 2.122, grooveWidth: 0.068, edgeDistance: 0.183 },
|
|
92
|
+
];
|
|
93
|
+
export const ANSI_RING_MATCH = 0.001;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Base } from "../inputs/base-inputs";
|
|
2
|
+
import type { RetainingRingKind, RetainingRingSizes } from "./retaining-ring-types";
|
|
3
|
+
export declare function ansiRetainingRingDiameters(kind: RetainingRingKind, unit: `${Base.unitOfLengthEnum}`): number[];
|
|
4
|
+
export declare function ansiRetainingRingSizes(kind: RetainingRingKind, diameter: number, unit: `${Base.unitOfLengthEnum}`): RetainingRingSizes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputError } from "../kernel-calls/errors";
|
|
2
|
+
import { lengthsConverted, snappedLength, tableLength } from "../services/helpers/geometry/lengths";
|
|
3
|
+
import { ANSI_BORE_RINGS, ANSI_RING_MATCH, ANSI_SHAFT_RINGS } from "./ansi-retaining-rings.constants";
|
|
4
|
+
import { checkedRingKind } from "./retaining-rings";
|
|
5
|
+
import { RING_LENGTHS } from "./retaining-rings.constants";
|
|
6
|
+
const ringsOf = (kind) => checkedRingKind(kind) === "shaft" ? ANSI_SHAFT_RINGS : ANSI_BORE_RINGS;
|
|
7
|
+
export function ansiRetainingRingDiameters(kind, unit) {
|
|
8
|
+
return ringsOf(kind).map(row => snappedLength(row.nominal, "in", unit));
|
|
9
|
+
}
|
|
10
|
+
export function ansiRetainingRingSizes(kind, diameter, unit) {
|
|
11
|
+
const rows = ringsOf(kind);
|
|
12
|
+
const nominal = tableLength(diameter, unit, "in");
|
|
13
|
+
const row = rows.find(candidate => Math.abs(candidate.nominal - nominal) <= ANSI_RING_MATCH);
|
|
14
|
+
if (row === undefined) {
|
|
15
|
+
const series = kind === "shaft" ? "external" : "internal";
|
|
16
|
+
const nearest = rows.reduce((best, candidate) => Math.abs(candidate.nominal - nominal) < Math.abs(best.nominal - nominal) ? candidate : best);
|
|
17
|
+
throw new InputError(`\`diameter\` is ${String(diameter)}, a size the inch ${series} rings list no ring for; the nearest is ${String(snappedLength(nearest.nominal, "in", unit))}.`, "diameter");
|
|
18
|
+
}
|
|
19
|
+
return lengthsConverted(Object.assign({}, row), RING_LENGTHS, "in", unit);
|
|
20
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export const SHAFT_RINGS = [
|
|
2
|
+
{ nominal: 3, thickness: 0.4, freeDiameter: 2.7, lugWidth: 1.9, sectionWidth: 0.8, lugHoleDiameter: 1, grooveDiameter: 2.8, grooveWidth: 0.5, edgeDistance: 0.3 },
|
|
3
|
+
{ nominal: 4, thickness: 0.4, freeDiameter: 3.7, lugWidth: 2.2, sectionWidth: 0.9, lugHoleDiameter: 1, grooveDiameter: 3.8, grooveWidth: 0.5, edgeDistance: 0.3 },
|
|
4
|
+
{ nominal: 5, thickness: 0.6, freeDiameter: 4.7, lugWidth: 2.5, sectionWidth: 1.1, lugHoleDiameter: 1, grooveDiameter: 4.8, grooveWidth: 0.7, edgeDistance: 0.3 },
|
|
5
|
+
{ nominal: 6, thickness: 0.7, freeDiameter: 5.6, lugWidth: 2.7, sectionWidth: 1.3, lugHoleDiameter: 1.2, grooveDiameter: 5.7, grooveWidth: 0.8, edgeDistance: 0.5 },
|
|
6
|
+
{ nominal: 7, thickness: 0.8, freeDiameter: 6.5, lugWidth: 3.1, sectionWidth: 1.4, lugHoleDiameter: 1.2, grooveDiameter: 6.7, grooveWidth: 0.9, edgeDistance: 0.5 },
|
|
7
|
+
{ nominal: 8, thickness: 0.8, freeDiameter: 7.4, lugWidth: 3.2, sectionWidth: 1.5, lugHoleDiameter: 1.2, grooveDiameter: 7.6, grooveWidth: 0.9, edgeDistance: 0.6 },
|
|
8
|
+
{ nominal: 9, thickness: 1, freeDiameter: 8.4, lugWidth: 3.3, sectionWidth: 1.7, lugHoleDiameter: 1.2, grooveDiameter: 8.6, grooveWidth: 1.1, edgeDistance: 0.6 },
|
|
9
|
+
{ nominal: 10, thickness: 1, freeDiameter: 9.3, lugWidth: 3.3, sectionWidth: 1.8, lugHoleDiameter: 1.5, grooveDiameter: 9.6, grooveWidth: 1.1, edgeDistance: 0.6 },
|
|
10
|
+
{ nominal: 11, thickness: 1, freeDiameter: 10.2, lugWidth: 3.3, sectionWidth: 1.8, lugHoleDiameter: 1.5, grooveDiameter: 10.5, grooveWidth: 1.1, edgeDistance: 0.8 },
|
|
11
|
+
{ nominal: 12, thickness: 1, freeDiameter: 11, lugWidth: 3.3, sectionWidth: 1.8, lugHoleDiameter: 1.7, grooveDiameter: 11.5, grooveWidth: 1.1, edgeDistance: 0.8 },
|
|
12
|
+
{ nominal: 13, thickness: 1, freeDiameter: 11.9, lugWidth: 3.4, sectionWidth: 2, lugHoleDiameter: 1.7, grooveDiameter: 12.4, grooveWidth: 1.1, edgeDistance: 0.9 },
|
|
13
|
+
{ nominal: 14, thickness: 1, freeDiameter: 12.9, lugWidth: 3.5, sectionWidth: 2.1, lugHoleDiameter: 1.7, grooveDiameter: 13.4, grooveWidth: 1.1, edgeDistance: 0.9 },
|
|
14
|
+
{ nominal: 15, thickness: 1, freeDiameter: 13.8, lugWidth: 3.6, sectionWidth: 2.2, lugHoleDiameter: 1.7, grooveDiameter: 14.3, grooveWidth: 1.1, edgeDistance: 1.1 },
|
|
15
|
+
{ nominal: 16, thickness: 1, freeDiameter: 14.7, lugWidth: 3.7, sectionWidth: 2.2, lugHoleDiameter: 1.7, grooveDiameter: 15.2, grooveWidth: 1.1, edgeDistance: 1.2 },
|
|
16
|
+
{ nominal: 17, thickness: 1, freeDiameter: 15.7, lugWidth: 3.8, sectionWidth: 2.3, lugHoleDiameter: 1.7, grooveDiameter: 16.2, grooveWidth: 1.1, edgeDistance: 1.2 },
|
|
17
|
+
{ nominal: 18, thickness: 1.2, freeDiameter: 16.5, lugWidth: 3.9, sectionWidth: 2.4, lugHoleDiameter: 2, grooveDiameter: 17, grooveWidth: 1.3, edgeDistance: 1.5 },
|
|
18
|
+
{ nominal: 19, thickness: 1.2, freeDiameter: 17.5, lugWidth: 3.9, sectionWidth: 2.5, lugHoleDiameter: 2, grooveDiameter: 18, grooveWidth: 1.3, edgeDistance: 1.5 },
|
|
19
|
+
{ nominal: 20, thickness: 1.2, freeDiameter: 18.5, lugWidth: 4, sectionWidth: 2.6, lugHoleDiameter: 2, grooveDiameter: 19, grooveWidth: 1.3, edgeDistance: 1.5 },
|
|
20
|
+
{ nominal: 21, thickness: 1.2, freeDiameter: 19.5, lugWidth: 4.1, sectionWidth: 2.7, lugHoleDiameter: 2, grooveDiameter: 20, grooveWidth: 1.3, edgeDistance: 1.5 },
|
|
21
|
+
{ nominal: 22, thickness: 1.2, freeDiameter: 20.5, lugWidth: 4.2, sectionWidth: 2.8, lugHoleDiameter: 2, grooveDiameter: 21, grooveWidth: 1.3, edgeDistance: 1.5 },
|
|
22
|
+
{ nominal: 24, thickness: 1.2, freeDiameter: 22.2, lugWidth: 4.4, sectionWidth: 3, lugHoleDiameter: 2, grooveDiameter: 22.9, grooveWidth: 1.3, edgeDistance: 1.7 },
|
|
23
|
+
{ nominal: 25, thickness: 1.2, freeDiameter: 23.2, lugWidth: 4.4, sectionWidth: 3, lugHoleDiameter: 2, grooveDiameter: 23.9, grooveWidth: 1.3, edgeDistance: 1.7 },
|
|
24
|
+
{ nominal: 26, thickness: 1.2, freeDiameter: 24.2, lugWidth: 4.5, sectionWidth: 3.1, lugHoleDiameter: 2, grooveDiameter: 24.9, grooveWidth: 1.3, edgeDistance: 1.7 },
|
|
25
|
+
{ nominal: 28, thickness: 1.5, freeDiameter: 25.9, lugWidth: 4.7, sectionWidth: 3.2, lugHoleDiameter: 2, grooveDiameter: 26.6, grooveWidth: 1.6, edgeDistance: 2.1 },
|
|
26
|
+
{ nominal: 29, thickness: 1.5, freeDiameter: 26.9, lugWidth: 4.8, sectionWidth: 3.4, lugHoleDiameter: 2, grooveDiameter: 27.6, grooveWidth: 1.6, edgeDistance: 2.1 },
|
|
27
|
+
{ nominal: 30, thickness: 1.5, freeDiameter: 27.9, lugWidth: 5, sectionWidth: 3.5, lugHoleDiameter: 2, grooveDiameter: 28.6, grooveWidth: 1.6, edgeDistance: 2.1 },
|
|
28
|
+
{ nominal: 32, thickness: 1.5, freeDiameter: 29.6, lugWidth: 5.2, sectionWidth: 3.6, lugHoleDiameter: 2.5, grooveDiameter: 30.3, grooveWidth: 1.6, edgeDistance: 2.6 },
|
|
29
|
+
{ nominal: 34, thickness: 1.5, freeDiameter: 31.5, lugWidth: 5.4, sectionWidth: 3.8, lugHoleDiameter: 2.5, grooveDiameter: 32.3, grooveWidth: 1.6, edgeDistance: 2.6 },
|
|
30
|
+
{ nominal: 35, thickness: 1.5, freeDiameter: 32.2, lugWidth: 5.6, sectionWidth: 3.9, lugHoleDiameter: 2.5, grooveDiameter: 33, grooveWidth: 1.6, edgeDistance: 3 },
|
|
31
|
+
{ nominal: 36, thickness: 1.75, freeDiameter: 33.2, lugWidth: 5.6, sectionWidth: 4, lugHoleDiameter: 2.5, grooveDiameter: 34, grooveWidth: 1.85, edgeDistance: 3 },
|
|
32
|
+
{ nominal: 38, thickness: 1.75, freeDiameter: 35.2, lugWidth: 5.8, sectionWidth: 4.2, lugHoleDiameter: 2.5, grooveDiameter: 36, grooveWidth: 1.85, edgeDistance: 3 },
|
|
33
|
+
{ nominal: 40, thickness: 1.75, freeDiameter: 36.5, lugWidth: 6, sectionWidth: 4.4, lugHoleDiameter: 2.5, grooveDiameter: 37.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
34
|
+
{ nominal: 42, thickness: 1.75, freeDiameter: 38.5, lugWidth: 6.5, sectionWidth: 4.5, lugHoleDiameter: 2.5, grooveDiameter: 39.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
35
|
+
{ nominal: 45, thickness: 1.75, freeDiameter: 41.5, lugWidth: 6.7, sectionWidth: 4.7, lugHoleDiameter: 2.5, grooveDiameter: 42.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
36
|
+
{ nominal: 48, thickness: 1.75, freeDiameter: 44.5, lugWidth: 6.9, sectionWidth: 5, lugHoleDiameter: 2.5, grooveDiameter: 45.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
37
|
+
{ nominal: 50, thickness: 2, freeDiameter: 45.8, lugWidth: 6.9, sectionWidth: 5.1, lugHoleDiameter: 2.5, grooveDiameter: 47, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
38
|
+
{ nominal: 52, thickness: 2, freeDiameter: 47.8, lugWidth: 7, sectionWidth: 5.2, lugHoleDiameter: 2.5, grooveDiameter: 49, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
39
|
+
{ nominal: 55, thickness: 2, freeDiameter: 50.8, lugWidth: 7.2, sectionWidth: 5.4, lugHoleDiameter: 2.5, grooveDiameter: 52, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
40
|
+
{ nominal: 56, thickness: 2, freeDiameter: 51.8, lugWidth: 7.3, sectionWidth: 5.5, lugHoleDiameter: 2.5, grooveDiameter: 53, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
41
|
+
{ nominal: 58, thickness: 2, freeDiameter: 53.8, lugWidth: 7.3, sectionWidth: 5.6, lugHoleDiameter: 2.5, grooveDiameter: 55, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
42
|
+
{ nominal: 60, thickness: 2, freeDiameter: 55.8, lugWidth: 7.4, sectionWidth: 5.8, lugHoleDiameter: 2.5, grooveDiameter: 57, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
43
|
+
{ nominal: 62, thickness: 2, freeDiameter: 57.8, lugWidth: 7.5, sectionWidth: 6, lugHoleDiameter: 2.5, grooveDiameter: 59, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
44
|
+
{ nominal: 63, thickness: 2, freeDiameter: 58.8, lugWidth: 7.6, sectionWidth: 6.2, lugHoleDiameter: 2.5, grooveDiameter: 60, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
45
|
+
{ nominal: 65, thickness: 2.5, freeDiameter: 60.8, lugWidth: 7.8, sectionWidth: 6.3, lugHoleDiameter: 3, grooveDiameter: 62, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
46
|
+
{ nominal: 68, thickness: 2.5, freeDiameter: 63.5, lugWidth: 8, sectionWidth: 6.5, lugHoleDiameter: 3, grooveDiameter: 65, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
47
|
+
{ nominal: 70, thickness: 2.5, freeDiameter: 65.5, lugWidth: 8.1, sectionWidth: 6.6, lugHoleDiameter: 3, grooveDiameter: 67, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
48
|
+
{ nominal: 72, thickness: 2.5, freeDiameter: 67.5, lugWidth: 8.2, sectionWidth: 6.8, lugHoleDiameter: 3, grooveDiameter: 69, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
49
|
+
{ nominal: 75, thickness: 2.5, freeDiameter: 70.5, lugWidth: 8.4, sectionWidth: 7, lugHoleDiameter: 3, grooveDiameter: 72, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
50
|
+
{ nominal: 78, thickness: 2.5, freeDiameter: 73.5, lugWidth: 8.6, sectionWidth: 7.3, lugHoleDiameter: 3, grooveDiameter: 75, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
51
|
+
{ nominal: 80, thickness: 2.5, freeDiameter: 74.5, lugWidth: 8.6, sectionWidth: 7.4, lugHoleDiameter: 3, grooveDiameter: 76.5, grooveWidth: 2.65, edgeDistance: 5.3 },
|
|
52
|
+
{ nominal: 82, thickness: 2.5, freeDiameter: 76.5, lugWidth: 8.7, sectionWidth: 7.6, lugHoleDiameter: 3, grooveDiameter: 78.5, grooveWidth: 2.65, edgeDistance: 5.3 },
|
|
53
|
+
{ nominal: 85, thickness: 3, freeDiameter: 79.5, lugWidth: 8.7, sectionWidth: 7.8, lugHoleDiameter: 3.5, grooveDiameter: 81.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
54
|
+
{ nominal: 88, thickness: 3, freeDiameter: 82.5, lugWidth: 8.8, sectionWidth: 8, lugHoleDiameter: 3.5, grooveDiameter: 84.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
55
|
+
{ nominal: 90, thickness: 3, freeDiameter: 84.5, lugWidth: 8.8, sectionWidth: 8.2, lugHoleDiameter: 3.5, grooveDiameter: 86.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
56
|
+
{ nominal: 95, thickness: 3, freeDiameter: 89.5, lugWidth: 9.4, sectionWidth: 8.6, lugHoleDiameter: 3.5, grooveDiameter: 91.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
57
|
+
{ nominal: 100, thickness: 3, freeDiameter: 94.5, lugWidth: 9.6, sectionWidth: 9, lugHoleDiameter: 3.5, grooveDiameter: 96.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
58
|
+
];
|
|
59
|
+
export const BORE_RINGS = [
|
|
60
|
+
{ nominal: 8, thickness: 0.8, freeDiameter: 8.7, lugWidth: 2.4, sectionWidth: 1.1, lugHoleDiameter: 1, grooveDiameter: 8.4, grooveWidth: 0.9, edgeDistance: 0.6 },
|
|
61
|
+
{ nominal: 9, thickness: 0.8, freeDiameter: 9.8, lugWidth: 2.5, sectionWidth: 1.3, lugHoleDiameter: 1, grooveDiameter: 9.4, grooveWidth: 0.9, edgeDistance: 0.6 },
|
|
62
|
+
{ nominal: 10, thickness: 1, freeDiameter: 10.8, lugWidth: 3.2, sectionWidth: 1.4, lugHoleDiameter: 1.2, grooveDiameter: 10.4, grooveWidth: 1.1, edgeDistance: 0.6 },
|
|
63
|
+
{ nominal: 11, thickness: 1, freeDiameter: 11.8, lugWidth: 3.3, sectionWidth: 1.5, lugHoleDiameter: 1.2, grooveDiameter: 11.4, grooveWidth: 1.1, edgeDistance: 0.6 },
|
|
64
|
+
{ nominal: 12, thickness: 1, freeDiameter: 13, lugWidth: 3.4, sectionWidth: 1.7, lugHoleDiameter: 1.5, grooveDiameter: 12.5, grooveWidth: 1.1, edgeDistance: 0.8 },
|
|
65
|
+
{ nominal: 13, thickness: 1, freeDiameter: 14.1, lugWidth: 3.6, sectionWidth: 1.8, lugHoleDiameter: 1.5, grooveDiameter: 13.6, grooveWidth: 1.1, edgeDistance: 0.9 },
|
|
66
|
+
{ nominal: 14, thickness: 1, freeDiameter: 15.1, lugWidth: 3.7, sectionWidth: 1.9, lugHoleDiameter: 1.7, grooveDiameter: 14.6, grooveWidth: 1.1, edgeDistance: 0.9 },
|
|
67
|
+
{ nominal: 15, thickness: 1, freeDiameter: 16.2, lugWidth: 3.7, sectionWidth: 2, lugHoleDiameter: 1.7, grooveDiameter: 15.7, grooveWidth: 1.1, edgeDistance: 1.1 },
|
|
68
|
+
{ nominal: 16, thickness: 1, freeDiameter: 17.3, lugWidth: 3.8, sectionWidth: 2, lugHoleDiameter: 1.7, grooveDiameter: 16.8, grooveWidth: 1.1, edgeDistance: 1.2 },
|
|
69
|
+
{ nominal: 17, thickness: 1, freeDiameter: 18.3, lugWidth: 3.9, sectionWidth: 2.1, lugHoleDiameter: 1.7, grooveDiameter: 17.8, grooveWidth: 1.1, edgeDistance: 1.2 },
|
|
70
|
+
{ nominal: 18, thickness: 1, freeDiameter: 19.5, lugWidth: 4.1, sectionWidth: 2.2, lugHoleDiameter: 2, grooveDiameter: 19, grooveWidth: 1.1, edgeDistance: 1.5 },
|
|
71
|
+
{ nominal: 19, thickness: 1, freeDiameter: 20.5, lugWidth: 4.1, sectionWidth: 2.2, lugHoleDiameter: 2, grooveDiameter: 20, grooveWidth: 1.1, edgeDistance: 1.5 },
|
|
72
|
+
{ nominal: 20, thickness: 1, freeDiameter: 21.5, lugWidth: 4.2, sectionWidth: 2.3, lugHoleDiameter: 2, grooveDiameter: 21, grooveWidth: 1.1, edgeDistance: 1.5 },
|
|
73
|
+
{ nominal: 21, thickness: 1, freeDiameter: 22.5, lugWidth: 4.2, sectionWidth: 2.4, lugHoleDiameter: 2, grooveDiameter: 22, grooveWidth: 1.1, edgeDistance: 1.5 },
|
|
74
|
+
{ nominal: 22, thickness: 1, freeDiameter: 23.5, lugWidth: 4.2, sectionWidth: 2.5, lugHoleDiameter: 2, grooveDiameter: 23, grooveWidth: 1.1, edgeDistance: 1.5 },
|
|
75
|
+
{ nominal: 24, thickness: 1.2, freeDiameter: 25.9, lugWidth: 4.4, sectionWidth: 2.6, lugHoleDiameter: 2, grooveDiameter: 25.2, grooveWidth: 1.3, edgeDistance: 1.8 },
|
|
76
|
+
{ nominal: 25, thickness: 1.2, freeDiameter: 26.9, lugWidth: 4.5, sectionWidth: 2.7, lugHoleDiameter: 2, grooveDiameter: 26.2, grooveWidth: 1.3, edgeDistance: 1.8 },
|
|
77
|
+
{ nominal: 26, thickness: 1.2, freeDiameter: 27.9, lugWidth: 4.7, sectionWidth: 2.8, lugHoleDiameter: 2, grooveDiameter: 27.2, grooveWidth: 1.3, edgeDistance: 1.8 },
|
|
78
|
+
{ nominal: 28, thickness: 1.2, freeDiameter: 30.1, lugWidth: 4.8, sectionWidth: 2.9, lugHoleDiameter: 2, grooveDiameter: 29.4, grooveWidth: 1.3, edgeDistance: 2.1 },
|
|
79
|
+
{ nominal: 30, thickness: 1.2, freeDiameter: 32.1, lugWidth: 4.8, sectionWidth: 3, lugHoleDiameter: 2, grooveDiameter: 31.4, grooveWidth: 1.3, edgeDistance: 2.1 },
|
|
80
|
+
{ nominal: 31, thickness: 1.2, freeDiameter: 33.4, lugWidth: 5.2, sectionWidth: 3.2, lugHoleDiameter: 2.5, grooveDiameter: 32.7, grooveWidth: 1.3, edgeDistance: 2.6 },
|
|
81
|
+
{ nominal: 32, thickness: 1.2, freeDiameter: 34.4, lugWidth: 5.4, sectionWidth: 3.2, lugHoleDiameter: 2.5, grooveDiameter: 33.7, grooveWidth: 1.3, edgeDistance: 2.6 },
|
|
82
|
+
{ nominal: 34, thickness: 1.5, freeDiameter: 36.5, lugWidth: 5.4, sectionWidth: 3.3, lugHoleDiameter: 2.5, grooveDiameter: 35.7, grooveWidth: 1.6, edgeDistance: 2.6 },
|
|
83
|
+
{ nominal: 35, thickness: 1.5, freeDiameter: 37.8, lugWidth: 5.4, sectionWidth: 3.4, lugHoleDiameter: 2.5, grooveDiameter: 37, grooveWidth: 1.6, edgeDistance: 3 },
|
|
84
|
+
{ nominal: 36, thickness: 1.5, freeDiameter: 38.8, lugWidth: 5.4, sectionWidth: 3.5, lugHoleDiameter: 2.5, grooveDiameter: 38, grooveWidth: 1.6, edgeDistance: 3 },
|
|
85
|
+
{ nominal: 37, thickness: 1.5, freeDiameter: 39.8, lugWidth: 5.5, sectionWidth: 3.6, lugHoleDiameter: 2.5, grooveDiameter: 39, grooveWidth: 1.6, edgeDistance: 3 },
|
|
86
|
+
{ nominal: 38, thickness: 1.5, freeDiameter: 40.8, lugWidth: 5.5, sectionWidth: 3.7, lugHoleDiameter: 2.5, grooveDiameter: 40, grooveWidth: 1.6, edgeDistance: 3 },
|
|
87
|
+
{ nominal: 40, thickness: 1.75, freeDiameter: 43.5, lugWidth: 5.8, sectionWidth: 3.9, lugHoleDiameter: 2.5, grooveDiameter: 42.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
88
|
+
{ nominal: 42, thickness: 1.75, freeDiameter: 45.5, lugWidth: 5.9, sectionWidth: 4.1, lugHoleDiameter: 2.5, grooveDiameter: 44.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
89
|
+
{ nominal: 45, thickness: 1.75, freeDiameter: 48.5, lugWidth: 6.2, sectionWidth: 4.3, lugHoleDiameter: 2.5, grooveDiameter: 47.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
90
|
+
{ nominal: 47, thickness: 1.75, freeDiameter: 50.5, lugWidth: 6.4, sectionWidth: 4.4, lugHoleDiameter: 2.5, grooveDiameter: 49.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
91
|
+
{ nominal: 48, thickness: 1.75, freeDiameter: 51.5, lugWidth: 6.4, sectionWidth: 4.5, lugHoleDiameter: 2.5, grooveDiameter: 50.5, grooveWidth: 1.85, edgeDistance: 3.8 },
|
|
92
|
+
{ nominal: 50, thickness: 2, freeDiameter: 54.2, lugWidth: 6.5, sectionWidth: 4.6, lugHoleDiameter: 2.5, grooveDiameter: 53, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
93
|
+
{ nominal: 52, thickness: 2, freeDiameter: 56.2, lugWidth: 6.7, sectionWidth: 4.7, lugHoleDiameter: 2.5, grooveDiameter: 55, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
94
|
+
{ nominal: 55, thickness: 2, freeDiameter: 59.2, lugWidth: 6.8, sectionWidth: 5, lugHoleDiameter: 2.5, grooveDiameter: 58, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
95
|
+
{ nominal: 56, thickness: 2, freeDiameter: 60.2, lugWidth: 6.8, sectionWidth: 5.1, lugHoleDiameter: 2.5, grooveDiameter: 59, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
96
|
+
{ nominal: 58, thickness: 2, freeDiameter: 62.2, lugWidth: 6.9, sectionWidth: 5.2, lugHoleDiameter: 2.5, grooveDiameter: 61, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
97
|
+
{ nominal: 60, thickness: 2, freeDiameter: 64.2, lugWidth: 7.3, sectionWidth: 5.4, lugHoleDiameter: 2.5, grooveDiameter: 63, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
98
|
+
{ nominal: 62, thickness: 2, freeDiameter: 66.2, lugWidth: 7.3, sectionWidth: 5.5, lugHoleDiameter: 2.5, grooveDiameter: 65, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
99
|
+
{ nominal: 63, thickness: 2, freeDiameter: 67.2, lugWidth: 7.3, sectionWidth: 5.6, lugHoleDiameter: 2.5, grooveDiameter: 66, grooveWidth: 2.15, edgeDistance: 4.5 },
|
|
100
|
+
{ nominal: 65, thickness: 2.5, freeDiameter: 69.2, lugWidth: 7.6, sectionWidth: 5.8, lugHoleDiameter: 3, grooveDiameter: 68, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
101
|
+
{ nominal: 68, thickness: 2.5, freeDiameter: 72.5, lugWidth: 7.8, sectionWidth: 6.1, lugHoleDiameter: 3, grooveDiameter: 71, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
102
|
+
{ nominal: 70, thickness: 2.5, freeDiameter: 74.5, lugWidth: 7.8, sectionWidth: 6.2, lugHoleDiameter: 3, grooveDiameter: 73, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
103
|
+
{ nominal: 72, thickness: 2.5, freeDiameter: 76.5, lugWidth: 7.8, sectionWidth: 6.4, lugHoleDiameter: 3, grooveDiameter: 75, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
104
|
+
{ nominal: 75, thickness: 2.5, freeDiameter: 79.5, lugWidth: 7.8, sectionWidth: 6.6, lugHoleDiameter: 3, grooveDiameter: 78, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
105
|
+
{ nominal: 78, thickness: 2.5, freeDiameter: 82.5, lugWidth: 8.5, sectionWidth: 6.8, lugHoleDiameter: 3, grooveDiameter: 81, grooveWidth: 2.65, edgeDistance: 4.5 },
|
|
106
|
+
{ nominal: 80, thickness: 2.5, freeDiameter: 85.5, lugWidth: 8.5, sectionWidth: 7, lugHoleDiameter: 3, grooveDiameter: 83.5, grooveWidth: 2.65, edgeDistance: 5.3 },
|
|
107
|
+
{ nominal: 82, thickness: 2.5, freeDiameter: 87.5, lugWidth: 8.5, sectionWidth: 7, lugHoleDiameter: 3, grooveDiameter: 85.5, grooveWidth: 2.65, edgeDistance: 5.3 },
|
|
108
|
+
{ nominal: 85, thickness: 3, freeDiameter: 90.5, lugWidth: 8.6, sectionWidth: 7.2, lugHoleDiameter: 3.5, grooveDiameter: 88.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
109
|
+
{ nominal: 88, thickness: 3, freeDiameter: 93.5, lugWidth: 8.6, sectionWidth: 7.4, lugHoleDiameter: 3.5, grooveDiameter: 91.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
110
|
+
{ nominal: 90, thickness: 3, freeDiameter: 95.5, lugWidth: 8.6, sectionWidth: 7.6, lugHoleDiameter: 3.5, grooveDiameter: 93.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
111
|
+
{ nominal: 92, thickness: 3, freeDiameter: 97.5, lugWidth: 8.7, sectionWidth: 7.8, lugHoleDiameter: 3.5, grooveDiameter: 95.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
112
|
+
{ nominal: 95, thickness: 3, freeDiameter: 100.5, lugWidth: 8.8, sectionWidth: 8.1, lugHoleDiameter: 3.5, grooveDiameter: 98.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
113
|
+
{ nominal: 98, thickness: 3, freeDiameter: 103.5, lugWidth: 9, sectionWidth: 8.3, lugHoleDiameter: 3.5, grooveDiameter: 101.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
114
|
+
{ nominal: 100, thickness: 3, freeDiameter: 105.5, lugWidth: 9.2, sectionWidth: 8.4, lugHoleDiameter: 3.5, grooveDiameter: 103.5, grooveWidth: 3.15, edgeDistance: 5.3 },
|
|
115
|
+
];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Base } from "../inputs/base-inputs";
|
|
2
|
+
import type { RetainingRingKind, RetainingRingSizes } from "./retaining-ring-types";
|
|
3
|
+
export declare function dinRetainingRingDiameters(kind: RetainingRingKind, unit: `${Base.unitOfLengthEnum}`): number[];
|
|
4
|
+
export declare function dinRetainingRingSizes(kind: RetainingRingKind, diameter: number, unit: `${Base.unitOfLengthEnum}`): RetainingRingSizes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputError } from "../kernel-calls/errors";
|
|
2
|
+
import { lengthsConverted, snappedLength, tableLength } from "../services/helpers/geometry/lengths";
|
|
3
|
+
import { BORE_RINGS, SHAFT_RINGS } from "./din-retaining-rings.constants";
|
|
4
|
+
import { checkedRingKind } from "./retaining-rings";
|
|
5
|
+
import { RING_LENGTHS } from "./retaining-rings.constants";
|
|
6
|
+
const ringsOf = (kind) => checkedRingKind(kind) === "shaft" ? SHAFT_RINGS : BORE_RINGS;
|
|
7
|
+
export function dinRetainingRingDiameters(kind, unit) {
|
|
8
|
+
return ringsOf(kind).map(row => snappedLength(row.nominal, "mm", unit));
|
|
9
|
+
}
|
|
10
|
+
export function dinRetainingRingSizes(kind, diameter, unit) {
|
|
11
|
+
const rows = ringsOf(kind);
|
|
12
|
+
const nominal = tableLength(diameter, unit, "mm");
|
|
13
|
+
const row = rows.find(candidate => candidate.nominal === nominal);
|
|
14
|
+
if (row === undefined) {
|
|
15
|
+
const standard = kind === "shaft" ? "DIN 471" : "DIN 472";
|
|
16
|
+
const nearest = rows.reduce((best, candidate) => Math.abs(candidate.nominal - nominal) < Math.abs(best.nominal - nominal) ? candidate : best);
|
|
17
|
+
throw new InputError(`\`diameter\` is ${String(diameter)}, a size ${standard} lists no ring for; the nearest is ${String(snappedLength(nearest.nominal, "mm", unit))}.`, "diameter");
|
|
18
|
+
}
|
|
19
|
+
return lengthsConverted(Object.assign({}, row), RING_LENGTHS, "mm", unit);
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as Inputs from "../inputs";
|
|
2
|
+
/**
|
|
3
|
+
* Where a retaining ring sits: on a shaft, sprung open over it into a groove, or in a bore, squeezed
|
|
4
|
+
* into a groove inside it.
|
|
5
|
+
*/
|
|
6
|
+
export type RetainingRingKind = `${Inputs.Engineering.retainingRingKindEnum}`;
|
|
7
|
+
/**
|
|
8
|
+
* A retaining ring and its groove, from `retainingRings.din.retainingRingSizes` or
|
|
9
|
+
* `retainingRings.ansi.retainingRingSizes`, in the unit asked for.
|
|
10
|
+
*/
|
|
11
|
+
export interface RetainingRingSizes {
|
|
12
|
+
/** The shaft's or the bore's diameter the ring is for. */
|
|
13
|
+
readonly nominal: number;
|
|
14
|
+
/** The ring's thickness. */
|
|
15
|
+
readonly thickness: number;
|
|
16
|
+
/** The ring's diameter before it is fitted: its inside on a shaft ring, its outside on a bore ring. */
|
|
17
|
+
readonly freeDiameter: number;
|
|
18
|
+
/** How far its lugs reach across the ring, at most. */
|
|
19
|
+
readonly lugWidth: number;
|
|
20
|
+
/** About how wide the ring is opposite its lugs. */
|
|
21
|
+
readonly sectionWidth: number;
|
|
22
|
+
/** The diameter of the hole in each lug for the pliers, at least. */
|
|
23
|
+
readonly lugHoleDiameter: number;
|
|
24
|
+
/** The diameter at the bottom of the groove the ring sits in. */
|
|
25
|
+
readonly grooveDiameter: number;
|
|
26
|
+
/** How wide the groove is. */
|
|
27
|
+
readonly grooveWidth: number;
|
|
28
|
+
/** How far the groove keeps, at least, from the end of the shaft or the bore. */
|
|
29
|
+
readonly edgeDistance: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RING_LENGTHS: readonly ["nominal", "thickness", "freeDiameter", "lugWidth", "sectionWidth", "lugHoleDiameter", "grooveDiameter", "grooveWidth", "edgeDistance"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const RING_LENGTHS = ["nominal", "thickness", "freeDiameter", "lugWidth", "sectionWidth", "lugHoleDiameter", "grooveDiameter", "grooveWidth", "edgeDistance"];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Inputs from "../inputs";
|
|
2
|
+
import { InputError } from "../kernel-calls/errors";
|
|
3
|
+
const RING_KINDS = Object.values(Inputs.Engineering.retainingRingKindEnum);
|
|
4
|
+
export function checkedRingKind(kind) {
|
|
5
|
+
if (!RING_KINDS.includes(kind)) {
|
|
6
|
+
throw new InputError(`\`kind\` is not one of ${RING_KINDS.join(", ")}.`, "kind");
|
|
7
|
+
}
|
|
8
|
+
return kind;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Color } from "./color";
|
|
2
|
+
import { Dates } from "./dates";
|
|
3
|
+
import { Engineering } from "./engineering";
|
|
4
|
+
import { Frame } from "./frame";
|
|
5
|
+
import { GeometryHelper } from "./geometry-helper";
|
|
6
|
+
import { IoBitByBit } from "./io";
|
|
7
|
+
import { Line } from "./line";
|
|
8
|
+
import { Lists } from "./lists";
|
|
9
|
+
import { Logic } from "./logic";
|
|
10
|
+
import { MathBitByBit } from "./math";
|
|
11
|
+
import { MeshBitByBit } from "./mesh";
|
|
12
|
+
import { Point } from "./point";
|
|
13
|
+
import { Polyline } from "./polyline";
|
|
14
|
+
import { Recipes } from "./recipes";
|
|
15
|
+
import { TextBitByBit } from "./text";
|
|
16
|
+
import { Transforms } from "./transforms";
|
|
17
|
+
import { Vector } from "./vector";
|
|
18
|
+
/**
|
|
19
|
+
* Every service of the base package, wired to each other once. The kernels, the renderers and code
|
|
20
|
+
* running in Node take this one object rather than building the services themselves, so each package
|
|
21
|
+
* calls the same maths a user does.
|
|
22
|
+
*/
|
|
23
|
+
export declare class BaseBitByBit {
|
|
24
|
+
readonly geometryHelper: GeometryHelper;
|
|
25
|
+
readonly math: MathBitByBit;
|
|
26
|
+
readonly vector: Vector;
|
|
27
|
+
readonly transforms: Transforms;
|
|
28
|
+
readonly lists: Lists;
|
|
29
|
+
readonly point: Point;
|
|
30
|
+
readonly line: Line;
|
|
31
|
+
readonly polyline: Polyline;
|
|
32
|
+
readonly mesh: MeshBitByBit;
|
|
33
|
+
readonly textService: TextBitByBit;
|
|
34
|
+
readonly io: IoBitByBit;
|
|
35
|
+
readonly frame: Frame;
|
|
36
|
+
readonly color: Color;
|
|
37
|
+
readonly logic: Logic;
|
|
38
|
+
readonly dates: Dates;
|
|
39
|
+
readonly engineering: Engineering;
|
|
40
|
+
readonly recipes: Recipes;
|
|
41
|
+
constructor();
|
|
42
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Color } from "./color";
|
|
2
|
+
import { Dates } from "./dates";
|
|
3
|
+
import { Engineering } from "./engineering";
|
|
4
|
+
import { Frame } from "./frame";
|
|
5
|
+
import { GeometryHelper } from "./geometry-helper";
|
|
6
|
+
import { IoBitByBit } from "./io";
|
|
7
|
+
import { Line } from "./line";
|
|
8
|
+
import { Lists } from "./lists";
|
|
9
|
+
import { Logic } from "./logic";
|
|
10
|
+
import { MathBitByBit } from "./math";
|
|
11
|
+
import { MeshBitByBit } from "./mesh";
|
|
12
|
+
import { Point } from "./point";
|
|
13
|
+
import { Polyline } from "./polyline";
|
|
14
|
+
import { Recipes } from "./recipes";
|
|
15
|
+
import { TextBitByBit } from "./text";
|
|
16
|
+
import { Transforms } from "./transforms";
|
|
17
|
+
import { Vector } from "./vector";
|
|
18
|
+
/**
|
|
19
|
+
* Every service of the base package, wired to each other once. The kernels, the renderers and code
|
|
20
|
+
* running in Node take this one object rather than building the services themselves, so each package
|
|
21
|
+
* calls the same maths a user does.
|
|
22
|
+
*/
|
|
23
|
+
export class BaseBitByBit {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.geometryHelper = new GeometryHelper();
|
|
26
|
+
this.math = new MathBitByBit();
|
|
27
|
+
this.vector = new Vector(this.math, this.geometryHelper);
|
|
28
|
+
this.transforms = new Transforms(this.vector, this.math);
|
|
29
|
+
this.lists = new Lists();
|
|
30
|
+
this.point = new Point(this.geometryHelper, this.transforms, this.vector, this.lists);
|
|
31
|
+
this.line = new Line(this.vector, this.point, this.geometryHelper);
|
|
32
|
+
this.polyline = new Polyline(this.vector, this.point, this.line, this.geometryHelper);
|
|
33
|
+
this.mesh = new MeshBitByBit(this.vector, this.polyline);
|
|
34
|
+
this.textService = new TextBitByBit(this.point);
|
|
35
|
+
this.io = new IoBitByBit();
|
|
36
|
+
this.frame = new Frame(this.vector, this.math, this.geometryHelper);
|
|
37
|
+
this.color = new Color(this.math);
|
|
38
|
+
this.logic = new Logic();
|
|
39
|
+
this.dates = new Dates();
|
|
40
|
+
this.engineering = new Engineering();
|
|
41
|
+
this.recipes = new Recipes();
|
|
42
|
+
}
|
|
43
|
+
}
|