@tscircuit/runframe 0.0.2534 → 0.0.2535

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.2533";
2198
+ var version = "0.0.2534";
2199
2199
  var package_default = {
2200
2200
  name: "@tscircuit/runframe",
2201
2201
  main: "dist/preview.js",
@@ -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 gerberLayerCmds = convertSoupToGerberCommands(filteredCircuitJson, {
4283
- flip_y_axis: false
4284
- });
4285
- const gerberFileContents = stringifyGerberCommandLayers(gerberLayerCmds);
4286
- for (const [fileName, fileContents] of Object.entries(
4287
- gerberFileContents
4288
- )) {
4289
- zip.file(`gerber/${fileName}.gbr`, fileContents);
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
@@ -8,7 +8,7 @@ import {
8
8
  SchematicViewer,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-MKKPDWWM.js";
11
+ } from "./chunk-XQUIEC4K.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  useRunFrameStore,
41
41
  useRunnerStore,
42
42
  useStyles
43
- } from "./chunk-MKKPDWWM.js";
43
+ } from "./chunk-XQUIEC4K.js";
44
44
 
45
45
  // lib/components/RunFrame/RunFrame.tsx
46
46
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";