@tscircuit/props 0.0.436 → 0.0.437
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 +73 -7
- package/dist/index.d.ts +24 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +4 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -395,6 +395,8 @@ export const autorouterProp: z.ZodType<AutorouterProp> = z.union([
|
|
|
395
395
|
autorouterString,
|
|
396
396
|
])
|
|
397
397
|
|
|
398
|
+
export const autorouterEffortLevel = z.enum(["1x", "2x", "5x", "10x", "100x"])
|
|
399
|
+
|
|
398
400
|
export interface SubcircuitGroupProps extends BaseGroupProps {
|
|
399
401
|
manualEdits?: ManualEditsFileInput
|
|
400
402
|
routingDisabled?: boolean
|
|
@@ -404,6 +406,7 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
|
|
|
404
406
|
pcbRouteCache?: PcbRouteCache
|
|
405
407
|
|
|
406
408
|
autorouter?: AutorouterProp
|
|
409
|
+
autorouterEffortLevel?: "1x" | "2x" | "5x" | "10x" | "100x"
|
|
407
410
|
|
|
408
411
|
/**
|
|
409
412
|
* Serialized circuit JSON describing a precompiled subcircuit
|
|
@@ -561,6 +564,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
|
|
|
561
564
|
partsEngine: partsEngine.optional(),
|
|
562
565
|
pcbRouteCache: z.custom<PcbRouteCache>((v) => true).optional(),
|
|
563
566
|
autorouter: autorouterProp.optional(),
|
|
567
|
+
autorouterEffortLevel: autorouterEffortLevel.optional(),
|
|
564
568
|
square: z.boolean().optional(),
|
|
565
569
|
emptyArea: z.string().optional(),
|
|
566
570
|
filledArea: z.string().optional(),
|