@code3d/screws 0.0.1-alpha.4 → 0.0.1-alpha.7

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 (158) hide show
  1. package/README.md +228 -40
  2. package/bld/chunks/chunk-2DGVQRQ5.js +78 -0
  3. package/bld/chunks/chunk-2DGVQRQ5.js.map +7 -0
  4. package/bld/chunks/chunk-4FMUSJBB.js +27 -0
  5. package/bld/chunks/chunk-4FMUSJBB.js.map +7 -0
  6. package/bld/chunks/chunk-7UGU5EFV.js +87 -0
  7. package/bld/chunks/chunk-7UGU5EFV.js.map +7 -0
  8. package/bld/chunks/chunk-DKS4VANI.js +27 -0
  9. package/bld/chunks/chunk-DKS4VANI.js.map +7 -0
  10. package/bld/chunks/chunk-ES62SR3Q.js +21 -0
  11. package/bld/chunks/chunk-ES62SR3Q.js.map +7 -0
  12. package/bld/chunks/chunk-ESLSQKZW.js +25 -0
  13. package/bld/chunks/chunk-ESLSQKZW.js.map +7 -0
  14. package/bld/chunks/chunk-GAX6375G.js +25 -0
  15. package/bld/chunks/chunk-GAX6375G.js.map +7 -0
  16. package/bld/chunks/chunk-GIIOR3XJ.js +49 -0
  17. package/bld/chunks/chunk-GIIOR3XJ.js.map +7 -0
  18. package/bld/chunks/chunk-HPPYZYCK.js +23 -0
  19. package/bld/chunks/chunk-HPPYZYCK.js.map +7 -0
  20. package/bld/chunks/chunk-IXFHRZSY.js +121 -0
  21. package/bld/chunks/chunk-IXFHRZSY.js.map +7 -0
  22. package/bld/chunks/chunk-MEIKYZ23.js +84 -0
  23. package/bld/chunks/chunk-MEIKYZ23.js.map +7 -0
  24. package/bld/chunks/chunk-O34BMYJV.js +84 -0
  25. package/bld/chunks/chunk-O34BMYJV.js.map +7 -0
  26. package/bld/chunks/chunk-P3M5KQ5U.js +46 -0
  27. package/bld/chunks/chunk-P3M5KQ5U.js.map +7 -0
  28. package/bld/chunks/chunk-PFFNLWWR.js +25 -0
  29. package/bld/chunks/chunk-PFFNLWWR.js.map +7 -0
  30. package/bld/chunks/chunk-SDUJLXOE.js +46 -0
  31. package/bld/chunks/chunk-SDUJLXOE.js.map +7 -0
  32. package/bld/chunks/chunk-SDYJF2XK.js +25 -0
  33. package/bld/chunks/chunk-SDYJF2XK.js.map +7 -0
  34. package/bld/chunks/chunk-SGDNOA44.js +92 -0
  35. package/bld/chunks/chunk-SGDNOA44.js.map +7 -0
  36. package/bld/chunks/chunk-SPFHOFBC.js +125 -0
  37. package/bld/chunks/chunk-SPFHOFBC.js.map +7 -0
  38. package/bld/chunks/chunk-VVX3WOBG.js +160 -0
  39. package/bld/chunks/chunk-VVX3WOBG.js.map +7 -0
  40. package/bld/chunks/chunk-W62ASGIP.js +25 -0
  41. package/bld/chunks/chunk-W62ASGIP.js.map +7 -0
  42. package/bld/chunks/chunk-Z5LEGL77.js +464 -0
  43. package/bld/chunks/chunk-Z5LEGL77.js.map +7 -0
  44. package/bld/chunks/chunk-ZNWKI54A.js +25 -0
  45. package/bld/chunks/chunk-ZNWKI54A.js.map +7 -0
  46. package/bld/library/common.d.ts +104 -0
  47. package/bld/library/common.d.ts.map +1 -0
  48. package/bld/library/gb-2672.d.ts +8 -0
  49. package/bld/library/gb-2672.d.ts.map +1 -0
  50. package/bld/library/gb-2672.js +17 -0
  51. package/bld/library/gb-2672.js.map +7 -0
  52. package/bld/library/gb-5281.d.ts +8 -0
  53. package/bld/library/gb-5281.d.ts.map +1 -0
  54. package/bld/library/gb-5281.js +15 -0
  55. package/bld/library/gb-5281.js.map +7 -0
  56. package/bld/library/gb-5782.d.ts +8 -0
  57. package/bld/library/gb-5782.d.ts.map +1 -0
  58. package/bld/library/gb-5782.js +19 -0
  59. package/bld/library/gb-5782.js.map +7 -0
  60. package/bld/library/gb-5783.d.ts +8 -0
  61. package/bld/library/gb-5783.d.ts.map +1 -0
  62. package/bld/library/gb-5783.js +19 -0
  63. package/bld/library/gb-5783.js.map +7 -0
  64. package/bld/library/gb-70-1.d.ts +8 -0
  65. package/bld/library/gb-70-1.d.ts.map +1 -0
  66. package/bld/library/gb-70-1.js +17 -0
  67. package/bld/library/gb-70-1.js.map +7 -0
  68. package/bld/library/gb-70-2.d.ts +8 -0
  69. package/bld/library/gb-70-2.d.ts.map +1 -0
  70. package/bld/library/gb-70-2.js +17 -0
  71. package/bld/library/gb-70-2.js.map +7 -0
  72. package/bld/library/gb-70-3.d.ts +8 -0
  73. package/bld/library/gb-70-3.d.ts.map +1 -0
  74. package/bld/library/gb-70-3.js +17 -0
  75. package/bld/library/gb-70-3.js.map +7 -0
  76. package/bld/library/gb-70-4.d.ts +8 -0
  77. package/bld/library/gb-70-4.d.ts.map +1 -0
  78. package/bld/library/gb-70-4.js +17 -0
  79. package/bld/library/gb-70-4.js.map +7 -0
  80. package/bld/library/gb-80.d.ts +8 -0
  81. package/bld/library/gb-80.d.ts.map +1 -0
  82. package/bld/library/gb-80.js +13 -0
  83. package/bld/library/gb-80.js.map +7 -0
  84. package/bld/library/gb-818.d.ts +8 -0
  85. package/bld/library/gb-818.d.ts.map +1 -0
  86. package/bld/library/gb-818.js +17 -0
  87. package/bld/library/gb-818.js.map +7 -0
  88. package/bld/library/hex-head.d.ts +18 -0
  89. package/bld/library/hex-head.d.ts.map +1 -0
  90. package/bld/library/index.d.ts +19 -0
  91. package/bld/library/index.d.ts.map +1 -1
  92. package/bld/library/index.js +80 -455
  93. package/bld/library/index.js.map +3 -3
  94. package/bld/library/iso-10642.d.ts +51 -0
  95. package/bld/library/iso-10642.d.ts.map +1 -0
  96. package/bld/library/iso-10642.js +16 -0
  97. package/bld/library/iso-10642.js.map +7 -0
  98. package/bld/library/iso-14583.d.ts +35 -0
  99. package/bld/library/iso-14583.d.ts.map +1 -0
  100. package/bld/library/iso-14583.js +16 -0
  101. package/bld/library/iso-14583.js.map +7 -0
  102. package/bld/library/iso-4014.d.ts +20 -0
  103. package/bld/library/iso-4014.d.ts.map +1 -0
  104. package/bld/library/iso-4014.js +18 -0
  105. package/bld/library/iso-4014.js.map +7 -0
  106. package/bld/library/iso-4017.d.ts +20 -0
  107. package/bld/library/iso-4017.d.ts.map +1 -0
  108. package/bld/library/iso-4017.js +18 -0
  109. package/bld/library/iso-4017.js.map +7 -0
  110. package/bld/library/iso-4029.d.ts +32 -0
  111. package/bld/library/iso-4029.d.ts.map +1 -0
  112. package/bld/library/iso-4029.js +12 -0
  113. package/bld/library/iso-4029.js.map +7 -0
  114. package/bld/library/iso-4762.d.ts +10 -152
  115. package/bld/library/iso-4762.d.ts.map +1 -1
  116. package/bld/library/iso-4762.js +16 -0
  117. package/bld/library/iso-4762.js.map +7 -0
  118. package/bld/library/iso-7045.d.ts +33 -0
  119. package/bld/library/iso-7045.d.ts.map +1 -0
  120. package/bld/library/iso-7045.js +16 -0
  121. package/bld/library/iso-7045.js.map +7 -0
  122. package/bld/library/iso-7379.d.ts +56 -0
  123. package/bld/library/iso-7379.d.ts.map +1 -0
  124. package/bld/library/iso-7379.js +14 -0
  125. package/bld/library/iso-7379.js.map +7 -0
  126. package/bld/library/iso-7380-1.d.ts +31 -0
  127. package/bld/library/iso-7380-1.d.ts.map +1 -0
  128. package/bld/library/iso-7380-1.js +16 -0
  129. package/bld/library/iso-7380-1.js.map +7 -0
  130. package/bld/library/iso-7380-2.d.ts +33 -0
  131. package/bld/library/iso-7380-2.d.ts.map +1 -0
  132. package/bld/library/iso-7380-2.js +16 -0
  133. package/bld/library/iso-7380-2.js.map +7 -0
  134. package/package.json +82 -2
  135. package/src/library/common.ts +367 -0
  136. package/src/library/gb-2672.ts +7 -0
  137. package/src/library/gb-5281.ts +7 -0
  138. package/src/library/gb-5782.ts +7 -0
  139. package/src/library/gb-5783.ts +7 -0
  140. package/src/library/gb-70-1.ts +7 -0
  141. package/src/library/gb-70-2.ts +7 -0
  142. package/src/library/gb-70-3.ts +7 -0
  143. package/src/library/gb-70-4.ts +7 -0
  144. package/src/library/gb-80.ts +7 -0
  145. package/src/library/gb-818.ts +7 -0
  146. package/src/library/hex-head.ts +53 -0
  147. package/src/library/index.ts +20 -0
  148. package/src/library/iso-10642.ts +173 -0
  149. package/src/library/iso-14583.ts +181 -0
  150. package/src/library/iso-4014.ts +64 -0
  151. package/src/library/iso-4017.ts +62 -0
  152. package/src/library/iso-4029.ts +101 -0
  153. package/src/library/iso-4762.ts +70 -300
  154. package/src/library/iso-7045.ts +134 -0
  155. package/src/library/iso-7379.ts +230 -0
  156. package/src/library/iso-7380-1.ts +110 -0
  157. package/src/library/iso-7380-2.ts +135 -0
  158. package/src/library/thread.ts +7 -1
@@ -0,0 +1,16 @@
1
+ import {
2
+ clearanceHole,
3
+ resolveSpecification,
4
+ screw,
5
+ specifications,
6
+ threadLength
7
+ } from "../chunks/chunk-IXFHRZSY.js";
8
+ import "../chunks/chunk-Z5LEGL77.js";
9
+ export {
10
+ clearanceHole,
11
+ resolveSpecification,
12
+ screw,
13
+ specifications,
14
+ threadLength
15
+ };
16
+ //# sourceMappingURL=iso-10642.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,35 @@
1
+ import { type HeadSpecification, type Screw, type ClearanceHole, type CounterboredHole, type ClearanceHoleOptions, type PlainHoleOptions, type CounterboredHoleOptions } from './common.js';
2
+ export type { ClearanceFit, Screw, ScrewElements, ClearanceHole, HoleElements, CounterboredHole, CounterboredHoleElements, ClearanceHoleOptions, PlainHoleOptions, CounterboredHoleOptions, CounterboreOptions, } from './common.js';
3
+ export type HexalobularRecess = Readonly<{
4
+ number: number;
5
+ diameter: number;
6
+ innerDiameter: number;
7
+ depth: number;
8
+ }>;
9
+ export type Specification = HeadSpecification & Readonly<{
10
+ headCurvatureRadius: number;
11
+ recess: HexalobularRecess;
12
+ }>;
13
+ export declare const specifications: {
14
+ readonly M3: Specification;
15
+ readonly M4: Specification;
16
+ readonly M5: Specification;
17
+ readonly M6: Specification;
18
+ readonly M8: Specification;
19
+ readonly M10: Specification;
20
+ };
21
+ export type Size = keyof typeof specifications;
22
+ export type ScrewInput = Size | Specification;
23
+ export declare function resolveSpecification(input: ScrewInput): Specification;
24
+ export declare function threadLength(spec: Specification, _length: number): number;
25
+ /**
26
+ * @code3d.arguments ['M6', 18]
27
+ * @code3d.param length {kind: 'length'}
28
+ */
29
+ export declare function screw(input: ScrewInput, length: number): Screw;
30
+ /** @code3d.arguments ['M6', 10] */
31
+ export declare function clearanceHole(input: ScrewInput, depth: number): ClearanceHole;
32
+ export declare function clearanceHole(input: ScrewInput, options: PlainHoleOptions): ClearanceHole;
33
+ export declare function clearanceHole(input: ScrewInput, options: CounterboredHoleOptions): CounterboredHole;
34
+ export declare function clearanceHole(input: ScrewInput, options: ClearanceHoleOptions): ClearanceHole | CounterboredHole;
35
+ //# sourceMappingURL=iso-14583.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso-14583.d.ts","sourceRoot":"","sources":["../../src/library/iso-14583.ts"],"names":[],"mappings":"AAOA,OAAO,EAOL,KAAK,iBAAiB,EAEtB,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,YAAY,EACZ,KAAK,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,QAAQ,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAA;CAAC,CAAC,CAAC;AAwBrE,eAAO,MAAM,cAAc;aACzB,EAAE;aACF,EAAE;aACF,EAAE;aACF,EAAE;aACF,EAAE;aACF,GAAG;CACK,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,aAAa,CAAC;AAC9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,CAErE;AACD,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzE;AA8CD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CA2B9D;AACD,mCAAmC;AACnC,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC;AAC/E,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,GACxB,aAAa,CAAC;AACjB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC;AACpB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import {
2
+ clearanceHole,
3
+ resolveSpecification,
4
+ screw,
5
+ specifications,
6
+ threadLength
7
+ } from "../chunks/chunk-SPFHOFBC.js";
8
+ import "../chunks/chunk-Z5LEGL77.js";
9
+ export {
10
+ clearanceHole,
11
+ resolveSpecification,
12
+ screw,
13
+ specifications,
14
+ threadLength
15
+ };
16
+ //# sourceMappingURL=iso-14583.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,20 @@
1
+ import { type Screw, type ClearanceHole, type CounterboredHole, type ClearanceHoleOptions, type PlainHoleOptions, type CounterboredHoleOptions } from './common.js';
2
+ import { specifications, type Specification } from './hex-head.js';
3
+ export { specifications };
4
+ export type { Specification };
5
+ export type { ClearanceFit, Screw, ScrewElements, ClearanceHole, HoleElements, CounterboredHole, CounterboredHoleElements, ClearanceHoleOptions, PlainHoleOptions, CounterboredHoleOptions, CounterboreOptions, } from './common.js';
6
+ export type Size = keyof typeof specifications;
7
+ export type ScrewInput = Size | Specification;
8
+ export declare function resolveSpecification(input: ScrewInput): Specification;
9
+ export declare function threadLength(spec: Specification, length: number): number;
10
+ /**
11
+ * @code3d.arguments ['M6', 30]
12
+ * @code3d.param length {kind: 'length'}
13
+ */
14
+ export declare function screw(input: ScrewInput, length: number): Screw;
15
+ /** @code3d.arguments ['M6', 10] */
16
+ export declare function clearanceHole(input: ScrewInput, depth: number): ClearanceHole;
17
+ export declare function clearanceHole(input: ScrewInput, options: PlainHoleOptions): ClearanceHole;
18
+ export declare function clearanceHole(input: ScrewInput, options: CounterboredHoleOptions): CounterboredHole;
19
+ export declare function clearanceHole(input: ScrewInput, options: ClearanceHoleOptions): ClearanceHole | CounterboredHole;
20
+ //# sourceMappingURL=iso-4014.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso-4014.d.ts","sourceRoot":"","sources":["../../src/library/iso-4014.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAU,cAAc,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,CAAC;AACxB,YAAY,EAAC,aAAa,EAAC,CAAC;AAC5B,YAAY,EACV,YAAY,EACZ,KAAK,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,aAAa,CAAC;AAC9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,CAErE;AACD,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAIxE;AACD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAG9D;AACD,mCAAmC;AACnC,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC;AAC/E,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,GACxB,aAAa,CAAC;AACjB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC;AACpB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import {
2
+ clearanceHole,
3
+ resolveSpecification,
4
+ screw,
5
+ threadLength
6
+ } from "../chunks/chunk-SDUJLXOE.js";
7
+ import {
8
+ specifications
9
+ } from "../chunks/chunk-GIIOR3XJ.js";
10
+ import "../chunks/chunk-Z5LEGL77.js";
11
+ export {
12
+ clearanceHole,
13
+ resolveSpecification,
14
+ screw,
15
+ specifications,
16
+ threadLength
17
+ };
18
+ //# sourceMappingURL=iso-4014.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,20 @@
1
+ import { type Screw, type ClearanceHole, type CounterboredHole, type ClearanceHoleOptions, type PlainHoleOptions, type CounterboredHoleOptions } from './common.js';
2
+ import { specifications, type Specification } from './hex-head.js';
3
+ export { specifications };
4
+ export type { Specification };
5
+ export type { ClearanceFit, Screw, ScrewElements, ClearanceHole, HoleElements, CounterboredHole, CounterboredHoleElements, ClearanceHoleOptions, PlainHoleOptions, CounterboredHoleOptions, CounterboreOptions, } from './common.js';
6
+ export type Size = keyof typeof specifications;
7
+ export type ScrewInput = Size | Specification;
8
+ export declare function resolveSpecification(input: ScrewInput): Specification;
9
+ export declare function threadLength(spec: Specification, length: number): number;
10
+ /**
11
+ * @code3d.arguments ['M6', 30]
12
+ * @code3d.param length {kind: 'length'}
13
+ */
14
+ export declare function screw(input: ScrewInput, length: number): Screw;
15
+ /** @code3d.arguments ['M6', 10] */
16
+ export declare function clearanceHole(input: ScrewInput, depth: number): ClearanceHole;
17
+ export declare function clearanceHole(input: ScrewInput, options: PlainHoleOptions): ClearanceHole;
18
+ export declare function clearanceHole(input: ScrewInput, options: CounterboredHoleOptions): CounterboredHole;
19
+ export declare function clearanceHole(input: ScrewInput, options: ClearanceHoleOptions): ClearanceHole | CounterboredHole;
20
+ //# sourceMappingURL=iso-4017.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso-4017.d.ts","sourceRoot":"","sources":["../../src/library/iso-4017.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAU,cAAc,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,CAAC;AACxB,YAAY,EAAC,aAAa,EAAC,CAAC;AAC5B,YAAY,EACV,YAAY,EACZ,KAAK,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,aAAa,CAAC;AAC9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,CAErE;AACD,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAExE;AACD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAG9D;AACD,mCAAmC;AACnC,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC;AAC/E,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,GACxB,aAAa,CAAC;AACjB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC;AACpB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import {
2
+ clearanceHole,
3
+ resolveSpecification,
4
+ screw,
5
+ threadLength
6
+ } from "../chunks/chunk-P3M5KQ5U.js";
7
+ import {
8
+ specifications
9
+ } from "../chunks/chunk-GIIOR3XJ.js";
10
+ import "../chunks/chunk-Z5LEGL77.js";
11
+ export {
12
+ clearanceHole,
13
+ resolveSpecification,
14
+ screw,
15
+ specifications,
16
+ threadLength
17
+ };
18
+ //# sourceMappingURL=iso-4017.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,32 @@
1
+ import { type Bound, type CanonicalElements, type LineAnchor, type SolidModel } from '@code3d/core';
2
+ import { type MetricSpecification } from './common.js';
3
+ export type Specification = MetricSpecification & Readonly<{
4
+ hexSocketWidth: number;
5
+ hexSocketDepth: number;
6
+ cupDiameter: number;
7
+ }>;
8
+ export declare const specifications: {
9
+ readonly M3: Specification;
10
+ readonly M4: Specification;
11
+ readonly M5: Specification;
12
+ readonly M6: Specification;
13
+ readonly M8: Specification;
14
+ readonly M10: Specification;
15
+ readonly M12: Specification;
16
+ };
17
+ export type Size = keyof typeof specifications;
18
+ export type ScrewInput = Size | Specification;
19
+ export type ScrewElements = CanonicalElements & Readonly<{
20
+ driveTop: Bound;
21
+ pointBottom: Bound;
22
+ threadAxis: LineAnchor;
23
+ }>;
24
+ export type Screw = SolidModel<ScrewElements>;
25
+ export declare function resolveSpecification(input: ScrewInput): Specification;
26
+ /**
27
+ * Length is the complete headless screw, including its cup point.
28
+ * @code3d.arguments ['M6', 10]
29
+ * @code3d.param length {kind: 'length'}
30
+ */
31
+ export declare function screw(input: ScrewInput, length: number): Screw;
32
+ //# sourceMappingURL=iso-4029.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso-4029.d.ts","sourceRoot":"","sources":["../../src/library/iso-4029.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAC7C,QAAQ,CAAC;IACP,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;AAWL,eAAO,MAAM,cAAc;aACzB,EAAE;aACF,EAAE;aACF,EAAE;aACF,EAAE;aACF,EAAE;aACF,GAAG;aACH,GAAG;CACK,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,aAAa,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,QAAQ,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC;IAAC,WAAW,EAAE,KAAK,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;AAC9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,CAErE;AAYD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CA+B9D"}
@@ -0,0 +1,12 @@
1
+ import {
2
+ resolveSpecification,
3
+ screw,
4
+ specifications
5
+ } from "../chunks/chunk-O34BMYJV.js";
6
+ import "../chunks/chunk-Z5LEGL77.js";
7
+ export {
8
+ resolveSpecification,
9
+ screw,
10
+ specifications
11
+ };
12
+ //# sourceMappingURL=iso-4029.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,169 +1,27 @@
1
- import { type CanonicalElements, type Bound, type LineAnchor, type SolidModel } from '@code3d/core';
2
- export type ClearanceFit = 'close' | 'normal' | 'loose';
3
- export type Specification = Readonly<{
4
- designation: string;
5
- nominalDiameter: number;
6
- pitch: number;
7
- headDiameter: number;
8
- headHeight: number;
1
+ import { type HeadSpecification, type Screw, type ClearanceHole, type CounterboredHole, type ClearanceHoleOptions, type CounterboreOptions } from './common.js';
2
+ export type { ClearanceFit, ClearanceHoleOptions, CounterboreOptions, Screw, ClearanceHole, CounterboredHole, ScrewElements as SocketCapScrewElements, HoleElements as SocketCapHoleElements, CounterboredHoleElements as CounterboredSocketCapHoleElements, } from './common.js';
3
+ export type Specification = HeadSpecification & Readonly<{
9
4
  hexSocketWidth: number;
10
5
  hexSocketDepth: number;
11
- underHeadRadius: number;
12
- clearance: Readonly<Record<ClearanceFit, number>>;
13
6
  counterboreDiameter: number;
14
7
  }>;
15
8
  export declare const specifications: {
16
- readonly M3: {
17
- readonly designation: 'M3';
18
- readonly nominalDiameter: 3;
19
- readonly pitch: 0.5;
20
- readonly headDiameter: 5.5;
21
- readonly headHeight: 3;
22
- readonly hexSocketWidth: 2.5;
23
- readonly hexSocketDepth: 1.3;
24
- readonly underHeadRadius: 0.1;
25
- readonly clearance: {
26
- readonly close: 3.2;
27
- readonly normal: 3.4;
28
- readonly loose: 3.6;
29
- };
30
- readonly counterboreDiameter: 6;
31
- };
32
- readonly M4: {
33
- readonly designation: 'M4';
34
- readonly nominalDiameter: 4;
35
- readonly pitch: 0.7;
36
- readonly headDiameter: 7;
37
- readonly headHeight: 4;
38
- readonly hexSocketWidth: 3;
39
- readonly hexSocketDepth: 2;
40
- readonly underHeadRadius: 0.2;
41
- readonly clearance: {
42
- readonly close: 4.3;
43
- readonly normal: 4.5;
44
- readonly loose: 4.8;
45
- };
46
- readonly counterboreDiameter: 8;
47
- };
48
- readonly M5: {
49
- readonly designation: 'M5';
50
- readonly nominalDiameter: 5;
51
- readonly pitch: 0.8;
52
- readonly headDiameter: 8.5;
53
- readonly headHeight: 5;
54
- readonly hexSocketWidth: 4;
55
- readonly hexSocketDepth: 2.5;
56
- readonly underHeadRadius: 0.2;
57
- readonly clearance: {
58
- readonly close: 5.3;
59
- readonly normal: 5.5;
60
- readonly loose: 5.8;
61
- };
62
- readonly counterboreDiameter: 10;
63
- };
64
- readonly M6: {
65
- readonly designation: 'M6';
66
- readonly nominalDiameter: 6;
67
- readonly pitch: 1;
68
- readonly headDiameter: 10;
69
- readonly headHeight: 6;
70
- readonly hexSocketWidth: 5;
71
- readonly hexSocketDepth: 3;
72
- readonly underHeadRadius: 0.25;
73
- readonly clearance: {
74
- readonly close: 6.4;
75
- readonly normal: 6.6;
76
- readonly loose: 7;
77
- };
78
- readonly counterboreDiameter: 11;
79
- };
80
- readonly M8: {
81
- readonly designation: 'M8';
82
- readonly nominalDiameter: 8;
83
- readonly pitch: 1.25;
84
- readonly headDiameter: 13;
85
- readonly headHeight: 8;
86
- readonly hexSocketWidth: 6;
87
- readonly hexSocketDepth: 4;
88
- readonly underHeadRadius: 0.4;
89
- readonly clearance: {
90
- readonly close: 8.4;
91
- readonly normal: 9;
92
- readonly loose: 10;
93
- };
94
- readonly counterboreDiameter: 15;
95
- };
96
- readonly M10: {
97
- readonly designation: 'M10';
98
- readonly nominalDiameter: 10;
99
- readonly pitch: 1.5;
100
- readonly headDiameter: 16;
101
- readonly headHeight: 10;
102
- readonly hexSocketWidth: 8;
103
- readonly hexSocketDepth: 5;
104
- readonly underHeadRadius: 0.4;
105
- readonly clearance: {
106
- readonly close: 10.5;
107
- readonly normal: 11;
108
- readonly loose: 12;
109
- };
110
- readonly counterboreDiameter: 18;
111
- };
112
- readonly M12: {
113
- readonly designation: 'M12';
114
- readonly nominalDiameter: 12;
115
- readonly pitch: 1.75;
116
- readonly headDiameter: 18;
117
- readonly headHeight: 12;
118
- readonly hexSocketWidth: 10;
119
- readonly hexSocketDepth: 6;
120
- readonly underHeadRadius: 0.6;
121
- readonly clearance: {
122
- readonly close: 13;
123
- readonly normal: 13.5;
124
- readonly loose: 14.5;
125
- };
126
- readonly counterboreDiameter: 20;
127
- };
9
+ readonly M3: Specification;
10
+ readonly M4: Specification;
11
+ readonly M5: Specification;
12
+ readonly M6: Specification;
13
+ readonly M8: Specification;
14
+ readonly M10: Specification;
15
+ readonly M12: Specification;
128
16
  };
129
17
  export type Size = keyof typeof specifications;
130
18
  export type ScrewInput = Size | Specification;
131
- export type CounterboreOptions = Readonly<{
132
- diameter?: number;
133
- depth?: number;
134
- axialClearance?: number;
135
- }>;
136
- export type ClearanceHoleOptions = Readonly<{
137
- depth: number;
138
- fit?: ClearanceFit;
139
- diameter?: number;
140
- counterbore?: boolean | CounterboreOptions;
141
- }>;
142
19
  export type PlainClearanceHoleOptions = ClearanceHoleOptions & Readonly<{
143
20
  counterbore: false;
144
21
  }>;
145
22
  export type CounterboredHoleOptions = Omit<ClearanceHoleOptions, 'counterbore'> & Readonly<{
146
23
  counterbore?: true | CounterboreOptions;
147
24
  }>;
148
- export type SocketCapScrewElements = CanonicalElements & Readonly<{
149
- headTop: Bound;
150
- headBottom: Bound;
151
- shankTop: Bound;
152
- shankBottom: Bound;
153
- shankAxis: LineAnchor;
154
- }>;
155
- export type SocketCapHoleElements = CanonicalElements & Readonly<{
156
- shaftTop: Bound;
157
- shaftBottom: Bound;
158
- shaftAxis: LineAnchor;
159
- }>;
160
- export type CounterboredSocketCapHoleElements = SocketCapHoleElements & Readonly<{
161
- counterboreTop: Bound;
162
- counterboreBottom: Bound;
163
- }>;
164
- export type Screw = SolidModel<SocketCapScrewElements>;
165
- export type ClearanceHole = SolidModel<SocketCapHoleElements>;
166
- export type CounterboredHole = SolidModel<CounterboredSocketCapHoleElements>;
167
25
  /**
168
26
  * @code3d.arguments ['M6', 18]
169
27
  * @code3d.arguments ['M8', 30]
@@ -1 +1 @@
1
- {"version":3,"file":"iso-4762.d.ts","sourceRoot":"","sources":["../../src/library/iso-4762.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,Q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,CAAC;AACpB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,yBAAyB,GACjC,aAAa,CAAC;AACjB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC;AACpB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,GAAG,gBAAgB,CAAC;AAQpC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,CAErE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAIxE"}
@@ -0,0 +1,16 @@
1
+ import {
2
+ clearanceHole,
3
+ resolveSpecification,
4
+ screw,
5
+ specifications,
6
+ threadLength
7
+ } from "../chunks/chunk-MEIKYZ23.js";
8
+ import "../chunks/chunk-Z5LEGL77.js";
9
+ export {
10
+ clearanceHole,
11
+ resolveSpecification,
12
+ screw,
13
+ specifications,
14
+ threadLength
15
+ };
16
+ //# sourceMappingURL=iso-4762.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,33 @@
1
+ import { type CrossRecessType, type CrossRecess, type HeadSpecification, type Screw, type ClearanceHole, type CounterboredHole, type ClearanceHoleOptions, type PlainHoleOptions, type CounterboredHoleOptions } from './common.js';
2
+ export type { CrossRecessType, CrossRecess, ClearanceFit, Screw, ScrewElements, ClearanceHole, HoleElements, CounterboredHole, CounterboredHoleElements, ClearanceHoleOptions, PlainHoleOptions, CounterboredHoleOptions, CounterboreOptions, } from './common.js';
3
+ export type Specification = HeadSpecification & Readonly<{
4
+ headCurvatureRadius: number;
5
+ recesses: Readonly<Record<CrossRecessType, CrossRecess>>;
6
+ }>;
7
+ export type ScrewOptions = Readonly<{
8
+ recess?: CrossRecessType;
9
+ }>;
10
+ export declare const specifications: {
11
+ readonly M3: Specification;
12
+ readonly M4: Specification;
13
+ readonly M5: Specification;
14
+ readonly M6: Specification;
15
+ readonly M8: Specification;
16
+ readonly M10: Specification;
17
+ };
18
+ export type Size = keyof typeof specifications;
19
+ export type ScrewInput = Size | Specification;
20
+ export declare function resolveSpecification(input: ScrewInput): Specification;
21
+ /** ISO minimum b; shorter screws are threaded to the head transition. */
22
+ export declare function threadLength(spec: Specification, _length: number): number;
23
+ /**
24
+ * @code3d.arguments ['M6', 18]
25
+ * @code3d.param length {kind: 'length'}
26
+ */
27
+ export declare function screw(input: ScrewInput, length: number, options?: ScrewOptions): Screw;
28
+ /** @code3d.arguments ['M6', 10] */
29
+ export declare function clearanceHole(input: ScrewInput, depth: number): ClearanceHole;
30
+ export declare function clearanceHole(input: ScrewInput, options: PlainHoleOptions): ClearanceHole;
31
+ export declare function clearanceHole(input: ScrewInput, options: CounterboredHoleOptions): CounterboredHole;
32
+ export declare function clearanceHole(input: ScrewInput, options: ClearanceHoleOptions): ClearanceHole | CounterboredHole;
33
+ //# sourceMappingURL=iso-7045.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso-7045.d.ts","sourceRoot":"","sources":["../../src/library/iso-7045.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EAEtB,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,eAAe,EACf,WAAW,EACX,YAAY,EACZ,KAAK,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAEr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pecification,
4
+ screw,
5
+ specifications,
6
+ threadLength
7
+ } from "../chunks/chunk-7UGU5EFV.js";
8
+ import "../chunks/chunk-Z5LEGL77.js";
9
+ export {
10
+ clearanceHole,
11
+ resolveSpecification,
12
+ screw,
13
+ specifications,
14
+ threadLength
15
+ };
16
+ //# sourceMappingURL=iso-7045.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,56 @@
1
+ import { type Bound, type CanonicalElements, type LineAnchor, type SolidModel } from '@code3d/core';
2
+ import { type HeadSpecification, type ClearanceHole, type ClearanceHoleOptions as CommonClearanceHoleOptions, type CounterboredHole, type CounterboreOptions } from './common.js';
3
+ export type { ClearanceHole, HoleElements, CounterboredHole, CounterboredHoleElements, CounterboreOptions, } from './common.js';
4
+ export type Specification = HeadSpecification & Readonly<{
5
+ shoulderDiameter: number;
6
+ shoulderBodyDiameter: number;
7
+ threadLength: number;
8
+ neckDiameter: number;
9
+ headReliefLength: number;
10
+ threadReliefLength: number;
11
+ hexSocketWidth: number;
12
+ hexSocketDepth: number;
13
+ }>;
14
+ export declare const specifications: {
15
+ readonly 6.5: Specification;
16
+ readonly 8: Specification;
17
+ readonly 10: Specification;
18
+ readonly 13: Specification;
19
+ readonly 16: Specification;
20
+ };
21
+ export type Size = keyof typeof specifications;
22
+ export type ScrewInput = Size | Specification;
23
+ export type ScrewElements = CanonicalElements & Readonly<{
24
+ headTop: Bound;
25
+ headBottom: Bound;
26
+ shoulderTop: Bound;
27
+ shoulderBottom: Bound;
28
+ shoulderAxis: LineAnchor;
29
+ threadTop: Bound;
30
+ threadBottom: Bound;
31
+ threadAxis: LineAnchor;
32
+ }>;
33
+ export type Screw = SolidModel<ScrewElements>;
34
+ export type ClearanceHoleOptions = Omit<CommonClearanceHoleOptions, 'fit'>;
35
+ export type PlainHoleOptions = ClearanceHoleOptions & Readonly<{
36
+ counterbore?: false;
37
+ }>;
38
+ export type CounterboredHoleOptions = ClearanceHoleOptions & Readonly<{
39
+ counterbore: true | CounterboreOptions;
40
+ }>;
41
+ export declare function resolveSpecification(input: ScrewInput): Specification;
42
+ /**
43
+ * Length is the shoulder length L; the fixed threaded projection b is additional.
44
+ * @code3d.arguments [8, 20]
45
+ * @code3d.param shoulderLength {kind: 'length'}
46
+ */
47
+ export declare function screw(input: ScrewInput, shoulderLength: number): Screw;
48
+ /**
49
+ * Shoulder passage with 0.2 mm diametral clearance and an optional head recess.
50
+ * @code3d.arguments [8, 10]
51
+ */
52
+ export declare function clearanceHole(input: ScrewInput, depth: number): ClearanceHole;
53
+ export declare function clearanceHole(input: ScrewInput, options: PlainHoleOptions): ClearanceHole;
54
+ export declare function clearanceHole(input: ScrewInput, options: CounterboredHoleOptions): CounterboredHole;
55
+ export declare function clearanceHole(input: ScrewInput, options: number | ClearanceHoleOptions): ClearanceHole | CounterboredHole;
56
+ //# sourceMappingURL=iso-7379.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso-7379.d.ts","sourceRoot":"","sources":["../../src/library/iso-7379.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAQL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAClB,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,QAAQ,CAAC;IACP,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;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;AACD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC;AAC/E,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,GACxB,aAAa,CAAC;AACjB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAAC;AACpB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,MAAM,GAAG,oBAAoB,GACrC,aAAa,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import {
2
+ clearanceHole,
3
+ resolveSpecification,
4
+ screw,
5
+ specifications
6
+ } from "../chunks/chunk-VVX3WOBG.js";
7
+ import "../chunks/chunk-Z5LEGL77.js";
8
+ export {
9
+ clearanceHole,
10
+ resolveSpecification,
11
+ screw,
12
+ specifications
13
+ };
14
+ //# sourceMappingURL=iso-7379.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }