@tscircuit/core 0.0.564 → 0.0.566
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/dist/index.d.ts +14 -7
- package/dist/index.js +10 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3479,16 +3479,17 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3479
3479
|
pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
|
|
3480
3480
|
} & {
|
|
3481
3481
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["anode", "cathode", "pin1", "pin2", "pos", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
3482
|
-
variant: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["standard", "schottky", "zener", "photo", "tvs"]>>>;
|
|
3482
|
+
variant: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["standard", "schottky", "zener", "avalanche", "photo", "tvs"]>>>;
|
|
3483
3483
|
standard: zod.ZodOptional<zod.ZodBoolean>;
|
|
3484
3484
|
schottky: zod.ZodOptional<zod.ZodBoolean>;
|
|
3485
3485
|
zener: zod.ZodOptional<zod.ZodBoolean>;
|
|
3486
|
+
avalanche: zod.ZodOptional<zod.ZodBoolean>;
|
|
3486
3487
|
photo: zod.ZodOptional<zod.ZodBoolean>;
|
|
3487
3488
|
tvs: zod.ZodOptional<zod.ZodBoolean>;
|
|
3488
3489
|
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
3489
3490
|
}, "strip", zod.ZodTypeAny, {
|
|
3490
3491
|
name: string;
|
|
3491
|
-
variant: "standard" | "schottky" | "zener" | "photo" | "tvs";
|
|
3492
|
+
variant: "standard" | "schottky" | "zener" | "avalanche" | "photo" | "tvs";
|
|
3492
3493
|
pcbX?: number | undefined;
|
|
3493
3494
|
pcbY?: number | undefined;
|
|
3494
3495
|
pcbRotation?: number | undefined;
|
|
@@ -3561,6 +3562,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3561
3562
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3562
3563
|
schottky?: boolean | undefined;
|
|
3563
3564
|
zener?: boolean | undefined;
|
|
3565
|
+
avalanche?: boolean | undefined;
|
|
3564
3566
|
photo?: boolean | undefined;
|
|
3565
3567
|
tvs?: boolean | undefined;
|
|
3566
3568
|
}, {
|
|
@@ -3639,12 +3641,13 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3639
3641
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3640
3642
|
schottky?: boolean | undefined;
|
|
3641
3643
|
zener?: boolean | undefined;
|
|
3644
|
+
avalanche?: boolean | undefined;
|
|
3642
3645
|
photo?: boolean | undefined;
|
|
3643
3646
|
tvs?: boolean | undefined;
|
|
3644
|
-
variant?: "standard" | "schottky" | "zener" | "photo" | "tvs" | undefined;
|
|
3647
|
+
variant?: "standard" | "schottky" | "zener" | "avalanche" | "photo" | "tvs" | undefined;
|
|
3645
3648
|
}>, {
|
|
3646
3649
|
name: string;
|
|
3647
|
-
variant: "standard" | "schottky" | "zener" | "photo" | "tvs";
|
|
3650
|
+
variant: "standard" | "schottky" | "zener" | "avalanche" | "photo" | "tvs";
|
|
3648
3651
|
pcbX?: number | undefined;
|
|
3649
3652
|
pcbY?: number | undefined;
|
|
3650
3653
|
pcbRotation?: number | undefined;
|
|
@@ -3717,6 +3720,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3717
3720
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3718
3721
|
schottky?: boolean | undefined;
|
|
3719
3722
|
zener?: boolean | undefined;
|
|
3723
|
+
avalanche?: boolean | undefined;
|
|
3720
3724
|
photo?: boolean | undefined;
|
|
3721
3725
|
tvs?: boolean | undefined;
|
|
3722
3726
|
}, {
|
|
@@ -3795,17 +3799,19 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3795
3799
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3796
3800
|
schottky?: boolean | undefined;
|
|
3797
3801
|
zener?: boolean | undefined;
|
|
3802
|
+
avalanche?: boolean | undefined;
|
|
3798
3803
|
photo?: boolean | undefined;
|
|
3799
3804
|
tvs?: boolean | undefined;
|
|
3800
|
-
variant?: "standard" | "schottky" | "zener" | "photo" | "tvs" | undefined;
|
|
3805
|
+
variant?: "standard" | "schottky" | "zener" | "avalanche" | "photo" | "tvs" | undefined;
|
|
3801
3806
|
}>, {
|
|
3802
3807
|
standard: boolean;
|
|
3803
3808
|
schottky: boolean;
|
|
3804
3809
|
zener: boolean;
|
|
3810
|
+
avalanche: boolean;
|
|
3805
3811
|
photo: boolean;
|
|
3806
3812
|
tvs: boolean;
|
|
3807
3813
|
name: string;
|
|
3808
|
-
variant: "standard" | "schottky" | "zener" | "photo" | "tvs";
|
|
3814
|
+
variant: "standard" | "schottky" | "zener" | "avalanche" | "photo" | "tvs";
|
|
3809
3815
|
pcbX?: number | undefined;
|
|
3810
3816
|
pcbY?: number | undefined;
|
|
3811
3817
|
pcbRotation?: number | undefined;
|
|
@@ -3951,9 +3957,10 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3951
3957
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3952
3958
|
schottky?: boolean | undefined;
|
|
3953
3959
|
zener?: boolean | undefined;
|
|
3960
|
+
avalanche?: boolean | undefined;
|
|
3954
3961
|
photo?: boolean | undefined;
|
|
3955
3962
|
tvs?: boolean | undefined;
|
|
3956
|
-
variant?: "standard" | "schottky" | "zener" | "photo" | "tvs" | undefined;
|
|
3963
|
+
variant?: "standard" | "schottky" | "zener" | "avalanche" | "photo" | "tvs" | undefined;
|
|
3957
3964
|
}>;
|
|
3958
3965
|
sourceFtype: Ftype;
|
|
3959
3966
|
};
|
package/dist/index.js
CHANGED
|
@@ -8833,8 +8833,15 @@ import { diodeProps } from "@tscircuit/props";
|
|
|
8833
8833
|
var Diode = class extends NormalComponent {
|
|
8834
8834
|
// @ts-ignore
|
|
8835
8835
|
get config() {
|
|
8836
|
+
const symbolMap = {
|
|
8837
|
+
schottky: "schottky_diode",
|
|
8838
|
+
avalanche: "avalanche_diode",
|
|
8839
|
+
zener: "zener_diode",
|
|
8840
|
+
photodiode: "photodiode"
|
|
8841
|
+
};
|
|
8842
|
+
const variantSymbol = this.props.schottky ? "schottky" : this.props.avalanche ? "avalanche" : this.props.zener ? "zener" : this.props.photo ? "photodiode" : null;
|
|
8836
8843
|
return {
|
|
8837
|
-
schematicSymbolName:
|
|
8844
|
+
schematicSymbolName: variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "diode",
|
|
8838
8845
|
componentName: "Diode",
|
|
8839
8846
|
zodProps: diodeProps,
|
|
8840
8847
|
sourceFtype: "simple_diode"
|
|
@@ -10961,7 +10968,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
10961
10968
|
var package_default = {
|
|
10962
10969
|
name: "@tscircuit/core",
|
|
10963
10970
|
type: "module",
|
|
10964
|
-
version: "0.0.
|
|
10971
|
+
version: "0.0.565",
|
|
10965
10972
|
types: "dist/index.d.ts",
|
|
10966
10973
|
main: "dist/index.js",
|
|
10967
10974
|
module: "dist/index.js",
|
|
@@ -10992,7 +10999,7 @@ var package_default = {
|
|
|
10992
10999
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
10993
11000
|
"@tscircuit/log-soup": "^1.0.2",
|
|
10994
11001
|
"@tscircuit/math-utils": "^0.0.18",
|
|
10995
|
-
"@tscircuit/props": "^0.0.
|
|
11002
|
+
"@tscircuit/props": "^0.0.258",
|
|
10996
11003
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
10997
11004
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
10998
11005
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.566",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
33
33
|
"@tscircuit/log-soup": "^1.0.2",
|
|
34
34
|
"@tscircuit/math-utils": "^0.0.18",
|
|
35
|
-
"@tscircuit/props": "^0.0.
|
|
35
|
+
"@tscircuit/props": "^0.0.258",
|
|
36
36
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
37
37
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
38
38
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|