@tscircuit/runframe 0.0.2534 → 0.0.2536
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.
|
@@ -2195,7 +2195,7 @@ var usePostHogActivity = (properties) => {
|
|
|
2195
2195
|
};
|
|
2196
2196
|
|
|
2197
2197
|
// package.json
|
|
2198
|
-
var version = "0.0.
|
|
2198
|
+
var version = "0.0.2534";
|
|
2199
2199
|
var package_default = {
|
|
2200
2200
|
name: "@tscircuit/runframe",
|
|
2201
2201
|
main: "dist/preview.js",
|
|
@@ -2267,7 +2267,7 @@ var package_default = {
|
|
|
2267
2267
|
"chokidar-cli": "^3.0.0",
|
|
2268
2268
|
"circuit-json": "^0.0.465",
|
|
2269
2269
|
"circuit-json-to-bom-csv": "^0.0.15",
|
|
2270
|
-
"circuit-json-to-gerber": "^0.0.
|
|
2270
|
+
"circuit-json-to-gerber": "^0.0.98",
|
|
2271
2271
|
"circuit-json-to-kicad": "^0.0.174",
|
|
2272
2272
|
"circuit-json-to-lbrn": "^0.0.74",
|
|
2273
2273
|
"circuit-json-to-pnp-csv": "^0.0.10",
|
|
@@ -4263,12 +4263,7 @@ var exportFabricationFiles = async ({
|
|
|
4263
4263
|
(async () => {
|
|
4264
4264
|
const zip = new JSZip();
|
|
4265
4265
|
const [
|
|
4266
|
-
|
|
4267
|
-
stringifyGerberCommandLayers,
|
|
4268
|
-
convertSoupToGerberCommands,
|
|
4269
|
-
convertSoupToExcellonDrillCommands,
|
|
4270
|
-
stringifyExcellonDrill
|
|
4271
|
-
},
|
|
4266
|
+
gerberConverter,
|
|
4272
4267
|
{ convertCircuitJsonToBomRows, convertBomRowsToCsv },
|
|
4273
4268
|
{ convertCircuitJsonToPickAndPlaceCsv }
|
|
4274
4269
|
] = await Promise.all([
|
|
@@ -4279,22 +4274,15 @@ var exportFabricationFiles = async ({
|
|
|
4279
4274
|
const filteredCircuitJson = circuitJson.filter(
|
|
4280
4275
|
(element) => !("error_type" in element) && !("warning_type" in element)
|
|
4281
4276
|
);
|
|
4282
|
-
const
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
)) {
|
|
4289
|
-
zip.file(`gerber/${fileName}
|
|
4277
|
+
const gerberFiles = gerberConverter.convertCircuitJsonToGerberFiles(
|
|
4278
|
+
filteredCircuitJson,
|
|
4279
|
+
{
|
|
4280
|
+
flip_y_axis: false
|
|
4281
|
+
}
|
|
4282
|
+
);
|
|
4283
|
+
for (const [fileName, fileContents] of Object.entries(gerberFiles)) {
|
|
4284
|
+
zip.file(`gerber/${fileName}`, fileContents);
|
|
4290
4285
|
}
|
|
4291
|
-
const drillCmds = convertSoupToExcellonDrillCommands({
|
|
4292
|
-
circuitJson: filteredCircuitJson,
|
|
4293
|
-
is_plated: true,
|
|
4294
|
-
flip_y_axis: false
|
|
4295
|
-
});
|
|
4296
|
-
const drillFileContents = stringifyExcellonDrill(drillCmds);
|
|
4297
|
-
zip.file("gerber/drill.drl", drillFileContents);
|
|
4298
4286
|
const bomRows = await convertCircuitJsonToBomRows({ circuitJson });
|
|
4299
4287
|
const bomCsv = await convertBomRowsToCsv(bomRows);
|
|
4300
4288
|
zip.file("bom.csv", bomCsv);
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED