@tscircuit/props 0.0.555 → 0.0.557
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 +18 -0
- package/dist/index.d.ts +157 -2
- package/dist/index.js +127 -113
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +11 -1
- package/lib/components/group.ts +6 -0
- package/lib/components/schematic-sheet.ts +18 -0
- 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
|
|
|
@@ -180,6 +185,7 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
|
|
|
180
185
|
pcbRouteCache?: PcbRouteCache;
|
|
181
186
|
|
|
182
187
|
autorouter?: AutorouterProp;
|
|
188
|
+
exposedNets?: string[];
|
|
183
189
|
|
|
184
190
|
/**
|
|
185
191
|
* If true, we'll automatically layout the schematic for this group. Must be
|
|
@@ -1615,6 +1621,18 @@ export interface SchematicSectionProps {
|
|
|
1615
1621
|
|
|
1616
1622
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-section.ts)
|
|
1617
1623
|
|
|
1624
|
+
### SchematicSheetProps `<schematicsheet />`
|
|
1625
|
+
|
|
1626
|
+
```ts
|
|
1627
|
+
export interface SchematicSheetProps {
|
|
1628
|
+
name: string;
|
|
1629
|
+
displayName: string;
|
|
1630
|
+
children?: any;
|
|
1631
|
+
}
|
|
1632
|
+
```
|
|
1633
|
+
|
|
1634
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-sheet.ts)
|
|
1635
|
+
|
|
1618
1636
|
### SchematicTableProps `<schematictable />`
|
|
1619
1637
|
|
|
1620
1638
|
```ts
|