@tscircuit/checks 0.0.195 → 0.0.196

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
@@ -4988,11 +4988,12 @@ function checkConnectorAccessibleOrientation(circuitJson) {
4988
4988
  circuitJson,
4989
4989
  component.pcb_component_id
4990
4990
  );
4991
+ const message = component.insertion_direction ? `${componentName} is facing ${facingDirection} but should face ${recommendedFacingDirection} so the connector is accessible from the board edge` : `${componentName} is inferred to face ${facingDirection} from its cable insertion center because no explicit footprint insertionDirection is defined, but should face ${recommendedFacingDirection} so the connector is accessible from the board edge. Set insertionDirection on the <footprint> to specify the actual direction in the footprint's unrotated orientation; for example, <footprint insertionDirection="from_above"> for a connector accessed from above the PCB (+Z).`;
4991
4992
  warnings.push({
4992
4993
  type: "pcb_connector_not_in_accessible_orientation_warning",
4993
4994
  warning_type: "pcb_connector_not_in_accessible_orientation_warning",
4994
4995
  pcb_connector_not_in_accessible_orientation_warning_id: `pcb_connector_not_in_accessible_orientation_warning_${component.pcb_component_id}`,
4995
- message: `${componentName} is facing ${facingDirection} but should face ${recommendedFacingDirection} so the connector is accessible from the board edge`,
4996
+ message,
4996
4997
  pcb_component_id: component.pcb_component_id,
4997
4998
  source_component_id: component.source_component_id,
4998
4999
  pcb_board_id: board.pcb_board_id,