@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.
- package/README.md +228 -40
- package/bld/chunks/chunk-2DGVQRQ5.js +78 -0
- package/bld/chunks/chunk-2DGVQRQ5.js.map +7 -0
- package/bld/chunks/chunk-4FMUSJBB.js +27 -0
- package/bld/chunks/chunk-4FMUSJBB.js.map +7 -0
- package/bld/chunks/chunk-7UGU5EFV.js +87 -0
- package/bld/chunks/chunk-7UGU5EFV.js.map +7 -0
- package/bld/chunks/chunk-DKS4VANI.js +27 -0
- package/bld/chunks/chunk-DKS4VANI.js.map +7 -0
- package/bld/chunks/chunk-ES62SR3Q.js +21 -0
- package/bld/chunks/chunk-ES62SR3Q.js.map +7 -0
- package/bld/chunks/chunk-ESLSQKZW.js +25 -0
- package/bld/chunks/chunk-ESLSQKZW.js.map +7 -0
- package/bld/chunks/chunk-GAX6375G.js +25 -0
- package/bld/chunks/chunk-GAX6375G.js.map +7 -0
- package/bld/chunks/chunk-GIIOR3XJ.js +49 -0
- package/bld/chunks/chunk-GIIOR3XJ.js.map +7 -0
- package/bld/chunks/chunk-HPPYZYCK.js +23 -0
- package/bld/chunks/chunk-HPPYZYCK.js.map +7 -0
- package/bld/chunks/chunk-IXFHRZSY.js +121 -0
- package/bld/chunks/chunk-IXFHRZSY.js.map +7 -0
- package/bld/chunks/chunk-MEIKYZ23.js +84 -0
- package/bld/chunks/chunk-MEIKYZ23.js.map +7 -0
- package/bld/chunks/chunk-O34BMYJV.js +84 -0
- package/bld/chunks/chunk-O34BMYJV.js.map +7 -0
- package/bld/chunks/chunk-P3M5KQ5U.js +46 -0
- package/bld/chunks/chunk-P3M5KQ5U.js.map +7 -0
- package/bld/chunks/chunk-PFFNLWWR.js +25 -0
- package/bld/chunks/chunk-PFFNLWWR.js.map +7 -0
- package/bld/chunks/chunk-SDUJLXOE.js +46 -0
- package/bld/chunks/chunk-SDUJLXOE.js.map +7 -0
- package/bld/chunks/chunk-SDYJF2XK.js +25 -0
- package/bld/chunks/chunk-SDYJF2XK.js.map +7 -0
- package/bld/chunks/chunk-SGDNOA44.js +92 -0
- package/bld/chunks/chunk-SGDNOA44.js.map +7 -0
- package/bld/chunks/chunk-SPFHOFBC.js +125 -0
- package/bld/chunks/chunk-SPFHOFBC.js.map +7 -0
- package/bld/chunks/chunk-VVX3WOBG.js +160 -0
- package/bld/chunks/chunk-VVX3WOBG.js.map +7 -0
- package/bld/chunks/chunk-W62ASGIP.js +25 -0
- package/bld/chunks/chunk-W62ASGIP.js.map +7 -0
- package/bld/chunks/chunk-Z5LEGL77.js +464 -0
- package/bld/chunks/chunk-Z5LEGL77.js.map +7 -0
- package/bld/chunks/chunk-ZNWKI54A.js +25 -0
- package/bld/chunks/chunk-ZNWKI54A.js.map +7 -0
- package/bld/library/common.d.ts +104 -0
- package/bld/library/common.d.ts.map +1 -0
- package/bld/library/gb-2672.d.ts +8 -0
- package/bld/library/gb-2672.d.ts.map +1 -0
- package/bld/library/gb-2672.js +17 -0
- package/bld/library/gb-2672.js.map +7 -0
- package/bld/library/gb-5281.d.ts +8 -0
- package/bld/library/gb-5281.d.ts.map +1 -0
- package/bld/library/gb-5281.js +15 -0
- package/bld/library/gb-5281.js.map +7 -0
- package/bld/library/gb-5782.d.ts +8 -0
- package/bld/library/gb-5782.d.ts.map +1 -0
- package/bld/library/gb-5782.js +19 -0
- package/bld/library/gb-5782.js.map +7 -0
- package/bld/library/gb-5783.d.ts +8 -0
- package/bld/library/gb-5783.d.ts.map +1 -0
- package/bld/library/gb-5783.js +19 -0
- package/bld/library/gb-5783.js.map +7 -0
- package/bld/library/gb-70-1.d.ts +8 -0
- package/bld/library/gb-70-1.d.ts.map +1 -0
- package/bld/library/gb-70-1.js +17 -0
- package/bld/library/gb-70-1.js.map +7 -0
- package/bld/library/gb-70-2.d.ts +8 -0
- package/bld/library/gb-70-2.d.ts.map +1 -0
- package/bld/library/gb-70-2.js +17 -0
- package/bld/library/gb-70-2.js.map +7 -0
- package/bld/library/gb-70-3.d.ts +8 -0
- package/bld/library/gb-70-3.d.ts.map +1 -0
- package/bld/library/gb-70-3.js +17 -0
- package/bld/library/gb-70-3.js.map +7 -0
- package/bld/library/gb-70-4.d.ts +8 -0
- package/bld/library/gb-70-4.d.ts.map +1 -0
- package/bld/library/gb-70-4.js +17 -0
- package/bld/library/gb-70-4.js.map +7 -0
- package/bld/library/gb-80.d.ts +8 -0
- package/bld/library/gb-80.d.ts.map +1 -0
- package/bld/library/gb-80.js +13 -0
- package/bld/library/gb-80.js.map +7 -0
- package/bld/library/gb-818.d.ts +8 -0
- package/bld/library/gb-818.d.ts.map +1 -0
- package/bld/library/gb-818.js +17 -0
- package/bld/library/gb-818.js.map +7 -0
- package/bld/library/hex-head.d.ts +18 -0
- package/bld/library/hex-head.d.ts.map +1 -0
- package/bld/library/index.d.ts +19 -0
- package/bld/library/index.d.ts.map +1 -1
- package/bld/library/index.js +80 -455
- package/bld/library/index.js.map +3 -3
- package/bld/library/iso-10642.d.ts +51 -0
- package/bld/library/iso-10642.d.ts.map +1 -0
- package/bld/library/iso-10642.js +16 -0
- package/bld/library/iso-10642.js.map +7 -0
- package/bld/library/iso-14583.d.ts +35 -0
- package/bld/library/iso-14583.d.ts.map +1 -0
- package/bld/library/iso-14583.js +16 -0
- package/bld/library/iso-14583.js.map +7 -0
- package/bld/library/iso-4014.d.ts +20 -0
- package/bld/library/iso-4014.d.ts.map +1 -0
- package/bld/library/iso-4014.js +18 -0
- package/bld/library/iso-4014.js.map +7 -0
- package/bld/library/iso-4017.d.ts +20 -0
- package/bld/library/iso-4017.d.ts.map +1 -0
- package/bld/library/iso-4017.js +18 -0
- package/bld/library/iso-4017.js.map +7 -0
- package/bld/library/iso-4029.d.ts +32 -0
- package/bld/library/iso-4029.d.ts.map +1 -0
- package/bld/library/iso-4029.js +12 -0
- package/bld/library/iso-4029.js.map +7 -0
- package/bld/library/iso-4762.d.ts +10 -152
- package/bld/library/iso-4762.d.ts.map +1 -1
- package/bld/library/iso-4762.js +16 -0
- package/bld/library/iso-4762.js.map +7 -0
- package/bld/library/iso-7045.d.ts +33 -0
- package/bld/library/iso-7045.d.ts.map +1 -0
- package/bld/library/iso-7045.js +16 -0
- package/bld/library/iso-7045.js.map +7 -0
- package/bld/library/iso-7379.d.ts +56 -0
- package/bld/library/iso-7379.d.ts.map +1 -0
- package/bld/library/iso-7379.js +14 -0
- package/bld/library/iso-7379.js.map +7 -0
- package/bld/library/iso-7380-1.d.ts +31 -0
- package/bld/library/iso-7380-1.d.ts.map +1 -0
- package/bld/library/iso-7380-1.js +16 -0
- package/bld/library/iso-7380-1.js.map +7 -0
- package/bld/library/iso-7380-2.d.ts +33 -0
- package/bld/library/iso-7380-2.d.ts.map +1 -0
- package/bld/library/iso-7380-2.js +16 -0
- package/bld/library/iso-7380-2.js.map +7 -0
- package/package.json +82 -2
- package/src/library/common.ts +367 -0
- package/src/library/gb-2672.ts +7 -0
- package/src/library/gb-5281.ts +7 -0
- package/src/library/gb-5782.ts +7 -0
- package/src/library/gb-5783.ts +7 -0
- package/src/library/gb-70-1.ts +7 -0
- package/src/library/gb-70-2.ts +7 -0
- package/src/library/gb-70-3.ts +7 -0
- package/src/library/gb-70-4.ts +7 -0
- package/src/library/gb-80.ts +7 -0
- package/src/library/gb-818.ts +7 -0
- package/src/library/hex-head.ts +53 -0
- package/src/library/index.ts +20 -0
- package/src/library/iso-10642.ts +173 -0
- package/src/library/iso-14583.ts +181 -0
- package/src/library/iso-4014.ts +64 -0
- package/src/library/iso-4017.ts +62 -0
- package/src/library/iso-4029.ts +101 -0
- package/src/library/iso-4762.ts +70 -300
- package/src/library/iso-7045.ts +134 -0
- package/src/library/iso-7379.ts +230 -0
- package/src/library/iso-7380-1.ts +110 -0
- package/src/library/iso-7380-2.ts +135 -0
- 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,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,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,cA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|
|
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,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,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AAa,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,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"}
|
|
@@ -1,169 +1,27 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export type ClearanceFit
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"iso-4762.d.ts","sourceRoot":"","sources":["../../src/library/iso-4762.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,EACrC,wBAAwB,IAAI,iCAAiC,GAC9D,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,QAAQ,CAAC;IACP,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC,CAAC;AAuBL,eAAO,MAAM,cAAc;aACzB,EAAE;aACF,EAAE;aACF,EAAE;aACF,EAAE;aACF,EAAE;aACF,GAAG;aACH,GAAG;CACK,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,aAAa,CAAC;AAE9C,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,GAC1D,QAAQ,CAAC;IACP,WAAW,EAAE,KAAK,CAAC;CACpB,CAAC,CAAC;AAEL,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,oBAAoB,EACpB,aAAa,CACd,GACC,QAAQ,CAAC;IACP,WAAW,CAAC,EAAE,IAAI,GAAG,kBAAkB,CAAC;CACzC,CAAC,CAAC;AAEL;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAiB9D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,GACZ,gBAAgB,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,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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,EAAE,UAAU,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,YAAiB,GACzB,KAAK,CAqBP;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-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,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;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC;AA+BL,eAAO,MAAM,cAAc;aACzB,GAAG;aACH,CAAC;aACD,EAAE;aACF,EAAE;aACF,EAAE;CACM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AuB,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
|