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.
- package/dist/index.js +6 -0
- 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