@tscircuit/core 0.0.2012 → 0.0.2014

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 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.ZodEnum<["xs", "sm", "default", "md"]>]>>;
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.ZodEnum<["xs", "sm", "default", "md"]>]>>;
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
@@ -3196,6 +3196,53 @@ function fillPolygonWithRects(polygon, options = {}) {
3196
3196
  return rects;
3197
3197
  }
3198
3198
 
3199
+ // lib/utils/obstacles/generateApproximatingRects.ts
3200
+ function generateApproximatingRects(rotatedRect, numRects = 2) {
3201
+ const { center, width, height, rotation: rotation5 } = rotatedRect;
3202
+ const rects = [];
3203
+ const angleRad = rotation5 * Math.PI / 180;
3204
+ const cosAngle = Math.cos(angleRad);
3205
+ const sinAngle = Math.sin(angleRad);
3206
+ const normalizedRotation = (rotation5 % 360 + 360) % 360;
3207
+ const sliceAlongWidth = height <= width ? normalizedRotation >= 45 && normalizedRotation < 135 || normalizedRotation >= 225 && normalizedRotation < 315 : normalizedRotation >= 135 && normalizedRotation < 225 || normalizedRotation >= 315 || normalizedRotation < 45;
3208
+ if (sliceAlongWidth) {
3209
+ const sliceWidth = width / numRects;
3210
+ for (let i = 0; i < numRects; i++) {
3211
+ const x = (i - numRects / 2 + 0.5) * sliceWidth;
3212
+ const rotatedX = -x * cosAngle;
3213
+ const rotatedY = -x * sinAngle;
3214
+ const coverageWidth = sliceWidth * 1.1;
3215
+ const coverageHeight = Math.abs(height * cosAngle) + Math.abs(sliceWidth * sinAngle);
3216
+ rects.push({
3217
+ center: {
3218
+ x: center.x + rotatedX,
3219
+ y: center.y + rotatedY
3220
+ },
3221
+ width: coverageWidth,
3222
+ height: coverageHeight
3223
+ });
3224
+ }
3225
+ } else {
3226
+ const sliceHeight = height / numRects;
3227
+ for (let i = 0; i < numRects; i++) {
3228
+ const y = (i - numRects / 2 + 0.5) * sliceHeight;
3229
+ const rotatedX = -y * sinAngle;
3230
+ const rotatedY = y * cosAngle;
3231
+ const coverageWidth = Math.abs(width * cosAngle) + Math.abs(sliceHeight * sinAngle);
3232
+ const coverageHeight = sliceHeight * 1.1;
3233
+ rects.push({
3234
+ center: {
3235
+ x: center.x + rotatedX,
3236
+ y: center.y + rotatedY
3237
+ },
3238
+ width: coverageWidth,
3239
+ height: coverageHeight
3240
+ });
3241
+ }
3242
+ }
3243
+ return rects;
3244
+ }
3245
+
3199
3246
  // lib/utils/obstacles/getAxisAlignedRectFromPolygon.ts
3200
3247
  var AXIS_ALIGNED_RECT_TOLERANCE_MM = 1e-3;
3201
3248
  var getAxisAlignedRectFromPolygon = (points) => {
@@ -3233,6 +3280,59 @@ var getAxisAlignedRectFromPolygon = (points) => {
3233
3280
  };
3234
3281
  };
3235
3282
 
3283
+ // lib/utils/obstacles/getObstaclesFromPcbKeepoutOutline.ts
3284
+ var getObstaclesFromPcbKeepoutOutline = (keepout, componentId) => {
3285
+ const { outline, stroke_width } = keepout;
3286
+ if (!Number.isFinite(stroke_width) || stroke_width <= 0) return [];
3287
+ const obstacles = [];
3288
+ for (let segmentIndex = 0; segmentIndex < outline.length - 1; segmentIndex++) {
3289
+ const start = outline[segmentIndex];
3290
+ const end = outline[segmentIndex + 1];
3291
+ const deltaX = end.x - start.x;
3292
+ const deltaY = end.y - start.y;
3293
+ const segmentLength = Math.hypot(deltaX, deltaY);
3294
+ if (!Number.isFinite(segmentLength) || segmentLength === 0) continue;
3295
+ const approximatingRects = generateApproximatingRects({
3296
+ center: {
3297
+ x: (start.x + end.x) / 2,
3298
+ y: (start.y + end.y) / 2
3299
+ },
3300
+ width: segmentLength,
3301
+ height: stroke_width,
3302
+ rotation: Math.atan2(deltaY, deltaX) * 180 / Math.PI
3303
+ });
3304
+ for (const [approximationIndex, rect] of approximatingRects.entries()) {
3305
+ obstacles.push({
3306
+ obstacleId: `${keepout.pcb_keepout_id}_segment_${segmentIndex}_rect_${approximationIndex}`,
3307
+ componentId,
3308
+ type: "rect",
3309
+ layers: keepout.layers,
3310
+ ...rect,
3311
+ connectedTo: []
3312
+ });
3313
+ }
3314
+ }
3315
+ const isClosed = outline.length > 1 && outline[0].x === outline.at(-1)?.x && outline[0].y === outline.at(-1)?.y;
3316
+ const joinPoints = isClosed ? outline.slice(0, -1) : outline;
3317
+ for (const [joinIndex, point6] of joinPoints.entries()) {
3318
+ const approximatingRects = fillCircleWithRects(
3319
+ { center: point6, radius: stroke_width / 2 },
3320
+ { rectHeight: stroke_width / 4 }
3321
+ );
3322
+ for (const [approximationIndex, rect] of approximatingRects.entries()) {
3323
+ obstacles.push({
3324
+ obstacleId: `${keepout.pcb_keepout_id}_join_${joinIndex}_rect_${approximationIndex}`,
3325
+ componentId,
3326
+ type: "rect",
3327
+ layers: keepout.layers,
3328
+ ...rect,
3329
+ connectedTo: []
3330
+ });
3331
+ }
3332
+ }
3333
+ return obstacles;
3334
+ };
3335
+
3236
3336
  // lib/utils/obstacles/getObstaclesFromRoute.ts
3237
3337
  var isCloseTo = (a, b) => Math.abs(a - b) < 1e-4;
3238
3338
  var getObstaclesFromRoute = (route, source_trace_id, { viaDiameter = 0.5 } = {}) => {
@@ -3472,6 +3572,10 @@ var getObstaclesFromCircuitJson = (circuitJson, connMap) => {
3472
3572
  height: element.height,
3473
3573
  connectedTo: []
3474
3574
  });
3575
+ } else if (element.shape === "outline") {
3576
+ obstacles.push(
3577
+ ...getObstaclesFromPcbKeepoutOutline(element, pcbComponentId)
3578
+ );
3475
3579
  }
3476
3580
  } else if (element.type === "pcb_cutout") {
3477
3581
  if (element.shape === "rect") {
@@ -18962,6 +19066,7 @@ function inflateSourceConnector(sourceElm, inflatorContext) {
18962
19066
  }
18963
19067
 
18964
19068
  // lib/components/normal-components/Diode.ts
19069
+ import { symbols as symbols5 } from "schematic-symbols";
18965
19070
  import { diodeProps } from "@tscircuit/props";
18966
19071
 
18967
19072
  // lib/components/base-components/NormalComponent/utils/isFootprinterString.ts
@@ -18976,9 +19081,14 @@ var Diode = class extends NormalComponent {
18976
19081
  zener: "zener_diode",
18977
19082
  photodiode: "photodiode"
18978
19083
  };
18979
- const variantSymbol = this.props.schottky ? "schottky" : this.props.avalanche ? "avalanche" : this.props.zener ? "zener" : this.props.photo ? "photodiode" : null;
19084
+ 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;
19085
+ const variantSymbol = variant === "photo" ? "photodiode" : variant;
19086
+ const baseSymbolName = variantSymbol && symbolMap[variantSymbol] || this.props.symbolName || "diode";
19087
+ const compactSize = this.props.schSize === "sm" || this.props.schSize === "xs" ? this.props.schSize : void 0;
19088
+ const compactSymbolName = compactSize && (baseSymbolName === "diode" || baseSymbolName === "avalanche_diode" || baseSymbolName === "zener_diode") ? `${baseSymbolName}_${compactSize}` : void 0;
19089
+ const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols5 ? compactSymbolName : baseSymbolName;
18980
19090
  return {
18981
- schematicSymbolName: variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "diode",
19091
+ schematicSymbolName,
18982
19092
  componentName: "Diode",
18983
19093
  zodProps: diodeProps,
18984
19094
  sourceFtype: "simple_diode"
@@ -58887,7 +58997,7 @@ import Debug8 from "debug";
58887
58997
 
58888
58998
  // lib/utils/schematic/getSchematicComponentWithTextBounds.ts
58889
58999
  import { getBoundFromCenteredRect as getBoundFromCenteredRect2 } from "@tscircuit/math-utils";
58890
- import { symbols as symbols5 } from "schematic-symbols";
59000
+ import { symbols as symbols6 } from "schematic-symbols";
58891
59001
 
58892
59002
  // lib/utils/schematic/getSchematicTextWidth.ts
58893
59003
  function getSchematicTextWidth({
@@ -58961,7 +59071,7 @@ function getSymbolTextBounds({
58961
59071
  sourceComponent
58962
59072
  }) {
58963
59073
  if (!schematicComponent.symbol_name) return [];
58964
- const symbol = symbols5[schematicComponent.symbol_name];
59074
+ const symbol = symbols6[schematicComponent.symbol_name];
58965
59075
  if (!symbol?.primitives || !symbol.center) return [];
58966
59076
  const textBounds = [];
58967
59077
  for (const primitive of symbol.primitives) {
@@ -64465,7 +64575,7 @@ function Group_getRoutingPhasePlans(group) {
64465
64575
  var package_default = {
64466
64576
  name: "@tscircuit/core",
64467
64577
  type: "module",
64468
- version: "0.0.2011",
64578
+ version: "0.0.2013",
64469
64579
  types: "dist/index.d.ts",
64470
64580
  main: "dist/index.js",
64471
64581
  module: "dist/index.js",
@@ -64520,7 +64630,7 @@ var package_default = {
64520
64630
  "@tscircuit/math-utils": "^0.0.36",
64521
64631
  "@tscircuit/miniflex": "^0.0.4",
64522
64632
  "@tscircuit/ngspice-spice-engine": "^0.0.20",
64523
- "@tscircuit/props": "^0.0.667",
64633
+ "@tscircuit/props": "^0.0.669",
64524
64634
  "@tscircuit/schematic-match-adapt": "^0.0.18",
64525
64635
  "@tscircuit/schematic-trace-solver": "^0.0.212",
64526
64636
  "@tscircuit/solver-utils": "^0.0.16",
@@ -64556,7 +64666,7 @@ var package_default = {
64556
64666
  poppygl: "^0.0.29",
64557
64667
  react: "^19.1.0",
64558
64668
  "react-dom": "^19.1.0",
64559
- "schematic-symbols": "^0.0.247",
64669
+ "schematic-symbols": "^0.0.248",
64560
64670
  spicets: "^0.0.4",
64561
64671
  spicey: "^0.0.14",
64562
64672
  "stack-svgs": "^0.0.1",
@@ -64599,7 +64709,7 @@ var package_default = {
64599
64709
  },
64600
64710
  overrides: {
64601
64711
  "@tscircuit/circuit-json-util": "^0.0.116",
64602
- "@tscircuit/props": "^0.0.667",
64712
+ "@tscircuit/props": "^0.0.669",
64603
64713
  "circuit-json": "^0.0.506"
64604
64714
  }
64605
64715
  };
@@ -67800,6 +67910,7 @@ function inflateSourceInductor(sourceElm, inflatorContext) {
67800
67910
  }
67801
67911
 
67802
67912
  // lib/components/normal-components/Led.ts
67913
+ import { symbols as symbols7 } from "schematic-symbols";
67803
67914
  import { ledProps } from "@tscircuit/props";
67804
67915
 
67805
67916
  // lib/components/normal-components/Led_addPolarityFabricationSymbol.ts
@@ -67887,8 +67998,12 @@ var Led = class extends NormalComponent {
67887
67998
  laser: "laser_diode"
67888
67999
  };
67889
68000
  const variantSymbol = this.props.laser ? "laser" : null;
68001
+ const baseSymbolName = variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "led";
68002
+ const compactSize = this.props.schSize === "sm" || this.props.schSize === "xs" ? this.props.schSize : void 0;
68003
+ const compactSymbolName = compactSize && baseSymbolName === "led" ? `led_${compactSize}` : void 0;
68004
+ const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols7 ? compactSymbolName : baseSymbolName;
67890
68005
  return {
67891
- schematicSymbolName: variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "led",
68006
+ schematicSymbolName,
67892
68007
  componentName: "Led",
67893
68008
  zodProps: ledProps,
67894
68009
  sourceFtype: "simple_led"
@@ -68159,7 +68274,7 @@ function inflateSourcePort(sourcePort, inflatorContext) {
68159
68274
 
68160
68275
  // lib/components/normal-components/PushButton.ts
68161
68276
  import { pushButtonProps } from "@tscircuit/props";
68162
- import { symbols as symbols6 } from "schematic-symbols";
68277
+ import { symbols as symbols8 } from "schematic-symbols";
68163
68278
  var PushButton = class extends NormalComponent {
68164
68279
  get config() {
68165
68280
  return {
@@ -68177,7 +68292,7 @@ var PushButton = class extends NormalComponent {
68177
68292
  pinCount: 2,
68178
68293
  ignoreSymbolPorts: true
68179
68294
  });
68180
- const symbol = symbols6[this._getSchematicSymbolNameOrThrow()];
68295
+ const symbol = symbols8[this._getSchematicSymbolNameOrThrow()];
68181
68296
  const symPort1 = symbol.ports.find((p) => p.labels.includes("1"));
68182
68297
  const symPort2 = symbol.ports.find((p) => p.labels.includes("2"));
68183
68298
  const ports = this.selectAll("port");
@@ -68249,14 +68364,14 @@ function inflateSourcePushButton(sourceElm, inflatorContext) {
68249
68364
  // lib/components/normal-components/Resistor.ts
68250
68365
  import { resistorProps } from "@tscircuit/props";
68251
68366
  import { formatSiUnit as formatSiUnit3 } from "format-si-unit";
68252
- import { symbols as symbols7 } from "schematic-symbols";
68367
+ import { symbols as symbols9 } from "schematic-symbols";
68253
68368
  var Resistor = class extends NormalComponent {
68254
68369
  _adjustSilkscreenTextAutomatically = true;
68255
68370
  get config() {
68256
68371
  const baseSymbolName = this.props.symbolName ?? "boxresistor";
68257
68372
  const compactSize = this.props.schSize === "sm" || this.props.schSize === "xs" ? this.props.schSize : void 0;
68258
68373
  const compactSymbolName = compactSize && (baseSymbolName === "boxresistor" || baseSymbolName === "resistor") ? `${baseSymbolName}_${compactSize}` : void 0;
68259
- const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols7 ? compactSymbolName : baseSymbolName;
68374
+ const schematicSymbolName = compactSymbolName && `${compactSymbolName}_right` in symbols9 ? compactSymbolName : baseSymbolName;
68260
68375
  return {
68261
68376
  componentName: "Resistor",
68262
68377
  schematicSymbolName,
@@ -72636,7 +72751,7 @@ var CurrentSource = class extends NormalComponent {
72636
72751
 
72637
72752
  // lib/components/normal-components/Ammeter.ts
72638
72753
  import { ammeterProps } from "@tscircuit/props";
72639
- import { symbols as symbols8 } from "schematic-symbols";
72754
+ import { symbols as symbols10 } from "schematic-symbols";
72640
72755
 
72641
72756
  // lib/components/normal-components/Ammeter_doInitialSchematicLayout.ts
72642
72757
  var PLACEMENT_MARGIN = 0.25;
@@ -72825,7 +72940,7 @@ var Ammeter = class extends NormalComponent {
72825
72940
  pin2: ["neg"]
72826
72941
  }
72827
72942
  });
72828
- const symbol = symbols8[this._getSchematicSymbolNameOrThrow()];
72943
+ const symbol = symbols10[this._getSchematicSymbolNameOrThrow()];
72829
72944
  this.portMap.pos.schematicSymbolPortDef = symbol.ports.find((port) => port.labels.includes("1")) ?? null;
72830
72945
  this.portMap.neg.schematicSymbolPortDef = symbol.ports.find((port) => port.labels.includes("2")) ?? null;
72831
72946
  }
@@ -77404,16 +77519,16 @@ var TestPoint = class extends NormalComponent {
77404
77519
 
77405
77520
  // lib/components/primitive-components/SchematicSymbol/SchematicSymbol.ts
77406
77521
  import { schematicSymbolProps } from "@tscircuit/props";
77407
- import { symbols as symbols10 } from "schematic-symbols";
77522
+ import { symbols as symbols12 } from "schematic-symbols";
77408
77523
 
77409
77524
  // lib/components/primitive-components/SchematicSymbol/SchematicSymbol_doInitialSchematicComponentRender.ts
77410
- import { symbols as symbols9 } from "schematic-symbols";
77525
+ import { symbols as symbols11 } from "schematic-symbols";
77411
77526
  var SchematicSymbol_doInitialSchematicComponentRender = (schematicSymbol) => {
77412
77527
  if (schematicSymbol.root?.schematicDisabled) return;
77413
77528
  if (schematicSymbol.getCollapsedSchematicBoxAncestor()) return;
77414
77529
  const { db } = schematicSymbol.root;
77415
77530
  const symbolName = schematicSymbol._getSchematicSymbolNameOrThrow();
77416
- const symbol = symbols9[symbolName];
77531
+ const symbol = symbols11[symbolName];
77417
77532
  if (!symbol) {
77418
77533
  throw new Error(`No schematic symbol found for "${symbolName}"`);
77419
77534
  }
@@ -77558,7 +77673,7 @@ var SchematicSymbol = class extends PrimitiveComponent2 {
77558
77673
  };
77559
77674
  }
77560
77675
  initPorts() {
77561
- const symbol = symbols10[this._getSchematicSymbolNameOrThrow()];
77676
+ const symbol = symbols12[this._getSchematicSymbolNameOrThrow()];
77562
77677
  const shouldCreateSourcePort = !(this._parsedProps.chipRef && this._parsedProps.connections);
77563
77678
  for (const symbolPort of symbol.ports) {
77564
77679
  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.2012",
4
+ "version": "0.0.2014",
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.667",
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.247",
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.667",
138
+ "@tscircuit/props": "^0.0.669",
139
139
  "circuit-json": "^0.0.506"
140
140
  }
141
141
  }