@tscircuit/footprinter 0.0.267 → 0.0.269

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
@@ -105,7 +105,9 @@ var silkscreenRef = (x, y, font_size) => {
105
105
  import { z } from "zod";
106
106
  var base_def = z.object({
107
107
  norefdes: z.boolean().optional().describe("disable reference designator label"),
108
- invert: z.boolean().optional().describe("hint to invert the orientation of the 3D model")
108
+ invert: z.boolean().optional().describe("hint to invert the orientation of the 3D model"),
109
+ faceup: z.boolean().optional().describe("The male pin header should face upwards, out of the top layer"),
110
+ nosilkscreen: z.boolean().optional().describe("omit all silkscreen elements from the footprint")
109
111
  });
110
112
 
111
113
  // src/fn/dip.ts
@@ -7650,6 +7652,14 @@ var applyNoRefDes = (elements, parameters) => {
7650
7652
  return elements;
7651
7653
  };
7652
7654
 
7655
+ // src/helpers/apply-nosilkscreen.ts
7656
+ var applyNoSilkscreen = (elements, parameters) => {
7657
+ if (!parameters.nosilkscreen) return elements;
7658
+ return elements.filter((element) => {
7659
+ return element.type !== "pcb_silkscreen_path" && element.type !== "pcb_silkscreen_text";
7660
+ });
7661
+ };
7662
+
7653
7663
  // src/footprinter.ts
7654
7664
  var string2 = (def) => {
7655
7665
  let fp2 = footprinter();
@@ -7697,10 +7707,15 @@ var footprinter = () => {
7697
7707
  if ("fn" in target && fn_exports[target.fn]) {
7698
7708
  return () => {
7699
7709
  const { circuitJson } = fn_exports[target.fn](target);
7700
- return applyOrigin(
7701
- applyNoRefDes(circuitJson, target),
7702
- target.origin
7710
+ const circuitWithoutSilkscreen = applyNoSilkscreen(
7711
+ circuitJson,
7712
+ target
7713
+ );
7714
+ const circuitWithoutRefDes = applyNoRefDes(
7715
+ circuitWithoutSilkscreen,
7716
+ target
7703
7717
  );
7718
+ return applyOrigin(circuitWithoutRefDes, target.origin);
7704
7719
  };
7705
7720
  }
7706
7721
  if (!fn_exports[target.fn]) {