@tscircuit/props 0.0.659 → 0.0.661
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 +5 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +11 -0
- package/lib/components/pcb-keepout.ts +4 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -92,6 +92,11 @@ export interface BoardProps
|
|
|
92
92
|
* false, which restricts newly generated vias to the full board stack.
|
|
93
93
|
*/
|
|
94
94
|
allowBlindAndBuriedVias?: boolean
|
|
95
|
+
/**
|
|
96
|
+
* Whether to route remaining unrouted connections after explicit routing phases.
|
|
97
|
+
* Omitted leaves the setting unset, preserving the consumer's default behavior.
|
|
98
|
+
*/
|
|
99
|
+
routeRemaining?: boolean
|
|
95
100
|
defaultViaTenting?:
|
|
96
101
|
| boolean
|
|
97
102
|
| "both_sides"
|
|
@@ -176,6 +181,12 @@ export const boardProps = subcircuitGroupProps
|
|
|
176
181
|
.describe(
|
|
177
182
|
"Whether the autorouter may generate blind and buried vias. Defaults to false, which restricts newly generated vias to the full board stack.",
|
|
178
183
|
),
|
|
184
|
+
routeRemaining: z
|
|
185
|
+
.boolean()
|
|
186
|
+
.optional()
|
|
187
|
+
.describe(
|
|
188
|
+
"Whether to route remaining unrouted connections after explicit routing phases. Boolean values are preserved; omitted leaves the setting unset. No aliases or prop conflicts are introduced, and existing boards require no migration.",
|
|
189
|
+
),
|
|
179
190
|
defaultViaTenting: z
|
|
180
191
|
.union([
|
|
181
192
|
z.boolean(),
|
|
@@ -7,6 +7,8 @@ export const pcbKeepoutProps = z.union([
|
|
|
7
7
|
shape: z.literal("circle"),
|
|
8
8
|
radius: distance,
|
|
9
9
|
layers: z.array(layer_ref).optional(),
|
|
10
|
+
/** Report keepout violations as warnings when true. Omit for normal enforcement. */
|
|
11
|
+
warningOnly: z.boolean().optional(),
|
|
10
12
|
excludeRefs: z
|
|
11
13
|
.array(z.string())
|
|
12
14
|
.optional()
|
|
@@ -19,6 +21,8 @@ export const pcbKeepoutProps = z.union([
|
|
|
19
21
|
width: distance,
|
|
20
22
|
height: distance,
|
|
21
23
|
layers: z.array(layer_ref).optional(),
|
|
24
|
+
/** Report keepout violations as warnings when true. Omit for normal enforcement. */
|
|
25
|
+
warningOnly: z.boolean().optional(),
|
|
22
26
|
excludeRefs: z
|
|
23
27
|
.array(z.string())
|
|
24
28
|
.optional()
|