@tscircuit/props 0.0.628 → 0.0.630

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -374,6 +374,11 @@ export interface BoardProps extends Omit<
374
374
  material?: "fr4" | "fr1" | "flex";
375
375
  /** Number of layers for the PCB */
376
376
  layers?: 1 | 2 | 4 | 6 | 8 | 10;
377
+ /**
378
+ * Whether the autorouter may generate blind and buried vias. Defaults to
379
+ * false, which restricts newly generated vias to the full board stack.
380
+ */
381
+ allowBlindAndBuriedVias?: boolean;
377
382
  borderRadius?: Distance;
378
383
  thickness?: Distance;
379
384
  boardAnchorPosition?: Point;
@@ -631,6 +636,10 @@ export interface CopperPourProps {
631
636
  name?: string;
632
637
  layer: LayerRefInput;
633
638
  connectsTo: string;
639
+ /**
640
+ * Reserves the pour region during autorouting so unrelated traces do not
641
+ * split it. Vias may still cross the region using antipads.
642
+ */
634
643
  unbroken?: boolean;
635
644
  padMargin?: Distance;
636
645
  traceMargin?: Distance;
package/dist/index.d.ts CHANGED
@@ -20603,6 +20603,11 @@ interface ImplicitBreakoutRegion {
20603
20603
  interface ImplicitBreakoutConnectionEndpoint {
20604
20604
  readonly regionId: string;
20605
20605
  readonly position: ImplicitBreakoutPoint;
20606
+ /**
20607
+ * Optional PCB world-space routing destination, in millimeters, beyond this
20608
+ * breakout region. A solver may use it to select and align a nearer edge.
20609
+ */
20610
+ readonly externalDestination?: ImplicitBreakoutPoint;
20606
20611
  }
20607
20612
  interface ImplicitBreakoutConnection {
20608
20613
  readonly connectionId: string;
@@ -27486,6 +27491,11 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
27486
27491
  material?: "fr4" | "fr1" | "flex";
27487
27492
  /** Number of layers for the PCB */
27488
27493
  layers?: 1 | 2 | 4 | 6 | 8 | 10;
27494
+ /**
27495
+ * Whether the autorouter may generate blind and buried vias. Defaults to
27496
+ * false, which restricts newly generated vias to the full board stack.
27497
+ */
27498
+ allowBlindAndBuriedVias?: boolean;
27489
27499
  borderRadius?: Distance;
27490
27500
  thickness?: Distance;
27491
27501
  boardAnchorPosition?: Point;
@@ -28279,6 +28289,7 @@ declare const boardProps: z.ZodObject<Omit<{
28279
28289
  }, "connections"> & {
28280
28290
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
28281
28291
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
28292
+ allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
28282
28293
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28283
28294
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28284
28295
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -28306,6 +28317,7 @@ declare const boardProps: z.ZodObject<Omit<{
28306
28317
  }, "strip", z.ZodTypeAny, {
28307
28318
  layers: 1 | 2 | 4 | 6 | 8 | 10;
28308
28319
  material: "flex" | "fr4" | "fr1";
28320
+ allowBlindAndBuriedVias: boolean;
28309
28321
  doubleSidedAssembly: boolean;
28310
28322
  symbol?: SymbolProp | undefined;
28311
28323
  width?: number | undefined;
@@ -28967,6 +28979,7 @@ declare const boardProps: z.ZodObject<Omit<{
28967
28979
  schMatchAdapt?: boolean | undefined;
28968
28980
  title?: string | undefined;
28969
28981
  material?: "flex" | "fr4" | "fr1" | undefined;
28982
+ allowBlindAndBuriedVias?: boolean | undefined;
28970
28983
  borderRadius?: string | number | undefined;
28971
28984
  boardAnchorPosition?: {
28972
28985
  x: string | number;
@@ -101239,6 +101252,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
101239
101252
  }, "connections"> & {
101240
101253
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
101241
101254
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
101255
+ allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
101242
101256
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
101243
101257
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
101244
101258
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -101277,6 +101291,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
101277
101291
  }, "strip", z.ZodTypeAny, {
101278
101292
  layers: 1 | 2 | 4 | 6 | 8 | 10;
101279
101293
  material: "flex" | "fr4" | "fr1";
101294
+ allowBlindAndBuriedVias: boolean;
101280
101295
  doubleSidedAssembly: boolean;
101281
101296
  symbol?: SymbolProp | undefined;
101282
101297
  width?: number | undefined;
@@ -101952,6 +101967,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
101952
101967
  schMatchAdapt?: boolean | undefined;
101953
101968
  title?: string | undefined;
101954
101969
  material?: "flex" | "fr4" | "fr1" | undefined;
101970
+ allowBlindAndBuriedVias?: boolean | undefined;
101955
101971
  borderRadius?: string | number | undefined;
101956
101972
  boardAnchorPosition?: {
101957
101973
  x: string | number;
@@ -190197,6 +190213,10 @@ interface CopperPourProps {
190197
190213
  name?: string;
190198
190214
  layer: LayerRefInput;
190199
190215
  connectsTo: string;
190216
+ /**
190217
+ * Reserves the pour region during autorouting so unrelated traces do not
190218
+ * split it. Vias may still cross the region using antipads.
190219
+ */
190200
190220
  unbroken?: boolean;
190201
190221
  padMargin?: Distance;
190202
190222
  traceMargin?: Distance;
package/dist/index.js CHANGED
@@ -16589,6 +16589,9 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16589
16589
  z42.literal(8),
16590
16590
  z42.literal(10)
16591
16591
  ]).default(2),
16592
+ allowBlindAndBuriedVias: z42.boolean().default(false).describe(
16593
+ "Whether the autorouter may generate blind and buried vias. Defaults to false, which restricts newly generated vias to the full board stack."
16594
+ ),
16592
16595
  borderRadius: distance.optional(),
16593
16596
  thickness: distance.optional(),
16594
16597
  boardAnchorPosition: point.optional(),
@@ -18388,7 +18391,9 @@ var copperPourProps = z111.object({
18388
18391
  name: z111.string().optional(),
18389
18392
  layer: layer_ref10,
18390
18393
  connectsTo: z111.string(),
18391
- unbroken: z111.boolean().optional(),
18394
+ unbroken: z111.boolean().optional().describe(
18395
+ "Reserves the pour region during autorouting so unrelated traces do not split it. Vias may still cross the region using antipads."
18396
+ ),
18392
18397
  padMargin: distance.optional(),
18393
18398
  traceMargin: distance.optional(),
18394
18399
  clearance: distance.optional(),