@modular-circuit/transpiler 0.1.10 → 0.1.13

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.d.mts CHANGED
@@ -134,77 +134,15 @@ declare function convert_graph_to_kicad_project(ctx: ConvertGraphToKiCadInput):
134
134
 
135
135
  declare function convert_graph_to_design_block(ctx: ConvertGraphToKiCadInput): Promise<DesignBlockContent>;
136
136
 
137
- declare const KiCadSymbolLibFileExtension = "kicad_sym";
138
- declare const SchematicSymbolFileExtension = "sym";
139
- declare const LegacySymbolLibFileExtension = "lib";
140
- declare const LegacySymbolDocumentFileExtension = "dcm";
141
- declare const VrmlFileExtension = "wrl";
142
- declare const ProjectFileExtension = "kicad_pro";
143
- declare const LegacyProjectFileExtension = "pro";
144
- declare const ProjectLocalSettingsFileExtension = "kicad_prl";
145
- declare const LegacySchematicFileExtension = "sch";
146
- declare const CadstarSchematicFileExtension = "csa";
147
- declare const CadstarPartsLibraryFileExtension = "lib";
148
- declare const KiCadSchematicFileExtension = "kicad_sch";
149
- declare const SpiceFileExtension = "cir";
150
- declare const CadstarNetlistFileExtension = "frp";
151
- declare const OrCadPcb2NetlistFileExtension = "net";
152
- declare const NetlistFileExtension = "net";
153
- declare const AllegroNetlistFileExtension = "txt";
154
- declare const FootprintAssignmentFileExtension = "cmp";
155
- declare const GerberFileExtension = "gbr";
156
- declare const GerberJobFileExtension = "gbrjob";
157
- declare const HtmlFileExtension = "html";
158
- declare const EquFileExtension = "equ";
159
- declare const HotkeyFileExtension = "hotkeys";
160
- declare const DatabaseLibraryFileExtension = "kicad_dbl";
161
- declare const HTTPLibraryFileExtension = "kicad_httplib";
162
- declare const ArchiveFileExtension = "zip";
163
- declare const LegacyPcbFileExtension = "brd";
164
- declare const EaglePcbFileExtension = "brd";
165
- declare const CadstarPcbFileExtension = "cpa";
166
- declare const KiCadPcbFileExtension = "kicad_pcb";
167
- declare const DrawingSheetFileExtension = "kicad_wks";
168
- declare const DesignRulesFileExtension = "kicad_dru";
169
- declare const PdfFileExtension = "pdf";
170
- declare const MacrosFileExtension = "mcr";
171
- declare const DrillFileExtension = "drl";
172
- declare const SVGFileExtension = "svg";
173
- declare const ReportFileExtension = "rpt";
174
- declare const FootprintPlaceFileExtension = "pos";
175
- declare const KiCadFootprintLibPathExtension = "pretty";
176
- declare const LegacyFootprintLibPathExtension = "mod";
177
- declare const AltiumFootprintLibPathExtension = "PcbLib";
178
- declare const CadstarFootprintLibPathExtension = "cpa";
179
- declare const EagleFootprintLibPathExtension = "lbr";
180
- declare const GedaPcbFootprintLibFileExtension = "fp";
181
- declare const KiCadFootprintFileExtension = "kicad_mod";
182
- declare const SpecctraDsnFileExtension = "dsn";
183
- declare const SpecctraSessionFileExtension = "ses";
184
- declare const IpcD356FileExtension = "d356";
185
- declare const Ipc2581FileExtension = "xml";
186
- declare const WorkbookFileExtension = "wbk";
187
- declare const PngFileExtension = "png";
188
- declare const JpegFileExtension = "jpg";
189
- declare const TextFileExtension = "txt";
190
- declare const MarkdownFileExtension = "md";
191
- declare const CsvFileExtension = "csv";
192
- declare const XmlFileExtension = "xml";
193
- declare const JsonFileExtension = "json";
194
- declare const StepFileExtension = "step";
195
- declare const StepFileAbrvExtension = "stp";
196
- declare const GltfBinaryFileExtension = "glb";
197
- declare const GerberFileExtensionsRegex: RegExp;
198
-
199
137
  declare const KICAD_SCH_FRAME: string;
200
138
  declare class KiCadProjectArchive {
201
- project_name: string;
202
- sheets: Record<string, string>;
139
+ private designBlock;
203
140
  kicad_sym?: string;
204
141
  fp_lib_table?: string;
205
142
  layout_frame?: string;
206
143
  pcb?: string;
207
144
  sym_lib_table?: string;
145
+ project_name: string;
208
146
  get sch_frame(): string;
209
147
  get kicad_prl(): {
210
148
  board: {
@@ -429,7 +367,7 @@ declare class KiCadProjectArchive {
429
367
  text_variables: {};
430
368
  };
431
369
  get main_sch_name(): string;
432
- constructor(project_name: string, sheets: Record<string, string>);
370
+ constructor(designBlock: DesignBlockContent);
433
371
  get_project_directive_file_name(ext: string): string;
434
372
  toZip(): Promise<Blob>;
435
373
  }
@@ -482,4 +420,4 @@ declare const gen_sch_gnd: (value: string, pwr_number: number, port_id: string,
482
420
 
483
421
  declare const gen_sch_vcc: (value: string, pwr_number: number, port_id: string, position: VECTOR2) => SCH_SYMBOL;
484
422
 
485
- export { AllegroNetlistFileExtension, AltiumFootprintLibPathExtension, ArchiveFileExtension, BLOCK_PIN_GAP, BLOCK_PIN_TB_MARGIN, type BlockLabelPadding, type BlockSize, type BoxGeometry, CadstarFootprintLibPathExtension, CadstarNetlistFileExtension, CadstarPartsLibraryFileExtension, CadstarPcbFileExtension, CadstarSchematicFileExtension, type ConnectionGraphMap, type ConvertGraphToKiCadContext, type ConvertGraphToKiCadInput, CsvFileExtension, DEFAULT_PAPER_SIZE, DatabaseLibraryFileExtension, DesignRulesFileExtension, DrawingSheetFileExtension, DrillFileExtension, EagleFootprintLibPathExtension, EaglePcbFileExtension, EquFileExtension, FONT_SIZE, FootprintAssignmentFileExtension, FootprintPlaceFileExtension, GENERATOR_NAME, GENERATOR_VERSION, GRID_SIZE, GedaPcbFootprintLibFileExtension, GerberFileExtension, GerberFileExtensionsRegex, GerberJobFileExtension, GltfBinaryFileExtension, GraphConverter, HTTPLibraryFileExtension, HotkeyFileExtension, HtmlFileExtension, Ipc2581FileExtension, IpcD356FileExtension, JpegFileExtension, JsonFileExtension, KICAD_SCH_FRAME, KiCadFootprintFileExtension, KiCadFootprintLibPathExtension, KiCadPcbFileExtension, KiCadProjectArchive, KiCadSchematicFileExtension, KiCadSymbolLibFileExtension, type LabelPadding, Layout, LegacyFootprintLibPathExtension, LegacyPcbFileExtension, LegacyProjectFileExtension, LegacySchematicFileExtension, LegacySymbolDocumentFileExtension, LegacySymbolLibFileExtension, MacrosFileExtension, MarkdownFileExtension, NetListConverter, NetlistFileExtension, type NetlistProject, type NetlistToKicadContext, OrCadPcb2NetlistFileExtension, PAPER, PAPER_SIZE, PdfFileExtension, PngFileExtension, ProjectFileExtension, ProjectLocalSettingsFileExtension, ReportFileExtension, SCHEMATIC_PRINTER, SCH_VERSION, SVGFileExtension, SchematicSymbolFileExtension, type Size, SpecctraDsnFileExtension, SpecctraSessionFileExtension, SpiceFileExtension, StepFileAbrvExtension, StepFileExtension, StringFormatter, TextFileExtension, VrmlFileExtension, WIRE_PADDING, WorkbookFileExtension, XmlFileExtension, collect_sub_sheets, collect_sub_sheets_by_id, convert_graph_to_design_block, convert_graph_to_kicad_project, convert_graph_to_sheets, filterNullOrUndefined, gen_lib_gnd, gen_lib_vcc, gen_sch_gnd, gen_sch_vcc, get_power_pos, get_sch_default_drawing_sheet, tab };
423
+ export { BLOCK_PIN_GAP, BLOCK_PIN_TB_MARGIN, type BlockLabelPadding, type BlockSize, type BoxGeometry, type ConnectionGraphMap, type ConvertGraphToKiCadContext, type ConvertGraphToKiCadInput, DEFAULT_PAPER_SIZE, FONT_SIZE, GENERATOR_NAME, GENERATOR_VERSION, GRID_SIZE, GraphConverter, KICAD_SCH_FRAME, KiCadProjectArchive, type LabelPadding, Layout, NetListConverter, type NetlistProject, type NetlistToKicadContext, PAPER, PAPER_SIZE, SCHEMATIC_PRINTER, SCH_VERSION, type Size, StringFormatter, WIRE_PADDING, collect_sub_sheets, collect_sub_sheets_by_id, convert_graph_to_design_block, convert_graph_to_kicad_project, convert_graph_to_sheets, filterNullOrUndefined, gen_lib_gnd, gen_lib_vcc, gen_sch_gnd, gen_sch_vcc, get_power_pos, get_sch_default_drawing_sheet, tab };
package/dist/index.d.ts CHANGED
@@ -134,77 +134,15 @@ declare function convert_graph_to_kicad_project(ctx: ConvertGraphToKiCadInput):
134
134
 
135
135
  declare function convert_graph_to_design_block(ctx: ConvertGraphToKiCadInput): Promise<DesignBlockContent>;
136
136
 
137
- declare const KiCadSymbolLibFileExtension = "kicad_sym";
138
- declare const SchematicSymbolFileExtension = "sym";
139
- declare const LegacySymbolLibFileExtension = "lib";
140
- declare const LegacySymbolDocumentFileExtension = "dcm";
141
- declare const VrmlFileExtension = "wrl";
142
- declare const ProjectFileExtension = "kicad_pro";
143
- declare const LegacyProjectFileExtension = "pro";
144
- declare const ProjectLocalSettingsFileExtension = "kicad_prl";
145
- declare const LegacySchematicFileExtension = "sch";
146
- declare const CadstarSchematicFileExtension = "csa";
147
- declare const CadstarPartsLibraryFileExtension = "lib";
148
- declare const KiCadSchematicFileExtension = "kicad_sch";
149
- declare const SpiceFileExtension = "cir";
150
- declare const CadstarNetlistFileExtension = "frp";
151
- declare const OrCadPcb2NetlistFileExtension = "net";
152
- declare const NetlistFileExtension = "net";
153
- declare const AllegroNetlistFileExtension = "txt";
154
- declare const FootprintAssignmentFileExtension = "cmp";
155
- declare const GerberFileExtension = "gbr";
156
- declare const GerberJobFileExtension = "gbrjob";
157
- declare const HtmlFileExtension = "html";
158
- declare const EquFileExtension = "equ";
159
- declare const HotkeyFileExtension = "hotkeys";
160
- declare const DatabaseLibraryFileExtension = "kicad_dbl";
161
- declare const HTTPLibraryFileExtension = "kicad_httplib";
162
- declare const ArchiveFileExtension = "zip";
163
- declare const LegacyPcbFileExtension = "brd";
164
- declare const EaglePcbFileExtension = "brd";
165
- declare const CadstarPcbFileExtension = "cpa";
166
- declare const KiCadPcbFileExtension = "kicad_pcb";
167
- declare const DrawingSheetFileExtension = "kicad_wks";
168
- declare const DesignRulesFileExtension = "kicad_dru";
169
- declare const PdfFileExtension = "pdf";
170
- declare const MacrosFileExtension = "mcr";
171
- declare const DrillFileExtension = "drl";
172
- declare const SVGFileExtension = "svg";
173
- declare const ReportFileExtension = "rpt";
174
- declare const FootprintPlaceFileExtension = "pos";
175
- declare const KiCadFootprintLibPathExtension = "pretty";
176
- declare const LegacyFootprintLibPathExtension = "mod";
177
- declare const AltiumFootprintLibPathExtension = "PcbLib";
178
- declare const CadstarFootprintLibPathExtension = "cpa";
179
- declare const EagleFootprintLibPathExtension = "lbr";
180
- declare const GedaPcbFootprintLibFileExtension = "fp";
181
- declare const KiCadFootprintFileExtension = "kicad_mod";
182
- declare const SpecctraDsnFileExtension = "dsn";
183
- declare const SpecctraSessionFileExtension = "ses";
184
- declare const IpcD356FileExtension = "d356";
185
- declare const Ipc2581FileExtension = "xml";
186
- declare const WorkbookFileExtension = "wbk";
187
- declare const PngFileExtension = "png";
188
- declare const JpegFileExtension = "jpg";
189
- declare const TextFileExtension = "txt";
190
- declare const MarkdownFileExtension = "md";
191
- declare const CsvFileExtension = "csv";
192
- declare const XmlFileExtension = "xml";
193
- declare const JsonFileExtension = "json";
194
- declare const StepFileExtension = "step";
195
- declare const StepFileAbrvExtension = "stp";
196
- declare const GltfBinaryFileExtension = "glb";
197
- declare const GerberFileExtensionsRegex: RegExp;
198
-
199
137
  declare const KICAD_SCH_FRAME: string;
200
138
  declare class KiCadProjectArchive {
201
- project_name: string;
202
- sheets: Record<string, string>;
139
+ private designBlock;
203
140
  kicad_sym?: string;
204
141
  fp_lib_table?: string;
205
142
  layout_frame?: string;
206
143
  pcb?: string;
207
144
  sym_lib_table?: string;
145
+ project_name: string;
208
146
  get sch_frame(): string;
209
147
  get kicad_prl(): {
210
148
  board: {
@@ -429,7 +367,7 @@ declare class KiCadProjectArchive {
429
367
  text_variables: {};
430
368
  };
431
369
  get main_sch_name(): string;
432
- constructor(project_name: string, sheets: Record<string, string>);
370
+ constructor(designBlock: DesignBlockContent);
433
371
  get_project_directive_file_name(ext: string): string;
434
372
  toZip(): Promise<Blob>;
435
373
  }
@@ -482,4 +420,4 @@ declare const gen_sch_gnd: (value: string, pwr_number: number, port_id: string,
482
420
 
483
421
  declare const gen_sch_vcc: (value: string, pwr_number: number, port_id: string, position: VECTOR2) => SCH_SYMBOL;
484
422
 
485
- export { AllegroNetlistFileExtension, AltiumFootprintLibPathExtension, ArchiveFileExtension, BLOCK_PIN_GAP, BLOCK_PIN_TB_MARGIN, type BlockLabelPadding, type BlockSize, type BoxGeometry, CadstarFootprintLibPathExtension, CadstarNetlistFileExtension, CadstarPartsLibraryFileExtension, CadstarPcbFileExtension, CadstarSchematicFileExtension, type ConnectionGraphMap, type ConvertGraphToKiCadContext, type ConvertGraphToKiCadInput, CsvFileExtension, DEFAULT_PAPER_SIZE, DatabaseLibraryFileExtension, DesignRulesFileExtension, DrawingSheetFileExtension, DrillFileExtension, EagleFootprintLibPathExtension, EaglePcbFileExtension, EquFileExtension, FONT_SIZE, FootprintAssignmentFileExtension, FootprintPlaceFileExtension, GENERATOR_NAME, GENERATOR_VERSION, GRID_SIZE, GedaPcbFootprintLibFileExtension, GerberFileExtension, GerberFileExtensionsRegex, GerberJobFileExtension, GltfBinaryFileExtension, GraphConverter, HTTPLibraryFileExtension, HotkeyFileExtension, HtmlFileExtension, Ipc2581FileExtension, IpcD356FileExtension, JpegFileExtension, JsonFileExtension, KICAD_SCH_FRAME, KiCadFootprintFileExtension, KiCadFootprintLibPathExtension, KiCadPcbFileExtension, KiCadProjectArchive, KiCadSchematicFileExtension, KiCadSymbolLibFileExtension, type LabelPadding, Layout, LegacyFootprintLibPathExtension, LegacyPcbFileExtension, LegacyProjectFileExtension, LegacySchematicFileExtension, LegacySymbolDocumentFileExtension, LegacySymbolLibFileExtension, MacrosFileExtension, MarkdownFileExtension, NetListConverter, NetlistFileExtension, type NetlistProject, type NetlistToKicadContext, OrCadPcb2NetlistFileExtension, PAPER, PAPER_SIZE, PdfFileExtension, PngFileExtension, ProjectFileExtension, ProjectLocalSettingsFileExtension, ReportFileExtension, SCHEMATIC_PRINTER, SCH_VERSION, SVGFileExtension, SchematicSymbolFileExtension, type Size, SpecctraDsnFileExtension, SpecctraSessionFileExtension, SpiceFileExtension, StepFileAbrvExtension, StepFileExtension, StringFormatter, TextFileExtension, VrmlFileExtension, WIRE_PADDING, WorkbookFileExtension, XmlFileExtension, collect_sub_sheets, collect_sub_sheets_by_id, convert_graph_to_design_block, convert_graph_to_kicad_project, convert_graph_to_sheets, filterNullOrUndefined, gen_lib_gnd, gen_lib_vcc, gen_sch_gnd, gen_sch_vcc, get_power_pos, get_sch_default_drawing_sheet, tab };
423
+ export { BLOCK_PIN_GAP, BLOCK_PIN_TB_MARGIN, type BlockLabelPadding, type BlockSize, type BoxGeometry, type ConnectionGraphMap, type ConvertGraphToKiCadContext, type ConvertGraphToKiCadInput, DEFAULT_PAPER_SIZE, FONT_SIZE, GENERATOR_NAME, GENERATOR_VERSION, GRID_SIZE, GraphConverter, KICAD_SCH_FRAME, KiCadProjectArchive, type LabelPadding, Layout, NetListConverter, type NetlistProject, type NetlistToKicadContext, PAPER, PAPER_SIZE, SCHEMATIC_PRINTER, SCH_VERSION, type Size, StringFormatter, WIRE_PADDING, collect_sub_sheets, collect_sub_sheets_by_id, convert_graph_to_design_block, convert_graph_to_kicad_project, convert_graph_to_sheets, filterNullOrUndefined, gen_lib_gnd, gen_lib_vcc, gen_sch_gnd, gen_sch_vcc, get_power_pos, get_sch_default_drawing_sheet, tab };