@tscircuit/props 0.0.556 → 0.0.558
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 +2 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +12 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -475,6 +475,16 @@ export interface SubcircuitGroupProps
|
|
|
475
475
|
*/
|
|
476
476
|
circuitJson?: any[]
|
|
477
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Nets from this subcircuit that should be exposed to parent circuits
|
|
480
|
+
*/
|
|
481
|
+
exposedNets?: string[]
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* If true, all nets defined within this subcircuit are exposed to parent circuits
|
|
485
|
+
*/
|
|
486
|
+
exposeNets?: boolean
|
|
487
|
+
|
|
478
488
|
/**
|
|
479
489
|
* If true, we'll automatically layout the schematic for this group. Must be
|
|
480
490
|
* a subcircuit (currently). This is eventually going to be replaced with more
|
|
@@ -643,6 +653,8 @@ export const subcircuitGroupProps = baseGroupProps.extend({
|
|
|
643
653
|
outlineOffsetX: distance.optional(),
|
|
644
654
|
outlineOffsetY: distance.optional(),
|
|
645
655
|
circuitJson: z.array(z.any()).optional(),
|
|
656
|
+
exposedNets: z.array(z.string()).optional(),
|
|
657
|
+
exposeNets: z.boolean().optional(),
|
|
646
658
|
})
|
|
647
659
|
|
|
648
660
|
export const subcircuitGroupPropsWithBool = subcircuitGroupProps.extend({
|