circuit-json 0.0.514 → 0.0.516
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 +62 -0
- package/dist/index.d.mts +675 -2
- package/dist/index.mjs +2178 -2121
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
63
63
|
- [SourceManuallyPlacedVia](#sourcemanuallyplacedvia)
|
|
64
64
|
- [SourceMissingManufacturerPartNumberWarning](#sourcemissingmanufacturerpartnumberwarning)
|
|
65
65
|
- [SourceMissingPropertyError](#sourcemissingpropertyerror)
|
|
66
|
+
- [SourceMotor](#sourcemotor)
|
|
66
67
|
- [SourceNet](#sourcenet)
|
|
67
68
|
- [SourceNoGroundPinDefinedWarning](#sourcenogroundpindefinedwarning)
|
|
68
69
|
- [SourceNoPowerPinDefinedWarning](#sourcenopowerpindefinedwarning)
|
|
@@ -72,6 +73,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
72
73
|
- [SourcePinMissingTraceWarning](#sourcepinmissingtracewarning)
|
|
73
74
|
- [SourcePinMustBeConnectedError](#sourcepinmustbeconnectederror)
|
|
74
75
|
- [SourcePort](#sourceport)
|
|
76
|
+
- [SourcePrintedPart](#sourceprintedpart)
|
|
75
77
|
- [SourceProjectMetadata](#sourceprojectmetadata)
|
|
76
78
|
- [SourcePropertyIgnoredWarning](#sourcepropertyignoredwarning)
|
|
77
79
|
- [SourceRefdesConventionWarning](#sourcerefdesconventionwarning)
|
|
@@ -102,11 +104,13 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
102
104
|
- [SourceSimpleTransistor](#sourcesimpletransistor)
|
|
103
105
|
- [SourceSimpleVoltageProbe](#sourcesimplevoltageprobe)
|
|
104
106
|
- [SourceSimpleVoltageSource](#sourcesimplevoltagesource)
|
|
107
|
+
- [SourceSubassembly](#sourcesubassembly)
|
|
105
108
|
- [SourceTrace](#sourcetrace)
|
|
106
109
|
- [SourceTraceNotConnectedError](#sourcetracenotconnectederror)
|
|
107
110
|
- [SourceUnnamedTraceWarning](#sourceunnamedtracewarning)
|
|
108
111
|
- [UnknownErrorFindingPart](#unknownerrorfindingpart)
|
|
109
112
|
- [CAD Components](#cad-components)
|
|
113
|
+
- [CadCable](#cadcable)
|
|
110
114
|
- [CadComponent](#cadcomponent)
|
|
111
115
|
- [PCB Elements](#pcb-elements)
|
|
112
116
|
- [PcbFabricatorExtraChargeWarning](#pcbfabricatorextrachargewarning)
|
|
@@ -639,6 +643,19 @@ interface SourceMissingPropertyError extends BaseCircuitJsonError {
|
|
|
639
643
|
}
|
|
640
644
|
```
|
|
641
645
|
|
|
646
|
+
### SourceMotor
|
|
647
|
+
|
|
648
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_motor.ts)
|
|
649
|
+
|
|
650
|
+
Defines a motor component.
|
|
651
|
+
|
|
652
|
+
```typescript
|
|
653
|
+
/** Defines a motor component. */
|
|
654
|
+
interface SourceMotor extends SourceComponentBase {
|
|
655
|
+
ftype: "motor"
|
|
656
|
+
}
|
|
657
|
+
```
|
|
658
|
+
|
|
642
659
|
### SourceNet
|
|
643
660
|
|
|
644
661
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_net.ts)
|
|
@@ -854,6 +871,19 @@ interface SourcePort extends SourcePinAttributes {
|
|
|
854
871
|
}
|
|
855
872
|
```
|
|
856
873
|
|
|
874
|
+
### SourcePrintedPart
|
|
875
|
+
|
|
876
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_printed_part.ts)
|
|
877
|
+
|
|
878
|
+
Defines a 3D-printed part in an assembly.
|
|
879
|
+
|
|
880
|
+
```typescript
|
|
881
|
+
/** Defines a 3D-printed part in an assembly. */
|
|
882
|
+
interface SourcePrintedPart extends SourceComponentBase {
|
|
883
|
+
ftype: "printedpart"
|
|
884
|
+
}
|
|
885
|
+
```
|
|
886
|
+
|
|
857
887
|
### SourceProjectMetadata
|
|
858
888
|
|
|
859
889
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_project_metadata.ts)
|
|
@@ -1304,6 +1334,19 @@ interface SourceSimpleVoltageSource extends SourceComponentBase {
|
|
|
1304
1334
|
}
|
|
1305
1335
|
```
|
|
1306
1336
|
|
|
1337
|
+
### SourceSubassembly
|
|
1338
|
+
|
|
1339
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_subassembly.ts)
|
|
1340
|
+
|
|
1341
|
+
Defines a subassembly component.
|
|
1342
|
+
|
|
1343
|
+
```typescript
|
|
1344
|
+
/** Defines a subassembly component. */
|
|
1345
|
+
interface SourceSubassembly extends SourceComponentBase {
|
|
1346
|
+
ftype: "subassembly"
|
|
1347
|
+
}
|
|
1348
|
+
```
|
|
1349
|
+
|
|
1307
1350
|
### SourceTrace
|
|
1308
1351
|
|
|
1309
1352
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_trace.ts)
|
|
@@ -1381,6 +1424,25 @@ interface UnknownErrorFindingPart extends BaseCircuitJsonError {
|
|
|
1381
1424
|
|
|
1382
1425
|
## CAD Components
|
|
1383
1426
|
|
|
1427
|
+
### CadCable
|
|
1428
|
+
|
|
1429
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/cad/cad_cable.ts)
|
|
1430
|
+
|
|
1431
|
+
```typescript
|
|
1432
|
+
/** Resolved cable geometry in circuit-world XYZ, mm, +Z up. Path samples are
|
|
1433
|
+
* points; first and last are wire exits. Connector poses follow path tangents.
|
|
1434
|
+
* Rendering consumes this path without rerouting or adding sag. */
|
|
1435
|
+
interface CadCable {
|
|
1436
|
+
type: "cad_cable"
|
|
1437
|
+
cad_cable_id: string
|
|
1438
|
+
name: string
|
|
1439
|
+
from_source_component_id: string
|
|
1440
|
+
to_source_component_id: string
|
|
1441
|
+
cableprinter_string: string
|
|
1442
|
+
path: Point3[]
|
|
1443
|
+
}
|
|
1444
|
+
```
|
|
1445
|
+
|
|
1384
1446
|
### CadComponent
|
|
1385
1447
|
|
|
1386
1448
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/cad/cad_component.ts)
|