@tscircuit/core 0.0.567 → 0.0.568
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 +10 -0
- package/dist/index.js +8 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5960,6 +5960,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
5960
5960
|
schDisplayValue: zod.ZodOptional<zod.ZodString>;
|
|
5961
5961
|
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
5962
5962
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
5963
|
+
laser: zod.ZodOptional<zod.ZodBoolean>;
|
|
5963
5964
|
}, "strip", zod.ZodTypeAny, {
|
|
5964
5965
|
name: string;
|
|
5965
5966
|
pcbX?: number | undefined;
|
|
@@ -6034,6 +6035,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
6034
6035
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6035
6036
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6036
6037
|
schDisplayValue?: string | undefined;
|
|
6038
|
+
laser?: boolean | undefined;
|
|
6037
6039
|
}, {
|
|
6038
6040
|
name: string;
|
|
6039
6041
|
pcbX?: string | number | undefined;
|
|
@@ -6110,6 +6112,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
6110
6112
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6111
6113
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6112
6114
|
schDisplayValue?: string | undefined;
|
|
6115
|
+
laser?: boolean | undefined;
|
|
6113
6116
|
}>;
|
|
6114
6117
|
sourceFtype: Ftype;
|
|
6115
6118
|
};
|
|
@@ -12878,6 +12881,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
|
|
|
12878
12881
|
pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
|
|
12879
12882
|
} & {
|
|
12880
12883
|
type: zod.ZodEnum<["npn", "pnp", "bjt", "jfet", "mosfet", "igbt"]>;
|
|
12884
|
+
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pin3", "emitter", "collector", "base", "gate", "source", "drain"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
12881
12885
|
}, "strip", zod.ZodTypeAny, {
|
|
12882
12886
|
type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
|
|
12883
12887
|
name: string;
|
|
@@ -12948,6 +12952,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
|
|
|
12948
12952
|
children?: any;
|
|
12949
12953
|
symbolName?: string | undefined;
|
|
12950
12954
|
doNotPlace?: boolean | undefined;
|
|
12955
|
+
connections?: Partial<Record<"pin1" | "pin2" | "pin3" | "emitter" | "collector" | "base" | "gate" | "source" | "drain", string | readonly string[] | string[]>> | undefined;
|
|
12951
12956
|
}, {
|
|
12952
12957
|
type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
|
|
12953
12958
|
name: string;
|
|
@@ -13020,6 +13025,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
|
|
|
13020
13025
|
children?: any;
|
|
13021
13026
|
symbolName?: string | undefined;
|
|
13022
13027
|
doNotPlace?: boolean | undefined;
|
|
13028
|
+
connections?: Partial<Record<"pin1" | "pin2" | "pin3" | "emitter" | "collector" | "base" | "gate" | "source" | "drain", string | readonly string[] | string[]>> | undefined;
|
|
13023
13029
|
}>;
|
|
13024
13030
|
sourceFtype: Ftype;
|
|
13025
13031
|
shouldRenderAsSchematicBox: boolean;
|
|
@@ -13028,6 +13034,8 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
|
|
|
13028
13034
|
emitter: Port;
|
|
13029
13035
|
collector: Port;
|
|
13030
13036
|
base: Port;
|
|
13037
|
+
doInitialCreateNetsFromProps(): void;
|
|
13038
|
+
doInitialCreateTracesFromProps(): void;
|
|
13031
13039
|
doInitialSourceRender(): void;
|
|
13032
13040
|
}
|
|
13033
13041
|
|
|
@@ -14880,6 +14888,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
14880
14888
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
14881
14889
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
14882
14890
|
schDisplayValue?: string | undefined;
|
|
14891
|
+
laser?: boolean | undefined;
|
|
14883
14892
|
}, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<{
|
|
14884
14893
|
name: string;
|
|
14885
14894
|
pcbX?: string | number | undefined;
|
|
@@ -14956,6 +14965,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
14956
14965
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
14957
14966
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
14958
14967
|
schDisplayValue?: string | undefined;
|
|
14968
|
+
laser?: boolean | undefined;
|
|
14959
14969
|
}, "left" | "right" | "pin1" | "pin2" | "anode" | "cathode" | "pos" | "neg", PropsFromHook>;
|
|
14960
14970
|
|
|
14961
14971
|
declare const useResistor: <PropsFromHook extends Omit<ResistorProps<string>, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<ResistorProps<string>, "left" | "right" | "pin1" | "pin2", PropsFromHook>;
|
package/dist/index.js
CHANGED
|
@@ -10406,6 +10406,12 @@ var Transistor = class extends NormalComponent {
|
|
|
10406
10406
|
emitter = this.portMap.pin1;
|
|
10407
10407
|
collector = this.portMap.pin2;
|
|
10408
10408
|
base = this.portMap.pin3;
|
|
10409
|
+
doInitialCreateNetsFromProps() {
|
|
10410
|
+
this._createNetsFromProps([...this._getNetsFromConnectionsProp()]);
|
|
10411
|
+
}
|
|
10412
|
+
doInitialCreateTracesFromProps() {
|
|
10413
|
+
this._createTracesFromConnectionsProp();
|
|
10414
|
+
}
|
|
10409
10415
|
doInitialSourceRender() {
|
|
10410
10416
|
const { db } = this.root;
|
|
10411
10417
|
const { _parsedProps: props } = this;
|
|
@@ -10975,7 +10981,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
10975
10981
|
var package_default = {
|
|
10976
10982
|
name: "@tscircuit/core",
|
|
10977
10983
|
type: "module",
|
|
10978
|
-
version: "0.0.
|
|
10984
|
+
version: "0.0.567",
|
|
10979
10985
|
types: "dist/index.d.ts",
|
|
10980
10986
|
main: "dist/index.js",
|
|
10981
10987
|
module: "dist/index.js",
|
|
@@ -11006,7 +11012,7 @@ var package_default = {
|
|
|
11006
11012
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
11007
11013
|
"@tscircuit/log-soup": "^1.0.2",
|
|
11008
11014
|
"@tscircuit/math-utils": "^0.0.18",
|
|
11009
|
-
"@tscircuit/props": "^0.0.
|
|
11015
|
+
"@tscircuit/props": "^0.0.261",
|
|
11010
11016
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
11011
11017
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
11012
11018
|
"@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.568",
|
|
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.261",
|
|
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",
|