calculate-packing 0.0.46 → 0.0.47

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2853,6 +2853,12 @@ var convertCircuitJsonToPackOutput = (circuitJson, opts = {}) => {
2853
2853
  });
2854
2854
  const db = cju(circuitJson);
2855
2855
  let unnamedCounter = 0;
2856
+ const pcbBoard = circuitJson.find(
2857
+ (item) => item.type === "pcb_board"
2858
+ );
2859
+ if (pcbBoard && pcbBoard.outline) {
2860
+ packOutput.boundaryOutline = pcbBoard.outline;
2861
+ }
2856
2862
  const getNetworkId = (pcbPortId) => {
2857
2863
  if (pcbPortId) {
2858
2864
  const pcbPort = db.pcb_port.get(pcbPortId);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "calculate-packing",
3
3
  "main": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.0.46",
5
+ "version": "0.0.47",
6
6
  "description": "Calculate a packing layout with support for different strategy configurations",
7
7
  "scripts": {
8
8
  "start": "cosmos",