@tscircuit/props 0.0.554 → 0.0.556
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 +25 -2
- package/dist/index.d.ts +161 -88
- package/dist/index.js +133 -126
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +11 -1
- package/lib/components/ammeter.ts +8 -16
- package/lib/components/schematic-sheet.ts +18 -0
- package/lib/components/voltageprobe.ts +8 -16
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
92
92
|
| `<schematicrect />` | [`SchematicRectProps`](#schematicrectprops-schematicrect) |
|
|
93
93
|
| `<schematicrow />` | [`SchematicRowProps`](#schematicrowprops-schematicrow) |
|
|
94
94
|
| `<schematicsection />` | [`SchematicSectionProps`](#schematicsectionprops-schematicsection) |
|
|
95
|
+
| `<schematicsheet />` | [`SchematicSheetProps`](#schematicsheetprops-schematicsheet) |
|
|
95
96
|
| `<schematictable />` | [`SchematicTableProps`](#schematictableprops-schematictable) |
|
|
96
97
|
| `<schematictext />` | [`SchematicTextProps`](#schematictextprops-schematictext) |
|
|
97
98
|
| `<silkscreencircle />` | [`SilkscreenCircleProps`](#silkscreencircleprops-silkscreencircle) |
|
|
@@ -163,6 +164,10 @@ export interface CommonComponentProps extends CommonLayoutProps {
|
|
|
163
164
|
* This component will be drawn as part of this section e.g. "Power"
|
|
164
165
|
*/
|
|
165
166
|
schSectionName?: string;
|
|
167
|
+
/**
|
|
168
|
+
* This component will be drawn as part of this sheet e.g. "Main"
|
|
169
|
+
*/
|
|
170
|
+
schSheetName?: string;
|
|
166
171
|
}
|
|
167
172
|
```
|
|
168
173
|
|
|
@@ -210,7 +215,10 @@ export interface AmmeterProps<
|
|
|
210
215
|
> extends CommonComponentProps<PinLabel> {
|
|
211
216
|
connections: Connections<AmmeterPinLabels>;
|
|
212
217
|
color?: string;
|
|
213
|
-
|
|
218
|
+
graphDisplayName?: string;
|
|
219
|
+
graphCenter?: number;
|
|
220
|
+
graphOffsetDivs?: number;
|
|
221
|
+
graphUnitsPerDiv?: number;
|
|
214
222
|
}
|
|
215
223
|
```
|
|
216
224
|
|
|
@@ -1612,6 +1620,18 @@ export interface SchematicSectionProps {
|
|
|
1612
1620
|
|
|
1613
1621
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-section.ts)
|
|
1614
1622
|
|
|
1623
|
+
### SchematicSheetProps `<schematicsheet />`
|
|
1624
|
+
|
|
1625
|
+
```ts
|
|
1626
|
+
export interface SchematicSheetProps {
|
|
1627
|
+
name: string;
|
|
1628
|
+
displayName: string;
|
|
1629
|
+
children?: any;
|
|
1630
|
+
}
|
|
1631
|
+
```
|
|
1632
|
+
|
|
1633
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-sheet.ts)
|
|
1634
|
+
|
|
1615
1635
|
### SchematicTableProps `<schematictable />`
|
|
1616
1636
|
|
|
1617
1637
|
```ts
|
|
@@ -1958,7 +1978,10 @@ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
1958
1978
|
connectsTo: string;
|
|
1959
1979
|
referenceTo?: string;
|
|
1960
1980
|
color?: string;
|
|
1961
|
-
|
|
1981
|
+
graphDisplayName?: string;
|
|
1982
|
+
graphCenter?: number;
|
|
1983
|
+
graphOffsetDivs?: number;
|
|
1984
|
+
graphUnitsPerDiv?: number;
|
|
1962
1985
|
}
|
|
1963
1986
|
```
|
|
1964
1987
|
|