circuit-json 0.0.289 → 0.0.291
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 +28 -1
- package/dist/index.d.mts +172 -13
- package/dist/index.mjs +983 -957
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
80
80
|
- [SourceSimpleTransistor](#sourcesimpletransistor)
|
|
81
81
|
- [SourceTrace](#sourcetrace)
|
|
82
82
|
- [SourceTraceNotConnectedError](#sourcetracenotconnectederror)
|
|
83
|
+
- [UnknownErrorFindingPart](#unknownerrorfindingpart)
|
|
83
84
|
- [CAD Components](#cad-components)
|
|
84
85
|
- [CadComponent](#cadcomponent)
|
|
85
86
|
- [PCB Elements](#pcb-elements)
|
|
@@ -784,6 +785,24 @@ interface SourceTraceNotConnectedError {
|
|
|
784
785
|
}
|
|
785
786
|
```
|
|
786
787
|
|
|
788
|
+
### UnknownErrorFindingPart
|
|
789
|
+
|
|
790
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/unknown_error_finding_part.ts)
|
|
791
|
+
|
|
792
|
+
```typescript
|
|
793
|
+
/** Error emitted when an unexpected error occurs while finding a part.
|
|
794
|
+
* This includes cases where the API returns HTML instead of JSON,
|
|
795
|
+
* network failures, or other unexpected responses. */
|
|
796
|
+
interface UnknownErrorFindingPart {
|
|
797
|
+
type: "unknown_error_finding_part"
|
|
798
|
+
unknown_error_finding_part_id: string
|
|
799
|
+
error_type: "unknown_error_finding_part"
|
|
800
|
+
message: string
|
|
801
|
+
source_component_id?: string
|
|
802
|
+
subcircuit_id?: string
|
|
803
|
+
}
|
|
804
|
+
```
|
|
805
|
+
|
|
787
806
|
## CAD Components
|
|
788
807
|
|
|
789
808
|
### CadComponent
|
|
@@ -1338,6 +1357,7 @@ interface PcbNoteDimension {
|
|
|
1338
1357
|
pcb_component_id?: string
|
|
1339
1358
|
pcb_group_id?: string
|
|
1340
1359
|
subcircuit_id?: string
|
|
1360
|
+
name?: string
|
|
1341
1361
|
from: Point
|
|
1342
1362
|
to: Point
|
|
1343
1363
|
text?: string
|
|
@@ -1362,6 +1382,8 @@ interface PcbNoteLine {
|
|
|
1362
1382
|
pcb_component_id?: string
|
|
1363
1383
|
pcb_group_id?: string
|
|
1364
1384
|
subcircuit_id?: string
|
|
1385
|
+
name?: string
|
|
1386
|
+
text?: string
|
|
1365
1387
|
x1: Distance
|
|
1366
1388
|
y1: Distance
|
|
1367
1389
|
x2: Distance
|
|
@@ -1386,6 +1408,8 @@ interface PcbNotePath {
|
|
|
1386
1408
|
pcb_component_id?: string
|
|
1387
1409
|
pcb_group_id?: string
|
|
1388
1410
|
subcircuit_id?: string
|
|
1411
|
+
name?: string
|
|
1412
|
+
text?: string
|
|
1389
1413
|
route: Point[]
|
|
1390
1414
|
stroke_width: Length
|
|
1391
1415
|
color?: string
|
|
@@ -1406,6 +1430,8 @@ interface PcbNoteRect {
|
|
|
1406
1430
|
pcb_component_id?: string
|
|
1407
1431
|
pcb_group_id?: string
|
|
1408
1432
|
subcircuit_id?: string
|
|
1433
|
+
name?: string
|
|
1434
|
+
text?: string
|
|
1409
1435
|
center: Point
|
|
1410
1436
|
width: Length
|
|
1411
1437
|
height: Length
|
|
@@ -1431,9 +1457,10 @@ interface PcbNoteText {
|
|
|
1431
1457
|
pcb_component_id?: string
|
|
1432
1458
|
pcb_group_id?: string
|
|
1433
1459
|
subcircuit_id?: string
|
|
1460
|
+
name?: string
|
|
1434
1461
|
font: "tscircuit2024"
|
|
1435
1462
|
font_size: Length
|
|
1436
|
-
text
|
|
1463
|
+
text?: string
|
|
1437
1464
|
anchor_position: Point
|
|
1438
1465
|
anchor_alignment:
|
|
1439
1466
|
| "center"
|