circuit-json-to-lbrn 0.0.11 → 0.0.13

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 tscircuit Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -39,12 +39,21 @@ const defaultLbrn = convertCircuitJsonToLbrn(circuitJson)
39
39
 
40
40
  ## Soldermask Support
41
41
 
42
- The `includeSoldermask` flag enables generation of soldermask openings for cutting polyimide sheet. When enabled:
42
+ The `includeSoldermask` flag enables generation of soldermask openings for cutting Kapton tape (polyimide sheet). When enabled:
43
43
  - SMT pads and plated holes will have soldermask openings
44
44
  - Traces are NOT included in the soldermask layer (to avoid accidental bridging during soldering)
45
45
  - Holes are always cut through the board regardless of the mode
46
+ - **Soldermask shapes are filled (Scan mode)** instead of outlined, which is required for laser-cutting Kapton tape masks where the laser needs to remove material from the pad areas
47
+
48
+ ### Laser Cutting Workflow
49
+
50
+ The soldermask layer uses LightBurn's "Scan" mode with filled shapes. This is designed for the following workflow:
51
+
52
+ 1. **Generate LBRN file**: Use `includeSoldermask: true` to export filled pad shapes
53
+ 2. **Laser cut Kapton tape**: The laser will fill/ablate the pad areas.
54
+
46
55
 
47
56
  You can generate:
48
57
  - **Copper only**: `{ includeCopper: true, includeSoldermask: false }` - Traditional copper cutting
49
- - **Soldermask only**: `{ includeCopper: false, includeSoldermask: true }` - Just polyimide cutting patterns
58
+ - **Soldermask only**: `{ includeCopper: false, includeSoldermask: true }` - Just Kapton tape (polyimide) cutting patterns (filled shapes)
50
59
  - **Both**: `{ includeCopper: true, includeSoldermask: true }` - Complete fabrication file with both layers
package/dist/index.js CHANGED
@@ -1334,10 +1334,14 @@ var convertCircuitJsonToLbrn = (circuitJson, options = {}) => {
1334
1334
  });
1335
1335
  project.children.push(throughBoardCutSetting);
1336
1336
  const soldermaskCutSetting = new CutSetting({
1337
+ type: "Scan",
1338
+ // Use Scan mode to fill the pad shapes for Kapton tape cutting
1337
1339
  index: 2,
1338
1340
  name: "Cut Soldermask",
1339
1341
  numPasses: 1,
1340
- speed: 150
1342
+ speed: 150,
1343
+ scanOpt: "individual"
1344
+ // Scan each shape individually
1341
1345
  });
1342
1346
  project.children.push(soldermaskCutSetting);
1343
1347
  const connMap = getFullConnectivityMapFromCircuitJson(circuitJson);
package/lib/index.ts CHANGED
@@ -48,10 +48,12 @@ export const convertCircuitJsonToLbrn = (
48
48
  project.children.push(throughBoardCutSetting)
49
49
 
50
50
  const soldermaskCutSetting = new CutSetting({
51
+ type: "Scan", // Use Scan mode to fill the pad shapes for Kapton tape cutting
51
52
  index: 2,
52
53
  name: "Cut Soldermask",
53
54
  numPasses: 1,
54
55
  speed: 150,
56
+ scanOpt: "individual", // Scan each shape individually
55
57
  })
56
58
  project.children.push(soldermaskCutSetting)
57
59
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "circuit-json-to-lbrn",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.11",
4
+ "version": "0.0.13",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "bun run site/index.html",