@tscircuit/props 0.0.531 → 0.0.533

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
@@ -16911,6 +16911,7 @@ var capacitorPins = lrPolarPins;
16911
16911
  expectTypesMatch(true);
16912
16912
 
16913
16913
  // lib/components/net.ts
16914
+ import { distance as distance17 } from "circuit-json";
16914
16915
  import { z as z54 } from "zod";
16915
16916
  var netProps = z54.object({
16916
16917
  name: z54.string(),
@@ -16918,7 +16919,8 @@ var netProps = z54.object({
16918
16919
  routingPhaseIndex: z54.number().nullable().optional(),
16919
16920
  highlightColor: z54.string().optional(),
16920
16921
  isPowerNet: z54.boolean().optional(),
16921
- isGroundNet: z54.boolean().optional()
16922
+ isGroundNet: z54.boolean().optional(),
16923
+ nominalTraceWidth: distance17.optional()
16922
16924
  });
16923
16925
  expectTypesMatch(true);
16924
16926
 
@@ -17152,7 +17154,7 @@ var holeProps = z61.union([
17152
17154
  expectTypesMatch(true);
17153
17155
 
17154
17156
  // lib/components/trace.ts
17155
- import { distance as distance17, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
17157
+ import { distance as distance18, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
17156
17158
  import { z as z62 } from "zod";
17157
17159
  var portRef = z62.union([
17158
17160
  z62.string(),
@@ -17184,8 +17186,8 @@ var pcbPathPoint = point.extend({
17184
17186
  var pcbPath = z62.array(z62.union([pcbPathPoint, z62.string()]));
17185
17187
  var baseTraceProps = z62.object({
17186
17188
  key: z62.string().optional(),
17187
- thickness: distance17.optional(),
17188
- width: distance17.optional().describe("Alias for trace thickness"),
17189
+ thickness: distance18.optional(),
17190
+ width: distance18.optional().describe("Alias for trace thickness"),
17189
17191
  schematicRouteHints: z62.array(point).optional(),
17190
17192
  pcbRouteHints: z62.array(route_hint_point2).optional(),
17191
17193
  pcbPathRelativeTo: z62.string().optional(),
@@ -17196,7 +17198,7 @@ var baseTraceProps = z62.object({
17196
17198
  schDisplayLabel: z62.string().optional(),
17197
17199
  schStroke: z62.string().optional(),
17198
17200
  highlightColor: z62.string().optional(),
17199
- maxLength: distance17.optional(),
17201
+ maxLength: distance18.optional(),
17200
17202
  connectsTo: z62.string().or(z62.array(z62.string())).optional()
17201
17203
  });
17202
17204
  var traceProps = z62.union([
@@ -17286,7 +17288,7 @@ var mountedboardProps = subcircuitGroupProps.extend({
17286
17288
  expectTypesMatch(true);
17287
17289
 
17288
17290
  // lib/components/pin-header.ts
17289
- import { distance as distance18 } from "circuit-json";
17291
+ import { distance as distance19 } from "circuit-json";
17290
17292
 
17291
17293
  // lib/common/pcbOrientation.ts
17292
17294
  import { z as z67 } from "zod";
@@ -17299,7 +17301,7 @@ expectTypesMatch(true);
17299
17301
  import { z as z68 } from "zod";
17300
17302
  var pinHeaderProps = commonComponentProps.extend({
17301
17303
  pinCount: z68.number(),
17302
- pitch: distance18.optional(),
17304
+ pitch: distance19.optional(),
17303
17305
  schFacingDirection: z68.enum(["up", "down", "left", "right"]).optional(),
17304
17306
  gender: z68.enum(["male", "female", "unpopulated"]).optional().default("male"),
17305
17307
  showSilkscreenPinLabels: z68.boolean().optional(),
@@ -17307,16 +17309,16 @@ var pinHeaderProps = commonComponentProps.extend({
17307
17309
  doubleRow: z68.boolean().optional(),
17308
17310
  rightAngle: z68.boolean().optional(),
17309
17311
  pcbOrientation: pcbOrientation.optional(),
17310
- holeDiameter: distance18.optional(),
17311
- platedDiameter: distance18.optional(),
17312
+ holeDiameter: distance19.optional(),
17313
+ platedDiameter: distance19.optional(),
17312
17314
  pinLabels: z68.record(z68.string(), schematicPinLabel).or(z68.array(schematicPinLabel)).optional(),
17313
17315
  connections: z68.custom().pipe(z68.record(z68.string(), connectionTarget)).optional(),
17314
17316
  facingDirection: z68.enum(["left", "right"]).optional(),
17315
17317
  schPinArrangement: schematicPinArrangement.optional(),
17316
17318
  schPinStyle: schematicPinStyle.optional(),
17317
- schPinSpacing: distance18.optional(),
17318
- schWidth: distance18.optional(),
17319
- schHeight: distance18.optional()
17319
+ schPinSpacing: distance19.optional(),
17320
+ schWidth: distance19.optional(),
17321
+ schHeight: distance19.optional()
17320
17322
  });
17321
17323
  expectTypesMatch(true);
17322
17324
 
@@ -17629,17 +17631,17 @@ var fabricationNoteTextProps = pcbLayoutProps.extend({
17629
17631
  expectTypesMatch(true);
17630
17632
 
17631
17633
  // lib/components/fabrication-note-rect.ts
17632
- import { distance as distance19 } from "circuit-json";
17634
+ import { distance as distance20 } from "circuit-json";
17633
17635
  import { z as z82 } from "zod";
17634
17636
  var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17635
- width: distance19,
17636
- height: distance19,
17637
- strokeWidth: distance19.optional(),
17637
+ width: distance20,
17638
+ height: distance20,
17639
+ strokeWidth: distance20.optional(),
17638
17640
  isFilled: z82.boolean().optional(),
17639
17641
  hasStroke: z82.boolean().optional(),
17640
17642
  isStrokeDashed: z82.boolean().optional(),
17641
17643
  color: z82.string().optional(),
17642
- cornerRadius: distance19.optional()
17644
+ cornerRadius: distance20.optional()
17643
17645
  });
17644
17646
 
17645
17647
  // lib/components/fabrication-note-path.ts
@@ -17662,7 +17664,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
17662
17664
  });
17663
17665
 
17664
17666
  // lib/components/fabrication-note-dimension.ts
17665
- import { distance as distance20, length as length6 } from "circuit-json";
17667
+ import { distance as distance21, length as length6 } from "circuit-json";
17666
17668
  import { z as z84 } from "zod";
17667
17669
  var dimensionTarget = z84.union([z84.string(), point]);
17668
17670
  var fabricationNoteDimensionProps = pcbLayoutProps.omit({
@@ -17679,11 +17681,11 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17679
17681
  from: dimensionTarget,
17680
17682
  to: dimensionTarget,
17681
17683
  text: z84.string().optional(),
17682
- offset: distance20.optional(),
17684
+ offset: distance21.optional(),
17683
17685
  font: z84.enum(["tscircuit2024"]).optional(),
17684
17686
  fontSize: length6.optional(),
17685
17687
  color: z84.string().optional(),
17686
- arrowSize: distance20.optional(),
17688
+ arrowSize: distance21.optional(),
17687
17689
  units: z84.enum(["in", "mm"]).optional(),
17688
17690
  outerEdgeToEdge: z84.literal(true).optional(),
17689
17691
  centerToCenter: z84.literal(true).optional(),
@@ -17692,30 +17694,31 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17692
17694
  expectTypesMatch(true);
17693
17695
 
17694
17696
  // lib/components/pcb-trace.ts
17695
- import { distance as distance21, route_hint_point as route_hint_point4 } from "circuit-json";
17697
+ import { distance as distance22, route_hint_point as route_hint_point4 } from "circuit-json";
17696
17698
  import { z as z85 } from "zod";
17697
17699
  var pcbTraceProps = z85.object({
17698
17700
  layer: z85.string().optional(),
17699
- thickness: distance21.optional(),
17701
+ thickness: distance22.optional(),
17700
17702
  route: z85.array(route_hint_point4)
17701
17703
  });
17702
17704
 
17703
17705
  // lib/components/via.ts
17704
- import { distance as distance22, layer_ref as layer_ref6 } from "circuit-json";
17706
+ import { distance as distance23, layer_ref as layer_ref6 } from "circuit-json";
17705
17707
  import { z as z86 } from "zod";
17706
17708
  var viaProps = commonLayoutProps.extend({
17707
17709
  name: z86.string().optional(),
17708
- fromLayer: layer_ref6,
17709
- toLayer: layer_ref6,
17710
- holeDiameter: distance22.optional(),
17711
- outerDiameter: distance22.optional(),
17710
+ fromLayer: layer_ref6.optional(),
17711
+ toLayer: layer_ref6.optional(),
17712
+ holeDiameter: distance23.optional(),
17713
+ outerDiameter: distance23.optional(),
17714
+ layers: z86.array(layer_ref6).optional(),
17712
17715
  connectsTo: z86.string().or(z86.array(z86.string())).optional(),
17713
17716
  netIsAssignable: z86.boolean().optional()
17714
17717
  });
17715
17718
  expectTypesMatch(true);
17716
17719
 
17717
17720
  // lib/components/testpoint.ts
17718
- import { distance as distance23 } from "circuit-json";
17721
+ import { distance as distance24 } from "circuit-json";
17719
17722
  import { z as z87 } from "zod";
17720
17723
  var testpointPins = ["pin1"];
17721
17724
  var testpointConnectionsProp = z87.object({
@@ -17725,10 +17728,10 @@ var testpointProps = commonComponentProps.extend({
17725
17728
  connections: testpointConnectionsProp.optional(),
17726
17729
  footprintVariant: z87.enum(["pad", "through_hole"]).optional(),
17727
17730
  padShape: z87.enum(["rect", "circle"]).optional().default("circle"),
17728
- padDiameter: distance23.optional(),
17729
- holeDiameter: distance23.optional(),
17730
- width: distance23.optional(),
17731
- height: distance23.optional()
17731
+ padDiameter: distance24.optional(),
17732
+ holeDiameter: distance24.optional(),
17733
+ width: distance24.optional(),
17734
+ height: distance24.optional()
17732
17735
  }).refine(
17733
17736
  (props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
17734
17737
  { message: "holeDiameter is required for through_hole testpoints" }
@@ -17743,29 +17746,29 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
17743
17746
  expectTypesMatch(true);
17744
17747
 
17745
17748
  // lib/components/pcb-keepout.ts
17746
- import { distance as distance24, layer_ref as layer_ref7 } from "circuit-json";
17749
+ import { distance as distance25, layer_ref as layer_ref7 } from "circuit-json";
17747
17750
  import { z as z89 } from "zod";
17748
17751
  var pcbKeepoutProps = z89.union([
17749
17752
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
17750
17753
  shape: z89.literal("circle"),
17751
- radius: distance24,
17754
+ radius: distance25,
17752
17755
  layers: z89.array(layer_ref7).optional()
17753
17756
  }),
17754
17757
  pcbLayoutProps.extend({
17755
17758
  shape: z89.literal("rect"),
17756
- width: distance24,
17757
- height: distance24,
17759
+ width: distance25,
17760
+ height: distance25,
17758
17761
  layers: z89.array(layer_ref7).optional()
17759
17762
  })
17760
17763
  ]);
17761
17764
 
17762
17765
  // lib/components/courtyard-rect.ts
17763
- import { distance as distance25 } from "circuit-json";
17766
+ import { distance as distance26 } from "circuit-json";
17764
17767
  import { z as z90 } from "zod";
17765
17768
  var courtyardRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17766
- width: distance25,
17767
- height: distance25,
17768
- strokeWidth: distance25.optional(),
17769
+ width: distance26,
17770
+ height: distance26,
17771
+ strokeWidth: distance26.optional(),
17769
17772
  isFilled: z90.boolean().optional(),
17770
17773
  hasStroke: z90.boolean().optional(),
17771
17774
  isStrokeDashed: z90.boolean().optional(),
@@ -17794,19 +17797,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
17794
17797
  });
17795
17798
 
17796
17799
  // lib/components/courtyard-circle.ts
17797
- import { distance as distance26 } from "circuit-json";
17800
+ import { distance as distance27 } from "circuit-json";
17798
17801
  import "zod";
17799
17802
  var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17800
- radius: distance26
17803
+ radius: distance27
17801
17804
  });
17802
17805
 
17803
17806
  // lib/components/courtyard-pill.ts
17804
- import { distance as distance27 } from "circuit-json";
17807
+ import { distance as distance28 } from "circuit-json";
17805
17808
  import "zod";
17806
17809
  var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17807
- width: distance27,
17808
- height: distance27,
17809
- radius: distance27
17810
+ width: distance28,
17811
+ height: distance28,
17812
+ radius: distance28
17810
17813
  });
17811
17814
 
17812
17815
  // lib/components/copper-pour.ts
@@ -17928,15 +17931,15 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
17928
17931
  expectTypesMatch(true);
17929
17932
 
17930
17933
  // lib/components/schematic-arc.ts
17931
- import { distance as distance28, point as point5, rotation as rotation7 } from "circuit-json";
17934
+ import { distance as distance29, point as point5, rotation as rotation7 } from "circuit-json";
17932
17935
  import { z as z100 } from "zod";
17933
17936
  var schematicArcProps = z100.object({
17934
17937
  center: point5,
17935
- radius: distance28,
17938
+ radius: distance29,
17936
17939
  startAngleDegrees: rotation7,
17937
17940
  endAngleDegrees: rotation7,
17938
17941
  direction: z100.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
17939
- strokeWidth: distance28.optional(),
17942
+ strokeWidth: distance29.optional(),
17940
17943
  color: z100.string().optional(),
17941
17944
  isDashed: z100.boolean().optional().default(false)
17942
17945
  });
@@ -17950,23 +17953,23 @@ var toolingrailProps = z101.object({
17950
17953
  expectTypesMatch(true);
17951
17954
 
17952
17955
  // lib/components/schematic-box.ts
17953
- import { distance as distance29 } from "circuit-json";
17956
+ import { distance as distance30 } from "circuit-json";
17954
17957
  import { z as z102 } from "zod";
17955
17958
  var schematicBoxProps = z102.object({
17956
- schX: distance29.optional(),
17957
- schY: distance29.optional(),
17958
- width: distance29.optional(),
17959
- height: distance29.optional(),
17959
+ schX: distance30.optional(),
17960
+ schY: distance30.optional(),
17961
+ width: distance30.optional(),
17962
+ height: distance30.optional(),
17960
17963
  overlay: z102.array(z102.string()).optional(),
17961
- padding: distance29.optional(),
17962
- paddingLeft: distance29.optional(),
17963
- paddingRight: distance29.optional(),
17964
- paddingTop: distance29.optional(),
17965
- paddingBottom: distance29.optional(),
17964
+ padding: distance30.optional(),
17965
+ paddingLeft: distance30.optional(),
17966
+ paddingRight: distance30.optional(),
17967
+ paddingTop: distance30.optional(),
17968
+ paddingBottom: distance30.optional(),
17966
17969
  title: z102.string().optional(),
17967
17970
  titleAlignment: ninePointAnchor.default("top_left"),
17968
17971
  titleColor: z102.string().optional(),
17969
- titleFontSize: distance29.optional(),
17972
+ titleFontSize: distance30.optional(),
17970
17973
  titleInside: z102.boolean().default(false),
17971
17974
  strokeStyle: z102.enum(["solid", "dashed"]).default("solid")
17972
17975
  }).refine(
@@ -17983,12 +17986,12 @@ var schematicBoxProps = z102.object({
17983
17986
  expectTypesMatch(true);
17984
17987
 
17985
17988
  // lib/components/schematic-circle.ts
17986
- import { distance as distance30, point as point6 } from "circuit-json";
17989
+ import { distance as distance31, point as point6 } from "circuit-json";
17987
17990
  import { z as z103 } from "zod";
17988
17991
  var schematicCircleProps = z103.object({
17989
17992
  center: point6,
17990
- radius: distance30,
17991
- strokeWidth: distance30.optional(),
17993
+ radius: distance31,
17994
+ strokeWidth: distance31.optional(),
17992
17995
  color: z103.string().optional(),
17993
17996
  isFilled: z103.boolean().optional().default(false),
17994
17997
  fillColor: z103.string().optional(),
@@ -17999,39 +18002,39 @@ expectTypesMatch(
17999
18002
  );
18000
18003
 
18001
18004
  // lib/components/schematic-rect.ts
18002
- import { distance as distance31, rotation as rotation8 } from "circuit-json";
18005
+ import { distance as distance32, rotation as rotation8 } from "circuit-json";
18003
18006
  import { z as z104 } from "zod";
18004
18007
  var schematicRectProps = z104.object({
18005
- schX: distance31.optional(),
18006
- schY: distance31.optional(),
18007
- width: distance31,
18008
- height: distance31,
18008
+ schX: distance32.optional(),
18009
+ schY: distance32.optional(),
18010
+ width: distance32,
18011
+ height: distance32,
18009
18012
  rotation: rotation8.default(0),
18010
- strokeWidth: distance31.optional(),
18013
+ strokeWidth: distance32.optional(),
18011
18014
  color: z104.string().optional(),
18012
18015
  isFilled: z104.boolean().optional().default(false),
18013
18016
  fillColor: z104.string().optional(),
18014
18017
  isDashed: z104.boolean().optional().default(false),
18015
- cornerRadius: distance31.optional()
18018
+ cornerRadius: distance32.optional()
18016
18019
  });
18017
18020
  expectTypesMatch(true);
18018
18021
 
18019
18022
  // lib/components/schematic-line.ts
18020
- import { distance as distance32 } from "circuit-json";
18023
+ import { distance as distance33 } from "circuit-json";
18021
18024
  import { z as z105 } from "zod";
18022
18025
  var schematicLineProps = z105.object({
18023
- x1: distance32,
18024
- y1: distance32,
18025
- x2: distance32,
18026
- y2: distance32,
18027
- strokeWidth: distance32.optional(),
18026
+ x1: distance33,
18027
+ y1: distance33,
18028
+ x2: distance33,
18029
+ y2: distance33,
18030
+ strokeWidth: distance33.optional(),
18028
18031
  color: z105.string().optional(),
18029
18032
  isDashed: z105.boolean().optional().default(false)
18030
18033
  });
18031
18034
  expectTypesMatch(true);
18032
18035
 
18033
18036
  // lib/components/schematic-text.ts
18034
- import { distance as distance33, rotation as rotation9 } from "circuit-json";
18037
+ import { distance as distance34, rotation as rotation9 } from "circuit-json";
18035
18038
  import { z as z107 } from "zod";
18036
18039
 
18037
18040
  // lib/common/fivePointAnchor.ts
@@ -18046,8 +18049,8 @@ var fivePointAnchor = z106.enum([
18046
18049
 
18047
18050
  // lib/components/schematic-text.ts
18048
18051
  var schematicTextProps = z107.object({
18049
- schX: distance33.optional(),
18050
- schY: distance33.optional(),
18052
+ schX: distance34.optional(),
18053
+ schY: distance34.optional(),
18051
18054
  text: z107.string(),
18052
18055
  fontSize: z107.number().default(1),
18053
18056
  anchor: z107.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
@@ -18057,12 +18060,12 @@ var schematicTextProps = z107.object({
18057
18060
  expectTypesMatch(true);
18058
18061
 
18059
18062
  // lib/components/schematic-path.ts
18060
- import { distance as distance34, point as point8 } from "circuit-json";
18063
+ import { distance as distance35, point as point8 } from "circuit-json";
18061
18064
  import { z as z108 } from "zod";
18062
18065
  var schematicPathProps = z108.object({
18063
18066
  points: z108.array(point8).optional(),
18064
18067
  svgPath: z108.string().optional(),
18065
- strokeWidth: distance34.optional(),
18068
+ strokeWidth: distance35.optional(),
18066
18069
  strokeColor: z108.string().optional(),
18067
18070
  isFilled: z108.boolean().optional().default(false),
18068
18071
  fillColor: z108.string().optional()
@@ -18070,39 +18073,39 @@ var schematicPathProps = z108.object({
18070
18073
  expectTypesMatch(true);
18071
18074
 
18072
18075
  // lib/components/schematic-table.ts
18073
- import { distance as distance35 } from "circuit-json";
18076
+ import { distance as distance36 } from "circuit-json";
18074
18077
  import { z as z109 } from "zod";
18075
18078
  var schematicTableProps = z109.object({
18076
- schX: distance35.optional(),
18077
- schY: distance35.optional(),
18079
+ schX: distance36.optional(),
18080
+ schY: distance36.optional(),
18078
18081
  children: z109.any().optional(),
18079
- cellPadding: distance35.optional(),
18080
- borderWidth: distance35.optional(),
18082
+ cellPadding: distance36.optional(),
18083
+ borderWidth: distance36.optional(),
18081
18084
  anchor: ninePointAnchor.optional(),
18082
- fontSize: distance35.optional()
18085
+ fontSize: distance36.optional()
18083
18086
  });
18084
18087
  expectTypesMatch(true);
18085
18088
 
18086
18089
  // lib/components/schematic-row.ts
18087
- import { distance as distance36 } from "circuit-json";
18090
+ import { distance as distance37 } from "circuit-json";
18088
18091
  import { z as z110 } from "zod";
18089
18092
  var schematicRowProps = z110.object({
18090
18093
  children: z110.any().optional(),
18091
- height: distance36.optional()
18094
+ height: distance37.optional()
18092
18095
  });
18093
18096
  expectTypesMatch(true);
18094
18097
 
18095
18098
  // lib/components/schematic-cell.ts
18096
- import { distance as distance37 } from "circuit-json";
18099
+ import { distance as distance38 } from "circuit-json";
18097
18100
  import { z as z111 } from "zod";
18098
18101
  var schematicCellProps = z111.object({
18099
18102
  children: z111.string().optional(),
18100
18103
  horizontalAlign: z111.enum(["left", "center", "right"]).optional(),
18101
18104
  verticalAlign: z111.enum(["top", "middle", "bottom"]).optional(),
18102
- fontSize: distance37.optional(),
18105
+ fontSize: distance38.optional(),
18103
18106
  rowSpan: z111.number().optional(),
18104
18107
  colSpan: z111.number().optional(),
18105
- width: distance37.optional(),
18108
+ width: distance38.optional(),
18106
18109
  text: z111.string().optional()
18107
18110
  });
18108
18111
  expectTypesMatch(true);
@@ -18169,7 +18172,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18169
18172
  });
18170
18173
 
18171
18174
  // lib/components/silkscreen-line.ts
18172
- import { distance as distance38 } from "circuit-json";
18175
+ import { distance as distance39 } from "circuit-json";
18173
18176
  var silkscreenLineProps = pcbLayoutProps.omit({
18174
18177
  pcbX: true,
18175
18178
  pcbY: true,
@@ -18177,41 +18180,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18177
18180
  pcbOffsetY: true,
18178
18181
  pcbRotation: true
18179
18182
  }).extend({
18180
- strokeWidth: distance38,
18181
- x1: distance38,
18182
- y1: distance38,
18183
- x2: distance38,
18184
- y2: distance38
18183
+ strokeWidth: distance39,
18184
+ x1: distance39,
18185
+ y1: distance39,
18186
+ x2: distance39,
18187
+ y2: distance39
18185
18188
  });
18186
18189
 
18187
18190
  // lib/components/silkscreen-rect.ts
18188
- import { distance as distance39 } from "circuit-json";
18191
+ import { distance as distance40 } from "circuit-json";
18189
18192
  import { z as z116 } from "zod";
18190
18193
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18191
18194
  filled: z116.boolean().default(true).optional(),
18192
18195
  stroke: z116.enum(["dashed", "solid", "none"]).optional(),
18193
- strokeWidth: distance39.optional(),
18194
- width: distance39,
18195
- height: distance39,
18196
- cornerRadius: distance39.optional()
18196
+ strokeWidth: distance40.optional(),
18197
+ width: distance40,
18198
+ height: distance40,
18199
+ cornerRadius: distance40.optional()
18197
18200
  });
18198
18201
 
18199
18202
  // lib/components/silkscreen-circle.ts
18200
- import { distance as distance40 } from "circuit-json";
18203
+ import { distance as distance41 } from "circuit-json";
18201
18204
  import { z as z117 } from "zod";
18202
18205
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18203
18206
  isFilled: z117.boolean().optional(),
18204
18207
  isOutline: z117.boolean().optional(),
18205
- strokeWidth: distance40.optional(),
18206
- radius: distance40
18208
+ strokeWidth: distance41.optional(),
18209
+ radius: distance41
18207
18210
  });
18208
18211
 
18209
18212
  // lib/components/trace-hint.ts
18210
- import { distance as distance41, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18213
+ import { distance as distance42, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18211
18214
  import { z as z118 } from "zod";
18212
18215
  var routeHintPointProps = z118.object({
18213
- x: distance41,
18214
- y: distance41,
18216
+ x: distance42,
18217
+ y: distance42,
18215
18218
  via: z118.boolean().optional(),
18216
18219
  toLayer: layer_ref12.optional()
18217
18220
  });
@@ -18255,17 +18258,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18255
18258
  expectTypesMatch(true);
18256
18259
 
18257
18260
  // lib/components/pcb-note-rect.ts
18258
- import { distance as distance42 } from "circuit-json";
18261
+ import { distance as distance43 } from "circuit-json";
18259
18262
  import { z as z121 } from "zod";
18260
18263
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18261
- width: distance42,
18262
- height: distance42,
18263
- strokeWidth: distance42.optional(),
18264
+ width: distance43,
18265
+ height: distance43,
18266
+ strokeWidth: distance43.optional(),
18264
18267
  isFilled: z121.boolean().optional(),
18265
18268
  hasStroke: z121.boolean().optional(),
18266
18269
  isStrokeDashed: z121.boolean().optional(),
18267
18270
  color: z121.string().optional(),
18268
- cornerRadius: distance42.optional()
18271
+ cornerRadius: distance43.optional()
18269
18272
  });
18270
18273
  expectTypesMatch(true);
18271
18274
 
@@ -18293,7 +18296,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18293
18296
  expectTypesMatch(true);
18294
18297
 
18295
18298
  // lib/components/pcb-note-line.ts
18296
- import { distance as distance43 } from "circuit-json";
18299
+ import { distance as distance44 } from "circuit-json";
18297
18300
  import { z as z123 } from "zod";
18298
18301
  var pcbNoteLineProps = pcbLayoutProps.omit({
18299
18302
  pcbLeftEdgeX: true,
@@ -18306,18 +18309,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18306
18309
  pcbOffsetY: true,
18307
18310
  pcbRotation: true
18308
18311
  }).extend({
18309
- x1: distance43,
18310
- y1: distance43,
18311
- x2: distance43,
18312
- y2: distance43,
18313
- strokeWidth: distance43.optional(),
18312
+ x1: distance44,
18313
+ y1: distance44,
18314
+ x2: distance44,
18315
+ y2: distance44,
18316
+ strokeWidth: distance44.optional(),
18314
18317
  color: z123.string().optional(),
18315
18318
  isDashed: z123.boolean().optional()
18316
18319
  });
18317
18320
  expectTypesMatch(true);
18318
18321
 
18319
18322
  // lib/components/pcb-note-dimension.ts
18320
- import { distance as distance44, length as length13 } from "circuit-json";
18323
+ import { distance as distance45, length as length13 } from "circuit-json";
18321
18324
  import { z as z124 } from "zod";
18322
18325
  var dimensionTarget2 = z124.union([z124.string(), point]);
18323
18326
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18334,11 +18337,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18334
18337
  from: dimensionTarget2,
18335
18338
  to: dimensionTarget2,
18336
18339
  text: z124.string().optional(),
18337
- offset: distance44.optional(),
18340
+ offset: distance45.optional(),
18338
18341
  font: z124.enum(["tscircuit2024"]).optional(),
18339
18342
  fontSize: length13.optional(),
18340
18343
  color: z124.string().optional(),
18341
- arrowSize: distance44.optional(),
18344
+ arrowSize: distance45.optional(),
18342
18345
  units: z124.enum(["in", "mm"]).optional(),
18343
18346
  outerEdgeToEdge: z124.literal(true).optional(),
18344
18347
  centerToCenter: z124.literal(true).optional(),