@tscircuit/props 0.0.519 → 0.0.521

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.
@@ -6,13 +6,39 @@ export interface AutoroutingPhaseProps {
6
6
  key?: any
7
7
  autorouter?: AutorouterProp
8
8
  phaseIndex?: number
9
+ region?: {
10
+ minX: number
11
+ maxX: number
12
+ minY: number
13
+ maxY: number
14
+ }
15
+ reroute?: boolean
9
16
  }
10
17
 
11
- export const autoroutingPhaseProps = z.object({
12
- key: z.any().optional(),
13
- autorouter: autorouterProp.optional(),
14
- phaseIndex: z.number().optional(),
15
- })
18
+ export const autoroutingPhaseProps = z
19
+ .object({
20
+ key: z.any().optional(),
21
+ autorouter: autorouterProp.optional(),
22
+ phaseIndex: z.number().optional(),
23
+ region: z
24
+ .object({
25
+ minX: z.number(),
26
+ maxX: z.number(),
27
+ minY: z.number(),
28
+ maxY: z.number(),
29
+ })
30
+ .optional(),
31
+ reroute: z.boolean().optional(),
32
+ })
33
+ .superRefine((value, ctx) => {
34
+ if (value.reroute !== undefined && value.region === undefined) {
35
+ ctx.addIssue({
36
+ code: z.ZodIssueCode.custom,
37
+ message: "region is required when reroute is provided",
38
+ path: ["region"],
39
+ })
40
+ }
41
+ })
16
42
 
17
43
  type InferredAutoroutingPhaseProps = z.input<typeof autoroutingPhaseProps>
18
44
  expectTypesMatch<AutoroutingPhaseProps, InferredAutoroutingPhaseProps>(true)
@@ -439,6 +439,7 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
439
439
  minTraceToPadEdgeClearance?: Distance
440
440
  minPadEdgeToPadEdgeClearance?: Distance
441
441
  minBoardEdgeClearance?: Distance
442
+ minViaEdgeToPadEdgeClearance?: Distance
442
443
  minViaHoleDiameter?: Distance
443
444
  minViaPadDiameter?: Distance
444
445
 
@@ -605,6 +606,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
605
606
  defaultTraceWidth: length.optional(),
606
607
  minTraceWidth: length.optional(),
607
608
  minViaHoleEdgeToViaHoleEdgeClearance: length.optional(),
609
+ minViaEdgeToPadEdgeClearance: length.optional(),
608
610
  minPlatedHoleDrillEdgeToDrillEdgeClearance: length.optional(),
609
611
  minTraceToPadEdgeClearance: length.optional(),
610
612
  minPadEdgeToPadEdgeClearance: length.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.519",
3
+ "version": "0.0.521",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",