circuit-json-to-lbrn 0.0.83 → 0.0.85
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 +4 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2034 -1835
- package/lib/ConvertContext.ts +3 -0
- package/lib/create-soldermask-ablation-outline.ts +99 -0
- package/lib/createCopperCutFillForLayer.ts +5 -5
- package/lib/createToolingLayerForComponents.ts +104 -0
- package/lib/index.ts +76 -0
- package/lib/layer-indexes.ts +4 -0
- package/package.json +2 -2
- package/tests/basics/soldermask-ablation.test.ts +111 -0
- package/tests/basics/tooling-layer.test.ts +74 -0
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ import { convertCircuitJsonToLbrn } from "circuit-json-to-lbrn"
|
|
|
11
11
|
const copperLbrn = convertCircuitJsonToLbrn(circuitJson, {
|
|
12
12
|
includeCopper: true,
|
|
13
13
|
includeSoldermask: false,
|
|
14
|
+
toolingLayerIncludeRefs: [".TP1", ".TP2", ".TP3"],
|
|
14
15
|
})
|
|
15
16
|
|
|
16
17
|
// Generate soldermask layer only (for cutting polyimide sheet)
|
|
@@ -42,6 +43,9 @@ const defaultLbrn = convertCircuitJsonToLbrn(circuitJson)
|
|
|
42
43
|
- `includeLayers?: Array<"top" | "bottom">` - Specify which layers to include (default: `["top", "bottom"]`)
|
|
43
44
|
- `mirrorBottomLayer?: boolean` - Mirror bottom layer across the board X-center for flipped-board cutting (default: `false`)
|
|
44
45
|
- `includeHolePunch?: boolean` - Include "Hole Punch Top" / "Hole Punch Bottom" layers that mark hole centers for drilling (default: `true`)
|
|
46
|
+
- `includeSoldermaskAblation?: boolean` - Include a top-layer scan outline around all copper for soldermask ablation (default: `false`)
|
|
47
|
+
- `soldermaskAblationClearance?: number` - Clearance from copper to the soldermask ablation outline in mm (default: `1`)
|
|
48
|
+
- `toolingLayerIncludeRefs?: string[]` - Copy the PCB copper lands for component selectors such as `".U1"` or `".TP1"` to LightBurn's native, non-output T1 tooling layer (default: `[]`)
|
|
45
49
|
|
|
46
50
|
## Soldermask Support
|
|
47
51
|
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ interface ConvertCircuitJsonToLbrnOptions {
|
|
|
11
11
|
includeCopper?: boolean;
|
|
12
12
|
includeSoldermask?: boolean;
|
|
13
13
|
includeSoldermaskCure?: boolean;
|
|
14
|
+
/** Generate a top-layer outer contour around copper for soldermask ablation. */
|
|
15
|
+
includeSoldermaskAblation?: boolean;
|
|
16
|
+
/** Clearance between copper and the soldermask ablation outline, in mm. Defaults to 1. */
|
|
17
|
+
soldermaskAblationClearance?: number;
|
|
14
18
|
globalCopperSoldermaskMarginAdjustment?: number;
|
|
15
19
|
solderMaskMarginPercent?: number;
|
|
16
20
|
includeLayers?: Array<"top" | "bottom">;
|
|
@@ -18,6 +22,13 @@ interface ConvertCircuitJsonToLbrnOptions {
|
|
|
18
22
|
laserSpotSize?: number;
|
|
19
23
|
mirrorBottomLayer?: boolean;
|
|
20
24
|
includeHolePunch?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Source component selectors whose PCB copper lands should be copied to
|
|
27
|
+
* LightBurn's native, non-output T1 tooling layer.
|
|
28
|
+
*
|
|
29
|
+
* @example [".U1", ".TP1"]
|
|
30
|
+
*/
|
|
31
|
+
toolingLayerIncludeRefs?: string[];
|
|
21
32
|
/**
|
|
22
33
|
* Whether to generate copper cut fill layers.
|
|
23
34
|
* Creates a ring/band around traces and pads that will be laser cut
|