@tscircuit/props 0.0.500 → 0.0.502

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
@@ -16412,7 +16412,7 @@ var subcircuitGroupProps = baseGroupProps.extend({
16412
16412
  pcbRouteCache: z36.custom((v) => true).optional(),
16413
16413
  autorouter: autorouterProp.optional(),
16414
16414
  autorouterEffortLevel: autorouterEffortLevel.optional(),
16415
- autorouterVersion: z36.enum(["v1", "v2", "v3", "v4", "latest"]).optional(),
16415
+ autorouterVersion: z36.enum(["v1", "v2", "v3", "v4", "v5", "latest"]).optional(),
16416
16416
  square: z36.boolean().optional(),
16417
16417
  emptyArea: z36.string().optional(),
16418
16418
  filledArea: z36.string().optional(),
@@ -16582,21 +16582,8 @@ var solderjumperProps = jumperProps.extend({
16582
16582
  expectTypesMatch(true);
16583
16583
 
16584
16584
  // lib/components/connector.ts
16585
- import { distance as distance15 } from "circuit-json";
16586
16585
  import { z as z44 } from "zod";
16587
- var connectorProps = commonComponentProps.extend({
16588
- manufacturerPartNumber: z44.string().optional(),
16589
- pinLabels: z44.record(
16590
- z44.number().or(schematicPinLabel),
16591
- schematicPinLabel.or(z44.array(schematicPinLabel))
16592
- ).optional(),
16593
- schPinStyle: schematicPinStyle.optional(),
16594
- schPinSpacing: distance15.optional(),
16595
- schWidth: distance15.optional(),
16596
- schHeight: distance15.optional(),
16597
- schDirection: z44.enum(["left", "right"]).optional(),
16598
- schPortArrangement: schematicPortArrangement.optional(),
16599
- internallyConnectedPins: z44.array(z44.array(z44.union([z44.string(), z44.number()]))).optional(),
16586
+ var connectorProps = chipProps.extend({
16600
16587
  standard: z44.enum(["usb_c", "m2"]).optional()
16601
16588
  });
16602
16589
  expectTypesMatch(true);
@@ -16632,7 +16619,7 @@ var fuseProps = commonComponentProps.extend({
16632
16619
  });
16633
16620
 
16634
16621
  // lib/components/platedhole.ts
16635
- import { distance as distance16 } from "circuit-json";
16622
+ import { distance as distance15 } from "circuit-json";
16636
16623
  import { z as z47 } from "zod";
16637
16624
  var DEFAULT_PIN_HEADER_HOLE_DIAMETER = "0.04in";
16638
16625
  var DEFAULT_PIN_HEADER_OUTER_DIAMETER = "0.1in";
@@ -16667,32 +16654,32 @@ var inferPlatedHoleShapeAndDefaults = (rawProps) => {
16667
16654
  };
16668
16655
  var distanceHiddenUndefined = z47.custom().transform((a) => {
16669
16656
  if (a === void 0) return void 0;
16670
- return distance16.parse(a);
16657
+ return distance15.parse(a);
16671
16658
  });
16672
16659
  var platedHolePropsByShape = z47.discriminatedUnion("shape", [
16673
16660
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
16674
16661
  name: z47.string().optional(),
16675
16662
  connectsTo: z47.string().or(z47.array(z47.string())).optional(),
16676
16663
  shape: z47.literal("circle"),
16677
- holeDiameter: distance16,
16678
- outerDiameter: distance16,
16679
- padDiameter: distance16.optional().describe("Diameter of the copper pad"),
16664
+ holeDiameter: distance15,
16665
+ outerDiameter: distance15,
16666
+ padDiameter: distance15.optional().describe("Diameter of the copper pad"),
16680
16667
  portHints: portHints.optional(),
16681
- solderMaskMargin: distance16.optional(),
16668
+ solderMaskMargin: distance15.optional(),
16682
16669
  coveredWithSolderMask: z47.boolean().optional()
16683
16670
  }),
16684
16671
  pcbLayoutProps.omit({ layer: true }).extend({
16685
16672
  name: z47.string().optional(),
16686
16673
  connectsTo: z47.string().or(z47.array(z47.string())).optional(),
16687
16674
  shape: z47.literal("oval"),
16688
- outerWidth: distance16,
16689
- outerHeight: distance16,
16675
+ outerWidth: distance15,
16676
+ outerHeight: distance15,
16690
16677
  holeWidth: distanceHiddenUndefined,
16691
16678
  holeHeight: distanceHiddenUndefined,
16692
- innerWidth: distance16.optional().describe("DEPRECATED use holeWidth"),
16693
- innerHeight: distance16.optional().describe("DEPRECATED use holeHeight"),
16679
+ innerWidth: distance15.optional().describe("DEPRECATED use holeWidth"),
16680
+ innerHeight: distance15.optional().describe("DEPRECATED use holeHeight"),
16694
16681
  portHints: portHints.optional(),
16695
- solderMaskMargin: distance16.optional(),
16682
+ solderMaskMargin: distance15.optional(),
16696
16683
  coveredWithSolderMask: z47.boolean().optional()
16697
16684
  }),
16698
16685
  pcbLayoutProps.omit({ layer: true }).extend({
@@ -16700,32 +16687,32 @@ var platedHolePropsByShape = z47.discriminatedUnion("shape", [
16700
16687
  connectsTo: z47.string().or(z47.array(z47.string())).optional(),
16701
16688
  shape: z47.literal("pill"),
16702
16689
  rectPad: z47.boolean().optional(),
16703
- outerWidth: distance16,
16704
- outerHeight: distance16,
16690
+ outerWidth: distance15,
16691
+ outerHeight: distance15,
16705
16692
  holeWidth: distanceHiddenUndefined,
16706
16693
  holeHeight: distanceHiddenUndefined,
16707
- innerWidth: distance16.optional().describe("DEPRECATED use holeWidth"),
16708
- innerHeight: distance16.optional().describe("DEPRECATED use holeHeight"),
16694
+ innerWidth: distance15.optional().describe("DEPRECATED use holeWidth"),
16695
+ innerHeight: distance15.optional().describe("DEPRECATED use holeHeight"),
16709
16696
  portHints: portHints.optional(),
16710
- holeOffsetX: distance16.optional(),
16711
- holeOffsetY: distance16.optional(),
16712
- solderMaskMargin: distance16.optional(),
16697
+ holeOffsetX: distance15.optional(),
16698
+ holeOffsetY: distance15.optional(),
16699
+ solderMaskMargin: distance15.optional(),
16713
16700
  coveredWithSolderMask: z47.boolean().optional()
16714
16701
  }),
16715
16702
  pcbLayoutProps.omit({ layer: true }).extend({
16716
16703
  name: z47.string().optional(),
16717
16704
  connectsTo: z47.string().or(z47.array(z47.string())).optional(),
16718
16705
  shape: z47.literal("circular_hole_with_rect_pad"),
16719
- holeDiameter: distance16,
16720
- rectPadWidth: distance16,
16721
- rectPadHeight: distance16,
16722
- rectBorderRadius: distance16.optional(),
16706
+ holeDiameter: distance15,
16707
+ rectPadWidth: distance15,
16708
+ rectPadHeight: distance15,
16709
+ rectBorderRadius: distance15.optional(),
16723
16710
  holeShape: z47.literal("circle").optional(),
16724
16711
  padShape: z47.literal("rect").optional(),
16725
16712
  portHints: portHints.optional(),
16726
- holeOffsetX: distance16.optional(),
16727
- holeOffsetY: distance16.optional(),
16728
- solderMaskMargin: distance16.optional(),
16713
+ holeOffsetX: distance15.optional(),
16714
+ holeOffsetY: distance15.optional(),
16715
+ solderMaskMargin: distance15.optional(),
16729
16716
  coveredWithSolderMask: z47.boolean().optional()
16730
16717
  }),
16731
16718
  pcbLayoutProps.omit({ layer: true }).extend({
@@ -16734,14 +16721,14 @@ var platedHolePropsByShape = z47.discriminatedUnion("shape", [
16734
16721
  shape: z47.literal("pill_hole_with_rect_pad"),
16735
16722
  holeShape: z47.literal("pill").optional(),
16736
16723
  padShape: z47.literal("rect").optional(),
16737
- holeWidth: distance16,
16738
- holeHeight: distance16,
16739
- rectPadWidth: distance16,
16740
- rectPadHeight: distance16,
16724
+ holeWidth: distance15,
16725
+ holeHeight: distance15,
16726
+ rectPadWidth: distance15,
16727
+ rectPadHeight: distance15,
16741
16728
  portHints: portHints.optional(),
16742
- holeOffsetX: distance16.optional(),
16743
- holeOffsetY: distance16.optional(),
16744
- solderMaskMargin: distance16.optional(),
16729
+ holeOffsetX: distance15.optional(),
16730
+ holeOffsetY: distance15.optional(),
16731
+ solderMaskMargin: distance15.optional(),
16745
16732
  coveredWithSolderMask: z47.boolean().optional()
16746
16733
  }),
16747
16734
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
@@ -16749,14 +16736,14 @@ var platedHolePropsByShape = z47.discriminatedUnion("shape", [
16749
16736
  connectsTo: z47.string().or(z47.array(z47.string())).optional(),
16750
16737
  shape: z47.literal("hole_with_polygon_pad"),
16751
16738
  holeShape: z47.enum(["circle", "oval", "pill", "rotated_pill"]),
16752
- holeDiameter: distance16.optional(),
16753
- holeWidth: distance16.optional(),
16754
- holeHeight: distance16.optional(),
16739
+ holeDiameter: distance15.optional(),
16740
+ holeWidth: distance15.optional(),
16741
+ holeHeight: distance15.optional(),
16755
16742
  padOutline: z47.array(point),
16756
- holeOffsetX: distance16,
16757
- holeOffsetY: distance16,
16743
+ holeOffsetX: distance15,
16744
+ holeOffsetY: distance15,
16758
16745
  portHints: portHints.optional(),
16759
- solderMaskMargin: distance16.optional(),
16746
+ solderMaskMargin: distance15.optional(),
16760
16747
  coveredWithSolderMask: z47.boolean().optional()
16761
16748
  })
16762
16749
  ]).transform((a) => {
@@ -16839,7 +16826,7 @@ var resonatorProps = commonComponentProps.extend({
16839
16826
  expectTypesMatch(true);
16840
16827
 
16841
16828
  // lib/components/stampboard.ts
16842
- import { distance as distance17 } from "circuit-json";
16829
+ import { distance as distance16 } from "circuit-json";
16843
16830
  import { z as z52 } from "zod";
16844
16831
  var stampboardProps = boardProps.extend({
16845
16832
  leftPinCount: z52.number().optional(),
@@ -16850,7 +16837,7 @@ var stampboardProps = boardProps.extend({
16850
16837
  rightPins: z52.array(z52.string()).optional(),
16851
16838
  topPins: z52.array(z52.string()).optional(),
16852
16839
  bottomPins: z52.array(z52.string()).optional(),
16853
- pinPitch: distance17.optional(),
16840
+ pinPitch: distance16.optional(),
16854
16841
  innerHoles: z52.boolean().optional()
16855
16842
  });
16856
16843
  expectTypesMatch(true);
@@ -17124,7 +17111,7 @@ var holeProps = z61.union([
17124
17111
  expectTypesMatch(true);
17125
17112
 
17126
17113
  // lib/components/trace.ts
17127
- import { distance as distance18, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
17114
+ import { distance as distance17, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
17128
17115
  import { z as z62 } from "zod";
17129
17116
  var portRef = z62.union([
17130
17117
  z62.string(),
@@ -17156,8 +17143,8 @@ var pcbPathPoint = point.extend({
17156
17143
  var pcbPath = z62.array(z62.union([pcbPathPoint, z62.string()]));
17157
17144
  var baseTraceProps = z62.object({
17158
17145
  key: z62.string().optional(),
17159
- thickness: distance18.optional(),
17160
- width: distance18.optional().describe("Alias for trace thickness"),
17146
+ thickness: distance17.optional(),
17147
+ width: distance17.optional().describe("Alias for trace thickness"),
17161
17148
  schematicRouteHints: z62.array(point).optional(),
17162
17149
  pcbRouteHints: z62.array(route_hint_point2).optional(),
17163
17150
  pcbPathRelativeTo: z62.string().optional(),
@@ -17167,7 +17154,7 @@ var baseTraceProps = z62.object({
17167
17154
  schDisplayLabel: z62.string().optional(),
17168
17155
  schStroke: z62.string().optional(),
17169
17156
  highlightColor: z62.string().optional(),
17170
- maxLength: distance18.optional(),
17157
+ maxLength: distance17.optional(),
17171
17158
  connectsTo: z62.string().or(z62.array(z62.string())).optional()
17172
17159
  });
17173
17160
  var traceProps = z62.union([
@@ -17242,7 +17229,7 @@ var mountedboardProps = subcircuitGroupProps.extend({
17242
17229
  expectTypesMatch(true);
17243
17230
 
17244
17231
  // lib/components/pin-header.ts
17245
- import { distance as distance19 } from "circuit-json";
17232
+ import { distance as distance18 } from "circuit-json";
17246
17233
 
17247
17234
  // lib/common/pcbOrientation.ts
17248
17235
  import { z as z67 } from "zod";
@@ -17255,7 +17242,7 @@ expectTypesMatch(true);
17255
17242
  import { z as z68 } from "zod";
17256
17243
  var pinHeaderProps = commonComponentProps.extend({
17257
17244
  pinCount: z68.number(),
17258
- pitch: distance19.optional(),
17245
+ pitch: distance18.optional(),
17259
17246
  schFacingDirection: z68.enum(["up", "down", "left", "right"]).optional(),
17260
17247
  gender: z68.enum(["male", "female", "unpopulated"]).optional().default("male"),
17261
17248
  showSilkscreenPinLabels: z68.boolean().optional(),
@@ -17263,16 +17250,16 @@ var pinHeaderProps = commonComponentProps.extend({
17263
17250
  doubleRow: z68.boolean().optional(),
17264
17251
  rightAngle: z68.boolean().optional(),
17265
17252
  pcbOrientation: pcbOrientation.optional(),
17266
- holeDiameter: distance19.optional(),
17267
- platedDiameter: distance19.optional(),
17253
+ holeDiameter: distance18.optional(),
17254
+ platedDiameter: distance18.optional(),
17268
17255
  pinLabels: z68.record(z68.string(), schematicPinLabel).or(z68.array(schematicPinLabel)).optional(),
17269
17256
  connections: z68.custom().pipe(z68.record(z68.string(), connectionTarget)).optional(),
17270
17257
  facingDirection: z68.enum(["left", "right"]).optional(),
17271
17258
  schPinArrangement: schematicPinArrangement.optional(),
17272
17259
  schPinStyle: schematicPinStyle.optional(),
17273
- schPinSpacing: distance19.optional(),
17274
- schWidth: distance19.optional(),
17275
- schHeight: distance19.optional()
17260
+ schPinSpacing: distance18.optional(),
17261
+ schWidth: distance18.optional(),
17262
+ schHeight: distance18.optional()
17276
17263
  });
17277
17264
  expectTypesMatch(true);
17278
17265
 
@@ -17559,17 +17546,17 @@ var fabricationNoteTextProps = pcbLayoutProps.extend({
17559
17546
  expectTypesMatch(true);
17560
17547
 
17561
17548
  // lib/components/fabrication-note-rect.ts
17562
- import { distance as distance20 } from "circuit-json";
17549
+ import { distance as distance19 } from "circuit-json";
17563
17550
  import { z as z81 } from "zod";
17564
17551
  var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17565
- width: distance20,
17566
- height: distance20,
17567
- strokeWidth: distance20.optional(),
17552
+ width: distance19,
17553
+ height: distance19,
17554
+ strokeWidth: distance19.optional(),
17568
17555
  isFilled: z81.boolean().optional(),
17569
17556
  hasStroke: z81.boolean().optional(),
17570
17557
  isStrokeDashed: z81.boolean().optional(),
17571
17558
  color: z81.string().optional(),
17572
- cornerRadius: distance20.optional()
17559
+ cornerRadius: distance19.optional()
17573
17560
  });
17574
17561
 
17575
17562
  // lib/components/fabrication-note-path.ts
@@ -17592,7 +17579,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
17592
17579
  });
17593
17580
 
17594
17581
  // lib/components/fabrication-note-dimension.ts
17595
- import { distance as distance21, length as length6 } from "circuit-json";
17582
+ import { distance as distance20, length as length6 } from "circuit-json";
17596
17583
  import { z as z83 } from "zod";
17597
17584
  var dimensionTarget = z83.union([z83.string(), point]);
17598
17585
  var fabricationNoteDimensionProps = pcbLayoutProps.omit({
@@ -17609,11 +17596,11 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17609
17596
  from: dimensionTarget,
17610
17597
  to: dimensionTarget,
17611
17598
  text: z83.string().optional(),
17612
- offset: distance21.optional(),
17599
+ offset: distance20.optional(),
17613
17600
  font: z83.enum(["tscircuit2024"]).optional(),
17614
17601
  fontSize: length6.optional(),
17615
17602
  color: z83.string().optional(),
17616
- arrowSize: distance21.optional(),
17603
+ arrowSize: distance20.optional(),
17617
17604
  units: z83.enum(["in", "mm"]).optional(),
17618
17605
  outerEdgeToEdge: z83.literal(true).optional(),
17619
17606
  centerToCenter: z83.literal(true).optional(),
@@ -17622,30 +17609,30 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
17622
17609
  expectTypesMatch(true);
17623
17610
 
17624
17611
  // lib/components/pcb-trace.ts
17625
- import { distance as distance22, route_hint_point as route_hint_point4 } from "circuit-json";
17612
+ import { distance as distance21, route_hint_point as route_hint_point4 } from "circuit-json";
17626
17613
  import { z as z84 } from "zod";
17627
17614
  var pcbTraceProps = z84.object({
17628
17615
  layer: z84.string().optional(),
17629
- thickness: distance22.optional(),
17616
+ thickness: distance21.optional(),
17630
17617
  route: z84.array(route_hint_point4)
17631
17618
  });
17632
17619
 
17633
17620
  // lib/components/via.ts
17634
- import { distance as distance23, layer_ref as layer_ref6 } from "circuit-json";
17621
+ import { distance as distance22, layer_ref as layer_ref6 } from "circuit-json";
17635
17622
  import { z as z85 } from "zod";
17636
17623
  var viaProps = commonLayoutProps.extend({
17637
17624
  name: z85.string().optional(),
17638
17625
  fromLayer: layer_ref6,
17639
17626
  toLayer: layer_ref6,
17640
- holeDiameter: distance23.optional(),
17641
- outerDiameter: distance23.optional(),
17627
+ holeDiameter: distance22.optional(),
17628
+ outerDiameter: distance22.optional(),
17642
17629
  connectsTo: z85.string().or(z85.array(z85.string())).optional(),
17643
17630
  netIsAssignable: z85.boolean().optional()
17644
17631
  });
17645
17632
  expectTypesMatch(true);
17646
17633
 
17647
17634
  // lib/components/testpoint.ts
17648
- import { distance as distance24 } from "circuit-json";
17635
+ import { distance as distance23 } from "circuit-json";
17649
17636
  import { z as z86 } from "zod";
17650
17637
  var testpointPins = ["pin1"];
17651
17638
  var testpointConnectionsProp = z86.object({
@@ -17655,10 +17642,10 @@ var testpointProps = commonComponentProps.extend({
17655
17642
  connections: testpointConnectionsProp.optional(),
17656
17643
  footprintVariant: z86.enum(["pad", "through_hole"]).optional(),
17657
17644
  padShape: z86.enum(["rect", "circle"]).optional().default("circle"),
17658
- padDiameter: distance24.optional(),
17659
- holeDiameter: distance24.optional(),
17660
- width: distance24.optional(),
17661
- height: distance24.optional()
17645
+ padDiameter: distance23.optional(),
17646
+ holeDiameter: distance23.optional(),
17647
+ width: distance23.optional(),
17648
+ height: distance23.optional()
17662
17649
  }).refine(
17663
17650
  (props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
17664
17651
  { message: "holeDiameter is required for through_hole testpoints" }
@@ -17673,27 +17660,27 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
17673
17660
  expectTypesMatch(true);
17674
17661
 
17675
17662
  // lib/components/pcb-keepout.ts
17676
- import { distance as distance25 } from "circuit-json";
17663
+ import { distance as distance24 } from "circuit-json";
17677
17664
  import { z as z88 } from "zod";
17678
17665
  var pcbKeepoutProps = z88.union([
17679
17666
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
17680
17667
  shape: z88.literal("circle"),
17681
- radius: distance25
17668
+ radius: distance24
17682
17669
  }),
17683
17670
  pcbLayoutProps.extend({
17684
17671
  shape: z88.literal("rect"),
17685
- width: distance25,
17686
- height: distance25
17672
+ width: distance24,
17673
+ height: distance24
17687
17674
  })
17688
17675
  ]);
17689
17676
 
17690
17677
  // lib/components/courtyard-rect.ts
17691
- import { distance as distance26 } from "circuit-json";
17678
+ import { distance as distance25 } from "circuit-json";
17692
17679
  import { z as z89 } from "zod";
17693
17680
  var courtyardRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17694
- width: distance26,
17695
- height: distance26,
17696
- strokeWidth: distance26.optional(),
17681
+ width: distance25,
17682
+ height: distance25,
17683
+ strokeWidth: distance25.optional(),
17697
17684
  isFilled: z89.boolean().optional(),
17698
17685
  hasStroke: z89.boolean().optional(),
17699
17686
  isStrokeDashed: z89.boolean().optional(),
@@ -17722,19 +17709,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
17722
17709
  });
17723
17710
 
17724
17711
  // lib/components/courtyard-circle.ts
17725
- import { distance as distance27 } from "circuit-json";
17712
+ import { distance as distance26 } from "circuit-json";
17726
17713
  import "zod";
17727
17714
  var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17728
- radius: distance27
17715
+ radius: distance26
17729
17716
  });
17730
17717
 
17731
17718
  // lib/components/courtyard-pill.ts
17732
- import { distance as distance28 } from "circuit-json";
17719
+ import { distance as distance27 } from "circuit-json";
17733
17720
  import "zod";
17734
17721
  var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
17735
- width: distance28,
17736
- height: distance28,
17737
- radius: distance28
17722
+ width: distance27,
17723
+ height: distance27,
17724
+ radius: distance27
17738
17725
  });
17739
17726
 
17740
17727
  // lib/components/copper-pour.ts
@@ -17855,15 +17842,15 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
17855
17842
  expectTypesMatch(true);
17856
17843
 
17857
17844
  // lib/components/schematic-arc.ts
17858
- import { distance as distance29, point as point5, rotation as rotation7 } from "circuit-json";
17845
+ import { distance as distance28, point as point5, rotation as rotation7 } from "circuit-json";
17859
17846
  import { z as z99 } from "zod";
17860
17847
  var schematicArcProps = z99.object({
17861
17848
  center: point5,
17862
- radius: distance29,
17849
+ radius: distance28,
17863
17850
  startAngleDegrees: rotation7,
17864
17851
  endAngleDegrees: rotation7,
17865
17852
  direction: z99.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
17866
- strokeWidth: distance29.optional(),
17853
+ strokeWidth: distance28.optional(),
17867
17854
  color: z99.string().optional(),
17868
17855
  isDashed: z99.boolean().optional().default(false)
17869
17856
  });
@@ -17877,23 +17864,23 @@ var toolingrailProps = z100.object({
17877
17864
  expectTypesMatch(true);
17878
17865
 
17879
17866
  // lib/components/schematic-box.ts
17880
- import { distance as distance30 } from "circuit-json";
17867
+ import { distance as distance29 } from "circuit-json";
17881
17868
  import { z as z101 } from "zod";
17882
17869
  var schematicBoxProps = z101.object({
17883
- schX: distance30.optional(),
17884
- schY: distance30.optional(),
17885
- width: distance30.optional(),
17886
- height: distance30.optional(),
17870
+ schX: distance29.optional(),
17871
+ schY: distance29.optional(),
17872
+ width: distance29.optional(),
17873
+ height: distance29.optional(),
17887
17874
  overlay: z101.array(z101.string()).optional(),
17888
- padding: distance30.optional(),
17889
- paddingLeft: distance30.optional(),
17890
- paddingRight: distance30.optional(),
17891
- paddingTop: distance30.optional(),
17892
- paddingBottom: distance30.optional(),
17875
+ padding: distance29.optional(),
17876
+ paddingLeft: distance29.optional(),
17877
+ paddingRight: distance29.optional(),
17878
+ paddingTop: distance29.optional(),
17879
+ paddingBottom: distance29.optional(),
17893
17880
  title: z101.string().optional(),
17894
17881
  titleAlignment: ninePointAnchor.default("top_left"),
17895
17882
  titleColor: z101.string().optional(),
17896
- titleFontSize: distance30.optional(),
17883
+ titleFontSize: distance29.optional(),
17897
17884
  titleInside: z101.boolean().default(false),
17898
17885
  strokeStyle: z101.enum(["solid", "dashed"]).default("solid")
17899
17886
  }).refine(
@@ -17910,12 +17897,12 @@ var schematicBoxProps = z101.object({
17910
17897
  expectTypesMatch(true);
17911
17898
 
17912
17899
  // lib/components/schematic-circle.ts
17913
- import { distance as distance31, point as point6 } from "circuit-json";
17900
+ import { distance as distance30, point as point6 } from "circuit-json";
17914
17901
  import { z as z102 } from "zod";
17915
17902
  var schematicCircleProps = z102.object({
17916
17903
  center: point6,
17917
- radius: distance31,
17918
- strokeWidth: distance31.optional(),
17904
+ radius: distance30,
17905
+ strokeWidth: distance30.optional(),
17919
17906
  color: z102.string().optional(),
17920
17907
  isFilled: z102.boolean().optional().default(false),
17921
17908
  fillColor: z102.string().optional(),
@@ -17926,39 +17913,39 @@ expectTypesMatch(
17926
17913
  );
17927
17914
 
17928
17915
  // lib/components/schematic-rect.ts
17929
- import { distance as distance32, rotation as rotation8 } from "circuit-json";
17916
+ import { distance as distance31, rotation as rotation8 } from "circuit-json";
17930
17917
  import { z as z103 } from "zod";
17931
17918
  var schematicRectProps = z103.object({
17932
- schX: distance32.optional(),
17933
- schY: distance32.optional(),
17934
- width: distance32,
17935
- height: distance32,
17919
+ schX: distance31.optional(),
17920
+ schY: distance31.optional(),
17921
+ width: distance31,
17922
+ height: distance31,
17936
17923
  rotation: rotation8.default(0),
17937
- strokeWidth: distance32.optional(),
17924
+ strokeWidth: distance31.optional(),
17938
17925
  color: z103.string().optional(),
17939
17926
  isFilled: z103.boolean().optional().default(false),
17940
17927
  fillColor: z103.string().optional(),
17941
17928
  isDashed: z103.boolean().optional().default(false),
17942
- cornerRadius: distance32.optional()
17929
+ cornerRadius: distance31.optional()
17943
17930
  });
17944
17931
  expectTypesMatch(true);
17945
17932
 
17946
17933
  // lib/components/schematic-line.ts
17947
- import { distance as distance33 } from "circuit-json";
17934
+ import { distance as distance32 } from "circuit-json";
17948
17935
  import { z as z104 } from "zod";
17949
17936
  var schematicLineProps = z104.object({
17950
- x1: distance33,
17951
- y1: distance33,
17952
- x2: distance33,
17953
- y2: distance33,
17954
- strokeWidth: distance33.optional(),
17937
+ x1: distance32,
17938
+ y1: distance32,
17939
+ x2: distance32,
17940
+ y2: distance32,
17941
+ strokeWidth: distance32.optional(),
17955
17942
  color: z104.string().optional(),
17956
17943
  isDashed: z104.boolean().optional().default(false)
17957
17944
  });
17958
17945
  expectTypesMatch(true);
17959
17946
 
17960
17947
  // lib/components/schematic-text.ts
17961
- import { distance as distance34, rotation as rotation9 } from "circuit-json";
17948
+ import { distance as distance33, rotation as rotation9 } from "circuit-json";
17962
17949
  import { z as z106 } from "zod";
17963
17950
 
17964
17951
  // lib/common/fivePointAnchor.ts
@@ -17973,8 +17960,8 @@ var fivePointAnchor = z105.enum([
17973
17960
 
17974
17961
  // lib/components/schematic-text.ts
17975
17962
  var schematicTextProps = z106.object({
17976
- schX: distance34.optional(),
17977
- schY: distance34.optional(),
17963
+ schX: distance33.optional(),
17964
+ schY: distance33.optional(),
17978
17965
  text: z106.string(),
17979
17966
  fontSize: z106.number().default(1),
17980
17967
  anchor: z106.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
@@ -17984,12 +17971,12 @@ var schematicTextProps = z106.object({
17984
17971
  expectTypesMatch(true);
17985
17972
 
17986
17973
  // lib/components/schematic-path.ts
17987
- import { distance as distance35, point as point8 } from "circuit-json";
17974
+ import { distance as distance34, point as point8 } from "circuit-json";
17988
17975
  import { z as z107 } from "zod";
17989
17976
  var schematicPathProps = z107.object({
17990
17977
  points: z107.array(point8).optional(),
17991
17978
  svgPath: z107.string().optional(),
17992
- strokeWidth: distance35.optional(),
17979
+ strokeWidth: distance34.optional(),
17993
17980
  strokeColor: z107.string().optional(),
17994
17981
  isFilled: z107.boolean().optional().default(false),
17995
17982
  fillColor: z107.string().optional()
@@ -17997,39 +17984,39 @@ var schematicPathProps = z107.object({
17997
17984
  expectTypesMatch(true);
17998
17985
 
17999
17986
  // lib/components/schematic-table.ts
18000
- import { distance as distance36 } from "circuit-json";
17987
+ import { distance as distance35 } from "circuit-json";
18001
17988
  import { z as z108 } from "zod";
18002
17989
  var schematicTableProps = z108.object({
18003
- schX: distance36.optional(),
18004
- schY: distance36.optional(),
17990
+ schX: distance35.optional(),
17991
+ schY: distance35.optional(),
18005
17992
  children: z108.any().optional(),
18006
- cellPadding: distance36.optional(),
18007
- borderWidth: distance36.optional(),
17993
+ cellPadding: distance35.optional(),
17994
+ borderWidth: distance35.optional(),
18008
17995
  anchor: ninePointAnchor.optional(),
18009
- fontSize: distance36.optional()
17996
+ fontSize: distance35.optional()
18010
17997
  });
18011
17998
  expectTypesMatch(true);
18012
17999
 
18013
18000
  // lib/components/schematic-row.ts
18014
- import { distance as distance37 } from "circuit-json";
18001
+ import { distance as distance36 } from "circuit-json";
18015
18002
  import { z as z109 } from "zod";
18016
18003
  var schematicRowProps = z109.object({
18017
18004
  children: z109.any().optional(),
18018
- height: distance37.optional()
18005
+ height: distance36.optional()
18019
18006
  });
18020
18007
  expectTypesMatch(true);
18021
18008
 
18022
18009
  // lib/components/schematic-cell.ts
18023
- import { distance as distance38 } from "circuit-json";
18010
+ import { distance as distance37 } from "circuit-json";
18024
18011
  import { z as z110 } from "zod";
18025
18012
  var schematicCellProps = z110.object({
18026
18013
  children: z110.string().optional(),
18027
18014
  horizontalAlign: z110.enum(["left", "center", "right"]).optional(),
18028
18015
  verticalAlign: z110.enum(["top", "middle", "bottom"]).optional(),
18029
- fontSize: distance38.optional(),
18016
+ fontSize: distance37.optional(),
18030
18017
  rowSpan: z110.number().optional(),
18031
18018
  colSpan: z110.number().optional(),
18032
- width: distance38.optional(),
18019
+ width: distance37.optional(),
18033
18020
  text: z110.string().optional()
18034
18021
  });
18035
18022
  expectTypesMatch(true);
@@ -18086,7 +18073,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18086
18073
  });
18087
18074
 
18088
18075
  // lib/components/silkscreen-line.ts
18089
- import { distance as distance39 } from "circuit-json";
18076
+ import { distance as distance38 } from "circuit-json";
18090
18077
  var silkscreenLineProps = pcbLayoutProps.omit({
18091
18078
  pcbX: true,
18092
18079
  pcbY: true,
@@ -18094,41 +18081,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18094
18081
  pcbOffsetY: true,
18095
18082
  pcbRotation: true
18096
18083
  }).extend({
18097
- strokeWidth: distance39,
18098
- x1: distance39,
18099
- y1: distance39,
18100
- x2: distance39,
18101
- y2: distance39
18084
+ strokeWidth: distance38,
18085
+ x1: distance38,
18086
+ y1: distance38,
18087
+ x2: distance38,
18088
+ y2: distance38
18102
18089
  });
18103
18090
 
18104
18091
  // lib/components/silkscreen-rect.ts
18105
- import { distance as distance40 } from "circuit-json";
18092
+ import { distance as distance39 } from "circuit-json";
18106
18093
  import { z as z114 } from "zod";
18107
18094
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18108
18095
  filled: z114.boolean().default(true).optional(),
18109
18096
  stroke: z114.enum(["dashed", "solid", "none"]).optional(),
18110
- strokeWidth: distance40.optional(),
18111
- width: distance40,
18112
- height: distance40,
18113
- cornerRadius: distance40.optional()
18097
+ strokeWidth: distance39.optional(),
18098
+ width: distance39,
18099
+ height: distance39,
18100
+ cornerRadius: distance39.optional()
18114
18101
  });
18115
18102
 
18116
18103
  // lib/components/silkscreen-circle.ts
18117
- import { distance as distance41 } from "circuit-json";
18104
+ import { distance as distance40 } from "circuit-json";
18118
18105
  import { z as z115 } from "zod";
18119
18106
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18120
18107
  isFilled: z115.boolean().optional(),
18121
18108
  isOutline: z115.boolean().optional(),
18122
- strokeWidth: distance41.optional(),
18123
- radius: distance41
18109
+ strokeWidth: distance40.optional(),
18110
+ radius: distance40
18124
18111
  });
18125
18112
 
18126
18113
  // lib/components/trace-hint.ts
18127
- import { distance as distance42, layer_ref as layer_ref11, route_hint_point as route_hint_point6 } from "circuit-json";
18114
+ import { distance as distance41, layer_ref as layer_ref11, route_hint_point as route_hint_point6 } from "circuit-json";
18128
18115
  import { z as z116 } from "zod";
18129
18116
  var routeHintPointProps = z116.object({
18130
- x: distance42,
18131
- y: distance42,
18117
+ x: distance41,
18118
+ y: distance41,
18132
18119
  via: z116.boolean().optional(),
18133
18120
  toLayer: layer_ref11.optional()
18134
18121
  });
@@ -18172,17 +18159,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18172
18159
  expectTypesMatch(true);
18173
18160
 
18174
18161
  // lib/components/pcb-note-rect.ts
18175
- import { distance as distance43 } from "circuit-json";
18162
+ import { distance as distance42 } from "circuit-json";
18176
18163
  import { z as z119 } from "zod";
18177
18164
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18178
- width: distance43,
18179
- height: distance43,
18180
- strokeWidth: distance43.optional(),
18165
+ width: distance42,
18166
+ height: distance42,
18167
+ strokeWidth: distance42.optional(),
18181
18168
  isFilled: z119.boolean().optional(),
18182
18169
  hasStroke: z119.boolean().optional(),
18183
18170
  isStrokeDashed: z119.boolean().optional(),
18184
18171
  color: z119.string().optional(),
18185
- cornerRadius: distance43.optional()
18172
+ cornerRadius: distance42.optional()
18186
18173
  });
18187
18174
  expectTypesMatch(true);
18188
18175
 
@@ -18210,7 +18197,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18210
18197
  expectTypesMatch(true);
18211
18198
 
18212
18199
  // lib/components/pcb-note-line.ts
18213
- import { distance as distance44 } from "circuit-json";
18200
+ import { distance as distance43 } from "circuit-json";
18214
18201
  import { z as z121 } from "zod";
18215
18202
  var pcbNoteLineProps = pcbLayoutProps.omit({
18216
18203
  pcbLeftEdgeX: true,
@@ -18223,18 +18210,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18223
18210
  pcbOffsetY: true,
18224
18211
  pcbRotation: true
18225
18212
  }).extend({
18226
- x1: distance44,
18227
- y1: distance44,
18228
- x2: distance44,
18229
- y2: distance44,
18230
- strokeWidth: distance44.optional(),
18213
+ x1: distance43,
18214
+ y1: distance43,
18215
+ x2: distance43,
18216
+ y2: distance43,
18217
+ strokeWidth: distance43.optional(),
18231
18218
  color: z121.string().optional(),
18232
18219
  isDashed: z121.boolean().optional()
18233
18220
  });
18234
18221
  expectTypesMatch(true);
18235
18222
 
18236
18223
  // lib/components/pcb-note-dimension.ts
18237
- import { distance as distance45, length as length13 } from "circuit-json";
18224
+ import { distance as distance44, length as length13 } from "circuit-json";
18238
18225
  import { z as z122 } from "zod";
18239
18226
  var dimensionTarget2 = z122.union([z122.string(), point]);
18240
18227
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18251,11 +18238,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18251
18238
  from: dimensionTarget2,
18252
18239
  to: dimensionTarget2,
18253
18240
  text: z122.string().optional(),
18254
- offset: distance45.optional(),
18241
+ offset: distance44.optional(),
18255
18242
  font: z122.enum(["tscircuit2024"]).optional(),
18256
18243
  fontSize: length13.optional(),
18257
18244
  color: z122.string().optional(),
18258
- arrowSize: distance45.optional(),
18245
+ arrowSize: distance44.optional(),
18259
18246
  units: z122.enum(["in", "mm"]).optional(),
18260
18247
  outerEdgeToEdge: z122.literal(true).optional(),
18261
18248
  centerToCenter: z122.literal(true).optional(),