circuit-json-to-lbrn 0.0.76 → 0.0.78
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 +1 -1
- package/dist/index.js +2445 -2468
- package/lib/createCopperCutFillForLayer.ts +5 -7
- package/lib/createCopperShapesForLayer.ts +2 -5
- package/lib/createTraceClearanceAreasForLayer.ts +6 -8
- package/lib/helpers/addCopperGeometryToNetOrProject.ts +12 -29
- package/lib/index.ts +17 -17
- package/package.json +2 -2
- package/site/main.tsx +4 -4
- package/tests/basics/__snapshots__/board-outline-does-not-appear-in soldermask.snap.svg +1 -1
- package/tests/basics/__snapshots__/mixed-soldermask-margins.snap.svg +1 -1
- package/tests/basics/addPcbVia/__snapshots__/pcb-via-with-soldermask.snap.svg +1 -1
- package/tests/basics/addSmtPad/unconnected-smt-pad.test.ts +101 -0
- package/tests/basics/laser-profile.test.ts +5 -5
- package/tests/basics/soldermask/__snapshots__/copper-and-soldermask.snap.svg +1 -1
- package/tests/basics/soldermask/__snapshots__/soldermask-only.snap.svg +1 -1
- package/tests/basics/soldermask/__snapshots__/top-bottom-pads-with-soldermask.snap.svg +1 -1
- package/tests/basics/soldermask-cure/__snapshots__/soldermask-cure-with-solderMaskMarginPercent.snap.svg +1 -1
- package/tests/basics/soldermask-cure/__snapshots__/soldermask-cure.snap.svg +1 -1
- package/tests/basics/soldermask-margin/__snapshots__/negative-soldermask-margin.snap.svg +1 -1
- package/tests/basics/soldermask-margin/__snapshots__/positive-soldermask-margin.snap.svg +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ const defaultLbrn = convertCircuitJsonToLbrn(circuitJson)
|
|
|
38
38
|
- `margin?: number` - Set the margin around the PCB
|
|
39
39
|
- `traceMargin?: number` - Clearance margin around traces in mm (requires `includeCopper: true`)
|
|
40
40
|
- `laserSpotSize?: number` - Laser spot size in mm for crosshatch spacing (default: `0.005`)
|
|
41
|
-
- `laserProfile?: { copper?: { speed?: number; numPasses?: number; frequency?: number; pulseWidth?: number }; board?: { speed?: number; numPasses?: number; frequency?: number; pulseWidth?: number } }` - Custom laser cut settings for copper and board operations. Defaults
|
|
41
|
+
- `laserProfile?: { copper?: { speed?: number; numPasses?: number; frequency?: number; pulseWidth?: number }; board?: { speed?: number; numPasses?: number; frequency?: number; pulseWidth?: number } }` - Custom laser cut settings for copper and board operations. Defaults: copper (speed: 300 mm/s, numPasses: 1, frequency: 20 kHz, pulseWidth: 1 ns), board (speed: 20 mm/s, numPasses: 1, frequency: 20 kHz, pulseWidth: 1 ns). Pulse width is specified in ns. Allows per-user customization for different lasers/lenses.
|
|
42
42
|
- `includeLayers?: Array<"top" | "bottom">` - Specify which layers to include (default: `["top", "bottom"]`)
|
|
43
43
|
- `mirrorBottomLayer?: boolean` - Mirror bottom layer across the board X-center for flipped-board cutting (default: `false`)
|
|
44
44
|
- `includeHolePunch?: boolean` - Include "Hole Punch Top" / "Hole Punch Bottom" layers that mark hole centers for drilling (default: `true`)
|