@tscircuit/footprinter 0.0.321 → 0.0.322

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
@@ -510,13 +510,16 @@ var passive = (params) => {
510
510
  const crtMinY = Math.min(-(h ?? 0) / 2, -ph / 2, ...silkYs) - excess;
511
511
  const crtMaxY = Math.max((h ?? 0) / 2, ph / 2, ...silkYs) + excess;
512
512
  const courtyard = {
513
- type: "pcb_courtyard_rect",
514
- pcb_courtyard_rect_id: "",
513
+ type: "pcb_courtyard_outline",
514
+ pcb_courtyard_outline_id: "",
515
515
  pcb_component_id: "",
516
- center: { x: (crtMinX + crtMaxX) / 2, y: (crtMinY + crtMaxY) / 2 },
517
- width: crtMaxX - crtMinX,
518
- height: crtMaxY - crtMinY,
519
- layer: "top"
516
+ layer: "top",
517
+ outline: [
518
+ { x: crtMinX, y: crtMinY },
519
+ { x: crtMaxX, y: crtMinY },
520
+ { x: crtMaxX, y: crtMaxY },
521
+ { x: crtMinX, y: crtMaxY }
522
+ ]
520
523
  };
521
524
  if (tht) {
522
525
  return [