@tscircuit/props 0.0.484 → 0.0.486
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 +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/platformConfig.ts +11 -6
- package/package.json +1 -1
package/lib/platformConfig.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { z } from "zod"
|
|
2
|
+
import type { AutocompleteString } from "./common/autocomplete"
|
|
3
|
+
import { type CadModelProp, cadModelProp } from "./common/cadModel"
|
|
4
|
+
import { type PcbStyle, pcbStyle } from "./common/pcbStyle"
|
|
5
|
+
import { url } from "./common/url"
|
|
1
6
|
import {
|
|
2
|
-
autorouterProp,
|
|
3
7
|
type AutorouterProp,
|
|
4
8
|
type PartsEngine,
|
|
9
|
+
autorouterProp,
|
|
5
10
|
partsEngine,
|
|
6
11
|
} from "./components/group"
|
|
7
|
-
import type { AutocompleteString } from "./common/autocomplete"
|
|
8
12
|
import { expectTypesMatch } from "./typecheck"
|
|
9
|
-
import { z } from "zod"
|
|
10
|
-
import { type CadModelProp, cadModelProp } from "./common/cadModel"
|
|
11
|
-
import { type PcbStyle, pcbStyle } from "./common/pcbStyle"
|
|
12
|
-
import { url } from "./common/url"
|
|
13
13
|
|
|
14
14
|
export interface FootprintLibraryResult {
|
|
15
15
|
footprintCircuitJson: any[]
|
|
@@ -69,7 +69,10 @@ export interface PlatformConfig {
|
|
|
69
69
|
|
|
70
70
|
defaultSpiceEngine?: AutocompleteString<"spicey" | "ngspice">
|
|
71
71
|
|
|
72
|
+
unitPreference?: "mm" | "in" | "mil"
|
|
73
|
+
|
|
72
74
|
pcbDisabled?: boolean
|
|
75
|
+
routingDisabled?: boolean
|
|
73
76
|
schematicDisabled?: boolean
|
|
74
77
|
partsEngineDisabled?: boolean
|
|
75
78
|
|
|
@@ -196,8 +199,10 @@ export const platformConfig = z.object({
|
|
|
196
199
|
)
|
|
197
200
|
.optional(),
|
|
198
201
|
defaultSpiceEngine: defaultSpiceEngine.optional(),
|
|
202
|
+
unitPreference: z.enum(["mm", "in", "mil"]).optional(),
|
|
199
203
|
localCacheEngine: z.any().optional(),
|
|
200
204
|
pcbDisabled: z.boolean().optional(),
|
|
205
|
+
routingDisabled: z.boolean().optional(),
|
|
201
206
|
schematicDisabled: z.boolean().optional(),
|
|
202
207
|
partsEngineDisabled: z.boolean().optional(),
|
|
203
208
|
spiceEngineMap: z.record(z.string(), spiceEngineZod).optional(),
|