@tscircuit/props 0.0.657 → 0.0.659
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 +2 -0
- package/dist/index.d.ts +40 -7
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/lib/components/autoroutingphase.ts +4 -0
- package/lib/components/group.ts +16 -0
- package/package.json +1 -1
|
@@ -7,8 +7,10 @@ import {
|
|
|
7
7
|
} from "../common/fanoutTracePath"
|
|
8
8
|
import {
|
|
9
9
|
type AutorouterProp,
|
|
10
|
+
type PreflightRoutingCheckPolicy,
|
|
10
11
|
type RoutingTolerances,
|
|
11
12
|
autorouterProp,
|
|
13
|
+
preflightRoutingCheckPolicy,
|
|
12
14
|
routingTolerances,
|
|
13
15
|
} from "./group"
|
|
14
16
|
|
|
@@ -24,6 +26,7 @@ export interface AutoroutingPhaseProps extends RoutingTolerances, FanoutProps {
|
|
|
24
26
|
key?: any
|
|
25
27
|
name?: string
|
|
26
28
|
autorouter?: AutorouterProp
|
|
29
|
+
preflightRoutingCheckPolicy?: PreflightRoutingCheckPolicy
|
|
27
30
|
phaseIndex?: number
|
|
28
31
|
/**
|
|
29
32
|
* Saved PCB wire/via routes using the same format as fanout pcbTracePaths.
|
|
@@ -51,6 +54,7 @@ export const autoroutingPhaseProps = z
|
|
|
51
54
|
key: z.any().optional(),
|
|
52
55
|
name: z.string().optional(),
|
|
53
56
|
autorouter: autorouterProp.optional(),
|
|
57
|
+
preflightRoutingCheckPolicy: preflightRoutingCheckPolicy.optional(),
|
|
54
58
|
phaseIndex: z.number().optional(),
|
|
55
59
|
pcbTracePaths: z.array(fanoutTracePath).optional(),
|
|
56
60
|
...routingTolerances.shape,
|
package/lib/components/group.ts
CHANGED
|
@@ -360,6 +360,7 @@ export interface AutorouterConfig {
|
|
|
360
360
|
| "laser_prefab" // Prefabricated PCB with laser copper ablation
|
|
361
361
|
| "single_layer_fanout"
|
|
362
362
|
| "fanout"
|
|
363
|
+
| "bus_lanes"
|
|
363
364
|
| /** @deprecated Use "auto_jumper" */ "auto-jumper"
|
|
364
365
|
| /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace"
|
|
365
366
|
| /** @deprecated Use "auto_local" */ "auto-local"
|
|
@@ -381,6 +382,7 @@ export type AutorouterPreset =
|
|
|
381
382
|
| "laser_prefab"
|
|
382
383
|
| "single_layer_fanout"
|
|
383
384
|
| "fanout"
|
|
385
|
+
| "bus_lanes"
|
|
384
386
|
| "auto-jumper"
|
|
385
387
|
| /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace"
|
|
386
388
|
| "auto-local"
|
|
@@ -449,6 +451,7 @@ export const autorouterConfig = z.object({
|
|
|
449
451
|
"laser_prefab",
|
|
450
452
|
"single_layer_fanout",
|
|
451
453
|
"fanout",
|
|
454
|
+
"bus_lanes",
|
|
452
455
|
"auto-jumper",
|
|
453
456
|
"sequential-trace",
|
|
454
457
|
"auto-local",
|
|
@@ -473,6 +476,7 @@ export const autorouterPreset = z.union([
|
|
|
473
476
|
z.literal("laser_prefab"), // Prefabricated PCB with laser copper ablation
|
|
474
477
|
z.literal("single_layer_fanout"),
|
|
475
478
|
z.literal("fanout"),
|
|
479
|
+
z.literal("bus_lanes"),
|
|
476
480
|
z.literal("auto-jumper"),
|
|
477
481
|
z.literal("sequential-trace"),
|
|
478
482
|
z.literal("auto-local"),
|
|
@@ -491,6 +495,16 @@ export const autorouterProp: z.ZodType<AutorouterProp> = z.union([
|
|
|
491
495
|
|
|
492
496
|
export const autorouterEffortLevel = z.enum(["1x", "2x", "5x", "10x", "100x"])
|
|
493
497
|
|
|
498
|
+
export const preflightRoutingCheckPolicy = z.enum([
|
|
499
|
+
"none",
|
|
500
|
+
"basic",
|
|
501
|
+
"conservative",
|
|
502
|
+
])
|
|
503
|
+
|
|
504
|
+
export type PreflightRoutingCheckPolicy = z.infer<
|
|
505
|
+
typeof preflightRoutingCheckPolicy
|
|
506
|
+
>
|
|
507
|
+
|
|
494
508
|
export type AutorouterVersion =
|
|
495
509
|
| "beta_pipeline1"
|
|
496
510
|
| "beta_pipeline3"
|
|
@@ -542,6 +556,7 @@ export interface SubcircuitGroupProps
|
|
|
542
556
|
pcbRouteCache?: PcbRouteCache
|
|
543
557
|
|
|
544
558
|
autorouter?: AutorouterProp
|
|
559
|
+
preflightRoutingCheckPolicy?: PreflightRoutingCheckPolicy
|
|
545
560
|
autorouterEffortLevel?: "1x" | "2x" | "5x" | "10x" | "100x"
|
|
546
561
|
/**
|
|
547
562
|
* Selects the local autorouting pipeline. Unknown string values emit a
|
|
@@ -732,6 +747,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
|
|
|
732
747
|
_subcircuitCachingEnabled: z.boolean().optional(),
|
|
733
748
|
pcbRouteCache: z.custom<PcbRouteCache>((v) => true).optional(),
|
|
734
749
|
autorouter: autorouterProp.optional(),
|
|
750
|
+
preflightRoutingCheckPolicy: preflightRoutingCheckPolicy.optional(),
|
|
735
751
|
autorouterEffortLevel: autorouterEffortLevel.optional(),
|
|
736
752
|
autorouterVersion: autorouterVersion.optional(),
|
|
737
753
|
square: z.boolean().optional(),
|