@tscircuit/footprinter 0.0.309 → 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
@@ -8494,7 +8494,8 @@ var mountedpcbmodule_def = base_def.extend({
8494
8494
  usbbottom: z78.boolean().optional().default(false),
8495
8495
  usbtype: z78.enum(["micro", "c"]).optional(),
8496
8496
  usbmicro: z78.boolean().optional().default(false),
8497
- 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")
8498
8499
  }).transform((data) => {
8499
8500
  const pinlabelAnchorSide = determinePinlabelAnchorSide(data);
8500
8501
  let pinRowSide = data.pinRowSide;
@@ -8611,7 +8612,8 @@ var mountedpcbmodule = (raw_params) => {
8611
8612
  pinrowtoppins,
8612
8613
  pinrowbottompins,
8613
8614
  usbposition,
8614
- usbtype
8615
+ usbtype,
8616
+ screen
8615
8617
  } = parameters;
8616
8618
  let pinlabelTextAlign = "center";
8617
8619
  if (pinlabeltextalignleft) pinlabelTextAlign = "left";
@@ -8891,6 +8893,18 @@ var mountedpcbmodule = (raw_params) => {
8891
8893
  }
8892
8894
  elements.push(silkscreenpath(usbRect, { stroke_width: 0.1, layer: "top" }));
8893
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
+ }
8894
8908
  return {
8895
8909
  circuitJson: elements,
8896
8910
  parameters