circuit-json 0.0.288 → 0.0.290

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
  - [PcbComponentOutsideBoardError](#pcbcomponentoutsideboarderror)
92
92
  - [PcbCopperPour](#pcbcopperpour)
93
93
  - [PcbCourtyardOutline](#pcbcourtyardoutline)
94
+ - [PcbCourtyardPolygon](#pcbcourtyardpolygon)
94
95
  - [PcbCourtyardRect](#pcbcourtyardrect)
95
96
  - [PcbCutout](#pcbcutout)
96
97
  - [PcbFabricationNoteDimension](#pcbfabricationnotedimension)
@@ -991,6 +992,26 @@ interface PcbCourtyardOutline {
991
992
  }
992
993
  ```
993
994
 
995
+ ### PcbCourtyardPolygon
996
+
997
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_courtyard_polygon.ts)
998
+
999
+ Defines a courtyard polygon on the PCB
1000
+
1001
+ ```typescript
1002
+ /** Defines a courtyard polygon on the PCB */
1003
+ interface PcbCourtyardPolygon {
1004
+ type: "pcb_courtyard_polygon"
1005
+ pcb_courtyard_polygon_id: string
1006
+ pcb_component_id: string
1007
+ pcb_group_id?: string
1008
+ subcircuit_id?: string
1009
+ layer: VisibleLayer
1010
+ points: Point[]
1011
+ color?: string
1012
+ }
1013
+ ```
1014
+
994
1015
  ### PcbCourtyardRect
995
1016
 
996
1017
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_courtyard_rect.ts)
@@ -1317,6 +1338,7 @@ interface PcbNoteDimension {
1317
1338
  pcb_component_id?: string
1318
1339
  pcb_group_id?: string
1319
1340
  subcircuit_id?: string
1341
+ name?: string
1320
1342
  from: Point
1321
1343
  to: Point
1322
1344
  text?: string
@@ -1341,6 +1363,8 @@ interface PcbNoteLine {
1341
1363
  pcb_component_id?: string
1342
1364
  pcb_group_id?: string
1343
1365
  subcircuit_id?: string
1366
+ name?: string
1367
+ text?: string
1344
1368
  x1: Distance
1345
1369
  y1: Distance
1346
1370
  x2: Distance
@@ -1365,6 +1389,8 @@ interface PcbNotePath {
1365
1389
  pcb_component_id?: string
1366
1390
  pcb_group_id?: string
1367
1391
  subcircuit_id?: string
1392
+ name?: string
1393
+ text?: string
1368
1394
  route: Point[]
1369
1395
  stroke_width: Length
1370
1396
  color?: string
@@ -1385,6 +1411,8 @@ interface PcbNoteRect {
1385
1411
  pcb_component_id?: string
1386
1412
  pcb_group_id?: string
1387
1413
  subcircuit_id?: string
1414
+ name?: string
1415
+ text?: string
1388
1416
  center: Point
1389
1417
  width: Length
1390
1418
  height: Length
@@ -1410,9 +1438,10 @@ interface PcbNoteText {
1410
1438
  pcb_component_id?: string
1411
1439
  pcb_group_id?: string
1412
1440
  subcircuit_id?: string
1441
+ name?: string
1413
1442
  font: "tscircuit2024"
1414
1443
  font_size: Length
1415
- text: string
1444
+ text?: string
1416
1445
  anchor_position: Point
1417
1446
  anchor_alignment:
1418
1447
  | "center"