@tscircuit/props 0.0.569 → 0.0.571

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.js CHANGED
@@ -16859,12 +16859,13 @@ var potentiometerProps = commonComponentProps.extend({
16859
16859
  expectTypesMatch(true);
16860
16860
 
16861
16861
  // lib/components/crystal.ts
16862
- import { frequency, capacitance } from "circuit-json";
16862
+ import { capacitance, distance as distance16, frequency } from "circuit-json";
16863
16863
  import { z as z51 } from "zod";
16864
16864
  var crystalPins = lrPins;
16865
16865
  var crystalProps = commonComponentProps.extend({
16866
16866
  frequency,
16867
16867
  loadCapacitance: capacitance,
16868
+ maxTraceLength: distance16.optional(),
16868
16869
  manufacturerPartNumber: z51.string().optional(),
16869
16870
  mpn: z51.string().optional(),
16870
16871
  pinVariant: z51.enum(["two_pin", "four_pin"]).optional(),
@@ -16884,7 +16885,7 @@ var resonatorProps = commonComponentProps.extend({
16884
16885
  expectTypesMatch(true);
16885
16886
 
16886
16887
  // lib/components/stampboard.ts
16887
- import { distance as distance16 } from "circuit-json";
16888
+ import { distance as distance17 } from "circuit-json";
16888
16889
  import { z as z53 } from "zod";
16889
16890
  var stampboardProps = boardProps.extend({
16890
16891
  leftPinCount: z53.number().optional(),
@@ -16895,7 +16896,7 @@ var stampboardProps = boardProps.extend({
16895
16896
  rightPins: z53.array(z53.string()).optional(),
16896
16897
  topPins: z53.array(z53.string()).optional(),
16897
16898
  bottomPins: z53.array(z53.string()).optional(),
16898
- pinPitch: distance16.optional(),
16899
+ pinPitch: distance17.optional(),
16899
16900
  innerHoles: z53.boolean().optional()
16900
16901
  });
16901
16902
  expectTypesMatch(true);
@@ -16929,7 +16930,7 @@ var capacitorPins = lrPolarPins;
16929
16930
  expectTypesMatch(true);
16930
16931
 
16931
16932
  // lib/components/net.ts
16932
- import { distance as distance17 } from "circuit-json";
16933
+ import { distance as distance18 } from "circuit-json";
16933
16934
  import { z as z55 } from "zod";
16934
16935
  var netProps = z55.object({
16935
16936
  name: z55.string(),
@@ -16938,7 +16939,7 @@ var netProps = z55.object({
16938
16939
  highlightColor: z55.string().optional(),
16939
16940
  isPowerNet: z55.boolean().optional(),
16940
16941
  isGroundNet: z55.boolean().optional(),
16941
- nominalTraceWidth: distance17.optional()
16942
+ nominalTraceWidth: distance18.optional()
16942
16943
  });
16943
16944
  expectTypesMatch(true);
16944
16945
 
@@ -17189,7 +17190,7 @@ var holeProps = z63.union([
17189
17190
  expectTypesMatch(true);
17190
17191
 
17191
17192
  // lib/components/trace.ts
17192
- import { distance as distance18, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
17193
+ import { distance as distance19, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
17193
17194
  import { z as z64 } from "zod";
17194
17195
  var portRef = z64.union([
17195
17196
  z64.string(),
@@ -17223,8 +17224,8 @@ var baseTraceProps = z64.object({
17223
17224
  key: z64.string().optional(),
17224
17225
  name: z64.string().optional(),
17225
17226
  displayName: z64.string().optional(),
17226
- thickness: distance18.optional(),
17227
- width: distance18.optional().describe("Alias for trace thickness"),
17227
+ thickness: distance19.optional(),
17228
+ width: distance19.optional().describe("Alias for trace thickness"),
17228
17229
  schematicRouteHints: z64.array(point).optional(),
17229
17230
  pcbRouteHints: z64.array(route_hint_point2).optional(),
17230
17231
  pcbPathRelativeTo: z64.string().optional(),
@@ -17235,7 +17236,7 @@ var baseTraceProps = z64.object({
17235
17236
  schDisplayLabel: z64.string().optional(),
17236
17237
  schStroke: z64.string().optional(),
17237
17238
  highlightColor: z64.string().optional(),
17238
- maxLength: distance18.optional(),
17239
+ maxLength: distance19.optional(),
17239
17240
  connectsTo: z64.string().or(z64.array(z64.string())).optional()
17240
17241
  });
17241
17242
  var traceProps = z64.union([
@@ -17326,7 +17327,7 @@ var mountedboardProps = subcircuitGroupProps.extend({
17326
17327
  expectTypesMatch(true);
17327
17328
 
17328
17329
  // lib/components/pin-header.ts
17329
- import { distance as distance19 } from "circuit-json";
17330
+ import { distance as distance20 } from "circuit-json";
17330
17331
 
17331
17332
  // lib/common/pcbOrientation.ts
17332
17333
  import { z as z69 } from "zod";
@@ -17339,7 +17340,7 @@ expectTypesMatch(true);
17339
17340
  import { z as z70 } from "zod";
17340
17341
  var pinHeaderProps = commonComponentProps.extend({
17341
17342
  pinCount: z70.number(),
17342
- pitch: distance19.optional(),
17343
+ pitch: distance20.optional(),
17343
17344
  schFacingDirection: z70.enum(["up", "down", "left", "right"]).optional(),
17344
17345
  gender: z70.enum(["male", "female", "unpopulated"]).optional().default("male"),
17345
17346
  showSilkscreenPinLabels: z70.boolean().optional(),
@@ -17347,16 +17348,16 @@ var pinHeaderProps = commonComponentProps.extend({
17347
17348
  doubleRow: z70.boolean().optional(),
17348
17349
  rightAngle: z70.boolean().optional(),
17349
17350
  pcbOrientation: pcbOrientation.optional(),
17350
- holeDiameter: distance19.optional(),
17351
- platedDiameter: distance19.optional(),
17351
+ holeDiameter: distance20.optional(),
17352
+ platedDiameter: distance20.optional(),
17352
17353
  pinLabels: z70.record(z70.string(), schematicPinLabel).or(z70.array(schematicPinLabel)).optional(),
17353
17354
  connections: z70.custom().pipe(z70.record(z70.string(), connectionTarget)).optional(),
17354
17355
  facingDirection: z70.enum(["left", "right"]).optional(),
17355
17356
  schPinArrangement: schematicPinArrangement.optional(),
17356
17357
  schPinStyle: schematicPinStyle.optional(),
17357
- schPinSpacing: distance19.optional(),
17358
- schWidth: distance19.optional(),
17359
- schHeight: distance19.optional()
17358
+ schPinSpacing: distance20.optional(),
17359
+ schWidth: distance20.optional(),
17360
+ schHeight: distance20.optional()
17360
17361
  });
17361
17362
  expectTypesMatch(true);
17362
17363
 
@@ -17488,10 +17489,6 @@ expectTypesMatch(true);
17488
17489
 
17489
17490
  // lib/components/mosfet.ts
17490
17491
  import { z as z78 } from "zod";
17491
- var mosfetProps = commonComponentProps.extend({
17492
- channelType: z78.enum(["n", "p"]),
17493
- mosfetMode: z78.enum(["enhancement", "depletion"])
17494
- });
17495
17492
  var mosfetPins = [
17496
17493
  "pin1",
17497
17494
  "drain",
@@ -17500,6 +17497,11 @@ var mosfetPins = [
17500
17497
  "pin3",
17501
17498
  "gate"
17502
17499
  ];
17500
+ var mosfetProps = commonComponentProps.extend({
17501
+ channelType: z78.enum(["n", "p"]),
17502
+ mosfetMode: z78.enum(["enhancement", "depletion"]),
17503
+ connections: createConnectionsProp(mosfetPins).optional()
17504
+ });
17503
17505
  expectTypesMatch(true);
17504
17506
 
17505
17507
  // lib/components/opamp.ts
@@ -17696,17 +17698,17 @@ var fabricationNoteTextProps = pcbLayoutProps.extend({
17696
17698
  expectTypesMatch(true);
17697
17699
 
17698
17700
  // lib/components/fabrication-note-rect.ts
17699
- import { distance as distance20 } from "circuit-json";
17701
+ import { distance as distance21 } from "circuit-json";
17700
17702
  import { z as z85 } from "zod";
17701
17703
  var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17702
- width: distance20,
17703
- height: distance20,
17704
- strokeWidth: distance20.optional(),
17704
+ width: distance21,
17705
+ height: distance21,
17706
+ strokeWidth: distance21.optional(),
17705
17707
  isFilled: z85.boolean().optional(),
17706
17708
  hasStroke: z85.boolean().optional(),
17707
17709
  isStrokeDashed: z85.boolean().optional(),
17708
17710
  color: z85.string().optional(),
17709
- cornerRadius: distance20.optional()
17711
+ cornerRadius: distance21.optional()
17710
17712
  });
17711
17713
 
17712
17714
  // lib/components/fabrication-note-path.ts
@@ -17729,7 +17731,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
17729
17731
  });
17730
17732
 
17731
17733
  // lib/components/fabrication-note-dimension.ts
17732
- import { distance as distance21, length as length6 } from "circuit-json";
17734
+ import { distance as distance22, length as length6 } from "circuit-json";
17733
17735
  import { z as z87 } from "zod";
17734
17736
  var dimensionTarget = z87.union([z87.string(), point]);
17735
17737
  var fabricationNoteDimensionProps = pcbLayoutProps.omit({
@@ -17746,11 +17748,11 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17746
17748
  from: dimensionTarget,
17747
17749
  to: dimensionTarget,
17748
17750
  text: z87.string().optional(),
17749
- offset: distance21.optional(),
17751
+ offset: distance22.optional(),
17750
17752
  font: z87.enum(["tscircuit2024"]).optional(),
17751
17753
  fontSize: length6.optional(),
17752
17754
  color: z87.string().optional(),
17753
- arrowSize: distance21.optional(),
17755
+ arrowSize: distance22.optional(),
17754
17756
  units: z87.enum(["in", "mm"]).optional(),
17755
17757
  outerEdgeToEdge: z87.literal(true).optional(),
17756
17758
  centerToCenter: z87.literal(true).optional(),
@@ -17759,23 +17761,23 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17759
17761
  expectTypesMatch(true);
17760
17762
 
17761
17763
  // lib/components/pcb-trace.ts
17762
- import { distance as distance22, route_hint_point as route_hint_point4 } from "circuit-json";
17764
+ import { distance as distance23, route_hint_point as route_hint_point4 } from "circuit-json";
17763
17765
  import { z as z88 } from "zod";
17764
17766
  var pcbTraceProps = z88.object({
17765
17767
  layer: z88.string().optional(),
17766
- thickness: distance22.optional(),
17768
+ thickness: distance23.optional(),
17767
17769
  route: z88.array(route_hint_point4)
17768
17770
  });
17769
17771
 
17770
17772
  // lib/components/via.ts
17771
- import { distance as distance23, layer_ref as layer_ref6 } from "circuit-json";
17773
+ import { distance as distance24, layer_ref as layer_ref6 } from "circuit-json";
17772
17774
  import { z as z89 } from "zod";
17773
17775
  var viaProps = commonLayoutProps.extend({
17774
17776
  name: z89.string().optional(),
17775
17777
  fromLayer: layer_ref6.optional(),
17776
17778
  toLayer: layer_ref6.optional(),
17777
- holeDiameter: distance23.optional(),
17778
- outerDiameter: distance23.optional(),
17779
+ holeDiameter: distance24.optional(),
17780
+ outerDiameter: distance24.optional(),
17779
17781
  layers: z89.array(layer_ref6).optional(),
17780
17782
  connectsTo: z89.string().or(z89.array(z89.string())).optional(),
17781
17783
  netIsAssignable: z89.boolean().optional()
@@ -17783,7 +17785,7 @@ var viaProps = commonLayoutProps.extend({
17783
17785
  expectTypesMatch(true);
17784
17786
 
17785
17787
  // lib/components/testpoint.ts
17786
- import { distance as distance24 } from "circuit-json";
17788
+ import { distance as distance25 } from "circuit-json";
17787
17789
  import { z as z90 } from "zod";
17788
17790
  var testpointPins = ["pin1"];
17789
17791
  var testpointConnectionsProp = z90.object({
@@ -17793,10 +17795,10 @@ var testpointProps = commonComponentProps.extend({
17793
17795
  connections: testpointConnectionsProp.optional(),
17794
17796
  footprintVariant: z90.enum(["pad", "through_hole"]).optional(),
17795
17797
  padShape: z90.enum(["rect", "circle"]).optional().default("circle"),
17796
- padDiameter: distance24.optional(),
17797
- holeDiameter: distance24.optional(),
17798
- width: distance24.optional(),
17799
- height: distance24.optional()
17798
+ padDiameter: distance25.optional(),
17799
+ holeDiameter: distance25.optional(),
17800
+ width: distance25.optional(),
17801
+ height: distance25.optional()
17800
17802
  }).refine(
17801
17803
  (props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
17802
17804
  { message: "holeDiameter is required for through_hole testpoints" }
@@ -17811,29 +17813,29 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
17811
17813
  expectTypesMatch(true);
17812
17814
 
17813
17815
  // lib/components/pcb-keepout.ts
17814
- import { distance as distance25, layer_ref as layer_ref7 } from "circuit-json";
17816
+ import { distance as distance26, layer_ref as layer_ref7 } from "circuit-json";
17815
17817
  import { z as z92 } from "zod";
17816
17818
  var pcbKeepoutProps = z92.union([
17817
17819
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
17818
17820
  shape: z92.literal("circle"),
17819
- radius: distance25,
17821
+ radius: distance26,
17820
17822
  layers: z92.array(layer_ref7).optional()
17821
17823
  }),
17822
17824
  pcbLayoutProps.extend({
17823
17825
  shape: z92.literal("rect"),
17824
- width: distance25,
17825
- height: distance25,
17826
+ width: distance26,
17827
+ height: distance26,
17826
17828
  layers: z92.array(layer_ref7).optional()
17827
17829
  })
17828
17830
  ]);
17829
17831
 
17830
17832
  // lib/components/courtyard-rect.ts
17831
- import { distance as distance26 } from "circuit-json";
17833
+ import { distance as distance27 } from "circuit-json";
17832
17834
  import { z as z93 } from "zod";
17833
17835
  var courtyardRectProps = pcbLayoutProps.extend({
17834
- width: distance26,
17835
- height: distance26,
17836
- strokeWidth: distance26.optional(),
17836
+ width: distance27,
17837
+ height: distance27,
17838
+ strokeWidth: distance27.optional(),
17837
17839
  isFilled: z93.boolean().optional(),
17838
17840
  hasStroke: z93.boolean().optional(),
17839
17841
  isStrokeDashed: z93.boolean().optional(),
@@ -17862,19 +17864,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
17862
17864
  });
17863
17865
 
17864
17866
  // lib/components/courtyard-circle.ts
17865
- import { distance as distance27 } from "circuit-json";
17867
+ import { distance as distance28 } from "circuit-json";
17866
17868
  import "zod";
17867
17869
  var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17868
- radius: distance27
17870
+ radius: distance28
17869
17871
  });
17870
17872
 
17871
17873
  // lib/components/courtyard-pill.ts
17872
- import { distance as distance28 } from "circuit-json";
17874
+ import { distance as distance29 } from "circuit-json";
17873
17875
  import "zod";
17874
17876
  var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17875
- width: distance28,
17876
- height: distance28,
17877
- radius: distance28
17877
+ width: distance29,
17878
+ height: distance29,
17879
+ radius: distance29
17878
17880
  });
17879
17881
 
17880
17882
  // lib/components/copper-pour.ts
@@ -18025,15 +18027,15 @@ var ammeterPins = ammeterPinLabels;
18025
18027
  expectTypesMatch(true);
18026
18028
 
18027
18029
  // lib/components/schematic-arc.ts
18028
- import { distance as distance29, point as point5, rotation as rotation7 } from "circuit-json";
18030
+ import { distance as distance30, point as point5, rotation as rotation7 } from "circuit-json";
18029
18031
  import { z as z104 } from "zod";
18030
18032
  var schematicArcProps = z104.object({
18031
18033
  center: point5,
18032
- radius: distance29,
18034
+ radius: distance30,
18033
18035
  startAngleDegrees: rotation7,
18034
18036
  endAngleDegrees: rotation7,
18035
18037
  direction: z104.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
18036
- strokeWidth: distance29.optional(),
18038
+ strokeWidth: distance30.optional(),
18037
18039
  color: z104.string().optional(),
18038
18040
  isDashed: z104.boolean().optional().default(false)
18039
18041
  });
@@ -18047,23 +18049,23 @@ var toolingrailProps = z105.object({
18047
18049
  expectTypesMatch(true);
18048
18050
 
18049
18051
  // lib/components/schematic-box.ts
18050
- import { distance as distance30 } from "circuit-json";
18052
+ import { distance as distance31 } from "circuit-json";
18051
18053
  import { z as z106 } from "zod";
18052
18054
  var schematicBoxProps = z106.object({
18053
- schX: distance30.optional(),
18054
- schY: distance30.optional(),
18055
- width: distance30.optional(),
18056
- height: distance30.optional(),
18055
+ schX: distance31.optional(),
18056
+ schY: distance31.optional(),
18057
+ width: distance31.optional(),
18058
+ height: distance31.optional(),
18057
18059
  overlay: z106.array(z106.string()).optional(),
18058
- padding: distance30.optional(),
18059
- paddingLeft: distance30.optional(),
18060
- paddingRight: distance30.optional(),
18061
- paddingTop: distance30.optional(),
18062
- paddingBottom: distance30.optional(),
18060
+ padding: distance31.optional(),
18061
+ paddingLeft: distance31.optional(),
18062
+ paddingRight: distance31.optional(),
18063
+ paddingTop: distance31.optional(),
18064
+ paddingBottom: distance31.optional(),
18063
18065
  title: z106.string().optional(),
18064
18066
  titleAlignment: ninePointAnchor.default("top_left"),
18065
18067
  titleColor: z106.string().optional(),
18066
- titleFontSize: distance30.optional(),
18068
+ titleFontSize: distance31.optional(),
18067
18069
  titleInside: z106.boolean().default(false),
18068
18070
  strokeStyle: z106.enum(["solid", "dashed"]).default("solid")
18069
18071
  }).refine(
@@ -18080,12 +18082,12 @@ var schematicBoxProps = z106.object({
18080
18082
  expectTypesMatch(true);
18081
18083
 
18082
18084
  // lib/components/schematic-circle.ts
18083
- import { distance as distance31, point as point6 } from "circuit-json";
18085
+ import { distance as distance32, point as point6 } from "circuit-json";
18084
18086
  import { z as z107 } from "zod";
18085
18087
  var schematicCircleProps = z107.object({
18086
18088
  center: point6,
18087
- radius: distance31,
18088
- strokeWidth: distance31.optional(),
18089
+ radius: distance32,
18090
+ strokeWidth: distance32.optional(),
18089
18091
  color: z107.string().optional(),
18090
18092
  isFilled: z107.boolean().optional().default(false),
18091
18093
  fillColor: z107.string().optional(),
@@ -18096,15 +18098,15 @@ expectTypesMatch(
18096
18098
  );
18097
18099
 
18098
18100
  // lib/components/schematic-rect.ts
18099
- import { distance as distance32, rotation as rotation8 } from "circuit-json";
18101
+ import { distance as distance33, rotation as rotation8 } from "circuit-json";
18100
18102
  import { z as z108 } from "zod";
18101
18103
  var schematicRectProps = z108.object({
18102
- schX: distance32.optional(),
18103
- schY: distance32.optional(),
18104
- width: distance32,
18105
- height: distance32,
18104
+ schX: distance33.optional(),
18105
+ schY: distance33.optional(),
18106
+ width: distance33,
18107
+ height: distance33,
18106
18108
  rotation: rotation8.default(0),
18107
- strokeWidth: distance32.optional(),
18109
+ strokeWidth: distance33.optional(),
18108
18110
  color: z108.string().optional(),
18109
18111
  isFilled: z108.boolean().optional().default(false),
18110
18112
  fillColor: z108.string().optional(),
@@ -18113,23 +18115,23 @@ var schematicRectProps = z108.object({
18113
18115
  expectTypesMatch(true);
18114
18116
 
18115
18117
  // lib/components/schematic-line.ts
18116
- import { distance as distance33 } from "circuit-json";
18118
+ import { distance as distance34 } from "circuit-json";
18117
18119
  import { z as z109 } from "zod";
18118
18120
  var schematicLineProps = z109.object({
18119
- x1: distance33,
18120
- y1: distance33,
18121
- x2: distance33,
18122
- y2: distance33,
18123
- strokeWidth: distance33.optional(),
18121
+ x1: distance34,
18122
+ y1: distance34,
18123
+ x2: distance34,
18124
+ y2: distance34,
18125
+ strokeWidth: distance34.optional(),
18124
18126
  color: z109.string().optional(),
18125
18127
  isDashed: z109.boolean().optional().default(false),
18126
- dashLength: distance33.optional(),
18127
- dashGap: distance33.optional()
18128
+ dashLength: distance34.optional(),
18129
+ dashGap: distance34.optional()
18128
18130
  });
18129
18131
  expectTypesMatch(true);
18130
18132
 
18131
18133
  // lib/components/schematic-text.ts
18132
- import { distance as distance34, rotation as rotation9 } from "circuit-json";
18134
+ import { distance as distance35, rotation as rotation9 } from "circuit-json";
18133
18135
  import { z as z111 } from "zod";
18134
18136
 
18135
18137
  // lib/common/fivePointAnchor.ts
@@ -18144,8 +18146,8 @@ var fivePointAnchor = z110.enum([
18144
18146
 
18145
18147
  // lib/components/schematic-text.ts
18146
18148
  var schematicTextProps = z111.object({
18147
- schX: distance34.optional(),
18148
- schY: distance34.optional(),
18149
+ schX: distance35.optional(),
18150
+ schY: distance35.optional(),
18149
18151
  text: z111.string(),
18150
18152
  fontSize: z111.number().default(1),
18151
18153
  anchor: z111.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
@@ -18155,65 +18157,65 @@ var schematicTextProps = z111.object({
18155
18157
  expectTypesMatch(true);
18156
18158
 
18157
18159
  // lib/components/schematic-path.ts
18158
- import { distance as distance35, point as point7 } from "circuit-json";
18160
+ import { distance as distance36, point as point7 } from "circuit-json";
18159
18161
  import { z as z112 } from "zod";
18160
18162
  var schematicPathProps = z112.object({
18161
18163
  points: z112.array(point7).optional(),
18162
18164
  svgPath: z112.string().optional(),
18163
- strokeWidth: distance35.optional(),
18165
+ strokeWidth: distance36.optional(),
18164
18166
  strokeColor: z112.string().optional(),
18165
- dashLength: distance35.optional(),
18166
- dashGap: distance35.optional(),
18167
+ dashLength: distance36.optional(),
18168
+ dashGap: distance36.optional(),
18167
18169
  isFilled: z112.boolean().optional().default(false),
18168
18170
  fillColor: z112.string().optional()
18169
18171
  });
18170
18172
  expectTypesMatch(true);
18171
18173
 
18172
18174
  // lib/components/schematic-table.ts
18173
- import { distance as distance36 } from "circuit-json";
18175
+ import { distance as distance37 } from "circuit-json";
18174
18176
  import { z as z113 } from "zod";
18175
18177
  var schematicTableProps = z113.object({
18176
- schX: distance36.optional(),
18177
- schY: distance36.optional(),
18178
+ schX: distance37.optional(),
18179
+ schY: distance37.optional(),
18178
18180
  children: z113.any().optional(),
18179
- cellPadding: distance36.optional(),
18180
- borderWidth: distance36.optional(),
18181
+ cellPadding: distance37.optional(),
18182
+ borderWidth: distance37.optional(),
18181
18183
  anchor: ninePointAnchor.optional(),
18182
- fontSize: distance36.optional()
18184
+ fontSize: distance37.optional()
18183
18185
  });
18184
18186
  expectTypesMatch(true);
18185
18187
 
18186
18188
  // lib/components/schematic-row.ts
18187
- import { distance as distance37 } from "circuit-json";
18189
+ import { distance as distance38 } from "circuit-json";
18188
18190
  import { z as z114 } from "zod";
18189
18191
  var schematicRowProps = z114.object({
18190
18192
  children: z114.any().optional(),
18191
- height: distance37.optional()
18193
+ height: distance38.optional()
18192
18194
  });
18193
18195
  expectTypesMatch(true);
18194
18196
 
18195
18197
  // lib/components/schematic-cell.ts
18196
- import { distance as distance38 } from "circuit-json";
18198
+ import { distance as distance39 } from "circuit-json";
18197
18199
  import { z as z115 } from "zod";
18198
18200
  var schematicCellProps = z115.object({
18199
18201
  children: z115.string().optional(),
18200
18202
  horizontalAlign: z115.enum(["left", "center", "right"]).optional(),
18201
18203
  verticalAlign: z115.enum(["top", "middle", "bottom"]).optional(),
18202
- fontSize: distance38.optional(),
18204
+ fontSize: distance39.optional(),
18203
18205
  rowSpan: z115.number().optional(),
18204
18206
  colSpan: z115.number().optional(),
18205
- width: distance38.optional(),
18207
+ width: distance39.optional(),
18206
18208
  text: z115.string().optional()
18207
18209
  });
18208
18210
  expectTypesMatch(true);
18209
18211
 
18210
18212
  // lib/components/schematic-section.ts
18211
- import { distance as distance39 } from "circuit-json";
18213
+ import { distance as distance40 } from "circuit-json";
18212
18214
  import { z as z116 } from "zod";
18213
18215
  var schematicSectionProps = z116.object({
18214
18216
  displayName: z116.string().optional(),
18215
18217
  name: z116.string(),
18216
- sectionTitleFontSize: distance39.optional()
18218
+ sectionTitleFontSize: distance40.optional()
18217
18219
  });
18218
18220
  expectTypesMatch(
18219
18221
  true
@@ -18281,7 +18283,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18281
18283
  });
18282
18284
 
18283
18285
  // lib/components/silkscreen-line.ts
18284
- import { distance as distance40 } from "circuit-json";
18286
+ import { distance as distance41 } from "circuit-json";
18285
18287
  var silkscreenLineProps = pcbLayoutProps.omit({
18286
18288
  pcbX: true,
18287
18289
  pcbY: true,
@@ -18289,33 +18291,33 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18289
18291
  pcbOffsetY: true,
18290
18292
  pcbRotation: true
18291
18293
  }).extend({
18292
- strokeWidth: distance40,
18293
- x1: distance40,
18294
- y1: distance40,
18295
- x2: distance40,
18296
- y2: distance40
18294
+ strokeWidth: distance41,
18295
+ x1: distance41,
18296
+ y1: distance41,
18297
+ x2: distance41,
18298
+ y2: distance41
18297
18299
  });
18298
18300
 
18299
18301
  // lib/components/silkscreen-rect.ts
18300
- import { distance as distance41 } from "circuit-json";
18302
+ import { distance as distance42 } from "circuit-json";
18301
18303
  import { z as z121 } from "zod";
18302
18304
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18303
18305
  filled: z121.boolean().default(true).optional(),
18304
18306
  stroke: z121.enum(["dashed", "solid", "none"]).optional(),
18305
- strokeWidth: distance41.optional(),
18306
- width: distance41,
18307
- height: distance41,
18308
- cornerRadius: distance41.optional()
18307
+ strokeWidth: distance42.optional(),
18308
+ width: distance42,
18309
+ height: distance42,
18310
+ cornerRadius: distance42.optional()
18309
18311
  });
18310
18312
 
18311
18313
  // lib/components/silkscreen-circle.ts
18312
- import { distance as distance42 } from "circuit-json";
18314
+ import { distance as distance43 } from "circuit-json";
18313
18315
  import { z as z122 } from "zod";
18314
18316
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18315
18317
  isFilled: z122.boolean().optional(),
18316
18318
  isOutline: z122.boolean().optional(),
18317
- strokeWidth: distance42.optional(),
18318
- radius: distance42
18319
+ strokeWidth: distance43.optional(),
18320
+ radius: distance43
18319
18321
  });
18320
18322
 
18321
18323
  // lib/components/silkscreen-graphic.ts
@@ -18330,11 +18332,11 @@ var silkscreenGraphicProps = pcbLayoutProps.omit({ layer: true, pcbStyle: true,
18330
18332
  expectTypesMatch(true);
18331
18333
 
18332
18334
  // lib/components/trace-hint.ts
18333
- import { distance as distance43, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18335
+ import { distance as distance44, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18334
18336
  import { z as z124 } from "zod";
18335
18337
  var routeHintPointProps = z124.object({
18336
- x: distance43,
18337
- y: distance43,
18338
+ x: distance44,
18339
+ y: distance44,
18338
18340
  via: z124.boolean().optional(),
18339
18341
  toLayer: layer_ref12.optional()
18340
18342
  });
@@ -18378,17 +18380,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18378
18380
  expectTypesMatch(true);
18379
18381
 
18380
18382
  // lib/components/pcb-note-rect.ts
18381
- import { distance as distance44 } from "circuit-json";
18383
+ import { distance as distance45 } from "circuit-json";
18382
18384
  import { z as z127 } from "zod";
18383
18385
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18384
- width: distance44,
18385
- height: distance44,
18386
- strokeWidth: distance44.optional(),
18386
+ width: distance45,
18387
+ height: distance45,
18388
+ strokeWidth: distance45.optional(),
18387
18389
  isFilled: z127.boolean().optional(),
18388
18390
  hasStroke: z127.boolean().optional(),
18389
18391
  isStrokeDashed: z127.boolean().optional(),
18390
18392
  color: z127.string().optional(),
18391
- cornerRadius: distance44.optional()
18393
+ cornerRadius: distance45.optional()
18392
18394
  });
18393
18395
  expectTypesMatch(true);
18394
18396
 
@@ -18416,7 +18418,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18416
18418
  expectTypesMatch(true);
18417
18419
 
18418
18420
  // lib/components/pcb-note-line.ts
18419
- import { distance as distance45 } from "circuit-json";
18421
+ import { distance as distance46 } from "circuit-json";
18420
18422
  import { z as z129 } from "zod";
18421
18423
  var pcbNoteLineProps = pcbLayoutProps.omit({
18422
18424
  pcbLeftEdgeX: true,
@@ -18429,18 +18431,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18429
18431
  pcbOffsetY: true,
18430
18432
  pcbRotation: true
18431
18433
  }).extend({
18432
- x1: distance45,
18433
- y1: distance45,
18434
- x2: distance45,
18435
- y2: distance45,
18436
- strokeWidth: distance45.optional(),
18434
+ x1: distance46,
18435
+ y1: distance46,
18436
+ x2: distance46,
18437
+ y2: distance46,
18438
+ strokeWidth: distance46.optional(),
18437
18439
  color: z129.string().optional(),
18438
18440
  isDashed: z129.boolean().optional()
18439
18441
  });
18440
18442
  expectTypesMatch(true);
18441
18443
 
18442
18444
  // lib/components/pcb-note-dimension.ts
18443
- import { distance as distance46, length as length13 } from "circuit-json";
18445
+ import { distance as distance47, length as length13 } from "circuit-json";
18444
18446
  import { z as z130 } from "zod";
18445
18447
  var dimensionTarget2 = z130.union([z130.string(), point]);
18446
18448
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18457,11 +18459,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18457
18459
  from: dimensionTarget2,
18458
18460
  to: dimensionTarget2,
18459
18461
  text: z130.string().optional(),
18460
- offset: distance46.optional(),
18462
+ offset: distance47.optional(),
18461
18463
  font: z130.enum(["tscircuit2024"]).optional(),
18462
18464
  fontSize: length13.optional(),
18463
18465
  color: z130.string().optional(),
18464
- arrowSize: distance46.optional(),
18466
+ arrowSize: distance47.optional(),
18465
18467
  units: z130.enum(["in", "mm"]).optional(),
18466
18468
  outerEdgeToEdge: z130.literal(true).optional(),
18467
18469
  centerToCenter: z130.literal(true).optional(),