@tscircuit/props 0.0.615 → 0.0.617

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.
@@ -1,4 +1,4 @@
1
- import { capacitance, voltage } from "circuit-json"
1
+ import { capacitance, distance, voltage } from "circuit-json"
2
2
  import { createConnectionsProp } from "lib/common/connectionsProp"
3
3
  import {
4
4
  type CommonComponentProps,
@@ -37,7 +37,8 @@ export interface CapacitorProps<PinLabel extends string = string>
37
37
  decouplingTo?: string
38
38
  bypassFor?: string
39
39
  bypassTo?: string
40
- maxDecouplingTraceLength?: number
40
+ /** Maximum allowed PCB trace length between this capacitor and the component it decouples */
41
+ maxDecouplingTraceLength?: number | string
41
42
  schOrientation?: SchematicOrientation
42
43
  schSize?: SchematicSymbolSize
43
44
  connections?: Connections<CapacitorPinLabels>
@@ -52,7 +53,7 @@ export const capacitorProps = commonComponentProps.extend({
52
53
  decouplingTo: z.string().optional(),
53
54
  bypassFor: z.string().optional(),
54
55
  bypassTo: z.string().optional(),
55
- maxDecouplingTraceLength: z.number().optional(),
56
+ maxDecouplingTraceLength: distance.optional(),
56
57
  schOrientation: schematicOrientation.optional(),
57
58
  schSize: schematicSymbolSize.optional(),
58
59
  connections: createConnectionsProp(capacitorPinLabels).optional(),
@@ -87,6 +87,12 @@ export interface PlatformConfig {
87
87
  */
88
88
  enablePartOrientationAnalysis?: boolean
89
89
 
90
+ /**
91
+ * Maximum time, in milliseconds, that an individual PCB pack solver may run.
92
+ * The timeout is checked between solver steps.
93
+ */
94
+ pcbPackSolverTimeoutMs?: number
95
+
90
96
  registryApiUrl?: string
91
97
 
92
98
  cloudAutorouterUrl?: string
@@ -255,6 +261,7 @@ export const platformConfig = z.object({
255
261
  unitPreference: z.enum(["mm", "in", "mil"]).optional(),
256
262
  localCacheEngine: localCacheEngine.optional(),
257
263
  enablePartOrientationAnalysis: z.boolean().optional(),
264
+ pcbPackSolverTimeoutMs: z.number().finite().positive().optional(),
258
265
  pcbDisabled: z.boolean().optional(),
259
266
  routingDisabled: z.boolean().optional(),
260
267
  schematicDisabled: z.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.615",
3
+ "version": "0.0.617",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",