@tscircuit/checks 0.0.193 → 0.0.194

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
@@ -4885,9 +4885,14 @@ function polygonsOverlap(polyA, polyB) {
4885
4885
  return false;
4886
4886
  }
4887
4887
  function checkCourtyardOverlap(circuitJson) {
4888
+ const doNotPlaceComponentIds = new Set(
4889
+ circuitJson.flatMap(
4890
+ (el) => el.type === "pcb_component" && el.do_not_place ? [el.pcb_component_id] : []
4891
+ )
4892
+ );
4888
4893
  const courtyards = circuitJson.filter(
4889
4894
  (el) => el.type === "pcb_courtyard_rect" || el.type === "pcb_courtyard_circle" || el.type === "pcb_courtyard_outline"
4890
- );
4895
+ ).filter((el) => !doNotPlaceComponentIds.has(el.pcb_component_id));
4891
4896
  const byComponent = /* @__PURE__ */ new Map();
4892
4897
  for (const el of courtyards) {
4893
4898
  const id = el.pcb_component_id;