@tscircuit/props 0.0.603 → 0.0.605

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
@@ -393,6 +393,8 @@ export interface BoardProps extends Omit<
393
393
  bottomSilkscreenColor?: BoardColor;
394
394
  /** Whether the board should be assembled on both sides */
395
395
  doubleSidedAssembly?: boolean;
396
+ /** Whether vias may be placed inside PCB pads */
397
+ isViaInPadAllowed?: boolean;
396
398
  /** Whether this board should be omitted from the schematic view */
397
399
  schematicDisabled?: boolean;
398
400
  }
@@ -440,6 +442,8 @@ export interface BusProps {
440
442
  name?: string;
441
443
  /** Trace names or port selectors for the connections in the bus. */
442
444
  connections: string[];
445
+ /** If set, every trace in this bus is assigned to this autorouting phase. */
446
+ routingPhaseIndex?: number | null;
443
447
  }
444
448
  ```
445
449
 
package/dist/index.d.ts CHANGED
@@ -24705,6 +24705,8 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
24705
24705
  bottomSilkscreenColor?: BoardColor;
24706
24706
  /** Whether the board should be assembled on both sides */
24707
24707
  doubleSidedAssembly?: boolean;
24708
+ /** Whether vias may be placed inside PCB pads */
24709
+ isViaInPadAllowed?: boolean;
24708
24710
  /** Whether this board should be omitted from the schematic view */
24709
24711
  schematicDisabled?: boolean;
24710
24712
  }
@@ -25498,6 +25500,7 @@ declare const boardProps: z.ZodObject<Omit<{
25498
25500
  topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
25499
25501
  bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
25500
25502
  doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
25503
+ isViaInPadAllowed: z.ZodOptional<z.ZodBoolean>;
25501
25504
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
25502
25505
  }, "strip", z.ZodTypeAny, {
25503
25506
  layers: 1 | 2 | 4 | 6 | 8 | 10;
@@ -25834,6 +25837,7 @@ declare const boardProps: z.ZodObject<Omit<{
25834
25837
  silkscreenColor?: BoardColor | undefined;
25835
25838
  topSilkscreenColor?: BoardColor | undefined;
25836
25839
  bottomSilkscreenColor?: BoardColor | undefined;
25840
+ isViaInPadAllowed?: boolean | undefined;
25837
25841
  schematicDisabled?: boolean | undefined;
25838
25842
  }, {
25839
25843
  symbol?: SymbolProp | undefined;
@@ -26174,6 +26178,7 @@ declare const boardProps: z.ZodObject<Omit<{
26174
26178
  topSilkscreenColor?: BoardColor | undefined;
26175
26179
  bottomSilkscreenColor?: BoardColor | undefined;
26176
26180
  doubleSidedAssembly?: boolean | undefined;
26181
+ isViaInPadAllowed?: boolean | undefined;
26177
26182
  schematicDisabled?: boolean | undefined;
26178
26183
  }>;
26179
26184
 
@@ -90143,6 +90148,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
90143
90148
  topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
90144
90149
  bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
90145
90150
  doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
90151
+ isViaInPadAllowed: z.ZodOptional<z.ZodBoolean>;
90146
90152
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
90147
90153
  } & {
90148
90154
  leftPinCount: z.ZodOptional<z.ZodNumber>;
@@ -90494,6 +90500,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
90494
90500
  silkscreenColor?: BoardColor | undefined;
90495
90501
  topSilkscreenColor?: BoardColor | undefined;
90496
90502
  bottomSilkscreenColor?: BoardColor | undefined;
90503
+ isViaInPadAllowed?: boolean | undefined;
90497
90504
  schematicDisabled?: boolean | undefined;
90498
90505
  leftPins?: string[] | undefined;
90499
90506
  rightPins?: string[] | undefined;
@@ -90844,6 +90851,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
90844
90851
  topSilkscreenColor?: BoardColor | undefined;
90845
90852
  bottomSilkscreenColor?: BoardColor | undefined;
90846
90853
  doubleSidedAssembly?: boolean | undefined;
90854
+ isViaInPadAllowed?: boolean | undefined;
90847
90855
  schematicDisabled?: boolean | undefined;
90848
90856
  leftPins?: string[] | undefined;
90849
90857
  rightPins?: string[] | undefined;
@@ -165415,6 +165423,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
165415
165423
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | {
165416
165424
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
165417
165425
  }>, "many">>;
165426
+ excludeRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165418
165427
  }, "strip", z.ZodTypeAny, {
165419
165428
  shape: "circle";
165420
165429
  radius: number;
@@ -165450,6 +165459,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
165450
165459
  pcbSx?: PcbSx | undefined;
165451
165460
  pcbRelative?: boolean | undefined;
165452
165461
  relative?: boolean | undefined;
165462
+ excludeRefs?: string[] | undefined;
165453
165463
  }, {
165454
165464
  shape: "circle";
165455
165465
  radius: string | number;
@@ -165489,6 +165499,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
165489
165499
  pcbSx?: PcbSx | undefined;
165490
165500
  pcbRelative?: boolean | undefined;
165491
165501
  relative?: boolean | undefined;
165502
+ excludeRefs?: string[] | undefined;
165492
165503
  }>, z.ZodObject<{
165493
165504
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
165494
165505
  pcbY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -165567,6 +165578,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
165567
165578
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | {
165568
165579
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
165569
165580
  }>, "many">>;
165581
+ excludeRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165570
165582
  }, "strip", z.ZodTypeAny, {
165571
165583
  shape: "rect";
165572
165584
  width: number;
@@ -165604,6 +165616,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
165604
165616
  pcbSx?: PcbSx | undefined;
165605
165617
  pcbRelative?: boolean | undefined;
165606
165618
  relative?: boolean | undefined;
165619
+ excludeRefs?: string[] | undefined;
165607
165620
  }, {
165608
165621
  shape: "rect";
165609
165622
  width: string | number;
@@ -165645,6 +165658,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
165645
165658
  pcbSx?: PcbSx | undefined;
165646
165659
  pcbRelative?: boolean | undefined;
165647
165660
  relative?: boolean | undefined;
165661
+ excludeRefs?: string[] | undefined;
165648
165662
  }>]>;
165649
165663
  type PcbKeepoutProps = z.input<typeof pcbKeepoutProps>;
165650
165664
 
package/dist/index.js CHANGED
@@ -16565,6 +16565,9 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16565
16565
  topSilkscreenColor: boardColor.optional(),
16566
16566
  bottomSilkscreenColor: boardColor.optional(),
16567
16567
  doubleSidedAssembly: z42.boolean().optional().default(false),
16568
+ isViaInPadAllowed: z42.boolean().optional().describe(
16569
+ "Allows intentional via-in-pad designs to pass DRC. Omitted or false keeps via-in-pad disallowed."
16570
+ ),
16568
16571
  schematicDisabled: z42.boolean().optional()
16569
16572
  });
16570
16573
  expectTypesMatch(true);
@@ -18197,13 +18200,19 @@ var pcbKeepoutProps = z106.union([
18197
18200
  pcbLayoutProps.omit({ pcbRotation: true }).extend({
18198
18201
  shape: z106.literal("circle"),
18199
18202
  radius: distance25,
18200
- layers: z106.array(layer_ref8).optional()
18203
+ layers: z106.array(layer_ref8).optional(),
18204
+ excludeRefs: z106.array(z106.string()).optional().describe(
18205
+ 'Component selectors excluded from the keepout, such as ".ANT1"'
18206
+ )
18201
18207
  }),
18202
18208
  pcbLayoutProps.extend({
18203
18209
  shape: z106.literal("rect"),
18204
18210
  width: distance25,
18205
18211
  height: distance25,
18206
- layers: z106.array(layer_ref8).optional()
18212
+ layers: z106.array(layer_ref8).optional(),
18213
+ excludeRefs: z106.array(z106.string()).optional().describe(
18214
+ 'Component selectors excluded from the keepout, such as ".ANT1"'
18215
+ )
18207
18216
  })
18208
18217
  ]);
18209
18218