@tscircuit/props 0.0.570 → 0.0.572

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