@tscircuit/footprinter 0.0.350 → 0.0.352

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 CHANGED
@@ -684,7 +684,14 @@ var cap = (parameters) => {
684
684
 
685
685
  // src/fn/led.ts
686
686
  var led = (parameters) => {
687
- return { circuitJson: passive(parameters), parameters };
687
+ const circuitJson = passive(parameters).map((element) => {
688
+ if (element.type !== "pcb_silkscreen_path") return element;
689
+ return {
690
+ ...element,
691
+ route: element.route.map((point) => ({ ...point, x: -point.x }))
692
+ };
693
+ });
694
+ return { circuitJson, parameters };
688
695
  };
689
696
 
690
697
  // src/helpers/res0402-array2.ts
@@ -11048,7 +11055,7 @@ function isNotNull(value) {
11048
11055
 
11049
11056
  // src/footprinter.ts
11050
11057
  var normalizeDefinition = (def) => {
11051
- return def.trim().replace(/^sot23-(\d+)(?=_|$)/i, "sot23_$1").replace(/^sot-223-(\d+)(?=_|$)/i, "sot223_$1").replace(/^to-220f-(\d+)(?=_|$)/i, "to220f_$1").replace(/^jst_(ph|sh|zh)_(\d+)(?=_|$)/i, "jst$2_$1");
11058
+ return def.trim().replace(/^pinheader(?=[\d_]|$)/i, "pinrow").replace(/^sot23-(\d+)(?=_|$)/i, "sot23_$1").replace(/^sot-223-(\d+)(?=_|$)/i, "sot223_$1").replace(/^to-220f-(\d+)(?=_|$)/i, "to220f_$1").replace(/^jst_(ph|sh|zh)_(\d+)(?=_|$)/i, "jst$2_$1");
11052
11059
  };
11053
11060
  var string2 = (def) => {
11054
11061
  let fp2 = footprinter();