@tscircuit/props 0.0.628 → 0.0.629

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
@@ -27486,6 +27486,11 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
27486
27486
  material?: "fr4" | "fr1" | "flex";
27487
27487
  /** Number of layers for the PCB */
27488
27488
  layers?: 1 | 2 | 4 | 6 | 8 | 10;
27489
+ /**
27490
+ * Whether the autorouter may generate blind and buried vias. Defaults to
27491
+ * false, which restricts newly generated vias to the full board stack.
27492
+ */
27493
+ allowBlindAndBuriedVias?: boolean;
27489
27494
  borderRadius?: Distance;
27490
27495
  thickness?: Distance;
27491
27496
  boardAnchorPosition?: Point;
@@ -28279,6 +28284,7 @@ declare const boardProps: z.ZodObject<Omit<{
28279
28284
  }, "connections"> & {
28280
28285
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
28281
28286
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
28287
+ allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
28282
28288
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28283
28289
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
28284
28290
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -28306,6 +28312,7 @@ declare const boardProps: z.ZodObject<Omit<{
28306
28312
  }, "strip", z.ZodTypeAny, {
28307
28313
  layers: 1 | 2 | 4 | 6 | 8 | 10;
28308
28314
  material: "flex" | "fr4" | "fr1";
28315
+ allowBlindAndBuriedVias: boolean;
28309
28316
  doubleSidedAssembly: boolean;
28310
28317
  symbol?: SymbolProp | undefined;
28311
28318
  width?: number | undefined;
@@ -28967,6 +28974,7 @@ declare const boardProps: z.ZodObject<Omit<{
28967
28974
  schMatchAdapt?: boolean | undefined;
28968
28975
  title?: string | undefined;
28969
28976
  material?: "flex" | "fr4" | "fr1" | undefined;
28977
+ allowBlindAndBuriedVias?: boolean | undefined;
28970
28978
  borderRadius?: string | number | undefined;
28971
28979
  boardAnchorPosition?: {
28972
28980
  x: string | number;
@@ -101239,6 +101247,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
101239
101247
  }, "connections"> & {
101240
101248
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
101241
101249
  layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>]>>;
101250
+ allowBlindAndBuriedVias: z.ZodDefault<z.ZodBoolean>;
101242
101251
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
101243
101252
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
101244
101253
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -101277,6 +101286,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
101277
101286
  }, "strip", z.ZodTypeAny, {
101278
101287
  layers: 1 | 2 | 4 | 6 | 8 | 10;
101279
101288
  material: "flex" | "fr4" | "fr1";
101289
+ allowBlindAndBuriedVias: boolean;
101280
101290
  doubleSidedAssembly: boolean;
101281
101291
  symbol?: SymbolProp | undefined;
101282
101292
  width?: number | undefined;
@@ -101952,6 +101962,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
101952
101962
  schMatchAdapt?: boolean | undefined;
101953
101963
  title?: string | undefined;
101954
101964
  material?: "flex" | "fr4" | "fr1" | undefined;
101965
+ allowBlindAndBuriedVias?: boolean | undefined;
101955
101966
  borderRadius?: string | number | undefined;
101956
101967
  boardAnchorPosition?: {
101957
101968
  x: string | number;
@@ -190197,6 +190208,10 @@ interface CopperPourProps {
190197
190208
  name?: string;
190198
190209
  layer: LayerRefInput;
190199
190210
  connectsTo: string;
190211
+ /**
190212
+ * Reserves the pour region during autorouting so unrelated traces do not
190213
+ * split it. Vias may still cross the region using antipads.
190214
+ */
190200
190215
  unbroken?: boolean;
190201
190216
  padMargin?: Distance;
190202
190217
  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(),