@tscircuit/core 0.0.2011 → 0.0.2013
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 +61 -2
- package/dist/index.js +45 -25
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -758,6 +758,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
758
758
|
x: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
759
759
|
y: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
760
760
|
width: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
761
|
+
width_interpolation_mode: zod.ZodOptional<zod.ZodEnum<["linear", "quadratic"]>>;
|
|
761
762
|
layer: zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, zod.ZodObject<{
|
|
762
763
|
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
|
|
763
764
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -773,6 +774,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
773
774
|
y: number;
|
|
774
775
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
775
776
|
route_type: "wire";
|
|
777
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
776
778
|
}, {
|
|
777
779
|
width: string | number;
|
|
778
780
|
x: string | number;
|
|
@@ -781,6 +783,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
781
783
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
782
784
|
};
|
|
783
785
|
route_type: "wire";
|
|
786
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
784
787
|
}>, zod.ZodObject<{
|
|
785
788
|
route_type: zod.ZodLiteral<"via">;
|
|
786
789
|
x: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
@@ -831,6 +834,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
831
834
|
y: number;
|
|
832
835
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
833
836
|
route_type: "wire";
|
|
837
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
834
838
|
} | {
|
|
835
839
|
x: number;
|
|
836
840
|
y: number;
|
|
@@ -847,6 +851,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
847
851
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
848
852
|
};
|
|
849
853
|
route_type: "wire";
|
|
854
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
850
855
|
} | {
|
|
851
856
|
x: string | number;
|
|
852
857
|
y: string | number;
|
|
@@ -867,6 +872,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
867
872
|
y: number;
|
|
868
873
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
869
874
|
route_type: "wire";
|
|
875
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
870
876
|
} | {
|
|
871
877
|
x: number;
|
|
872
878
|
y: number;
|
|
@@ -886,6 +892,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
886
892
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
887
893
|
};
|
|
888
894
|
route_type: "wire";
|
|
895
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
889
896
|
} | {
|
|
890
897
|
x: string | number;
|
|
891
898
|
y: string | number;
|
|
@@ -937,6 +944,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
937
944
|
y: number;
|
|
938
945
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
939
946
|
route_type: "wire";
|
|
947
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
940
948
|
} | {
|
|
941
949
|
x: number;
|
|
942
950
|
y: number;
|
|
@@ -999,6 +1007,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
999
1007
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
1000
1008
|
};
|
|
1001
1009
|
route_type: "wire";
|
|
1010
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
1002
1011
|
} | {
|
|
1003
1012
|
x: string | number;
|
|
1004
1013
|
y: string | number;
|
|
@@ -1059,6 +1068,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
1059
1068
|
y: number;
|
|
1060
1069
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
1061
1070
|
route_type: "wire";
|
|
1071
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
1062
1072
|
} | {
|
|
1063
1073
|
x: number;
|
|
1064
1074
|
y: number;
|
|
@@ -1121,6 +1131,7 @@ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhas
|
|
|
1121
1131
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
1122
1132
|
};
|
|
1123
1133
|
route_type: "wire";
|
|
1134
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
1124
1135
|
} | {
|
|
1125
1136
|
x: string | number;
|
|
1126
1137
|
y: string | number;
|
|
@@ -1220,6 +1231,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1220
1231
|
} | undefined;
|
|
1221
1232
|
trace_width?: string | number | undefined;
|
|
1222
1233
|
}>, "many">>;
|
|
1234
|
+
pcbTeardrops: z.ZodOptional<z.ZodBoolean>;
|
|
1235
|
+
pcbTeardropStart: z.ZodOptional<z.ZodBoolean>;
|
|
1236
|
+
pcbTeardropEnd: z.ZodOptional<z.ZodBoolean>;
|
|
1223
1237
|
pcbPathRelativeTo: z.ZodOptional<z.ZodString>;
|
|
1224
1238
|
pcbPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
1225
1239
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -1378,6 +1392,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1378
1392
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | undefined;
|
|
1379
1393
|
trace_width?: number | undefined;
|
|
1380
1394
|
}[] | undefined;
|
|
1395
|
+
pcbTeardrops?: boolean | undefined;
|
|
1396
|
+
pcbTeardropStart?: boolean | undefined;
|
|
1397
|
+
pcbTeardropEnd?: boolean | undefined;
|
|
1381
1398
|
pcbPathRelativeTo?: string | undefined;
|
|
1382
1399
|
pcbPaths?: (string | {
|
|
1383
1400
|
x: number;
|
|
@@ -1427,6 +1444,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1427
1444
|
} | undefined;
|
|
1428
1445
|
trace_width?: string | number | undefined;
|
|
1429
1446
|
}[] | undefined;
|
|
1447
|
+
pcbTeardrops?: boolean | undefined;
|
|
1448
|
+
pcbTeardropStart?: boolean | undefined;
|
|
1449
|
+
pcbTeardropEnd?: boolean | undefined;
|
|
1430
1450
|
pcbPathRelativeTo?: string | undefined;
|
|
1431
1451
|
pcbPaths?: (string | {
|
|
1432
1452
|
x: string | number;
|
|
@@ -1488,6 +1508,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1488
1508
|
} | undefined;
|
|
1489
1509
|
trace_width?: string | number | undefined;
|
|
1490
1510
|
}>, "many">>;
|
|
1511
|
+
pcbTeardrops: z.ZodOptional<z.ZodBoolean>;
|
|
1512
|
+
pcbTeardropStart: z.ZodOptional<z.ZodBoolean>;
|
|
1513
|
+
pcbTeardropEnd: z.ZodOptional<z.ZodBoolean>;
|
|
1491
1514
|
pcbPathRelativeTo: z.ZodOptional<z.ZodString>;
|
|
1492
1515
|
pcbPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
1493
1516
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -1654,6 +1677,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1654
1677
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | undefined;
|
|
1655
1678
|
trace_width?: number | undefined;
|
|
1656
1679
|
}[] | undefined;
|
|
1680
|
+
pcbTeardrops?: boolean | undefined;
|
|
1681
|
+
pcbTeardropStart?: boolean | undefined;
|
|
1682
|
+
pcbTeardropEnd?: boolean | undefined;
|
|
1657
1683
|
pcbPathRelativeTo?: string | undefined;
|
|
1658
1684
|
pcbPaths?: (string | {
|
|
1659
1685
|
x: number;
|
|
@@ -1706,6 +1732,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1706
1732
|
} | undefined;
|
|
1707
1733
|
trace_width?: string | number | undefined;
|
|
1708
1734
|
}[] | undefined;
|
|
1735
|
+
pcbTeardrops?: boolean | undefined;
|
|
1736
|
+
pcbTeardropStart?: boolean | undefined;
|
|
1737
|
+
pcbTeardropEnd?: boolean | undefined;
|
|
1709
1738
|
pcbPathRelativeTo?: string | undefined;
|
|
1710
1739
|
pcbPaths?: (string | {
|
|
1711
1740
|
x: string | number;
|
|
@@ -1767,6 +1796,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1767
1796
|
} | undefined;
|
|
1768
1797
|
trace_width?: string | number | undefined;
|
|
1769
1798
|
}>, "many">>;
|
|
1799
|
+
pcbTeardrops: z.ZodOptional<z.ZodBoolean>;
|
|
1800
|
+
pcbTeardropStart: z.ZodOptional<z.ZodBoolean>;
|
|
1801
|
+
pcbTeardropEnd: z.ZodOptional<z.ZodBoolean>;
|
|
1770
1802
|
pcbPathRelativeTo: z.ZodOptional<z.ZodString>;
|
|
1771
1803
|
pcbPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
1772
1804
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -1933,6 +1965,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1933
1965
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | undefined;
|
|
1934
1966
|
trace_width?: number | undefined;
|
|
1935
1967
|
}[] | undefined;
|
|
1968
|
+
pcbTeardrops?: boolean | undefined;
|
|
1969
|
+
pcbTeardropStart?: boolean | undefined;
|
|
1970
|
+
pcbTeardropEnd?: boolean | undefined;
|
|
1936
1971
|
pcbPathRelativeTo?: string | undefined;
|
|
1937
1972
|
pcbPaths?: (string | {
|
|
1938
1973
|
x: number;
|
|
@@ -1985,6 +2020,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
1985
2020
|
} | undefined;
|
|
1986
2021
|
trace_width?: string | number | undefined;
|
|
1987
2022
|
}[] | undefined;
|
|
2023
|
+
pcbTeardrops?: boolean | undefined;
|
|
2024
|
+
pcbTeardropStart?: boolean | undefined;
|
|
2025
|
+
pcbTeardropEnd?: boolean | undefined;
|
|
1988
2026
|
pcbPathRelativeTo?: string | undefined;
|
|
1989
2027
|
pcbPaths?: (string | {
|
|
1990
2028
|
x: string | number;
|
|
@@ -14771,7 +14809,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
|
|
|
14771
14809
|
bypassTo: zod.ZodOptional<zod.ZodString>;
|
|
14772
14810
|
maxDecouplingTraceLength: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
14773
14811
|
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
14774
|
-
schSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.
|
|
14812
|
+
schSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["xs", "sm", "default", "md"]>, zod.ZodPipeline<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.ZodNumber>]>>;
|
|
14775
14813
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pos", "neg", "anode", "cathode"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
14776
14814
|
}, "strip", zod.ZodTypeAny, {
|
|
14777
14815
|
name: string;
|
|
@@ -36871,6 +36909,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
36871
36909
|
photo: zod.ZodOptional<zod.ZodBoolean>;
|
|
36872
36910
|
tvs: zod.ZodOptional<zod.ZodBoolean>;
|
|
36873
36911
|
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
36912
|
+
schSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["xs", "sm", "default", "md"]>, zod.ZodPipeline<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.ZodNumber>]>>;
|
|
36874
36913
|
pinLabels: 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">]>>>;
|
|
36875
36914
|
}, "strip", zod.ZodTypeAny, {
|
|
36876
36915
|
name: string;
|
|
@@ -37549,6 +37588,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
37549
37588
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
37550
37589
|
standard?: boolean | undefined;
|
|
37551
37590
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
37591
|
+
schSize?: number | "default" | "xs" | "sm" | "md" | undefined;
|
|
37552
37592
|
schottky?: boolean | undefined;
|
|
37553
37593
|
zener?: boolean | undefined;
|
|
37554
37594
|
avalanche?: boolean | undefined;
|
|
@@ -38232,6 +38272,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
38232
38272
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
38233
38273
|
standard?: boolean | undefined;
|
|
38234
38274
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
38275
|
+
schSize?: string | number | undefined;
|
|
38235
38276
|
schottky?: boolean | undefined;
|
|
38236
38277
|
zener?: boolean | undefined;
|
|
38237
38278
|
avalanche?: boolean | undefined;
|
|
@@ -38915,6 +38956,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
38915
38956
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
38916
38957
|
standard?: boolean | undefined;
|
|
38917
38958
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
38959
|
+
schSize?: number | "default" | "xs" | "sm" | "md" | undefined;
|
|
38918
38960
|
schottky?: boolean | undefined;
|
|
38919
38961
|
zener?: boolean | undefined;
|
|
38920
38962
|
avalanche?: boolean | undefined;
|
|
@@ -39598,6 +39640,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
39598
39640
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
39599
39641
|
standard?: boolean | undefined;
|
|
39600
39642
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
39643
|
+
schSize?: string | number | undefined;
|
|
39601
39644
|
schottky?: boolean | undefined;
|
|
39602
39645
|
zener?: boolean | undefined;
|
|
39603
39646
|
avalanche?: boolean | undefined;
|
|
@@ -40286,6 +40329,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
40286
40329
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
40287
40330
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
40288
40331
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
40332
|
+
schSize?: number | "default" | "xs" | "sm" | "md" | undefined;
|
|
40289
40333
|
}, {
|
|
40290
40334
|
name: string;
|
|
40291
40335
|
symbol?: _tscircuit_props.SymbolProp | undefined;
|
|
@@ -40964,6 +41008,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
40964
41008
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
40965
41009
|
standard?: boolean | undefined;
|
|
40966
41010
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
41011
|
+
schSize?: string | number | undefined;
|
|
40967
41012
|
schottky?: boolean | undefined;
|
|
40968
41013
|
zener?: boolean | undefined;
|
|
40969
41014
|
avalanche?: boolean | undefined;
|
|
@@ -66862,6 +66907,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
66862
66907
|
wavelength: zod.ZodOptional<zod.ZodString>;
|
|
66863
66908
|
schDisplayValue: zod.ZodOptional<zod.ZodString>;
|
|
66864
66909
|
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
66910
|
+
schSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["xs", "sm", "default", "md"]>, zod.ZodPipeline<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.ZodNumber>]>>;
|
|
66865
66911
|
pinLabels: zod.ZodOptional<zod.ZodUnion<[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">]>>, zod.ZodEffects<zod.ZodRecord<zod.ZodEnum<["1", "2"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>, {
|
|
66866
66912
|
pin2?: string | readonly string[] | string[] | undefined;
|
|
66867
66913
|
pin1?: string | readonly string[] | string[] | undefined;
|
|
@@ -67546,6 +67592,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
67546
67592
|
pin1?: string | readonly string[] | string[] | undefined;
|
|
67547
67593
|
} | undefined;
|
|
67548
67594
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
67595
|
+
schSize?: number | "default" | "xs" | "sm" | "md" | undefined;
|
|
67549
67596
|
color?: string | undefined;
|
|
67550
67597
|
wavelength?: string | undefined;
|
|
67551
67598
|
schDisplayValue?: string | undefined;
|
|
@@ -68227,6 +68274,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
68227
68274
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
68228
68275
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | Partial<Record<"1" | "2", string | readonly string[] | string[]>> | undefined;
|
|
68229
68276
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
68277
|
+
schSize?: string | number | undefined;
|
|
68230
68278
|
color?: string | undefined;
|
|
68231
68279
|
wavelength?: string | undefined;
|
|
68232
68280
|
schDisplayValue?: string | undefined;
|
|
@@ -93340,7 +93388,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
93340
93388
|
pulldownFor: zod.ZodOptional<zod.ZodString>;
|
|
93341
93389
|
pulldownTo: zod.ZodOptional<zod.ZodString>;
|
|
93342
93390
|
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
93343
|
-
schSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.
|
|
93391
|
+
schSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["xs", "sm", "default", "md"]>, zod.ZodPipeline<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, zod.ZodNumber>]>>;
|
|
93344
93392
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pos", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
93345
93393
|
}, "strip", zod.ZodTypeAny, {
|
|
93346
93394
|
name: string;
|
|
@@ -97299,6 +97347,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97299
97347
|
x: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
97300
97348
|
y: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
97301
97349
|
width: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
97350
|
+
width_interpolation_mode: zod.ZodOptional<zod.ZodEnum<["linear", "quadratic"]>>;
|
|
97302
97351
|
layer: zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, zod.ZodObject<{
|
|
97303
97352
|
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
|
|
97304
97353
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -97314,6 +97363,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97314
97363
|
y: number;
|
|
97315
97364
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97316
97365
|
route_type: "wire";
|
|
97366
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97317
97367
|
}, {
|
|
97318
97368
|
width: string | number;
|
|
97319
97369
|
x: string | number;
|
|
@@ -97322,6 +97372,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97322
97372
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97323
97373
|
};
|
|
97324
97374
|
route_type: "wire";
|
|
97375
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97325
97376
|
}>, zod.ZodObject<{
|
|
97326
97377
|
route_type: zod.ZodLiteral<"via">;
|
|
97327
97378
|
x: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
@@ -97372,6 +97423,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97372
97423
|
y: number;
|
|
97373
97424
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97374
97425
|
route_type: "wire";
|
|
97426
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97375
97427
|
} | {
|
|
97376
97428
|
x: number;
|
|
97377
97429
|
y: number;
|
|
@@ -97388,6 +97440,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97388
97440
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97389
97441
|
};
|
|
97390
97442
|
route_type: "wire";
|
|
97443
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97391
97444
|
} | {
|
|
97392
97445
|
x: string | number;
|
|
97393
97446
|
y: string | number;
|
|
@@ -97408,6 +97461,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97408
97461
|
y: number;
|
|
97409
97462
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97410
97463
|
route_type: "wire";
|
|
97464
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97411
97465
|
} | {
|
|
97412
97466
|
x: number;
|
|
97413
97467
|
y: number;
|
|
@@ -97427,6 +97481,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97427
97481
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97428
97482
|
};
|
|
97429
97483
|
route_type: "wire";
|
|
97484
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97430
97485
|
} | {
|
|
97431
97486
|
x: string | number;
|
|
97432
97487
|
y: string | number;
|
|
@@ -97787,6 +97842,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
97787
97842
|
y: number;
|
|
97788
97843
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
97789
97844
|
route_type: "wire";
|
|
97845
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
97790
97846
|
} | {
|
|
97791
97847
|
x: number;
|
|
97792
97848
|
y: number;
|
|
@@ -98148,6 +98204,7 @@ declare class Breakout extends Group<typeof breakoutProps> {
|
|
|
98148
98204
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
98149
98205
|
};
|
|
98150
98206
|
route_type: "wire";
|
|
98207
|
+
width_interpolation_mode?: "linear" | "quadratic" | undefined;
|
|
98151
98208
|
} | {
|
|
98152
98209
|
x: string | number;
|
|
98153
98210
|
y: string | number;
|
|
@@ -195313,6 +195370,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
195313
195370
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
195314
195371
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | Partial<Record<"1" | "2", string | readonly string[] | string[]>> | undefined;
|
|
195315
195372
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
195373
|
+
schSize?: string | number | undefined;
|
|
195316
195374
|
color?: string | undefined;
|
|
195317
195375
|
wavelength?: string | undefined;
|
|
195318
195376
|
schDisplayValue?: string | undefined;
|
|
@@ -195994,6 +196052,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
195994
196052
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
195995
196053
|
pinLabels?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | Partial<Record<"1" | "2", string | readonly string[] | string[]>> | undefined;
|
|
195996
196054
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
196055
|
+
schSize?: string | number | undefined;
|
|
195997
196056
|
color?: string | undefined;
|
|
195998
196057
|
wavelength?: string | undefined;
|
|
195999
196058
|
schDisplayValue?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -18962,6 +18962,7 @@ function inflateSourceConnector(sourceElm, inflatorContext) {
|
|
|
18962
18962
|
}
|
|
18963
18963
|
|
|
18964
18964
|
// lib/components/normal-components/Diode.ts
|
|
18965
|
+
import { symbols as symbols5 } from "schematic-symbols";
|
|
18965
18966
|
import { diodeProps } from "@tscircuit/props";
|
|
18966
18967
|
|
|
18967
18968
|
// lib/components/base-components/NormalComponent/utils/isFootprinterString.ts
|
|
@@ -18976,9 +18977,14 @@ var Diode = class extends NormalComponent {
|
|
|
18976
18977
|
zener: "zener_diode",
|
|
18977
18978
|
photodiode: "photodiode"
|
|
18978
18979
|
};
|
|
18979
|
-
const
|
|
18980
|
+
const variant = this.props.schottky ? "schottky" : this.props.avalanche ? "avalanche" : this.props.zener ? "zener" : this.props.photo ? "photo" : this.props.standard ? "standard" : this.props.variant;
|
|
18981
|
+
const variantSymbol = variant === "photo" ? "photodiode" : variant;
|
|
18982
|
+
const baseSymbolName = variantSymbol && symbolMap[variantSymbol] || this.props.symbolName || "diode";
|
|
18983
|
+
const compactSize = this.props.schSize === "sm" || this.props.schSize === "xs" ? this.props.schSize : void 0;
|
|
18984
|
+
const compactSymbolName = compactSize && (baseSymbolName === "diode" || baseSymbolName === "avalanche_diode" || baseSymbolName === "zener_diode") ? `${baseSymbolName}_${compactSize}` : void 0;
|
|
18985
|
+
const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols5 ? compactSymbolName : baseSymbolName;
|
|
18980
18986
|
return {
|
|
18981
|
-
schematicSymbolName
|
|
18987
|
+
schematicSymbolName,
|
|
18982
18988
|
componentName: "Diode",
|
|
18983
18989
|
zodProps: diodeProps,
|
|
18984
18990
|
sourceFtype: "simple_diode"
|
|
@@ -19167,7 +19173,10 @@ function getSavedPcbTracePathTransform(group, port) {
|
|
|
19167
19173
|
// lib/components/primitive-components/Group/get-saved-autorouting-phase-traces.ts
|
|
19168
19174
|
import { applyToPoint as applyToPoint27 } from "transformation-matrix";
|
|
19169
19175
|
import "@tscircuit/props";
|
|
19170
|
-
var touchesEndpoint = (
|
|
19176
|
+
var touchesEndpoint = ({
|
|
19177
|
+
point: point6,
|
|
19178
|
+
endpoint
|
|
19179
|
+
}, db) => Math.hypot(point6.x - endpoint.x, point6.y - endpoint.y) < 1e-4 && (point6.pcb_port_id ? db.pcb_port.get(point6.pcb_port_id).layers.some((layer) => layer === endpoint.layer) : point6.layer === endpoint.layer);
|
|
19171
19180
|
function getSavedAutoroutingPhaseTraces(phase, input, isFanout) {
|
|
19172
19181
|
return getSavedAutoroutingPhaseTracesFromPaths({
|
|
19173
19182
|
group: phase.getGroup(),
|
|
@@ -19243,16 +19252,22 @@ function getSavedAutoroutingPhaseTracesFromPaths({
|
|
|
19243
19252
|
const last = route.at(-1);
|
|
19244
19253
|
const firstLayer = first.route_type === "wire" ? first.layer : first.from_layer;
|
|
19245
19254
|
const lastLayer = last.route_type === "wire" ? last.layer : last.to_layer;
|
|
19246
|
-
if (!touchesEndpoint(
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19255
|
+
if (!touchesEndpoint(
|
|
19256
|
+
{
|
|
19257
|
+
point: remainingPoints[startIndex],
|
|
19258
|
+
endpoint: { ...first, layer: firstLayer }
|
|
19259
|
+
},
|
|
19260
|
+
port.root.db
|
|
19261
|
+
)) {
|
|
19250
19262
|
throw new Error(
|
|
19251
19263
|
`Saved phase path "${path.connection}" must start at its PCB port on an available layer`
|
|
19252
19264
|
);
|
|
19253
19265
|
}
|
|
19254
19266
|
const endIndex = remainingPoints.findIndex(
|
|
19255
|
-
(point6, index) => index !== startIndex && touchesEndpoint(
|
|
19267
|
+
(point6, index) => index !== startIndex && touchesEndpoint(
|
|
19268
|
+
{ point: point6, endpoint: { ...last, layer: lastLayer } },
|
|
19269
|
+
port.root.db
|
|
19270
|
+
)
|
|
19256
19271
|
);
|
|
19257
19272
|
if (!input.allowViaInPad && (first.route_type === "via" || last.route_type === "via" && endIndex >= 0)) {
|
|
19258
19273
|
throw new Error(
|
|
@@ -58878,7 +58893,7 @@ import Debug8 from "debug";
|
|
|
58878
58893
|
|
|
58879
58894
|
// lib/utils/schematic/getSchematicComponentWithTextBounds.ts
|
|
58880
58895
|
import { getBoundFromCenteredRect as getBoundFromCenteredRect2 } from "@tscircuit/math-utils";
|
|
58881
|
-
import { symbols as
|
|
58896
|
+
import { symbols as symbols6 } from "schematic-symbols";
|
|
58882
58897
|
|
|
58883
58898
|
// lib/utils/schematic/getSchematicTextWidth.ts
|
|
58884
58899
|
function getSchematicTextWidth({
|
|
@@ -58952,7 +58967,7 @@ function getSymbolTextBounds({
|
|
|
58952
58967
|
sourceComponent
|
|
58953
58968
|
}) {
|
|
58954
58969
|
if (!schematicComponent.symbol_name) return [];
|
|
58955
|
-
const symbol =
|
|
58970
|
+
const symbol = symbols6[schematicComponent.symbol_name];
|
|
58956
58971
|
if (!symbol?.primitives || !symbol.center) return [];
|
|
58957
58972
|
const textBounds = [];
|
|
58958
58973
|
for (const primitive of symbol.primitives) {
|
|
@@ -64456,7 +64471,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
64456
64471
|
var package_default = {
|
|
64457
64472
|
name: "@tscircuit/core",
|
|
64458
64473
|
type: "module",
|
|
64459
|
-
version: "0.0.
|
|
64474
|
+
version: "0.0.2012",
|
|
64460
64475
|
types: "dist/index.d.ts",
|
|
64461
64476
|
main: "dist/index.js",
|
|
64462
64477
|
module: "dist/index.js",
|
|
@@ -64511,7 +64526,7 @@ var package_default = {
|
|
|
64511
64526
|
"@tscircuit/math-utils": "^0.0.36",
|
|
64512
64527
|
"@tscircuit/miniflex": "^0.0.4",
|
|
64513
64528
|
"@tscircuit/ngspice-spice-engine": "^0.0.20",
|
|
64514
|
-
"@tscircuit/props": "^0.0.
|
|
64529
|
+
"@tscircuit/props": "^0.0.669",
|
|
64515
64530
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
64516
64531
|
"@tscircuit/schematic-trace-solver": "^0.0.212",
|
|
64517
64532
|
"@tscircuit/solver-utils": "^0.0.16",
|
|
@@ -64547,7 +64562,7 @@ var package_default = {
|
|
|
64547
64562
|
poppygl: "^0.0.29",
|
|
64548
64563
|
react: "^19.1.0",
|
|
64549
64564
|
"react-dom": "^19.1.0",
|
|
64550
|
-
"schematic-symbols": "^0.0.
|
|
64565
|
+
"schematic-symbols": "^0.0.248",
|
|
64551
64566
|
spicets: "^0.0.4",
|
|
64552
64567
|
spicey: "^0.0.14",
|
|
64553
64568
|
"stack-svgs": "^0.0.1",
|
|
@@ -64590,7 +64605,7 @@ var package_default = {
|
|
|
64590
64605
|
},
|
|
64591
64606
|
overrides: {
|
|
64592
64607
|
"@tscircuit/circuit-json-util": "^0.0.116",
|
|
64593
|
-
"@tscircuit/props": "^0.0.
|
|
64608
|
+
"@tscircuit/props": "^0.0.669",
|
|
64594
64609
|
"circuit-json": "^0.0.506"
|
|
64595
64610
|
}
|
|
64596
64611
|
};
|
|
@@ -67791,6 +67806,7 @@ function inflateSourceInductor(sourceElm, inflatorContext) {
|
|
|
67791
67806
|
}
|
|
67792
67807
|
|
|
67793
67808
|
// lib/components/normal-components/Led.ts
|
|
67809
|
+
import { symbols as symbols7 } from "schematic-symbols";
|
|
67794
67810
|
import { ledProps } from "@tscircuit/props";
|
|
67795
67811
|
|
|
67796
67812
|
// lib/components/normal-components/Led_addPolarityFabricationSymbol.ts
|
|
@@ -67878,8 +67894,12 @@ var Led = class extends NormalComponent {
|
|
|
67878
67894
|
laser: "laser_diode"
|
|
67879
67895
|
};
|
|
67880
67896
|
const variantSymbol = this.props.laser ? "laser" : null;
|
|
67897
|
+
const baseSymbolName = variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "led";
|
|
67898
|
+
const compactSize = this.props.schSize === "sm" || this.props.schSize === "xs" ? this.props.schSize : void 0;
|
|
67899
|
+
const compactSymbolName = compactSize && baseSymbolName === "led" ? `led_${compactSize}` : void 0;
|
|
67900
|
+
const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols7 ? compactSymbolName : baseSymbolName;
|
|
67881
67901
|
return {
|
|
67882
|
-
schematicSymbolName
|
|
67902
|
+
schematicSymbolName,
|
|
67883
67903
|
componentName: "Led",
|
|
67884
67904
|
zodProps: ledProps,
|
|
67885
67905
|
sourceFtype: "simple_led"
|
|
@@ -68150,7 +68170,7 @@ function inflateSourcePort(sourcePort, inflatorContext) {
|
|
|
68150
68170
|
|
|
68151
68171
|
// lib/components/normal-components/PushButton.ts
|
|
68152
68172
|
import { pushButtonProps } from "@tscircuit/props";
|
|
68153
|
-
import { symbols as
|
|
68173
|
+
import { symbols as symbols8 } from "schematic-symbols";
|
|
68154
68174
|
var PushButton = class extends NormalComponent {
|
|
68155
68175
|
get config() {
|
|
68156
68176
|
return {
|
|
@@ -68168,7 +68188,7 @@ var PushButton = class extends NormalComponent {
|
|
|
68168
68188
|
pinCount: 2,
|
|
68169
68189
|
ignoreSymbolPorts: true
|
|
68170
68190
|
});
|
|
68171
|
-
const symbol =
|
|
68191
|
+
const symbol = symbols8[this._getSchematicSymbolNameOrThrow()];
|
|
68172
68192
|
const symPort1 = symbol.ports.find((p) => p.labels.includes("1"));
|
|
68173
68193
|
const symPort2 = symbol.ports.find((p) => p.labels.includes("2"));
|
|
68174
68194
|
const ports = this.selectAll("port");
|
|
@@ -68240,14 +68260,14 @@ function inflateSourcePushButton(sourceElm, inflatorContext) {
|
|
|
68240
68260
|
// lib/components/normal-components/Resistor.ts
|
|
68241
68261
|
import { resistorProps } from "@tscircuit/props";
|
|
68242
68262
|
import { formatSiUnit as formatSiUnit3 } from "format-si-unit";
|
|
68243
|
-
import { symbols as
|
|
68263
|
+
import { symbols as symbols9 } from "schematic-symbols";
|
|
68244
68264
|
var Resistor = class extends NormalComponent {
|
|
68245
68265
|
_adjustSilkscreenTextAutomatically = true;
|
|
68246
68266
|
get config() {
|
|
68247
68267
|
const baseSymbolName = this.props.symbolName ?? "boxresistor";
|
|
68248
68268
|
const compactSize = this.props.schSize === "sm" || this.props.schSize === "xs" ? this.props.schSize : void 0;
|
|
68249
68269
|
const compactSymbolName = compactSize && (baseSymbolName === "boxresistor" || baseSymbolName === "resistor") ? `${baseSymbolName}_${compactSize}` : void 0;
|
|
68250
|
-
const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in
|
|
68270
|
+
const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols9 ? compactSymbolName : baseSymbolName;
|
|
68251
68271
|
return {
|
|
68252
68272
|
componentName: "Resistor",
|
|
68253
68273
|
schematicSymbolName,
|
|
@@ -72627,7 +72647,7 @@ var CurrentSource = class extends NormalComponent {
|
|
|
72627
72647
|
|
|
72628
72648
|
// lib/components/normal-components/Ammeter.ts
|
|
72629
72649
|
import { ammeterProps } from "@tscircuit/props";
|
|
72630
|
-
import { symbols as
|
|
72650
|
+
import { symbols as symbols10 } from "schematic-symbols";
|
|
72631
72651
|
|
|
72632
72652
|
// lib/components/normal-components/Ammeter_doInitialSchematicLayout.ts
|
|
72633
72653
|
var PLACEMENT_MARGIN = 0.25;
|
|
@@ -72816,7 +72836,7 @@ var Ammeter = class extends NormalComponent {
|
|
|
72816
72836
|
pin2: ["neg"]
|
|
72817
72837
|
}
|
|
72818
72838
|
});
|
|
72819
|
-
const symbol =
|
|
72839
|
+
const symbol = symbols10[this._getSchematicSymbolNameOrThrow()];
|
|
72820
72840
|
this.portMap.pos.schematicSymbolPortDef = symbol.ports.find((port) => port.labels.includes("1")) ?? null;
|
|
72821
72841
|
this.portMap.neg.schematicSymbolPortDef = symbol.ports.find((port) => port.labels.includes("2")) ?? null;
|
|
72822
72842
|
}
|
|
@@ -77395,16 +77415,16 @@ var TestPoint = class extends NormalComponent {
|
|
|
77395
77415
|
|
|
77396
77416
|
// lib/components/primitive-components/SchematicSymbol/SchematicSymbol.ts
|
|
77397
77417
|
import { schematicSymbolProps } from "@tscircuit/props";
|
|
77398
|
-
import { symbols as
|
|
77418
|
+
import { symbols as symbols12 } from "schematic-symbols";
|
|
77399
77419
|
|
|
77400
77420
|
// lib/components/primitive-components/SchematicSymbol/SchematicSymbol_doInitialSchematicComponentRender.ts
|
|
77401
|
-
import { symbols as
|
|
77421
|
+
import { symbols as symbols11 } from "schematic-symbols";
|
|
77402
77422
|
var SchematicSymbol_doInitialSchematicComponentRender = (schematicSymbol) => {
|
|
77403
77423
|
if (schematicSymbol.root?.schematicDisabled) return;
|
|
77404
77424
|
if (schematicSymbol.getCollapsedSchematicBoxAncestor()) return;
|
|
77405
77425
|
const { db } = schematicSymbol.root;
|
|
77406
77426
|
const symbolName = schematicSymbol._getSchematicSymbolNameOrThrow();
|
|
77407
|
-
const symbol =
|
|
77427
|
+
const symbol = symbols11[symbolName];
|
|
77408
77428
|
if (!symbol) {
|
|
77409
77429
|
throw new Error(`No schematic symbol found for "${symbolName}"`);
|
|
77410
77430
|
}
|
|
@@ -77549,7 +77569,7 @@ var SchematicSymbol = class extends PrimitiveComponent2 {
|
|
|
77549
77569
|
};
|
|
77550
77570
|
}
|
|
77551
77571
|
initPorts() {
|
|
77552
|
-
const symbol =
|
|
77572
|
+
const symbol = symbols12[this._getSchematicSymbolNameOrThrow()];
|
|
77553
77573
|
const shouldCreateSourcePort = !(this._parsedProps.chipRef && this._parsedProps.connections);
|
|
77554
77574
|
for (const symbolPort of symbol.ports) {
|
|
77555
77575
|
const pinNumber = getPinNumberFromLabels(symbolPort.labels);
|
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.2013",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@tscircuit/math-utils": "^0.0.36",
|
|
57
57
|
"@tscircuit/miniflex": "^0.0.4",
|
|
58
58
|
"@tscircuit/ngspice-spice-engine": "^0.0.20",
|
|
59
|
-
"@tscircuit/props": "^0.0.
|
|
59
|
+
"@tscircuit/props": "^0.0.669",
|
|
60
60
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
61
61
|
"@tscircuit/schematic-trace-solver": "^0.0.212",
|
|
62
62
|
"@tscircuit/solver-utils": "^0.0.16",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"poppygl": "^0.0.29",
|
|
93
93
|
"react": "^19.1.0",
|
|
94
94
|
"react-dom": "^19.1.0",
|
|
95
|
-
"schematic-symbols": "^0.0.
|
|
95
|
+
"schematic-symbols": "^0.0.248",
|
|
96
96
|
"spicets": "^0.0.4",
|
|
97
97
|
"spicey": "^0.0.14",
|
|
98
98
|
"stack-svgs": "^0.0.1",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
},
|
|
136
136
|
"overrides": {
|
|
137
137
|
"@tscircuit/circuit-json-util": "^0.0.116",
|
|
138
|
-
"@tscircuit/props": "^0.0.
|
|
138
|
+
"@tscircuit/props": "^0.0.669",
|
|
139
139
|
"circuit-json": "^0.0.506"
|
|
140
140
|
}
|
|
141
141
|
}
|