@mylasertools/kerfscript 0.10.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 +199 -0
- package/LANGUAGE.md +90 -42
- package/dist/assembly.d.cts +20 -1
- package/dist/assembly.d.ts +20 -1
- package/dist/cli.js +2236 -375
- package/dist/colors.d.cts +4 -0
- package/dist/colors.d.ts +4 -0
- package/dist/effects.d.cts +2 -2
- package/dist/effects.d.ts +2 -2
- package/dist/evaluator.d.cts +9 -1
- package/dist/evaluator.d.ts +9 -1
- package/dist/export/mesh.d.cts +16 -3
- package/dist/export/mesh.d.ts +16 -3
- package/dist/export/model.d.cts +4 -2
- package/dist/export/model.d.ts +4 -2
- package/dist/export/pages.d.cts +23 -0
- package/dist/export/pages.d.ts +23 -0
- package/dist/geometry.d.cts +20 -0
- package/dist/geometry.d.ts +20 -0
- package/dist/hardware.d.cts +2 -0
- package/dist/hardware.d.ts +2 -0
- package/dist/highlight.cjs +1 -1
- package/dist/highlight.js +1 -1
- package/dist/index.cjs +1308 -77
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1308 -77
- package/dist/instructions.d.cts +27 -0
- package/dist/instructions.d.ts +27 -0
- package/dist/language.cjs +1281 -50
- package/dist/language.js +1281 -50
- package/dist/libraries.cjs +1262 -36
- package/dist/libraries.js +1262 -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 +5 -0
- package/dist/render.d.ts +5 -0
- package/dist/signatures.cjs +75 -4
- package/dist/signatures.js +75 -4
- package/dist/text.d.cts +23 -0
- package/dist/text.d.ts +23 -0
- package/dist/verify/types.d.cts +6 -0
- package/dist/verify/types.d.ts +6 -0
- package/docs/3d-files.md +29 -8
- package/docs/cli.md +12 -1
- package/docs/customizer.md +13 -0
- package/docs/javascript.md +6 -1
- package/docs/layers.md +24 -1
- package/docs/library.md +454 -16
- package/docs/parts-and-sheets.md +205 -28
- package/docs/verification.md +1 -1
- package/docs/versions.md +2 -2
- package/package.json +1 -1
package/dist/instructions.d.cts
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
import { type AssemblyPart } from './assembly.cjs';
|
|
1
2
|
import type { RenderResult } from './render.cjs';
|
|
3
|
+
type V3 = [number, number, number];
|
|
4
|
+
export interface Face {
|
|
5
|
+
pts: V3[];
|
|
6
|
+
holes?: V3[][];
|
|
7
|
+
color: string;
|
|
8
|
+
depth: number;
|
|
9
|
+
stroke: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function shade(hex: string, k: number): string;
|
|
12
|
+
export declare function partFaces(p: AssemblyPart, color: string, stroke: string): Face[];
|
|
13
|
+
export declare function hardwareFaces(h: RenderResult['hardware'][number], color: string): Face[];
|
|
14
|
+
/** Faces seen from the front right, above, scaled into `width` by
|
|
15
|
+
* `height`, back to front: polygons (with holes) to fill, and hardware as
|
|
16
|
+
* lines `width` wide; y down */
|
|
17
|
+
export declare function projectFaces(faces: Face[], width: number, height: number): {
|
|
18
|
+
w: number;
|
|
19
|
+
h: number;
|
|
20
|
+
items: {
|
|
21
|
+
rings: [number, number][][];
|
|
22
|
+
fill: string;
|
|
23
|
+
stroke: string;
|
|
24
|
+
width: number;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
export declare const WOOD = "#d9bf91", DONE = "#cfc6b8", NEW = "#e08a3c";
|
|
2
28
|
/** Assembly instructions for a render, as a standalone HTML page. */
|
|
3
29
|
export declare function instructionsHtml(r: RenderResult, title: string): string;
|
|
30
|
+
export {};
|
package/dist/instructions.d.ts
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
import { type AssemblyPart } from './assembly.js';
|
|
1
2
|
import type { RenderResult } from './render.js';
|
|
3
|
+
type V3 = [number, number, number];
|
|
4
|
+
export interface Face {
|
|
5
|
+
pts: V3[];
|
|
6
|
+
holes?: V3[][];
|
|
7
|
+
color: string;
|
|
8
|
+
depth: number;
|
|
9
|
+
stroke: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function shade(hex: string, k: number): string;
|
|
12
|
+
export declare function partFaces(p: AssemblyPart, color: string, stroke: string): Face[];
|
|
13
|
+
export declare function hardwareFaces(h: RenderResult['hardware'][number], color: string): Face[];
|
|
14
|
+
/** Faces seen from the front right, above, scaled into `width` by
|
|
15
|
+
* `height`, back to front: polygons (with holes) to fill, and hardware as
|
|
16
|
+
* lines `width` wide; y down */
|
|
17
|
+
export declare function projectFaces(faces: Face[], width: number, height: number): {
|
|
18
|
+
w: number;
|
|
19
|
+
h: number;
|
|
20
|
+
items: {
|
|
21
|
+
rings: [number, number][][];
|
|
22
|
+
fill: string;
|
|
23
|
+
stroke: string;
|
|
24
|
+
width: number;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
export declare const WOOD = "#d9bf91", DONE = "#cfc6b8", NEW = "#e08a3c";
|
|
2
28
|
/** Assembly instructions for a render, as a standalone HTML page. */
|
|
3
29
|
export declare function instructionsHtml(r: RenderResult, title: string): string;
|
|
30
|
+
export {};
|