@tscircuit/props 0.0.710 → 0.0.711
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 +8 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/components/transistor.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -375,6 +375,7 @@ export interface AnalogTransientSimulationProps extends AnalogAnalysisSimulation
|
|
|
375
375
|
timePerStep?: number | string;
|
|
376
376
|
/** Physical pin selectors and per-experiment direction/enable states. Requires spiceEngine="pcb_spice"; rendering only declares the experiment. */
|
|
377
377
|
ibisPinStates?: Record<string, IbisPinRunState>;
|
|
378
|
+
pcbSpiceChannel?: PcbSpiceChannelProps;
|
|
378
379
|
}
|
|
379
380
|
```
|
|
380
381
|
|
|
@@ -2625,6 +2626,13 @@ export interface TransistorProps<
|
|
|
2625
2626
|
PinLabel extends string = string,
|
|
2626
2627
|
> extends CommonComponentProps<PinLabel> {
|
|
2627
2628
|
type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
|
|
2629
|
+
/**
|
|
2630
|
+
* Physical package pins mapped to semantic terminal names (and optional aliases).
|
|
2631
|
+
* For MMBT3904 SOT-23: { pin1: "base", pin2: "emitter", pin3: "collector" }.
|
|
2632
|
+
* Use full terminal names to retain schematic and simulation semantics.
|
|
2633
|
+
* Omit to retain the symbol's default pin order; no package pinout is inferred.
|
|
2634
|
+
*/
|
|
2635
|
+
pinLabels?: PinLabelsProp<string, PinLabel>;
|
|
2628
2636
|
connections?: Connections<transistorPinsLabels>;
|
|
2629
2637
|
}
|
|
2630
2638
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -193548,6 +193548,13 @@ declare const transistorPinsLabels: readonly ["pin1", "pin2", "pin3", "emitter",
|
|
|
193548
193548
|
type transistorPinsLabels = (typeof transistorPinsLabels)[number];
|
|
193549
193549
|
interface TransistorProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
|
|
193550
193550
|
type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
|
|
193551
|
+
/**
|
|
193552
|
+
* Physical package pins mapped to semantic terminal names (and optional aliases).
|
|
193553
|
+
* For MMBT3904 SOT-23: { pin1: "base", pin2: "emitter", pin3: "collector" }.
|
|
193554
|
+
* Use full terminal names to retain schematic and simulation semantics.
|
|
193555
|
+
* Omit to retain the symbol's default pin order; no package pinout is inferred.
|
|
193556
|
+
*/
|
|
193557
|
+
pinLabels?: PinLabelsProp<string, PinLabel>;
|
|
193551
193558
|
connections?: Connections<transistorPinsLabels>;
|
|
193552
193559
|
}
|
|
193553
193560
|
declare const transistorProps: z.ZodObject<{
|
|
@@ -197464,6 +197471,7 @@ declare const transistorProps: z.ZodObject<{
|
|
|
197464
197471
|
manufacturerPartNumber: z.ZodOptional<z.ZodString>;
|
|
197465
197472
|
} & {
|
|
197466
197473
|
type: z.ZodEnum<["npn", "pnp", "bjt", "jfet", "mosfet", "igbt"]>;
|
|
197474
|
+
pinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
197467
197475
|
connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<["pin1", "pin2", "pin3", "emitter", "collector", "base", "gate", "source", "drain"]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
197468
197476
|
}, "strip", z.ZodTypeAny, {
|
|
197469
197477
|
type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
|
|
@@ -198142,6 +198150,7 @@ declare const transistorProps: z.ZodObject<{
|
|
|
198142
198150
|
schSectionName?: string | undefined;
|
|
198143
198151
|
schSheetName?: string | undefined;
|
|
198144
198152
|
connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "emitter" | "collector" | "base" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
|
|
198153
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
198145
198154
|
}, {
|
|
198146
198155
|
type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
|
|
198147
198156
|
name: string;
|
|
@@ -198821,6 +198830,7 @@ declare const transistorProps: z.ZodObject<{
|
|
|
198821
198830
|
schSectionName?: string | undefined;
|
|
198822
198831
|
schSheetName?: string | undefined;
|
|
198823
198832
|
connections?: Partial<Record<"pin1" | "pin2" | "source" | "pin3" | "emitter" | "collector" | "base" | "gate" | "drain", string | readonly string[] | string[]>> | undefined;
|
|
198833
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
198824
198834
|
}>;
|
|
198825
198835
|
declare const transistorPins: readonly ["pin1", "collector", "pin2", "base", "pin3", "emitter"];
|
|
198826
198836
|
type TransistorPinLabels = (typeof transistorPins)[number];
|
package/dist/index.js
CHANGED
|
@@ -19395,6 +19395,7 @@ var transistorPinsLabels = [
|
|
|
19395
19395
|
];
|
|
19396
19396
|
var transistorProps = commonComponentProps.extend({
|
|
19397
19397
|
type: z122.enum(["npn", "pnp", "bjt", "jfet", "mosfet", "igbt"]),
|
|
19398
|
+
pinLabels: pinLabelsProp.optional(),
|
|
19398
19399
|
connections: createConnectionsProp(transistorPinsLabels).optional()
|
|
19399
19400
|
});
|
|
19400
19401
|
var transistorPins = [
|