@tscircuit/props 0.0.532 → 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/README.md CHANGED
@@ -1008,6 +1008,7 @@ export interface NetProps {
1008
1008
  highlightColor?: string;
1009
1009
  isPowerNet?: boolean;
1010
1010
  isGroundNet?: boolean;
1011
+ nominalTraceWidth?: Distance;
1011
1012
  }
1012
1013
  ```
1013
1014
 
package/dist/index.d.ts CHANGED
@@ -94641,6 +94641,7 @@ interface NetProps {
94641
94641
  highlightColor?: string;
94642
94642
  isPowerNet?: boolean;
94643
94643
  isGroundNet?: boolean;
94644
+ nominalTraceWidth?: Distance;
94644
94645
  }
94645
94646
  declare const netProps: z.ZodObject<{
94646
94647
  name: z.ZodString;
@@ -94649,9 +94650,11 @@ declare const netProps: z.ZodObject<{
94649
94650
  highlightColor: z.ZodOptional<z.ZodString>;
94650
94651
  isPowerNet: z.ZodOptional<z.ZodBoolean>;
94651
94652
  isGroundNet: z.ZodOptional<z.ZodBoolean>;
94653
+ nominalTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
94652
94654
  }, "strip", z.ZodTypeAny, {
94653
94655
  name: string;
94654
94656
  highlightColor?: string | undefined;
94657
+ nominalTraceWidth?: number | undefined;
94655
94658
  connectsTo?: string | string[] | undefined;
94656
94659
  routingPhaseIndex?: number | null | undefined;
94657
94660
  isPowerNet?: boolean | undefined;
@@ -94659,6 +94662,7 @@ declare const netProps: z.ZodObject<{
94659
94662
  }, {
94660
94663
  name: string;
94661
94664
  highlightColor?: string | undefined;
94665
+ nominalTraceWidth?: string | number | undefined;
94662
94666
  connectsTo?: string | string[] | undefined;
94663
94667
  routingPhaseIndex?: number | null | undefined;
94664
94668
  isPowerNet?: boolean | undefined;
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,23 +17694,23 @@ 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
17710
  fromLayer: layer_ref6.optional(),
17709
17711
  toLayer: layer_ref6.optional(),
17710
- holeDiameter: distance22.optional(),
17711
- outerDiameter: distance22.optional(),
17712
+ holeDiameter: distance23.optional(),
17713
+ outerDiameter: distance23.optional(),
17712
17714
  layers: z86.array(layer_ref6).optional(),
17713
17715
  connectsTo: z86.string().or(z86.array(z86.string())).optional(),
17714
17716
  netIsAssignable: z86.boolean().optional()
@@ -17716,7 +17718,7 @@ var viaProps = commonLayoutProps.extend({
17716
17718
  expectTypesMatch(true);
17717
17719
 
17718
17720
  // lib/components/testpoint.ts
17719
- import { distance as distance23 } from "circuit-json";
17721
+ import { distance as distance24 } from "circuit-json";
17720
17722
  import { z as z87 } from "zod";
17721
17723
  var testpointPins = ["pin1"];
17722
17724
  var testpointConnectionsProp = z87.object({
@@ -17726,10 +17728,10 @@ var testpointProps = commonComponentProps.extend({
17726
17728
  connections: testpointConnectionsProp.optional(),
17727
17729
  footprintVariant: z87.enum(["pad", "through_hole"]).optional(),
17728
17730
  padShape: z87.enum(["rect", "circle"]).optional().default("circle"),
17729
- padDiameter: distance23.optional(),
17730
- holeDiameter: distance23.optional(),
17731
- width: distance23.optional(),
17732
- height: distance23.optional()
17731
+ padDiameter: distance24.optional(),
17732
+ holeDiameter: distance24.optional(),
17733
+ width: distance24.optional(),
17734
+ height: distance24.optional()
17733
17735
  }).refine(
17734
17736
  (props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
17735
17737
  { message: "holeDiameter is required for through_hole testpoints" }
@@ -17744,29 +17746,29 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
17744
17746
  expectTypesMatch(true);
17745
17747
 
17746
17748
  // lib/components/pcb-keepout.ts
17747
- 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";
17748
17750
  import { z as z89 } from "zod";
17749
17751
  var pcbKeepoutProps = z89.union([
17750
17752
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
17751
17753
  shape: z89.literal("circle"),
17752
- radius: distance24,
17754
+ radius: distance25,
17753
17755
  layers: z89.array(layer_ref7).optional()
17754
17756
  }),
17755
17757
  pcbLayoutProps.extend({
17756
17758
  shape: z89.literal("rect"),
17757
- width: distance24,
17758
- height: distance24,
17759
+ width: distance25,
17760
+ height: distance25,
17759
17761
  layers: z89.array(layer_ref7).optional()
17760
17762
  })
17761
17763
  ]);
17762
17764
 
17763
17765
  // lib/components/courtyard-rect.ts
17764
- import { distance as distance25 } from "circuit-json";
17766
+ import { distance as distance26 } from "circuit-json";
17765
17767
  import { z as z90 } from "zod";
17766
17768
  var courtyardRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17767
- width: distance25,
17768
- height: distance25,
17769
- strokeWidth: distance25.optional(),
17769
+ width: distance26,
17770
+ height: distance26,
17771
+ strokeWidth: distance26.optional(),
17770
17772
  isFilled: z90.boolean().optional(),
17771
17773
  hasStroke: z90.boolean().optional(),
17772
17774
  isStrokeDashed: z90.boolean().optional(),
@@ -17795,19 +17797,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
17795
17797
  });
17796
17798
 
17797
17799
  // lib/components/courtyard-circle.ts
17798
- import { distance as distance26 } from "circuit-json";
17800
+ import { distance as distance27 } from "circuit-json";
17799
17801
  import "zod";
17800
17802
  var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17801
- radius: distance26
17803
+ radius: distance27
17802
17804
  });
17803
17805
 
17804
17806
  // lib/components/courtyard-pill.ts
17805
- import { distance as distance27 } from "circuit-json";
17807
+ import { distance as distance28 } from "circuit-json";
17806
17808
  import "zod";
17807
17809
  var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17808
- width: distance27,
17809
- height: distance27,
17810
- radius: distance27
17810
+ width: distance28,
17811
+ height: distance28,
17812
+ radius: distance28
17811
17813
  });
17812
17814
 
17813
17815
  // lib/components/copper-pour.ts
@@ -17929,15 +17931,15 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
17929
17931
  expectTypesMatch(true);
17930
17932
 
17931
17933
  // lib/components/schematic-arc.ts
17932
- 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";
17933
17935
  import { z as z100 } from "zod";
17934
17936
  var schematicArcProps = z100.object({
17935
17937
  center: point5,
17936
- radius: distance28,
17938
+ radius: distance29,
17937
17939
  startAngleDegrees: rotation7,
17938
17940
  endAngleDegrees: rotation7,
17939
17941
  direction: z100.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
17940
- strokeWidth: distance28.optional(),
17942
+ strokeWidth: distance29.optional(),
17941
17943
  color: z100.string().optional(),
17942
17944
  isDashed: z100.boolean().optional().default(false)
17943
17945
  });
@@ -17951,23 +17953,23 @@ var toolingrailProps = z101.object({
17951
17953
  expectTypesMatch(true);
17952
17954
 
17953
17955
  // lib/components/schematic-box.ts
17954
- import { distance as distance29 } from "circuit-json";
17956
+ import { distance as distance30 } from "circuit-json";
17955
17957
  import { z as z102 } from "zod";
17956
17958
  var schematicBoxProps = z102.object({
17957
- schX: distance29.optional(),
17958
- schY: distance29.optional(),
17959
- width: distance29.optional(),
17960
- height: distance29.optional(),
17959
+ schX: distance30.optional(),
17960
+ schY: distance30.optional(),
17961
+ width: distance30.optional(),
17962
+ height: distance30.optional(),
17961
17963
  overlay: z102.array(z102.string()).optional(),
17962
- padding: distance29.optional(),
17963
- paddingLeft: distance29.optional(),
17964
- paddingRight: distance29.optional(),
17965
- paddingTop: distance29.optional(),
17966
- paddingBottom: distance29.optional(),
17964
+ padding: distance30.optional(),
17965
+ paddingLeft: distance30.optional(),
17966
+ paddingRight: distance30.optional(),
17967
+ paddingTop: distance30.optional(),
17968
+ paddingBottom: distance30.optional(),
17967
17969
  title: z102.string().optional(),
17968
17970
  titleAlignment: ninePointAnchor.default("top_left"),
17969
17971
  titleColor: z102.string().optional(),
17970
- titleFontSize: distance29.optional(),
17972
+ titleFontSize: distance30.optional(),
17971
17973
  titleInside: z102.boolean().default(false),
17972
17974
  strokeStyle: z102.enum(["solid", "dashed"]).default("solid")
17973
17975
  }).refine(
@@ -17984,12 +17986,12 @@ var schematicBoxProps = z102.object({
17984
17986
  expectTypesMatch(true);
17985
17987
 
17986
17988
  // lib/components/schematic-circle.ts
17987
- import { distance as distance30, point as point6 } from "circuit-json";
17989
+ import { distance as distance31, point as point6 } from "circuit-json";
17988
17990
  import { z as z103 } from "zod";
17989
17991
  var schematicCircleProps = z103.object({
17990
17992
  center: point6,
17991
- radius: distance30,
17992
- strokeWidth: distance30.optional(),
17993
+ radius: distance31,
17994
+ strokeWidth: distance31.optional(),
17993
17995
  color: z103.string().optional(),
17994
17996
  isFilled: z103.boolean().optional().default(false),
17995
17997
  fillColor: z103.string().optional(),
@@ -18000,39 +18002,39 @@ expectTypesMatch(
18000
18002
  );
18001
18003
 
18002
18004
  // lib/components/schematic-rect.ts
18003
- import { distance as distance31, rotation as rotation8 } from "circuit-json";
18005
+ import { distance as distance32, rotation as rotation8 } from "circuit-json";
18004
18006
  import { z as z104 } from "zod";
18005
18007
  var schematicRectProps = z104.object({
18006
- schX: distance31.optional(),
18007
- schY: distance31.optional(),
18008
- width: distance31,
18009
- height: distance31,
18008
+ schX: distance32.optional(),
18009
+ schY: distance32.optional(),
18010
+ width: distance32,
18011
+ height: distance32,
18010
18012
  rotation: rotation8.default(0),
18011
- strokeWidth: distance31.optional(),
18013
+ strokeWidth: distance32.optional(),
18012
18014
  color: z104.string().optional(),
18013
18015
  isFilled: z104.boolean().optional().default(false),
18014
18016
  fillColor: z104.string().optional(),
18015
18017
  isDashed: z104.boolean().optional().default(false),
18016
- cornerRadius: distance31.optional()
18018
+ cornerRadius: distance32.optional()
18017
18019
  });
18018
18020
  expectTypesMatch(true);
18019
18021
 
18020
18022
  // lib/components/schematic-line.ts
18021
- import { distance as distance32 } from "circuit-json";
18023
+ import { distance as distance33 } from "circuit-json";
18022
18024
  import { z as z105 } from "zod";
18023
18025
  var schematicLineProps = z105.object({
18024
- x1: distance32,
18025
- y1: distance32,
18026
- x2: distance32,
18027
- y2: distance32,
18028
- strokeWidth: distance32.optional(),
18026
+ x1: distance33,
18027
+ y1: distance33,
18028
+ x2: distance33,
18029
+ y2: distance33,
18030
+ strokeWidth: distance33.optional(),
18029
18031
  color: z105.string().optional(),
18030
18032
  isDashed: z105.boolean().optional().default(false)
18031
18033
  });
18032
18034
  expectTypesMatch(true);
18033
18035
 
18034
18036
  // lib/components/schematic-text.ts
18035
- import { distance as distance33, rotation as rotation9 } from "circuit-json";
18037
+ import { distance as distance34, rotation as rotation9 } from "circuit-json";
18036
18038
  import { z as z107 } from "zod";
18037
18039
 
18038
18040
  // lib/common/fivePointAnchor.ts
@@ -18047,8 +18049,8 @@ var fivePointAnchor = z106.enum([
18047
18049
 
18048
18050
  // lib/components/schematic-text.ts
18049
18051
  var schematicTextProps = z107.object({
18050
- schX: distance33.optional(),
18051
- schY: distance33.optional(),
18052
+ schX: distance34.optional(),
18053
+ schY: distance34.optional(),
18052
18054
  text: z107.string(),
18053
18055
  fontSize: z107.number().default(1),
18054
18056
  anchor: z107.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
@@ -18058,12 +18060,12 @@ var schematicTextProps = z107.object({
18058
18060
  expectTypesMatch(true);
18059
18061
 
18060
18062
  // lib/components/schematic-path.ts
18061
- import { distance as distance34, point as point8 } from "circuit-json";
18063
+ import { distance as distance35, point as point8 } from "circuit-json";
18062
18064
  import { z as z108 } from "zod";
18063
18065
  var schematicPathProps = z108.object({
18064
18066
  points: z108.array(point8).optional(),
18065
18067
  svgPath: z108.string().optional(),
18066
- strokeWidth: distance34.optional(),
18068
+ strokeWidth: distance35.optional(),
18067
18069
  strokeColor: z108.string().optional(),
18068
18070
  isFilled: z108.boolean().optional().default(false),
18069
18071
  fillColor: z108.string().optional()
@@ -18071,39 +18073,39 @@ var schematicPathProps = z108.object({
18071
18073
  expectTypesMatch(true);
18072
18074
 
18073
18075
  // lib/components/schematic-table.ts
18074
- import { distance as distance35 } from "circuit-json";
18076
+ import { distance as distance36 } from "circuit-json";
18075
18077
  import { z as z109 } from "zod";
18076
18078
  var schematicTableProps = z109.object({
18077
- schX: distance35.optional(),
18078
- schY: distance35.optional(),
18079
+ schX: distance36.optional(),
18080
+ schY: distance36.optional(),
18079
18081
  children: z109.any().optional(),
18080
- cellPadding: distance35.optional(),
18081
- borderWidth: distance35.optional(),
18082
+ cellPadding: distance36.optional(),
18083
+ borderWidth: distance36.optional(),
18082
18084
  anchor: ninePointAnchor.optional(),
18083
- fontSize: distance35.optional()
18085
+ fontSize: distance36.optional()
18084
18086
  });
18085
18087
  expectTypesMatch(true);
18086
18088
 
18087
18089
  // lib/components/schematic-row.ts
18088
- import { distance as distance36 } from "circuit-json";
18090
+ import { distance as distance37 } from "circuit-json";
18089
18091
  import { z as z110 } from "zod";
18090
18092
  var schematicRowProps = z110.object({
18091
18093
  children: z110.any().optional(),
18092
- height: distance36.optional()
18094
+ height: distance37.optional()
18093
18095
  });
18094
18096
  expectTypesMatch(true);
18095
18097
 
18096
18098
  // lib/components/schematic-cell.ts
18097
- import { distance as distance37 } from "circuit-json";
18099
+ import { distance as distance38 } from "circuit-json";
18098
18100
  import { z as z111 } from "zod";
18099
18101
  var schematicCellProps = z111.object({
18100
18102
  children: z111.string().optional(),
18101
18103
  horizontalAlign: z111.enum(["left", "center", "right"]).optional(),
18102
18104
  verticalAlign: z111.enum(["top", "middle", "bottom"]).optional(),
18103
- fontSize: distance37.optional(),
18105
+ fontSize: distance38.optional(),
18104
18106
  rowSpan: z111.number().optional(),
18105
18107
  colSpan: z111.number().optional(),
18106
- width: distance37.optional(),
18108
+ width: distance38.optional(),
18107
18109
  text: z111.string().optional()
18108
18110
  });
18109
18111
  expectTypesMatch(true);
@@ -18170,7 +18172,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18170
18172
  });
18171
18173
 
18172
18174
  // lib/components/silkscreen-line.ts
18173
- import { distance as distance38 } from "circuit-json";
18175
+ import { distance as distance39 } from "circuit-json";
18174
18176
  var silkscreenLineProps = pcbLayoutProps.omit({
18175
18177
  pcbX: true,
18176
18178
  pcbY: true,
@@ -18178,41 +18180,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18178
18180
  pcbOffsetY: true,
18179
18181
  pcbRotation: true
18180
18182
  }).extend({
18181
- strokeWidth: distance38,
18182
- x1: distance38,
18183
- y1: distance38,
18184
- x2: distance38,
18185
- y2: distance38
18183
+ strokeWidth: distance39,
18184
+ x1: distance39,
18185
+ y1: distance39,
18186
+ x2: distance39,
18187
+ y2: distance39
18186
18188
  });
18187
18189
 
18188
18190
  // lib/components/silkscreen-rect.ts
18189
- import { distance as distance39 } from "circuit-json";
18191
+ import { distance as distance40 } from "circuit-json";
18190
18192
  import { z as z116 } from "zod";
18191
18193
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18192
18194
  filled: z116.boolean().default(true).optional(),
18193
18195
  stroke: z116.enum(["dashed", "solid", "none"]).optional(),
18194
- strokeWidth: distance39.optional(),
18195
- width: distance39,
18196
- height: distance39,
18197
- cornerRadius: distance39.optional()
18196
+ strokeWidth: distance40.optional(),
18197
+ width: distance40,
18198
+ height: distance40,
18199
+ cornerRadius: distance40.optional()
18198
18200
  });
18199
18201
 
18200
18202
  // lib/components/silkscreen-circle.ts
18201
- import { distance as distance40 } from "circuit-json";
18203
+ import { distance as distance41 } from "circuit-json";
18202
18204
  import { z as z117 } from "zod";
18203
18205
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18204
18206
  isFilled: z117.boolean().optional(),
18205
18207
  isOutline: z117.boolean().optional(),
18206
- strokeWidth: distance40.optional(),
18207
- radius: distance40
18208
+ strokeWidth: distance41.optional(),
18209
+ radius: distance41
18208
18210
  });
18209
18211
 
18210
18212
  // lib/components/trace-hint.ts
18211
- 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";
18212
18214
  import { z as z118 } from "zod";
18213
18215
  var routeHintPointProps = z118.object({
18214
- x: distance41,
18215
- y: distance41,
18216
+ x: distance42,
18217
+ y: distance42,
18216
18218
  via: z118.boolean().optional(),
18217
18219
  toLayer: layer_ref12.optional()
18218
18220
  });
@@ -18256,17 +18258,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18256
18258
  expectTypesMatch(true);
18257
18259
 
18258
18260
  // lib/components/pcb-note-rect.ts
18259
- import { distance as distance42 } from "circuit-json";
18261
+ import { distance as distance43 } from "circuit-json";
18260
18262
  import { z as z121 } from "zod";
18261
18263
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18262
- width: distance42,
18263
- height: distance42,
18264
- strokeWidth: distance42.optional(),
18264
+ width: distance43,
18265
+ height: distance43,
18266
+ strokeWidth: distance43.optional(),
18265
18267
  isFilled: z121.boolean().optional(),
18266
18268
  hasStroke: z121.boolean().optional(),
18267
18269
  isStrokeDashed: z121.boolean().optional(),
18268
18270
  color: z121.string().optional(),
18269
- cornerRadius: distance42.optional()
18271
+ cornerRadius: distance43.optional()
18270
18272
  });
18271
18273
  expectTypesMatch(true);
18272
18274
 
@@ -18294,7 +18296,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18294
18296
  expectTypesMatch(true);
18295
18297
 
18296
18298
  // lib/components/pcb-note-line.ts
18297
- import { distance as distance43 } from "circuit-json";
18299
+ import { distance as distance44 } from "circuit-json";
18298
18300
  import { z as z123 } from "zod";
18299
18301
  var pcbNoteLineProps = pcbLayoutProps.omit({
18300
18302
  pcbLeftEdgeX: true,
@@ -18307,18 +18309,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18307
18309
  pcbOffsetY: true,
18308
18310
  pcbRotation: true
18309
18311
  }).extend({
18310
- x1: distance43,
18311
- y1: distance43,
18312
- x2: distance43,
18313
- y2: distance43,
18314
- strokeWidth: distance43.optional(),
18312
+ x1: distance44,
18313
+ y1: distance44,
18314
+ x2: distance44,
18315
+ y2: distance44,
18316
+ strokeWidth: distance44.optional(),
18315
18317
  color: z123.string().optional(),
18316
18318
  isDashed: z123.boolean().optional()
18317
18319
  });
18318
18320
  expectTypesMatch(true);
18319
18321
 
18320
18322
  // lib/components/pcb-note-dimension.ts
18321
- import { distance as distance44, length as length13 } from "circuit-json";
18323
+ import { distance as distance45, length as length13 } from "circuit-json";
18322
18324
  import { z as z124 } from "zod";
18323
18325
  var dimensionTarget2 = z124.union([z124.string(), point]);
18324
18326
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18335,11 +18337,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18335
18337
  from: dimensionTarget2,
18336
18338
  to: dimensionTarget2,
18337
18339
  text: z124.string().optional(),
18338
- offset: distance44.optional(),
18340
+ offset: distance45.optional(),
18339
18341
  font: z124.enum(["tscircuit2024"]).optional(),
18340
18342
  fontSize: length13.optional(),
18341
18343
  color: z124.string().optional(),
18342
- arrowSize: distance44.optional(),
18344
+ arrowSize: distance45.optional(),
18343
18345
  units: z124.enum(["in", "mm"]).optional(),
18344
18346
  outerEdgeToEdge: z124.literal(true).optional(),
18345
18347
  centerToCenter: z124.literal(true).optional(),