@tscircuit/checks 0.0.192 → 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
@@ -4423,6 +4423,7 @@ function checkSchematicComponentMissingReferenceDesignatorText(circuitJson) {
4423
4423
  const warnings = [];
4424
4424
  for (const schematicComponent of schematicComponents) {
4425
4425
  if (schematicComponent.symbol_name) continue;
4426
+ if (schematicComponent.is_box_with_pins) continue;
4426
4427
  if (!schematicComponent.source_component_id) continue;
4427
4428
  const sourceComponent = sourceComponentById.get(
4428
4429
  schematicComponent.source_component_id
@@ -4884,9 +4885,14 @@ function polygonsOverlap(polyA, polyB) {
4884
4885
  return false;
4885
4886
  }
4886
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
+ );
4887
4893
  const courtyards = circuitJson.filter(
4888
4894
  (el) => el.type === "pcb_courtyard_rect" || el.type === "pcb_courtyard_circle" || el.type === "pcb_courtyard_outline"
4889
- );
4895
+ ).filter((el) => !doNotPlaceComponentIds.has(el.pcb_component_id));
4890
4896
  const byComponent = /* @__PURE__ */ new Map();
4891
4897
  for (const el of courtyards) {
4892
4898
  const id = el.pcb_component_id;