@tscircuit/props 0.0.652 → 0.0.653
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 +7 -0
- package/dist/index.d.ts +241 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/components/autoroutingphase.ts +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { expectTypesMatch } from "lib/typecheck"
|
|
2
2
|
import { z } from "zod"
|
|
3
3
|
import { type FanoutProps, fanoutProps } from "../common/fanoutProps"
|
|
4
|
+
import {
|
|
5
|
+
type FanoutTracePath,
|
|
6
|
+
fanoutTracePath,
|
|
7
|
+
} from "../common/fanoutTracePath"
|
|
4
8
|
import {
|
|
5
9
|
type AutorouterProp,
|
|
6
10
|
type RoutingTolerances,
|
|
@@ -21,6 +25,13 @@ export interface AutoroutingPhaseProps extends RoutingTolerances, FanoutProps {
|
|
|
21
25
|
name?: string
|
|
22
26
|
autorouter?: AutorouterProp
|
|
23
27
|
phaseIndex?: number
|
|
28
|
+
/**
|
|
29
|
+
* Saved PCB wire/via routes using the same format as fanout pcbTracePaths.
|
|
30
|
+
* Numeric distances are mm; unit strings are normalized to mm. Omitted by
|
|
31
|
+
* default; an empty array is accepted. No aliases or prop conflicts are
|
|
32
|
+
* introduced, and existing phases require no migration.
|
|
33
|
+
*/
|
|
34
|
+
pcbTracePaths?: FanoutTracePath[]
|
|
24
35
|
region?: {
|
|
25
36
|
shape?: "rect"
|
|
26
37
|
minX: number
|
|
@@ -41,6 +52,7 @@ export const autoroutingPhaseProps = z
|
|
|
41
52
|
name: z.string().optional(),
|
|
42
53
|
autorouter: autorouterProp.optional(),
|
|
43
54
|
phaseIndex: z.number().optional(),
|
|
55
|
+
pcbTracePaths: z.array(fanoutTracePath).optional(),
|
|
44
56
|
...routingTolerances.shape,
|
|
45
57
|
region: z
|
|
46
58
|
.object({
|