circuit-json 0.0.489 → 0.0.491

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
@@ -154,6 +154,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
154
154
  - [PcbPort](#pcbport)
155
155
  - [PcbPortNotConnectedError](#pcbportnotconnectederror)
156
156
  - [PcbPortNotMatchedError](#pcbportnotmatchederror)
157
+ - [PcbPreflightRoutingError](#pcbpreflightroutingerror)
157
158
  - [PcbRouteHints](#pcbroutehints)
158
159
  - [PcbSilkscreenCircle](#pcbsilkscreencircle)
159
160
  - [PcbSilkscreenGraphic](#pcbsilkscreengraphic)
@@ -1408,6 +1409,8 @@ interface PcbBoard extends ManufacturingDrcProperties {
1408
1409
  subcircuit_id?: string
1409
1410
  is_mounted_to_carrier_board?: boolean
1410
1411
  is_via_in_pad_allowed?: boolean
1412
+ default_via_tented_on_top?: boolean
1413
+ default_via_tented_on_bottom?: boolean
1411
1414
  width?: Length
1412
1415
  height?: Length
1413
1416
  display_offset_x?: string
@@ -2512,6 +2515,29 @@ interface PcbPortNotMatchedError extends BaseCircuitJsonError {
2512
2515
  }
2513
2516
  ```
2514
2517
 
2518
+ ### PcbPreflightRoutingError
2519
+
2520
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_preflight_routing_error.ts)
2521
+
2522
+ ```typescript
2523
+ interface PcbPreflightRoutingError extends BaseCircuitJsonError {
2524
+ type: "pcb_preflight_routing_error"
2525
+ pcb_preflight_routing_error_id: string
2526
+ error_type: "pcb_preflight_routing_error"
2527
+ error_code: string
2528
+ subcircuit_id?: string
2529
+ pcb_group_id?: string
2530
+ routing_phase_index?: number
2531
+ phase_name?: string
2532
+ source_trace_ids?: string[]
2533
+ pcb_component_ids?: string[]
2534
+ pcb_port_ids?: string[]
2535
+ related_error_ids?: string[]
2536
+ measurements?: Record<string, number>
2537
+ }
2538
+ ```
2539
+
2540
+
2515
2541
  ### PcbRouteHints
2516
2542
 
2517
2543
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/properties/pcb_route_hints.ts)
@@ -2802,6 +2828,20 @@ interface PcbTraceRoutePointWire {
2802
2828
  layer: LayerRef
2803
2829
  }
2804
2830
 
2831
+ interface PcbTraceRoutePointVia {
2832
+ route_type: "via"
2833
+ x: Distance
2834
+ y: Distance
2835
+ copper_pour_id?: string
2836
+ is_inside_copper_pour?: boolean
2837
+ hole_diameter?: Distance
2838
+ outer_diameter?: Distance
2839
+ tented_on_top?: boolean
2840
+ tented_on_bottom?: boolean
2841
+ from_layer: LayerRef
2842
+ to_layer: LayerRef
2843
+ }
2844
+
2805
2845
  type PcbTraceRoutePoint =
2806
2846
  | PcbTraceRoutePointWire
2807
2847
  | PcbTraceRoutePointVia