@mylasertools/kerfscript 0.9.0 → 0.11.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/CHANGELOG.md +287 -0
- package/LANGUAGE.md +100 -44
- package/README.md +2 -1
- package/dist/assembly.d.cts +22 -1
- package/dist/assembly.d.ts +22 -1
- package/dist/bores.d.cts +10 -0
- package/dist/bores.d.ts +10 -0
- package/dist/cli.js +9977 -6847
- package/dist/colors.d.cts +4 -0
- package/dist/colors.d.ts +4 -0
- package/dist/customizer.d.cts +3 -0
- package/dist/customizer.d.ts +3 -0
- package/dist/effects.d.cts +31 -0
- package/dist/effects.d.ts +31 -0
- package/dist/evaluator.d.cts +10 -1
- package/dist/evaluator.d.ts +10 -1
- package/dist/export/mesh.d.cts +66 -0
- package/dist/export/mesh.d.ts +66 -0
- package/dist/export/model.d.cts +14 -0
- package/dist/export/model.d.ts +14 -0
- package/dist/export/pages.d.cts +23 -0
- package/dist/export/pages.d.ts +23 -0
- package/dist/export/triangulate.d.cts +5 -0
- package/dist/export/triangulate.d.ts +5 -0
- package/dist/export/zip.d.cts +5 -0
- package/dist/export/zip.d.ts +5 -0
- package/dist/geometry.d.cts +21 -0
- package/dist/geometry.d.ts +21 -0
- package/dist/hardware.d.cts +2 -0
- package/dist/hardware.d.ts +2 -0
- package/dist/highlight.cjs +2 -2
- package/dist/highlight.js +2 -2
- package/dist/import/dbg.d.cts +1 -0
- package/dist/import/dbg.d.ts +1 -0
- package/dist/index.cjs +1693 -75
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +1693 -75
- package/dist/instructions.d.cts +27 -0
- package/dist/instructions.d.ts +27 -0
- package/dist/language.cjs +1664 -53
- package/dist/language.js +1664 -53
- package/dist/libraries.cjs +1641 -36
- package/dist/libraries.js +1641 -36
- package/dist/lights.d.cts +38 -0
- package/dist/lights.d.ts +38 -0
- package/dist/png.d.cts +14 -0
- package/dist/png.d.ts +14 -0
- package/dist/render.d.cts +8 -0
- package/dist/render.d.ts +8 -0
- package/dist/signatures.cjs +98 -9
- package/dist/signatures.js +98 -9
- package/dist/text.d.cts +29 -0
- package/dist/text.d.ts +29 -0
- package/dist/verify/types.d.cts +6 -0
- package/dist/verify/types.d.ts +6 -0
- package/docs/3d-files.md +93 -0
- package/docs/cli.md +38 -22
- package/docs/customizer.md +69 -0
- package/docs/javascript.md +51 -0
- package/docs/layers.md +24 -1
- package/docs/library.md +574 -16
- package/docs/openscad.md +15 -13
- package/docs/parts-and-sheets.md +207 -29
- package/docs/verification.md +1 -1
- package/docs/versions.md +2 -2
- package/package.json +1 -1
package/dist/bores.d.cts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { HardwareItem } from './evaluator.cjs';
|
|
2
2
|
import { type Poly } from './geometry.cjs';
|
|
3
3
|
import type { Solid } from './slots.cjs';
|
|
4
|
+
type Vec3 = [number, number, number];
|
|
4
5
|
export declare const FITS: Record<string, number>;
|
|
6
|
+
/** A rod's axes: along it, and across it, v towards `up` (a [w, h]
|
|
7
|
+
* section's h, a polygon's first corner) and u square to both (its w). The
|
|
8
|
+
* 3D files use the same, so a rod fits the bore cut for it. */
|
|
9
|
+
export declare function rodFrame(h: HardwareItem): {
|
|
10
|
+
axis: Vec3;
|
|
11
|
+
u: Vec3;
|
|
12
|
+
v: Vec3;
|
|
13
|
+
};
|
|
5
14
|
export declare function boreFor(target: Solid, h: HardwareItem, room: number): Poly | undefined;
|
|
15
|
+
export {};
|
package/dist/bores.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { HardwareItem } from './evaluator.js';
|
|
2
2
|
import { type Poly } from './geometry.js';
|
|
3
3
|
import type { Solid } from './slots.js';
|
|
4
|
+
type Vec3 = [number, number, number];
|
|
4
5
|
export declare const FITS: Record<string, number>;
|
|
6
|
+
/** A rod's axes: along it, and across it, v towards `up` (a [w, h]
|
|
7
|
+
* section's h, a polygon's first corner) and u square to both (its w). The
|
|
8
|
+
* 3D files use the same, so a rod fits the bore cut for it. */
|
|
9
|
+
export declare function rodFrame(h: HardwareItem): {
|
|
10
|
+
axis: Vec3;
|
|
11
|
+
u: Vec3;
|
|
12
|
+
v: Vec3;
|
|
13
|
+
};
|
|
5
14
|
export declare function boreFor(target: Solid, h: HardwareItem, room: number): Poly | undefined;
|
|
15
|
+
export {};
|