@tscircuit/props 0.0.499 → 0.0.501

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