@tscircuit/props 0.0.286 → 0.0.288

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
@@ -57,6 +57,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
57
57
  | `<testpoint />` | [`TestpointProps`](#testpointprops-testpoint) |
58
58
  | `<transistor />` | [`TransistorProps`](#transistorprops-transistor) |
59
59
  | `<via />` | [`ViaProps`](#viaprops-via) |
60
+ | `<voltagesource />` | [`VoltageSourceProps`](#voltagesourceprops-voltagesource) |
60
61
 
61
62
  <!-- COMPONENT_TABLE_END -->
62
63
 
@@ -108,7 +109,6 @@ export interface CommonComponentProps extends CommonLayoutProps {
108
109
 
109
110
  ```ts
110
111
  export interface SubcircuitGroupProps extends BaseGroupProps {
111
- layout?: LayoutBuilder;
112
112
  manualEdits?: ManualEditsFileInput;
113
113
  routingDisabled?: boolean;
114
114
  defaultTraceWidth?: Distance;
@@ -129,6 +129,9 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
129
129
  */
130
130
  schTraceAutoLabelEnabled?: boolean;
131
131
 
132
+ /** Maximum length a trace can span on the schematic */
133
+ schMaxTraceDistance?: Distance;
134
+
132
135
  partsEngine?: PartsEngine;
133
136
  }
134
137
  ```
@@ -942,6 +945,21 @@ export interface ViaProps extends CommonLayoutProps {
942
945
 
943
946
  [Source](https://github.com/tscircuit/props/blob/main/lib/components/via.ts)
944
947
 
948
+ ### VoltageSourceProps `<voltagesource />`
949
+
950
+ ```ts
951
+ export interface VoltageSourceProps extends CommonComponentProps {
952
+ voltage?: number | string;
953
+ frequency?: number | string;
954
+ peakToPeakVoltage?: number | string;
955
+ waveShape?: WaveShape;
956
+ phase?: number | string;
957
+ dutyCycle?: number | string;
958
+ }
959
+ ```
960
+
961
+ [Source](https://github.com/tscircuit/props/blob/main/lib/components/voltagesource.ts)
962
+
945
963
  <!-- INTERFACE_DEFINITIONS_END -->
946
964
 
947
965
  <!-- PLATFORM_CONFIG_START -->