@tscircuit/footprinter 0.0.308 → 0.0.310

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
@@ -8450,6 +8450,7 @@ var mountedpcbmodule_def = base_def.extend({
8450
8450
  id: length60.default("1.0mm").describe("inner diameter"),
8451
8451
  od: length60.default("1.5mm").describe("outer diameter"),
8452
8452
  male: z78.boolean().optional().describe("the module uses male headers"),
8453
+ nopin: z78.boolean().optional().default(false).describe("omit pins rendering"),
8453
8454
  female: z78.boolean().optional().describe("the module uses female headers"),
8454
8455
  smd: z78.boolean().optional().describe("surface mount device"),
8455
8456
  pinlabeltextalignleft: z78.boolean().optional().default(false),
@@ -8493,7 +8494,8 @@ var mountedpcbmodule_def = base_def.extend({
8493
8494
  usbbottom: z78.boolean().optional().default(false),
8494
8495
  usbtype: z78.enum(["micro", "c"]).optional(),
8495
8496
  usbmicro: z78.boolean().optional().default(false),
8496
- usbc: z78.boolean().optional().default(false)
8497
+ usbc: z78.boolean().optional().default(false),
8498
+ screen: z78.boolean().optional().default(false).describe("add silkscreen outline for screen/display area")
8497
8499
  }).transform((data) => {
8498
8500
  const pinlabelAnchorSide = determinePinlabelAnchorSide(data);
8499
8501
  let pinRowSide = data.pinRowSide;
@@ -8610,7 +8612,8 @@ var mountedpcbmodule = (raw_params) => {
8610
8612
  pinrowtoppins,
8611
8613
  pinrowbottompins,
8612
8614
  usbposition,
8613
- usbtype
8615
+ usbtype,
8616
+ screen
8614
8617
  } = parameters;
8615
8618
  let pinlabelTextAlign = "center";
8616
8619
  if (pinlabeltextalignleft) pinlabelTextAlign = "left";
@@ -8890,6 +8893,18 @@ var mountedpcbmodule = (raw_params) => {
8890
8893
  }
8891
8894
  elements.push(silkscreenpath(usbRect, { stroke_width: 0.1, layer: "top" }));
8892
8895
  }
8896
+ if (screen) {
8897
+ const screenOutline = [
8898
+ { x: -width * 0.475, y: -height * 0.475 },
8899
+ { x: width * 0.475, y: -height * 0.475 },
8900
+ { x: width * 0.475, y: height * 0.475 },
8901
+ { x: -width * 0.475, y: height * 0.475 },
8902
+ { x: -width * 0.475, y: -height * 0.475 }
8903
+ ];
8904
+ elements.push(
8905
+ silkscreenpath(screenOutline, { stroke_width: 0.05, layer: "top" })
8906
+ );
8907
+ }
8893
8908
  return {
8894
8909
  circuitJson: elements,
8895
8910
  parameters