@tscircuit/props 0.0.570 → 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
 
@@ -17697,17 +17698,17 @@ var fabricationNoteTextProps = pcbLayoutProps.extend({
17697
17698
  expectTypesMatch(true);
17698
17699
 
17699
17700
  // lib/components/fabrication-note-rect.ts
17700
- import { distance as distance20 } from "circuit-json";
17701
+ import { distance as distance21 } from "circuit-json";
17701
17702
  import { z as z85 } from "zod";
17702
17703
  var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17703
- width: distance20,
17704
- height: distance20,
17705
- strokeWidth: distance20.optional(),
17704
+ width: distance21,
17705
+ height: distance21,
17706
+ strokeWidth: distance21.optional(),
17706
17707
  isFilled: z85.boolean().optional(),
17707
17708
  hasStroke: z85.boolean().optional(),
17708
17709
  isStrokeDashed: z85.boolean().optional(),
17709
17710
  color: z85.string().optional(),
17710
- cornerRadius: distance20.optional()
17711
+ cornerRadius: distance21.optional()
17711
17712
  });
17712
17713
 
17713
17714
  // lib/components/fabrication-note-path.ts
@@ -17730,7 +17731,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
17730
17731
  });
17731
17732
 
17732
17733
  // lib/components/fabrication-note-dimension.ts
17733
- import { distance as distance21, length as length6 } from "circuit-json";
17734
+ import { distance as distance22, length as length6 } from "circuit-json";
17734
17735
  import { z as z87 } from "zod";
17735
17736
  var dimensionTarget = z87.union([z87.string(), point]);
17736
17737
  var fabricationNoteDimensionProps = pcbLayoutProps.omit({
@@ -17747,11 +17748,11 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17747
17748
  from: dimensionTarget,
17748
17749
  to: dimensionTarget,
17749
17750
  text: z87.string().optional(),
17750
- offset: distance21.optional(),
17751
+ offset: distance22.optional(),
17751
17752
  font: z87.enum(["tscircuit2024"]).optional(),
17752
17753
  fontSize: length6.optional(),
17753
17754
  color: z87.string().optional(),
17754
- arrowSize: distance21.optional(),
17755
+ arrowSize: distance22.optional(),
17755
17756
  units: z87.enum(["in", "mm"]).optional(),
17756
17757
  outerEdgeToEdge: z87.literal(true).optional(),
17757
17758
  centerToCenter: z87.literal(true).optional(),
@@ -17760,23 +17761,23 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17760
17761
  expectTypesMatch(true);
17761
17762
 
17762
17763
  // lib/components/pcb-trace.ts
17763
- 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";
17764
17765
  import { z as z88 } from "zod";
17765
17766
  var pcbTraceProps = z88.object({
17766
17767
  layer: z88.string().optional(),
17767
- thickness: distance22.optional(),
17768
+ thickness: distance23.optional(),
17768
17769
  route: z88.array(route_hint_point4)
17769
17770
  });
17770
17771
 
17771
17772
  // lib/components/via.ts
17772
- 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";
17773
17774
  import { z as z89 } from "zod";
17774
17775
  var viaProps = commonLayoutProps.extend({
17775
17776
  name: z89.string().optional(),
17776
17777
  fromLayer: layer_ref6.optional(),
17777
17778
  toLayer: layer_ref6.optional(),
17778
- holeDiameter: distance23.optional(),
17779
- outerDiameter: distance23.optional(),
17779
+ holeDiameter: distance24.optional(),
17780
+ outerDiameter: distance24.optional(),
17780
17781
  layers: z89.array(layer_ref6).optional(),
17781
17782
  connectsTo: z89.string().or(z89.array(z89.string())).optional(),
17782
17783
  netIsAssignable: z89.boolean().optional()
@@ -17784,7 +17785,7 @@ var viaProps = commonLayoutProps.extend({
17784
17785
  expectTypesMatch(true);
17785
17786
 
17786
17787
  // lib/components/testpoint.ts
17787
- import { distance as distance24 } from "circuit-json";
17788
+ import { distance as distance25 } from "circuit-json";
17788
17789
  import { z as z90 } from "zod";
17789
17790
  var testpointPins = ["pin1"];
17790
17791
  var testpointConnectionsProp = z90.object({
@@ -17794,10 +17795,10 @@ var testpointProps = commonComponentProps.extend({
17794
17795
  connections: testpointConnectionsProp.optional(),
17795
17796
  footprintVariant: z90.enum(["pad", "through_hole"]).optional(),
17796
17797
  padShape: z90.enum(["rect", "circle"]).optional().default("circle"),
17797
- padDiameter: distance24.optional(),
17798
- holeDiameter: distance24.optional(),
17799
- width: distance24.optional(),
17800
- height: distance24.optional()
17798
+ padDiameter: distance25.optional(),
17799
+ holeDiameter: distance25.optional(),
17800
+ width: distance25.optional(),
17801
+ height: distance25.optional()
17801
17802
  }).refine(
17802
17803
  (props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
17803
17804
  { message: "holeDiameter is required for through_hole testpoints" }
@@ -17812,29 +17813,29 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
17812
17813
  expectTypesMatch(true);
17813
17814
 
17814
17815
  // lib/components/pcb-keepout.ts
17815
- 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";
17816
17817
  import { z as z92 } from "zod";
17817
17818
  var pcbKeepoutProps = z92.union([
17818
17819
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
17819
17820
  shape: z92.literal("circle"),
17820
- radius: distance25,
17821
+ radius: distance26,
17821
17822
  layers: z92.array(layer_ref7).optional()
17822
17823
  }),
17823
17824
  pcbLayoutProps.extend({
17824
17825
  shape: z92.literal("rect"),
17825
- width: distance25,
17826
- height: distance25,
17826
+ width: distance26,
17827
+ height: distance26,
17827
17828
  layers: z92.array(layer_ref7).optional()
17828
17829
  })
17829
17830
  ]);
17830
17831
 
17831
17832
  // lib/components/courtyard-rect.ts
17832
- import { distance as distance26 } from "circuit-json";
17833
+ import { distance as distance27 } from "circuit-json";
17833
17834
  import { z as z93 } from "zod";
17834
17835
  var courtyardRectProps = pcbLayoutProps.extend({
17835
- width: distance26,
17836
- height: distance26,
17837
- strokeWidth: distance26.optional(),
17836
+ width: distance27,
17837
+ height: distance27,
17838
+ strokeWidth: distance27.optional(),
17838
17839
  isFilled: z93.boolean().optional(),
17839
17840
  hasStroke: z93.boolean().optional(),
17840
17841
  isStrokeDashed: z93.boolean().optional(),
@@ -17863,19 +17864,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
17863
17864
  });
17864
17865
 
17865
17866
  // lib/components/courtyard-circle.ts
17866
- import { distance as distance27 } from "circuit-json";
17867
+ import { distance as distance28 } from "circuit-json";
17867
17868
  import "zod";
17868
17869
  var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17869
- radius: distance27
17870
+ radius: distance28
17870
17871
  });
17871
17872
 
17872
17873
  // lib/components/courtyard-pill.ts
17873
- import { distance as distance28 } from "circuit-json";
17874
+ import { distance as distance29 } from "circuit-json";
17874
17875
  import "zod";
17875
17876
  var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17876
- width: distance28,
17877
- height: distance28,
17878
- radius: distance28
17877
+ width: distance29,
17878
+ height: distance29,
17879
+ radius: distance29
17879
17880
  });
17880
17881
 
17881
17882
  // lib/components/copper-pour.ts
@@ -18026,15 +18027,15 @@ var ammeterPins = ammeterPinLabels;
18026
18027
  expectTypesMatch(true);
18027
18028
 
18028
18029
  // lib/components/schematic-arc.ts
18029
- 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";
18030
18031
  import { z as z104 } from "zod";
18031
18032
  var schematicArcProps = z104.object({
18032
18033
  center: point5,
18033
- radius: distance29,
18034
+ radius: distance30,
18034
18035
  startAngleDegrees: rotation7,
18035
18036
  endAngleDegrees: rotation7,
18036
18037
  direction: z104.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
18037
- strokeWidth: distance29.optional(),
18038
+ strokeWidth: distance30.optional(),
18038
18039
  color: z104.string().optional(),
18039
18040
  isDashed: z104.boolean().optional().default(false)
18040
18041
  });
@@ -18048,23 +18049,23 @@ var toolingrailProps = z105.object({
18048
18049
  expectTypesMatch(true);
18049
18050
 
18050
18051
  // lib/components/schematic-box.ts
18051
- import { distance as distance30 } from "circuit-json";
18052
+ import { distance as distance31 } from "circuit-json";
18052
18053
  import { z as z106 } from "zod";
18053
18054
  var schematicBoxProps = z106.object({
18054
- schX: distance30.optional(),
18055
- schY: distance30.optional(),
18056
- width: distance30.optional(),
18057
- height: distance30.optional(),
18055
+ schX: distance31.optional(),
18056
+ schY: distance31.optional(),
18057
+ width: distance31.optional(),
18058
+ height: distance31.optional(),
18058
18059
  overlay: z106.array(z106.string()).optional(),
18059
- padding: distance30.optional(),
18060
- paddingLeft: distance30.optional(),
18061
- paddingRight: distance30.optional(),
18062
- paddingTop: distance30.optional(),
18063
- paddingBottom: distance30.optional(),
18060
+ padding: distance31.optional(),
18061
+ paddingLeft: distance31.optional(),
18062
+ paddingRight: distance31.optional(),
18063
+ paddingTop: distance31.optional(),
18064
+ paddingBottom: distance31.optional(),
18064
18065
  title: z106.string().optional(),
18065
18066
  titleAlignment: ninePointAnchor.default("top_left"),
18066
18067
  titleColor: z106.string().optional(),
18067
- titleFontSize: distance30.optional(),
18068
+ titleFontSize: distance31.optional(),
18068
18069
  titleInside: z106.boolean().default(false),
18069
18070
  strokeStyle: z106.enum(["solid", "dashed"]).default("solid")
18070
18071
  }).refine(
@@ -18081,12 +18082,12 @@ var schematicBoxProps = z106.object({
18081
18082
  expectTypesMatch(true);
18082
18083
 
18083
18084
  // lib/components/schematic-circle.ts
18084
- import { distance as distance31, point as point6 } from "circuit-json";
18085
+ import { distance as distance32, point as point6 } from "circuit-json";
18085
18086
  import { z as z107 } from "zod";
18086
18087
  var schematicCircleProps = z107.object({
18087
18088
  center: point6,
18088
- radius: distance31,
18089
- strokeWidth: distance31.optional(),
18089
+ radius: distance32,
18090
+ strokeWidth: distance32.optional(),
18090
18091
  color: z107.string().optional(),
18091
18092
  isFilled: z107.boolean().optional().default(false),
18092
18093
  fillColor: z107.string().optional(),
@@ -18097,15 +18098,15 @@ expectTypesMatch(
18097
18098
  );
18098
18099
 
18099
18100
  // lib/components/schematic-rect.ts
18100
- import { distance as distance32, rotation as rotation8 } from "circuit-json";
18101
+ import { distance as distance33, rotation as rotation8 } from "circuit-json";
18101
18102
  import { z as z108 } from "zod";
18102
18103
  var schematicRectProps = z108.object({
18103
- schX: distance32.optional(),
18104
- schY: distance32.optional(),
18105
- width: distance32,
18106
- height: distance32,
18104
+ schX: distance33.optional(),
18105
+ schY: distance33.optional(),
18106
+ width: distance33,
18107
+ height: distance33,
18107
18108
  rotation: rotation8.default(0),
18108
- strokeWidth: distance32.optional(),
18109
+ strokeWidth: distance33.optional(),
18109
18110
  color: z108.string().optional(),
18110
18111
  isFilled: z108.boolean().optional().default(false),
18111
18112
  fillColor: z108.string().optional(),
@@ -18114,23 +18115,23 @@ var schematicRectProps = z108.object({
18114
18115
  expectTypesMatch(true);
18115
18116
 
18116
18117
  // lib/components/schematic-line.ts
18117
- import { distance as distance33 } from "circuit-json";
18118
+ import { distance as distance34 } from "circuit-json";
18118
18119
  import { z as z109 } from "zod";
18119
18120
  var schematicLineProps = z109.object({
18120
- x1: distance33,
18121
- y1: distance33,
18122
- x2: distance33,
18123
- y2: distance33,
18124
- strokeWidth: distance33.optional(),
18121
+ x1: distance34,
18122
+ y1: distance34,
18123
+ x2: distance34,
18124
+ y2: distance34,
18125
+ strokeWidth: distance34.optional(),
18125
18126
  color: z109.string().optional(),
18126
18127
  isDashed: z109.boolean().optional().default(false),
18127
- dashLength: distance33.optional(),
18128
- dashGap: distance33.optional()
18128
+ dashLength: distance34.optional(),
18129
+ dashGap: distance34.optional()
18129
18130
  });
18130
18131
  expectTypesMatch(true);
18131
18132
 
18132
18133
  // lib/components/schematic-text.ts
18133
- import { distance as distance34, rotation as rotation9 } from "circuit-json";
18134
+ import { distance as distance35, rotation as rotation9 } from "circuit-json";
18134
18135
  import { z as z111 } from "zod";
18135
18136
 
18136
18137
  // lib/common/fivePointAnchor.ts
@@ -18145,8 +18146,8 @@ var fivePointAnchor = z110.enum([
18145
18146
 
18146
18147
  // lib/components/schematic-text.ts
18147
18148
  var schematicTextProps = z111.object({
18148
- schX: distance34.optional(),
18149
- schY: distance34.optional(),
18149
+ schX: distance35.optional(),
18150
+ schY: distance35.optional(),
18150
18151
  text: z111.string(),
18151
18152
  fontSize: z111.number().default(1),
18152
18153
  anchor: z111.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
@@ -18156,65 +18157,65 @@ var schematicTextProps = z111.object({
18156
18157
  expectTypesMatch(true);
18157
18158
 
18158
18159
  // lib/components/schematic-path.ts
18159
- import { distance as distance35, point as point7 } from "circuit-json";
18160
+ import { distance as distance36, point as point7 } from "circuit-json";
18160
18161
  import { z as z112 } from "zod";
18161
18162
  var schematicPathProps = z112.object({
18162
18163
  points: z112.array(point7).optional(),
18163
18164
  svgPath: z112.string().optional(),
18164
- strokeWidth: distance35.optional(),
18165
+ strokeWidth: distance36.optional(),
18165
18166
  strokeColor: z112.string().optional(),
18166
- dashLength: distance35.optional(),
18167
- dashGap: distance35.optional(),
18167
+ dashLength: distance36.optional(),
18168
+ dashGap: distance36.optional(),
18168
18169
  isFilled: z112.boolean().optional().default(false),
18169
18170
  fillColor: z112.string().optional()
18170
18171
  });
18171
18172
  expectTypesMatch(true);
18172
18173
 
18173
18174
  // lib/components/schematic-table.ts
18174
- import { distance as distance36 } from "circuit-json";
18175
+ import { distance as distance37 } from "circuit-json";
18175
18176
  import { z as z113 } from "zod";
18176
18177
  var schematicTableProps = z113.object({
18177
- schX: distance36.optional(),
18178
- schY: distance36.optional(),
18178
+ schX: distance37.optional(),
18179
+ schY: distance37.optional(),
18179
18180
  children: z113.any().optional(),
18180
- cellPadding: distance36.optional(),
18181
- borderWidth: distance36.optional(),
18181
+ cellPadding: distance37.optional(),
18182
+ borderWidth: distance37.optional(),
18182
18183
  anchor: ninePointAnchor.optional(),
18183
- fontSize: distance36.optional()
18184
+ fontSize: distance37.optional()
18184
18185
  });
18185
18186
  expectTypesMatch(true);
18186
18187
 
18187
18188
  // lib/components/schematic-row.ts
18188
- import { distance as distance37 } from "circuit-json";
18189
+ import { distance as distance38 } from "circuit-json";
18189
18190
  import { z as z114 } from "zod";
18190
18191
  var schematicRowProps = z114.object({
18191
18192
  children: z114.any().optional(),
18192
- height: distance37.optional()
18193
+ height: distance38.optional()
18193
18194
  });
18194
18195
  expectTypesMatch(true);
18195
18196
 
18196
18197
  // lib/components/schematic-cell.ts
18197
- import { distance as distance38 } from "circuit-json";
18198
+ import { distance as distance39 } from "circuit-json";
18198
18199
  import { z as z115 } from "zod";
18199
18200
  var schematicCellProps = z115.object({
18200
18201
  children: z115.string().optional(),
18201
18202
  horizontalAlign: z115.enum(["left", "center", "right"]).optional(),
18202
18203
  verticalAlign: z115.enum(["top", "middle", "bottom"]).optional(),
18203
- fontSize: distance38.optional(),
18204
+ fontSize: distance39.optional(),
18204
18205
  rowSpan: z115.number().optional(),
18205
18206
  colSpan: z115.number().optional(),
18206
- width: distance38.optional(),
18207
+ width: distance39.optional(),
18207
18208
  text: z115.string().optional()
18208
18209
  });
18209
18210
  expectTypesMatch(true);
18210
18211
 
18211
18212
  // lib/components/schematic-section.ts
18212
- import { distance as distance39 } from "circuit-json";
18213
+ import { distance as distance40 } from "circuit-json";
18213
18214
  import { z as z116 } from "zod";
18214
18215
  var schematicSectionProps = z116.object({
18215
18216
  displayName: z116.string().optional(),
18216
18217
  name: z116.string(),
18217
- sectionTitleFontSize: distance39.optional()
18218
+ sectionTitleFontSize: distance40.optional()
18218
18219
  });
18219
18220
  expectTypesMatch(
18220
18221
  true
@@ -18282,7 +18283,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18282
18283
  });
18283
18284
 
18284
18285
  // lib/components/silkscreen-line.ts
18285
- import { distance as distance40 } from "circuit-json";
18286
+ import { distance as distance41 } from "circuit-json";
18286
18287
  var silkscreenLineProps = pcbLayoutProps.omit({
18287
18288
  pcbX: true,
18288
18289
  pcbY: true,
@@ -18290,33 +18291,33 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18290
18291
  pcbOffsetY: true,
18291
18292
  pcbRotation: true
18292
18293
  }).extend({
18293
- strokeWidth: distance40,
18294
- x1: distance40,
18295
- y1: distance40,
18296
- x2: distance40,
18297
- y2: distance40
18294
+ strokeWidth: distance41,
18295
+ x1: distance41,
18296
+ y1: distance41,
18297
+ x2: distance41,
18298
+ y2: distance41
18298
18299
  });
18299
18300
 
18300
18301
  // lib/components/silkscreen-rect.ts
18301
- import { distance as distance41 } from "circuit-json";
18302
+ import { distance as distance42 } from "circuit-json";
18302
18303
  import { z as z121 } from "zod";
18303
18304
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18304
18305
  filled: z121.boolean().default(true).optional(),
18305
18306
  stroke: z121.enum(["dashed", "solid", "none"]).optional(),
18306
- strokeWidth: distance41.optional(),
18307
- width: distance41,
18308
- height: distance41,
18309
- cornerRadius: distance41.optional()
18307
+ strokeWidth: distance42.optional(),
18308
+ width: distance42,
18309
+ height: distance42,
18310
+ cornerRadius: distance42.optional()
18310
18311
  });
18311
18312
 
18312
18313
  // lib/components/silkscreen-circle.ts
18313
- import { distance as distance42 } from "circuit-json";
18314
+ import { distance as distance43 } from "circuit-json";
18314
18315
  import { z as z122 } from "zod";
18315
18316
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18316
18317
  isFilled: z122.boolean().optional(),
18317
18318
  isOutline: z122.boolean().optional(),
18318
- strokeWidth: distance42.optional(),
18319
- radius: distance42
18319
+ strokeWidth: distance43.optional(),
18320
+ radius: distance43
18320
18321
  });
18321
18322
 
18322
18323
  // lib/components/silkscreen-graphic.ts
@@ -18331,11 +18332,11 @@ var silkscreenGraphicProps = pcbLayoutProps.omit({ layer: true, pcbStyle: true,
18331
18332
  expectTypesMatch(true);
18332
18333
 
18333
18334
  // lib/components/trace-hint.ts
18334
- 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";
18335
18336
  import { z as z124 } from "zod";
18336
18337
  var routeHintPointProps = z124.object({
18337
- x: distance43,
18338
- y: distance43,
18338
+ x: distance44,
18339
+ y: distance44,
18339
18340
  via: z124.boolean().optional(),
18340
18341
  toLayer: layer_ref12.optional()
18341
18342
  });
@@ -18379,17 +18380,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18379
18380
  expectTypesMatch(true);
18380
18381
 
18381
18382
  // lib/components/pcb-note-rect.ts
18382
- import { distance as distance44 } from "circuit-json";
18383
+ import { distance as distance45 } from "circuit-json";
18383
18384
  import { z as z127 } from "zod";
18384
18385
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18385
- width: distance44,
18386
- height: distance44,
18387
- strokeWidth: distance44.optional(),
18386
+ width: distance45,
18387
+ height: distance45,
18388
+ strokeWidth: distance45.optional(),
18388
18389
  isFilled: z127.boolean().optional(),
18389
18390
  hasStroke: z127.boolean().optional(),
18390
18391
  isStrokeDashed: z127.boolean().optional(),
18391
18392
  color: z127.string().optional(),
18392
- cornerRadius: distance44.optional()
18393
+ cornerRadius: distance45.optional()
18393
18394
  });
18394
18395
  expectTypesMatch(true);
18395
18396
 
@@ -18417,7 +18418,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18417
18418
  expectTypesMatch(true);
18418
18419
 
18419
18420
  // lib/components/pcb-note-line.ts
18420
- import { distance as distance45 } from "circuit-json";
18421
+ import { distance as distance46 } from "circuit-json";
18421
18422
  import { z as z129 } from "zod";
18422
18423
  var pcbNoteLineProps = pcbLayoutProps.omit({
18423
18424
  pcbLeftEdgeX: true,
@@ -18430,18 +18431,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18430
18431
  pcbOffsetY: true,
18431
18432
  pcbRotation: true
18432
18433
  }).extend({
18433
- x1: distance45,
18434
- y1: distance45,
18435
- x2: distance45,
18436
- y2: distance45,
18437
- strokeWidth: distance45.optional(),
18434
+ x1: distance46,
18435
+ y1: distance46,
18436
+ x2: distance46,
18437
+ y2: distance46,
18438
+ strokeWidth: distance46.optional(),
18438
18439
  color: z129.string().optional(),
18439
18440
  isDashed: z129.boolean().optional()
18440
18441
  });
18441
18442
  expectTypesMatch(true);
18442
18443
 
18443
18444
  // lib/components/pcb-note-dimension.ts
18444
- import { distance as distance46, length as length13 } from "circuit-json";
18445
+ import { distance as distance47, length as length13 } from "circuit-json";
18445
18446
  import { z as z130 } from "zod";
18446
18447
  var dimensionTarget2 = z130.union([z130.string(), point]);
18447
18448
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18458,11 +18459,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18458
18459
  from: dimensionTarget2,
18459
18460
  to: dimensionTarget2,
18460
18461
  text: z130.string().optional(),
18461
- offset: distance46.optional(),
18462
+ offset: distance47.optional(),
18462
18463
  font: z130.enum(["tscircuit2024"]).optional(),
18463
18464
  fontSize: length13.optional(),
18464
18465
  color: z130.string().optional(),
18465
- arrowSize: distance46.optional(),
18466
+ arrowSize: distance47.optional(),
18466
18467
  units: z130.enum(["in", "mm"]).optional(),
18467
18468
  outerEdgeToEdge: z130.literal(true).optional(),
18468
18469
  centerToCenter: z130.literal(true).optional(),