@tscircuit/circuit-json-util 0.0.87 → 0.0.88
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 +2 -1
- package/dist/index.d.ts +509 -133
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2348,6 +2348,11 @@ var computeClearanceBetweenElements = (elm1, elm2) => {
|
|
|
2348
2348
|
|
|
2349
2349
|
// lib/categorize-error-or-warning.ts
|
|
2350
2350
|
var NETLIST_TYPES = /* @__PURE__ */ new Set(["source_pin_must_be_connected_error"]);
|
|
2351
|
+
var PIN_SPECIFICATION_TYPES = /* @__PURE__ */ new Set([
|
|
2352
|
+
"source_component_pins_underspecified_warning",
|
|
2353
|
+
"source_no_power_pin_defined_warning",
|
|
2354
|
+
"source_no_ground_pin_defined_warning"
|
|
2355
|
+
]);
|
|
2351
2356
|
var PLACEMENT_TYPES = /* @__PURE__ */ new Set([
|
|
2352
2357
|
"pcb_placement_error",
|
|
2353
2358
|
"pcb_component_outside_board_error",
|
|
@@ -2364,6 +2369,7 @@ var categorizeErrorOrWarning = (value) => {
|
|
|
2364
2369
|
const drcType = typeof value === "string" ? value : value.error_type ?? value.warning_type ?? value.type;
|
|
2365
2370
|
if (!drcType) return "unknown";
|
|
2366
2371
|
if (NETLIST_TYPES.has(drcType)) return "netlist";
|
|
2372
|
+
if (PIN_SPECIFICATION_TYPES.has(drcType)) return "pin_specification";
|
|
2367
2373
|
if (PLACEMENT_TYPES.has(drcType)) return "placement";
|
|
2368
2374
|
if (ROUTING_TYPES.has(drcType)) return "routing";
|
|
2369
2375
|
return "unknown";
|