@tscircuit/props 0.0.611 → 0.0.612

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
@@ -17400,27 +17400,40 @@ var traceProps = z70.union([
17400
17400
  ]);
17401
17401
 
17402
17402
  // lib/components/bus.ts
17403
+ import {
17404
+ distance as distance19,
17405
+ layer_ref as layer_ref6,
17406
+ resistance as resistance3
17407
+ } from "circuit-json";
17403
17408
  import { z as z71 } from "zod";
17404
17409
  var busProps = z71.object({
17405
17410
  name: z71.string().optional(),
17406
17411
  connections: z71.array(z71.string()).min(2),
17407
- routingPhaseIndex: z71.number().nullable().optional()
17412
+ routingPhaseIndex: z71.number().nullable().optional(),
17413
+ maxLengthSkew: distance19.pipe(z71.number().min(0).finite()).optional(),
17414
+ targetImpedance: resistance3.pipe(z71.number().positive().finite()).optional(),
17415
+ pcbTraceWidth: distance19.pipe(z71.number().positive().finite()).optional(),
17416
+ pcbAllowedLayers: z71.array(layer_ref6).min(1).optional()
17408
17417
  });
17409
17418
  expectTypesMatch(true);
17410
17419
 
17411
17420
  // lib/components/differentialpair.ts
17421
+ import { distance as distance20, resistance as resistance4 } from "circuit-json";
17412
17422
  import { z as z72 } from "zod";
17413
17423
  var differentialPairProps = z72.object({
17414
17424
  name: z72.string().optional(),
17415
17425
  positiveConnection: z72.string(),
17416
17426
  negativeConnection: z72.string(),
17417
- maxLengthSkew: z72.number().min(0).finite().optional()
17427
+ maxLengthSkew: distance20.pipe(z72.number().min(0).finite()).optional(),
17428
+ targetDifferentialImpedance: resistance4.pipe(z72.number().positive().finite()).optional(),
17429
+ pcbTraceGap: distance20.pipe(z72.number().positive().finite()).optional(),
17430
+ maxUncoupledLength: distance20.pipe(z72.number().min(0).finite()).optional()
17418
17431
  });
17419
17432
  expectTypesMatch(true);
17420
17433
 
17421
17434
  // lib/components/footprint.ts
17422
17435
  import {
17423
- layer_ref as layer_ref6
17436
+ layer_ref as layer_ref7
17424
17437
  } from "circuit-json";
17425
17438
  import { z as z73 } from "zod";
17426
17439
  var footprintInsertionDirection = z73.enum([
@@ -17444,7 +17457,7 @@ expectTypesMatch(true);
17444
17457
  var footprintProps = z73.object({
17445
17458
  children: z73.any().optional(),
17446
17459
  name: z73.string().optional(),
17447
- originalLayer: layer_ref6.default("top").optional(),
17460
+ originalLayer: layer_ref7.default("top").optional(),
17448
17461
  circuitJson: z73.array(z73.any()).optional(),
17449
17462
  src: footprintProp.describe("Can be a footprint or kicad string").optional(),
17450
17463
  insertionDirection: footprintInsertionDirection.optional().describe(
@@ -17505,7 +17518,7 @@ var mountedboardProps = subcircuitGroupProps.extend({
17505
17518
  expectTypesMatch(true);
17506
17519
 
17507
17520
  // lib/components/pin-header.ts
17508
- import { distance as distance19 } from "circuit-json";
17521
+ import { distance as distance21 } from "circuit-json";
17509
17522
 
17510
17523
  // lib/common/pcbOrientation.ts
17511
17524
  import { z as z77 } from "zod";
@@ -17518,7 +17531,7 @@ expectTypesMatch(true);
17518
17531
  import { z as z78 } from "zod";
17519
17532
  var pinHeaderProps = commonComponentProps.extend({
17520
17533
  pinCount: z78.number(),
17521
- pitch: distance19.optional(),
17534
+ pitch: distance21.optional(),
17522
17535
  schFacingDirection: z78.enum(["up", "down", "left", "right"]).optional(),
17523
17536
  gender: z78.enum(["male", "female", "unpopulated"]).optional().default("male"),
17524
17537
  showSilkscreenPinLabels: z78.boolean().optional(),
@@ -17526,16 +17539,16 @@ var pinHeaderProps = commonComponentProps.extend({
17526
17539
  doubleRow: z78.boolean().optional(),
17527
17540
  rightAngle: z78.boolean().optional(),
17528
17541
  pcbOrientation: pcbOrientation.optional(),
17529
- holeDiameter: distance19.optional(),
17530
- platedDiameter: distance19.optional(),
17542
+ holeDiameter: distance21.optional(),
17543
+ platedDiameter: distance21.optional(),
17531
17544
  pinLabels: z78.record(z78.string(), schematicPinLabel).or(z78.array(schematicPinLabel)).optional(),
17532
17545
  connections: z78.custom().pipe(z78.record(z78.string(), connectionTarget)).optional(),
17533
17546
  facingDirection: z78.enum(["left", "right"]).optional(),
17534
17547
  schPinArrangement: schematicPinArrangement.optional(),
17535
17548
  schPinStyle: schematicPinStyle.optional(),
17536
- schPinSpacing: distance19.optional(),
17537
- schWidth: distance19.optional(),
17538
- schHeight: distance19.optional()
17549
+ schPinSpacing: distance21.optional(),
17550
+ schWidth: distance21.optional(),
17551
+ schHeight: distance21.optional()
17539
17552
  });
17540
17553
  expectTypesMatch(true);
17541
17554
 
@@ -17725,11 +17738,11 @@ import {
17725
17738
  capacitance as capacitance4,
17726
17739
  current as current2,
17727
17740
  inductance,
17728
- resistance as resistance3,
17741
+ resistance as resistance5,
17729
17742
  voltage as voltage4
17730
17743
  } from "circuit-json";
17731
17744
  import { z as z87 } from "zod";
17732
- var resistanceSweepQuantity = resistance3.pipe(z87.number());
17745
+ var resistanceSweepQuantity = resistance5.pipe(z87.number());
17733
17746
  var capacitanceSweepQuantity = capacitance4.pipe(z87.number());
17734
17747
  var inductanceSweepQuantity = inductance.pipe(z87.number());
17735
17748
  var voltageSweepQuantity = voltage4.pipe(z87.number());
@@ -18115,17 +18128,17 @@ var fabricationNoteTextProps = pcbLayoutProps.extend({
18115
18128
  expectTypesMatch(true);
18116
18129
 
18117
18130
  // lib/components/fabrication-note-rect.ts
18118
- import { distance as distance20 } from "circuit-json";
18131
+ import { distance as distance22 } from "circuit-json";
18119
18132
  import { z as z99 } from "zod";
18120
18133
  var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18121
- width: distance20,
18122
- height: distance20,
18123
- strokeWidth: distance20.optional(),
18134
+ width: distance22,
18135
+ height: distance22,
18136
+ strokeWidth: distance22.optional(),
18124
18137
  isFilled: z99.boolean().optional(),
18125
18138
  hasStroke: z99.boolean().optional(),
18126
18139
  isStrokeDashed: z99.boolean().optional(),
18127
18140
  color: z99.string().optional(),
18128
- cornerRadius: distance20.optional()
18141
+ cornerRadius: distance22.optional()
18129
18142
  });
18130
18143
 
18131
18144
  // lib/components/fabrication-note-path.ts
@@ -18148,7 +18161,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
18148
18161
  });
18149
18162
 
18150
18163
  // lib/components/fabrication-note-dimension.ts
18151
- import { distance as distance21, length as length6 } from "circuit-json";
18164
+ import { distance as distance23, length as length6 } from "circuit-json";
18152
18165
  import { z as z101 } from "zod";
18153
18166
  var dimensionTarget = z101.union([z101.string(), point]);
18154
18167
  var fabricationNoteDimensionProps = pcbLayoutProps.omit({
@@ -18165,11 +18178,11 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
18165
18178
  from: dimensionTarget,
18166
18179
  to: dimensionTarget,
18167
18180
  text: z101.string().optional(),
18168
- offset: distance21.optional(),
18181
+ offset: distance23.optional(),
18169
18182
  font: z101.enum(["tscircuit2024"]).optional(),
18170
18183
  fontSize: length6.optional(),
18171
18184
  color: z101.string().optional(),
18172
- arrowSize: distance21.optional(),
18185
+ arrowSize: distance23.optional(),
18173
18186
  units: z101.enum(["in", "mm"]).optional(),
18174
18187
  outerEdgeToEdge: z101.literal(true).optional(),
18175
18188
  centerToCenter: z101.literal(true).optional(),
@@ -18178,31 +18191,31 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
18178
18191
  expectTypesMatch(true);
18179
18192
 
18180
18193
  // lib/components/pcb-trace.ts
18181
- import { distance as distance22, route_hint_point as route_hint_point4 } from "circuit-json";
18194
+ import { distance as distance24, route_hint_point as route_hint_point4 } from "circuit-json";
18182
18195
  import { z as z102 } from "zod";
18183
18196
  var pcbTraceProps = z102.object({
18184
18197
  layer: z102.string().optional(),
18185
- thickness: distance22.optional(),
18198
+ thickness: distance24.optional(),
18186
18199
  route: z102.array(route_hint_point4)
18187
18200
  });
18188
18201
 
18189
18202
  // lib/components/via.ts
18190
- import { distance as distance23, layer_ref as layer_ref7 } from "circuit-json";
18203
+ import { distance as distance25, layer_ref as layer_ref8 } from "circuit-json";
18191
18204
  import { z as z103 } from "zod";
18192
18205
  var viaProps = commonLayoutProps.extend({
18193
18206
  name: z103.string().optional(),
18194
- fromLayer: layer_ref7.optional(),
18195
- toLayer: layer_ref7.optional(),
18196
- holeDiameter: distance23.optional(),
18197
- outerDiameter: distance23.optional(),
18198
- layers: z103.array(layer_ref7).optional(),
18207
+ fromLayer: layer_ref8.optional(),
18208
+ toLayer: layer_ref8.optional(),
18209
+ holeDiameter: distance25.optional(),
18210
+ outerDiameter: distance25.optional(),
18211
+ layers: z103.array(layer_ref8).optional(),
18199
18212
  connectsTo: z103.string().or(z103.array(z103.string())).optional(),
18200
18213
  netIsAssignable: z103.boolean().optional()
18201
18214
  });
18202
18215
  expectTypesMatch(true);
18203
18216
 
18204
18217
  // lib/components/testpoint.ts
18205
- import { distance as distance24 } from "circuit-json";
18218
+ import { distance as distance26 } from "circuit-json";
18206
18219
  import { z as z104 } from "zod";
18207
18220
  var testpointPins = ["pin1"];
18208
18221
  var testpointConnectionsProp = z104.object({
@@ -18212,10 +18225,10 @@ var testpointProps = commonComponentProps.extend({
18212
18225
  connections: testpointConnectionsProp.optional(),
18213
18226
  footprintVariant: z104.enum(["pad", "through_hole"]).optional(),
18214
18227
  padShape: z104.enum(["rect", "circle"]).optional().default("circle"),
18215
- padDiameter: distance24.optional(),
18216
- holeDiameter: distance24.optional(),
18217
- width: distance24.optional(),
18218
- height: distance24.optional()
18228
+ padDiameter: distance26.optional(),
18229
+ holeDiameter: distance26.optional(),
18230
+ width: distance26.optional(),
18231
+ height: distance26.optional()
18219
18232
  }).refine(
18220
18233
  (props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
18221
18234
  { message: "holeDiameter is required for through_hole testpoints" }
@@ -18230,22 +18243,22 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
18230
18243
  expectTypesMatch(true);
18231
18244
 
18232
18245
  // lib/components/pcb-keepout.ts
18233
- import { distance as distance25, layer_ref as layer_ref8 } from "circuit-json";
18246
+ import { distance as distance27, layer_ref as layer_ref9 } from "circuit-json";
18234
18247
  import { z as z106 } from "zod";
18235
18248
  var pcbKeepoutProps = z106.union([
18236
18249
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
18237
18250
  shape: z106.literal("circle"),
18238
- radius: distance25,
18239
- layers: z106.array(layer_ref8).optional(),
18251
+ radius: distance27,
18252
+ layers: z106.array(layer_ref9).optional(),
18240
18253
  excludeRefs: z106.array(z106.string()).optional().describe(
18241
18254
  'Component selectors excluded from the keepout, such as ".ANT1"'
18242
18255
  )
18243
18256
  }),
18244
18257
  pcbLayoutProps.extend({
18245
18258
  shape: z106.literal("rect"),
18246
- width: distance25,
18247
- height: distance25,
18248
- layers: z106.array(layer_ref8).optional(),
18259
+ width: distance27,
18260
+ height: distance27,
18261
+ layers: z106.array(layer_ref9).optional(),
18249
18262
  excludeRefs: z106.array(z106.string()).optional().describe(
18250
18263
  'Component selectors excluded from the keepout, such as ".ANT1"'
18251
18264
  )
@@ -18253,12 +18266,12 @@ var pcbKeepoutProps = z106.union([
18253
18266
  ]);
18254
18267
 
18255
18268
  // lib/components/courtyard-rect.ts
18256
- import { distance as distance26 } from "circuit-json";
18269
+ import { distance as distance28 } from "circuit-json";
18257
18270
  import { z as z107 } from "zod";
18258
18271
  var courtyardRectProps = pcbLayoutProps.extend({
18259
- width: distance26,
18260
- height: distance26,
18261
- strokeWidth: distance26.optional(),
18272
+ width: distance28,
18273
+ height: distance28,
18274
+ strokeWidth: distance28.optional(),
18262
18275
  isFilled: z107.boolean().optional(),
18263
18276
  hasStroke: z107.boolean().optional(),
18264
18277
  isStrokeDashed: z107.boolean().optional(),
@@ -18287,27 +18300,27 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
18287
18300
  });
18288
18301
 
18289
18302
  // lib/components/courtyard-circle.ts
18290
- import { distance as distance27 } from "circuit-json";
18303
+ import { distance as distance29 } from "circuit-json";
18291
18304
  import "zod";
18292
18305
  var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18293
- radius: distance27
18306
+ radius: distance29
18294
18307
  });
18295
18308
 
18296
18309
  // lib/components/courtyard-pill.ts
18297
- import { distance as distance28 } from "circuit-json";
18310
+ import { distance as distance30 } from "circuit-json";
18298
18311
  import "zod";
18299
18312
  var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18300
- width: distance28,
18301
- height: distance28,
18302
- radius: distance28
18313
+ width: distance30,
18314
+ height: distance30,
18315
+ radius: distance30
18303
18316
  });
18304
18317
 
18305
18318
  // lib/components/copper-pour.ts
18306
18319
  import { z as z111 } from "zod";
18307
- import { layer_ref as layer_ref9 } from "circuit-json";
18320
+ import { layer_ref as layer_ref10 } from "circuit-json";
18308
18321
  var copperPourProps = z111.object({
18309
18322
  name: z111.string().optional(),
18310
- layer: layer_ref9,
18323
+ layer: layer_ref10,
18311
18324
  connectsTo: z111.string(),
18312
18325
  unbroken: z111.boolean().optional(),
18313
18326
  padMargin: distance.optional(),
@@ -18321,10 +18334,10 @@ var copperPourProps = z111.object({
18321
18334
  expectTypesMatch(true);
18322
18335
 
18323
18336
  // lib/components/cadassembly.ts
18324
- import { layer_ref as layer_ref10 } from "circuit-json";
18337
+ import { layer_ref as layer_ref11 } from "circuit-json";
18325
18338
  import { z as z112 } from "zod";
18326
18339
  var cadassemblyProps = z112.object({
18327
- originalLayer: layer_ref10.default("top").optional(),
18340
+ originalLayer: layer_ref11.default("top").optional(),
18328
18341
  children: z112.any().optional()
18329
18342
  });
18330
18343
  expectTypesMatch(true);
@@ -18454,15 +18467,15 @@ var ammeterPins = ammeterPinLabels;
18454
18467
  expectTypesMatch(true);
18455
18468
 
18456
18469
  // lib/components/schematic-arc.ts
18457
- import { distance as distance29, point as point5, rotation as rotation7 } from "circuit-json";
18470
+ import { distance as distance31, point as point5, rotation as rotation7 } from "circuit-json";
18458
18471
  import { z as z118 } from "zod";
18459
18472
  var schematicArcProps = z118.object({
18460
18473
  center: point5,
18461
- radius: distance29,
18474
+ radius: distance31,
18462
18475
  startAngleDegrees: rotation7,
18463
18476
  endAngleDegrees: rotation7,
18464
18477
  direction: z118.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
18465
- strokeWidth: distance29.optional(),
18478
+ strokeWidth: distance31.optional(),
18466
18479
  color: z118.string().optional(),
18467
18480
  isDashed: z118.boolean().optional().default(false)
18468
18481
  });
@@ -18476,29 +18489,29 @@ var toolingrailProps = z119.object({
18476
18489
  expectTypesMatch(true);
18477
18490
 
18478
18491
  // lib/components/schematic-box.ts
18479
- import { distance as distance30 } from "circuit-json";
18492
+ import { distance as distance32 } from "circuit-json";
18480
18493
  import { z as z120 } from "zod";
18481
18494
  var schematicBoxProps = z120.object({
18482
18495
  name: z120.string().optional(),
18483
18496
  chipRef: z120.string().optional(),
18484
18497
  pinLabels: pinLabelsProp.optional(),
18485
18498
  schPinArrangement: schematicPinArrangement.optional(),
18486
- schX: distance30.optional(),
18487
- schY: distance30.optional(),
18499
+ schX: distance32.optional(),
18500
+ schY: distance32.optional(),
18488
18501
  schSectionName: z120.string().optional(),
18489
18502
  schSheetName: z120.string().optional(),
18490
- width: distance30.optional(),
18491
- height: distance30.optional(),
18503
+ width: distance32.optional(),
18504
+ height: distance32.optional(),
18492
18505
  overlay: z120.array(z120.string()).optional(),
18493
- padding: distance30.optional(),
18494
- paddingLeft: distance30.optional(),
18495
- paddingRight: distance30.optional(),
18496
- paddingTop: distance30.optional(),
18497
- paddingBottom: distance30.optional(),
18506
+ padding: distance32.optional(),
18507
+ paddingLeft: distance32.optional(),
18508
+ paddingRight: distance32.optional(),
18509
+ paddingTop: distance32.optional(),
18510
+ paddingBottom: distance32.optional(),
18498
18511
  title: z120.string().optional(),
18499
18512
  titleAlignment: ninePointAnchor.default("top_left"),
18500
18513
  titleColor: z120.string().optional(),
18501
- titleFontSize: distance30.optional(),
18514
+ titleFontSize: distance32.optional(),
18502
18515
  titleInside: z120.boolean().default(false),
18503
18516
  strokeStyle: z120.enum(["solid", "dashed"]).default("solid")
18504
18517
  }).refine(
@@ -18537,12 +18550,12 @@ expectTypesMatch(
18537
18550
  );
18538
18551
 
18539
18552
  // lib/components/schematic-circle.ts
18540
- import { distance as distance31, point as point6 } from "circuit-json";
18553
+ import { distance as distance33, point as point6 } from "circuit-json";
18541
18554
  import { z as z122 } from "zod";
18542
18555
  var schematicCircleProps = z122.object({
18543
18556
  center: point6,
18544
- radius: distance31,
18545
- strokeWidth: distance31.optional(),
18557
+ radius: distance33,
18558
+ strokeWidth: distance33.optional(),
18546
18559
  color: z122.string().optional(),
18547
18560
  isFilled: z122.boolean().optional().default(false),
18548
18561
  fillColor: z122.string().optional(),
@@ -18553,15 +18566,15 @@ expectTypesMatch(
18553
18566
  );
18554
18567
 
18555
18568
  // lib/components/schematic-rect.ts
18556
- import { distance as distance32, rotation as rotation9 } from "circuit-json";
18569
+ import { distance as distance34, rotation as rotation9 } from "circuit-json";
18557
18570
  import { z as z123 } from "zod";
18558
18571
  var schematicRectProps = z123.object({
18559
- schX: distance32.optional(),
18560
- schY: distance32.optional(),
18561
- width: distance32,
18562
- height: distance32,
18572
+ schX: distance34.optional(),
18573
+ schY: distance34.optional(),
18574
+ width: distance34,
18575
+ height: distance34,
18563
18576
  rotation: rotation9.default(0),
18564
- strokeWidth: distance32.optional(),
18577
+ strokeWidth: distance34.optional(),
18565
18578
  color: z123.string().optional(),
18566
18579
  isFilled: z123.boolean().optional().default(false),
18567
18580
  fillColor: z123.string().optional(),
@@ -18570,23 +18583,23 @@ var schematicRectProps = z123.object({
18570
18583
  expectTypesMatch(true);
18571
18584
 
18572
18585
  // lib/components/schematic-line.ts
18573
- import { distance as distance33 } from "circuit-json";
18586
+ import { distance as distance35 } from "circuit-json";
18574
18587
  import { z as z124 } from "zod";
18575
18588
  var schematicLineProps = z124.object({
18576
- x1: distance33,
18577
- y1: distance33,
18578
- x2: distance33,
18579
- y2: distance33,
18580
- strokeWidth: distance33.optional(),
18589
+ x1: distance35,
18590
+ y1: distance35,
18591
+ x2: distance35,
18592
+ y2: distance35,
18593
+ strokeWidth: distance35.optional(),
18581
18594
  color: z124.string().optional(),
18582
18595
  isDashed: z124.boolean().optional().default(false),
18583
- dashLength: distance33.optional(),
18584
- dashGap: distance33.optional()
18596
+ dashLength: distance35.optional(),
18597
+ dashGap: distance35.optional()
18585
18598
  });
18586
18599
  expectTypesMatch(true);
18587
18600
 
18588
18601
  // lib/components/schematic-text.ts
18589
- import { distance as distance34, rotation as rotation10 } from "circuit-json";
18602
+ import { distance as distance36, rotation as rotation10 } from "circuit-json";
18590
18603
  import { z as z126 } from "zod";
18591
18604
 
18592
18605
  // lib/common/fivePointAnchor.ts
@@ -18601,8 +18614,8 @@ var fivePointAnchor = z125.enum([
18601
18614
 
18602
18615
  // lib/components/schematic-text.ts
18603
18616
  var schematicTextProps = z126.object({
18604
- schX: distance34.optional(),
18605
- schY: distance34.optional(),
18617
+ schX: distance36.optional(),
18618
+ schY: distance36.optional(),
18606
18619
  text: z126.string(),
18607
18620
  fontSize: z126.number().default(1),
18608
18621
  anchor: z126.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
@@ -18612,65 +18625,65 @@ var schematicTextProps = z126.object({
18612
18625
  expectTypesMatch(true);
18613
18626
 
18614
18627
  // lib/components/schematic-path.ts
18615
- import { distance as distance35, point as point7 } from "circuit-json";
18628
+ import { distance as distance37, point as point7 } from "circuit-json";
18616
18629
  import { z as z127 } from "zod";
18617
18630
  var schematicPathProps = z127.object({
18618
18631
  points: z127.array(point7).optional(),
18619
18632
  svgPath: z127.string().optional(),
18620
- strokeWidth: distance35.optional(),
18633
+ strokeWidth: distance37.optional(),
18621
18634
  strokeColor: z127.string().optional(),
18622
- dashLength: distance35.optional(),
18623
- dashGap: distance35.optional(),
18635
+ dashLength: distance37.optional(),
18636
+ dashGap: distance37.optional(),
18624
18637
  isFilled: z127.boolean().optional().default(false),
18625
18638
  fillColor: z127.string().optional()
18626
18639
  });
18627
18640
  expectTypesMatch(true);
18628
18641
 
18629
18642
  // lib/components/schematic-table.ts
18630
- import { distance as distance36 } from "circuit-json";
18643
+ import { distance as distance38 } from "circuit-json";
18631
18644
  import { z as z128 } from "zod";
18632
18645
  var schematicTableProps = z128.object({
18633
- schX: distance36.optional(),
18634
- schY: distance36.optional(),
18646
+ schX: distance38.optional(),
18647
+ schY: distance38.optional(),
18635
18648
  children: z128.any().optional(),
18636
- cellPadding: distance36.optional(),
18637
- borderWidth: distance36.optional(),
18649
+ cellPadding: distance38.optional(),
18650
+ borderWidth: distance38.optional(),
18638
18651
  anchor: ninePointAnchor.optional(),
18639
- fontSize: distance36.optional()
18652
+ fontSize: distance38.optional()
18640
18653
  });
18641
18654
  expectTypesMatch(true);
18642
18655
 
18643
18656
  // lib/components/schematic-row.ts
18644
- import { distance as distance37 } from "circuit-json";
18657
+ import { distance as distance39 } from "circuit-json";
18645
18658
  import { z as z129 } from "zod";
18646
18659
  var schematicRowProps = z129.object({
18647
18660
  children: z129.any().optional(),
18648
- height: distance37.optional()
18661
+ height: distance39.optional()
18649
18662
  });
18650
18663
  expectTypesMatch(true);
18651
18664
 
18652
18665
  // lib/components/schematic-cell.ts
18653
- import { distance as distance38 } from "circuit-json";
18666
+ import { distance as distance40 } from "circuit-json";
18654
18667
  import { z as z130 } from "zod";
18655
18668
  var schematicCellProps = z130.object({
18656
18669
  children: z130.string().optional(),
18657
18670
  horizontalAlign: z130.enum(["left", "center", "right"]).optional(),
18658
18671
  verticalAlign: z130.enum(["top", "middle", "bottom"]).optional(),
18659
- fontSize: distance38.optional(),
18672
+ fontSize: distance40.optional(),
18660
18673
  rowSpan: z130.number().optional(),
18661
18674
  colSpan: z130.number().optional(),
18662
- width: distance38.optional(),
18675
+ width: distance40.optional(),
18663
18676
  text: z130.string().optional()
18664
18677
  });
18665
18678
  expectTypesMatch(true);
18666
18679
 
18667
18680
  // lib/components/schematic-section.ts
18668
- import { distance as distance39 } from "circuit-json";
18681
+ import { distance as distance41 } from "circuit-json";
18669
18682
  import { z as z131 } from "zod";
18670
18683
  var schematicSectionProps = z131.object({
18671
18684
  displayName: z131.string().optional(),
18672
18685
  name: z131.string(),
18673
- sectionTitleFontSize: distance39.optional()
18686
+ sectionTitleFontSize: distance41.optional()
18674
18687
  });
18675
18688
  expectTypesMatch(
18676
18689
  true
@@ -18687,20 +18700,20 @@ var schematicSheetProps = z132.object({
18687
18700
  expectTypesMatch(true);
18688
18701
 
18689
18702
  // lib/components/copper-text.ts
18690
- import { layer_ref as layer_ref11, length as length8 } from "circuit-json";
18703
+ import { layer_ref as layer_ref12, length as length8 } from "circuit-json";
18691
18704
  import { z as z133 } from "zod";
18692
18705
  var copperTextProps = pcbLayoutProps.extend({
18693
18706
  text: z133.string(),
18694
18707
  anchorAlignment: ninePointAnchor.default("center"),
18695
18708
  font: z133.enum(["tscircuit2024"]).optional(),
18696
18709
  fontSize: length8.optional(),
18697
- layers: z133.array(layer_ref11).optional(),
18710
+ layers: z133.array(layer_ref12).optional(),
18698
18711
  knockout: z133.boolean().optional(),
18699
18712
  mirrored: z133.boolean().optional()
18700
18713
  });
18701
18714
 
18702
18715
  // lib/components/silkscreen-text.ts
18703
- import { layer_ref as layer_ref12, length as length9 } from "circuit-json";
18716
+ import { layer_ref as layer_ref13, length as length9 } from "circuit-json";
18704
18717
  import { z as z134 } from "zod";
18705
18718
  var silkscreenTextProps = pcbLayoutProps.extend({
18706
18719
  text: z134.string(),
@@ -18716,7 +18729,7 @@ var silkscreenTextProps = pcbLayoutProps.extend({
18716
18729
  knockoutPaddingRight: length9.optional(),
18717
18730
  knockoutPaddingTop: length9.optional(),
18718
18731
  knockoutPaddingBottom: length9.optional(),
18719
- layers: z134.array(layer_ref12).optional()
18732
+ layers: z134.array(layer_ref13).optional()
18720
18733
  });
18721
18734
 
18722
18735
  // lib/components/silkscreen-path.ts
@@ -18738,7 +18751,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18738
18751
  });
18739
18752
 
18740
18753
  // lib/components/silkscreen-line.ts
18741
- import { distance as distance40 } from "circuit-json";
18754
+ import { distance as distance42 } from "circuit-json";
18742
18755
  var silkscreenLineProps = pcbLayoutProps.omit({
18743
18756
  pcbX: true,
18744
18757
  pcbY: true,
@@ -18746,33 +18759,33 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18746
18759
  pcbOffsetY: true,
18747
18760
  pcbRotation: true
18748
18761
  }).extend({
18749
- strokeWidth: distance40,
18750
- x1: distance40,
18751
- y1: distance40,
18752
- x2: distance40,
18753
- y2: distance40
18762
+ strokeWidth: distance42,
18763
+ x1: distance42,
18764
+ y1: distance42,
18765
+ x2: distance42,
18766
+ y2: distance42
18754
18767
  });
18755
18768
 
18756
18769
  // lib/components/silkscreen-rect.ts
18757
- import { distance as distance41 } from "circuit-json";
18770
+ import { distance as distance43 } from "circuit-json";
18758
18771
  import { z as z136 } from "zod";
18759
18772
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18760
18773
  filled: z136.boolean().default(true).optional(),
18761
18774
  stroke: z136.enum(["dashed", "solid", "none"]).optional(),
18762
- strokeWidth: distance41.optional(),
18763
- width: distance41,
18764
- height: distance41,
18765
- cornerRadius: distance41.optional()
18775
+ strokeWidth: distance43.optional(),
18776
+ width: distance43,
18777
+ height: distance43,
18778
+ cornerRadius: distance43.optional()
18766
18779
  });
18767
18780
 
18768
18781
  // lib/components/silkscreen-circle.ts
18769
- import { distance as distance42 } from "circuit-json";
18782
+ import { distance as distance44 } from "circuit-json";
18770
18783
  import { z as z137 } from "zod";
18771
18784
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18772
18785
  isFilled: z137.boolean().optional(),
18773
18786
  isOutline: z137.boolean().optional(),
18774
- strokeWidth: distance42.optional(),
18775
- radius: distance42
18787
+ strokeWidth: distance44.optional(),
18788
+ radius: distance44
18776
18789
  });
18777
18790
 
18778
18791
  // lib/components/silkscreen-graphic.ts
@@ -18787,13 +18800,13 @@ var silkscreenGraphicProps = pcbLayoutProps.omit({ layer: true, pcbStyle: true,
18787
18800
  expectTypesMatch(true);
18788
18801
 
18789
18802
  // lib/components/trace-hint.ts
18790
- import { distance as distance43, layer_ref as layer_ref13, route_hint_point as route_hint_point6 } from "circuit-json";
18803
+ import { distance as distance45, layer_ref as layer_ref14, route_hint_point as route_hint_point6 } from "circuit-json";
18791
18804
  import { z as z139 } from "zod";
18792
18805
  var routeHintPointProps = z139.object({
18793
- x: distance43,
18794
- y: distance43,
18806
+ x: distance45,
18807
+ y: distance45,
18795
18808
  via: z139.boolean().optional(),
18796
- toLayer: layer_ref13.optional()
18809
+ toLayer: layer_ref14.optional()
18797
18810
  });
18798
18811
  var traceHintProps = z139.object({
18799
18812
  for: z139.string().optional().describe(
@@ -18835,17 +18848,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18835
18848
  expectTypesMatch(true);
18836
18849
 
18837
18850
  // lib/components/pcb-note-rect.ts
18838
- import { distance as distance44 } from "circuit-json";
18851
+ import { distance as distance46 } from "circuit-json";
18839
18852
  import { z as z142 } from "zod";
18840
18853
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18841
- width: distance44,
18842
- height: distance44,
18843
- strokeWidth: distance44.optional(),
18854
+ width: distance46,
18855
+ height: distance46,
18856
+ strokeWidth: distance46.optional(),
18844
18857
  isFilled: z142.boolean().optional(),
18845
18858
  hasStroke: z142.boolean().optional(),
18846
18859
  isStrokeDashed: z142.boolean().optional(),
18847
18860
  color: z142.string().optional(),
18848
- cornerRadius: distance44.optional()
18861
+ cornerRadius: distance46.optional()
18849
18862
  });
18850
18863
  expectTypesMatch(true);
18851
18864
 
@@ -18873,7 +18886,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18873
18886
  expectTypesMatch(true);
18874
18887
 
18875
18888
  // lib/components/pcb-note-line.ts
18876
- import { distance as distance45 } from "circuit-json";
18889
+ import { distance as distance47 } from "circuit-json";
18877
18890
  import { z as z144 } from "zod";
18878
18891
  var pcbNoteLineProps = pcbLayoutProps.omit({
18879
18892
  pcbLeftEdgeX: true,
@@ -18886,18 +18899,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18886
18899
  pcbOffsetY: true,
18887
18900
  pcbRotation: true
18888
18901
  }).extend({
18889
- x1: distance45,
18890
- y1: distance45,
18891
- x2: distance45,
18892
- y2: distance45,
18893
- strokeWidth: distance45.optional(),
18902
+ x1: distance47,
18903
+ y1: distance47,
18904
+ x2: distance47,
18905
+ y2: distance47,
18906
+ strokeWidth: distance47.optional(),
18894
18907
  color: z144.string().optional(),
18895
18908
  isDashed: z144.boolean().optional()
18896
18909
  });
18897
18910
  expectTypesMatch(true);
18898
18911
 
18899
18912
  // lib/components/pcb-note-dimension.ts
18900
- import { distance as distance46, length as length13 } from "circuit-json";
18913
+ import { distance as distance48, length as length13 } from "circuit-json";
18901
18914
  import { z as z145 } from "zod";
18902
18915
  var dimensionTarget2 = z145.union([z145.string(), point]);
18903
18916
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18914,11 +18927,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18914
18927
  from: dimensionTarget2,
18915
18928
  to: dimensionTarget2,
18916
18929
  text: z145.string().optional(),
18917
- offset: distance46.optional(),
18930
+ offset: distance48.optional(),
18918
18931
  font: z145.enum(["tscircuit2024"]).optional(),
18919
18932
  fontSize: length13.optional(),
18920
18933
  color: z145.string().optional(),
18921
- arrowSize: distance46.optional(),
18934
+ arrowSize: distance48.optional(),
18922
18935
  units: z145.enum(["in", "mm"]).optional(),
18923
18936
  outerEdgeToEdge: z145.literal(true).optional(),
18924
18937
  centerToCenter: z145.literal(true).optional(),