circuit-json 0.0.293 → 0.0.295

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
@@ -91,6 +91,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
91
91
  - [PcbComponentInvalidLayerError](#pcbcomponentinvalidlayererror)
92
92
  - [PcbComponentOutsideBoardError](#pcbcomponentoutsideboarderror)
93
93
  - [PcbCopperPour](#pcbcopperpour)
94
+ - [PcbCopperText](#pcbcoppertext)
94
95
  - [PcbCourtyardOutline](#pcbcourtyardoutline)
95
96
  - [PcbCourtyardPolygon](#pcbcourtyardpolygon)
96
97
  - [PcbCourtyardRect](#pcbcourtyardrect)
@@ -425,7 +426,8 @@ interface SourcePort {
425
426
  port_hints?: string[]
426
427
  name: string
427
428
  source_port_id: string
428
- source_component_id: string
429
+ source_component_id?: string
430
+ source_group_id?: string
429
431
  subcircuit_id?: string
430
432
  subcircuit_connectivity_map_key?: string
431
433
  }
@@ -988,6 +990,38 @@ interface PcbCopperPourRect {
988
990
  }
989
991
  ```
990
992
 
993
+ ### PcbCopperText
994
+
995
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_copper_text.ts)
996
+
997
+ Defines copper text on the PCB
998
+
999
+ ```typescript
1000
+ /** Defines copper text on the PCB */
1001
+ interface PcbCopperText {
1002
+ type: "pcb_copper_text"
1003
+ pcb_copper_text_id: string
1004
+ pcb_group_id?: string
1005
+ subcircuit_id?: string
1006
+ font: "tscircuit2024"
1007
+ font_size: Length
1008
+ pcb_component_id: string
1009
+ text: string
1010
+ is_knockout?: boolean
1011
+ knockout_padding?: {
1012
+ left: Length
1013
+ top: Length
1014
+ bottom: Length
1015
+ right: Length
1016
+ }
1017
+ ccw_rotation?: number
1018
+ layer: LayerRef
1019
+ is_mirrored?: boolean
1020
+ anchor_position: Point
1021
+ anchor_alignment: NinePointAnchor
1022
+ }
1023
+ ```
1024
+
991
1025
  ### PcbCourtyardOutline
992
1026
 
993
1027
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_courtyard_outline.ts)
@@ -1627,7 +1661,7 @@ interface PcbPort {
1627
1661
  pcb_group_id?: string
1628
1662
  subcircuit_id?: string
1629
1663
  source_port_id: string
1630
- pcb_component_id: string
1664
+ pcb_component_id?: string
1631
1665
  x: Distance
1632
1666
  y: Distance
1633
1667
  layers: LayerRef[]