circuit-json 0.0.221 → 0.0.223

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
@@ -123,6 +123,8 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
123
123
  - [SchematicText](#schematictext)
124
124
  - [SchematicTrace](#schematictrace)
125
125
  - [SchematicVoltageProbe](#schematicvoltageprobe)
126
+ - [Simulation Elements](#simulation-elements)
127
+ - [SimulationVoltageSource](#simulationvoltagesource)
126
128
 
127
129
  <!-- toc:end -->
128
130
 
@@ -969,6 +971,28 @@ interface PcbHolePillWithRectPad {
969
971
  pcb_plated_hole_id: string
970
972
  }
971
973
 
974
+ interface PcbHoleRotatedPillWithRectPad {
975
+ type: "pcb_plated_hole"
976
+ shape: "rotated_pill_hole_with_rect_pad"
977
+ pcb_group_id?: string
978
+ subcircuit_id?: string
979
+ hole_shape: "rotated_pill"
980
+ pad_shape: "rect"
981
+ hole_width: number
982
+ hole_height: number
983
+ hole_ccw_rotation: Rotation
984
+ rect_pad_width: number
985
+ rect_pad_height: number
986
+ rect_ccw_rotation: Rotation
987
+ x: Distance
988
+ y: Distance
989
+ layers: LayerRef[]
990
+ port_hints?: string[]
991
+ pcb_component_id?: string
992
+ pcb_port_id?: string
993
+ pcb_plated_hole_id: string
994
+ }
995
+
972
996
  interface PcbHoleCircularWithRectPad {
973
997
  type: "pcb_plated_hole"
974
998
  shape: "circular_hole_with_rect_pad"
@@ -1719,4 +1743,22 @@ interface SchematicVoltageProbe {
1719
1743
  }
1720
1744
  ```
1721
1745
 
1746
+ ## Simulation Elements
1747
+
1748
+ ### SimulationVoltageSource
1749
+
1750
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_source.ts)
1751
+
1752
+ ```typescript
1753
+ /** Defines a voltage source for simulation purposes. It applies a voltage
1754
+ * difference between two source ports. */
1755
+ interface SimulationVoltageSource {
1756
+ type: "simulation_voltage_source"
1757
+ simulation_voltage_source_id: string
1758
+ positive_source_port_id: string
1759
+ negative_source_port_id: string
1760
+ voltage: number
1761
+ }
1762
+ ```
1763
+
1722
1764
  <!-- circuit-json-docs:end -->