@tscircuit/circuit-json-util 0.0.87 → 0.0.89

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/README.md CHANGED
@@ -49,7 +49,7 @@ It reduces the amount of code to retrieve or join elements from circuit json, it
49
49
  | `getElementRenderLayers` | [`lib/get-element-render-layers.ts`](./lib/get-element-render-layers.ts) | Returns schematic/PCB render layers used for an element. |
50
50
  | `computeClearanceBetweenElements` | [`lib/compute-clearance-between-elements.ts`](./lib/compute-clearance-between-elements.ts) | Computes the minimum edge-to-edge clearance between two circuit elements using geometric decomposition. |
51
51
  | `computeGapBetweenCopper` | [`lib/compute-gap-between-copper.ts`](./lib/compute-gap-between-copper.ts) | Computes the minimum copper-to-copper gap between two circuit elements by decomposing them into primitive shapes. |
52
- | `categorizeErrorOrWarning` | [`lib/categorize-error-or-warning.ts`](./lib/categorize-error-or-warning.ts) | Categorizes DRC error/warning types into `"netlist"`, `"placement"`, `"routing"`, or `"unknown"`. |
52
+ | `categorizeErrorOrWarning` | [`lib/categorize-error-or-warning.ts`](./lib/categorize-error-or-warning.ts) | Categorizes DRC error/warning types into `"netlist"`, `"pin_specification"`, `"placement"`, `"routing"`, or `"unknown"`. |
53
53
 
54
54
  ## Standard Usage
55
55
 
@@ -117,6 +117,7 @@ Use `categorizeErrorOrWarning` to map DRC result types to high-level check categ
117
117
  import { categorizeErrorOrWarning } from "@tscircuit/circuit-json-util"
118
118
 
119
119
  categorizeErrorOrWarning("source_pin_must_be_connected_error") // "netlist"
120
+ categorizeErrorOrWarning("source_no_power_pin_defined_warning") // "pin_specification"
120
121
  categorizeErrorOrWarning({ error_type: "pcb_trace_error" }) // "routing"
121
122
  categorizeErrorOrWarning({
122
123
  warning_type: "pcb_connector_not_in_accessible_orientation_warning",