@tscircuit/props 0.0.639 → 0.0.641
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 +38 -2
- package/dist/index.d.ts +5988 -534
- package/dist/index.js +1043 -998
- package/dist/index.js.map +1 -1
- package/lib/common/pcbPath.ts +41 -0
- package/lib/components/antenna.ts +23 -0
- package/lib/components/schematic-graphic.ts +62 -0
- package/lib/components/schematic-sheet.ts +4 -4
- package/lib/components/trace.ts +2 -27
- package/lib/index.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
29
29
|
| `<analogsimulation />` | [`AnalogSimulationProps`](#analogsimulationprops-analogsimulation) |
|
|
30
30
|
| `<analog.sweepparameter />` | [`AnalogResistanceSweepParameterProps`](#analogresistancesweepparameterprops-analogsweepparameter) |
|
|
31
31
|
| `<analog.transientsimulation />` | [`AnalogTransientSimulationProps`](#analogtransientsimulationprops-analogtransientsimulation) |
|
|
32
|
+
| `<antenna />` | [`AntennaProps`](#antennaprops-antenna) |
|
|
32
33
|
| `<autoroutingphase />` | [`AutoroutingPhaseProps`](#autoroutingphaseprops-autoroutingphase) |
|
|
33
34
|
| `<battery />` | [`BatteryProps`](#batteryprops-battery) |
|
|
34
35
|
| `<board />` | [`BoardProps`](#boardprops-board) |
|
|
@@ -95,6 +96,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
95
96
|
| `<schematicbox />` | [`SchematicBoxProps`](#schematicboxprops-schematicbox) |
|
|
96
97
|
| `<schematiccell />` | [`SchematicCellProps`](#schematiccellprops-schematiccell) |
|
|
97
98
|
| `<schematiccircle />` | [`SchematicCircleProps`](#schematiccircleprops-schematiccircle) |
|
|
99
|
+
| `<schematicgraphic />` | [`SchematicGraphicProps`](#schematicgraphicprops-schematicgraphic) |
|
|
98
100
|
| `<schematicline />` | [`SchematicLineProps`](#schematiclineprops-schematicline) |
|
|
99
101
|
| `<schematicpath />` | [`SchematicPathProps`](#schematicpathprops-schematicpath) |
|
|
100
102
|
| `<schematicrect />` | [`SchematicRectProps`](#schematicrectprops-schematicrect) |
|
|
@@ -324,6 +326,20 @@ export interface AnalogTransientSimulationProps extends AnalogAnalysisSimulation
|
|
|
324
326
|
|
|
325
327
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/analogtransientsimulation.ts)
|
|
326
328
|
|
|
329
|
+
### AntennaProps `<antenna />`
|
|
330
|
+
|
|
331
|
+
```ts
|
|
332
|
+
export interface AntennaProps extends CommonComponentProps {
|
|
333
|
+
/**
|
|
334
|
+
* Explicit antenna path. Entries use the same selector, point, and via
|
|
335
|
+
* syntax as trace pcbPath entries.
|
|
336
|
+
*/
|
|
337
|
+
pcbPath?: PcbPath;
|
|
338
|
+
}
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/antenna.ts)
|
|
342
|
+
|
|
327
343
|
### AutoroutingPhaseProps `<autoroutingphase />`
|
|
328
344
|
|
|
329
345
|
```ts
|
|
@@ -1826,6 +1842,26 @@ export interface SchematicCircleProps {
|
|
|
1826
1842
|
|
|
1827
1843
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-circle.ts)
|
|
1828
1844
|
|
|
1845
|
+
### SchematicGraphicProps `<schematicgraphic />`
|
|
1846
|
+
|
|
1847
|
+
```ts
|
|
1848
|
+
export interface SchematicGraphicProps {
|
|
1849
|
+
/** URL or static-file import for the canonical source SVG asset. */
|
|
1850
|
+
imageUrl?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* Complete SVG markup, including its dimensions or viewBox. Used as the
|
|
1853
|
+
* source when imageUrl is omitted, or as fallback content when both exist.
|
|
1854
|
+
*/
|
|
1855
|
+
svgContent?: string;
|
|
1856
|
+
/** Optional rendered width of the graphic. */
|
|
1857
|
+
width?: Distance;
|
|
1858
|
+
/** Optional rendered height of the graphic. */
|
|
1859
|
+
height?: Distance;
|
|
1860
|
+
}
|
|
1861
|
+
```
|
|
1862
|
+
|
|
1863
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-graphic.ts)
|
|
1864
|
+
|
|
1829
1865
|
### SchematicLineProps `<schematicline />`
|
|
1830
1866
|
|
|
1831
1867
|
```ts
|
|
@@ -1907,8 +1943,8 @@ export interface SchematicSectionProps {
|
|
|
1907
1943
|
|
|
1908
1944
|
```ts
|
|
1909
1945
|
export interface SchematicSheetProps {
|
|
1910
|
-
name
|
|
1911
|
-
displayName
|
|
1946
|
+
name?: string;
|
|
1947
|
+
displayName?: string;
|
|
1912
1948
|
sheetIndex?: number;
|
|
1913
1949
|
/** Sheet size used to render the schematic. Defaults to A4. */
|
|
1914
1950
|
sheetSize?: SchematicSheetSize;
|