@tscircuit/core 0.0.563 → 0.0.565
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 +9 -4
- package/package.json +3 -3
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,13 @@ 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
|
+
};
|
|
8840
|
+
const variantSymbol = this.props.schottky ? "schottky" : this.props.avalanche ? "avalanche" : null;
|
|
8836
8841
|
return {
|
|
8837
|
-
schematicSymbolName:
|
|
8842
|
+
schematicSymbolName: variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "diode",
|
|
8838
8843
|
componentName: "Diode",
|
|
8839
8844
|
zodProps: diodeProps,
|
|
8840
8845
|
sourceFtype: "simple_diode"
|
|
@@ -10961,7 +10966,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
10961
10966
|
var package_default = {
|
|
10962
10967
|
name: "@tscircuit/core",
|
|
10963
10968
|
type: "module",
|
|
10964
|
-
version: "0.0.
|
|
10969
|
+
version: "0.0.564",
|
|
10965
10970
|
types: "dist/index.d.ts",
|
|
10966
10971
|
main: "dist/index.js",
|
|
10967
10972
|
module: "dist/index.js",
|
|
@@ -10987,12 +10992,12 @@ var package_default = {
|
|
|
10987
10992
|
"@tscircuit/capacity-autorouter": "^0.0.93",
|
|
10988
10993
|
"@tscircuit/checks": "^0.0.56",
|
|
10989
10994
|
"@tscircuit/circuit-json-util": "^0.0.51",
|
|
10990
|
-
"@tscircuit/footprinter": "^0.0.
|
|
10995
|
+
"@tscircuit/footprinter": "^0.0.193",
|
|
10991
10996
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
10992
10997
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
10993
10998
|
"@tscircuit/log-soup": "^1.0.2",
|
|
10994
10999
|
"@tscircuit/math-utils": "^0.0.18",
|
|
10995
|
-
"@tscircuit/props": "^0.0.
|
|
11000
|
+
"@tscircuit/props": "^0.0.258",
|
|
10996
11001
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
10997
11002
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
10998
11003
|
"@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.565",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"@tscircuit/capacity-autorouter": "^0.0.93",
|
|
28
28
|
"@tscircuit/checks": "^0.0.56",
|
|
29
29
|
"@tscircuit/circuit-json-util": "^0.0.51",
|
|
30
|
-
"@tscircuit/footprinter": "^0.0.
|
|
30
|
+
"@tscircuit/footprinter": "^0.0.193",
|
|
31
31
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
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",
|