@tscircuit/props 0.0.494 → 0.0.496

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.
@@ -11,6 +11,19 @@ export const rotationPoint3 = z.object({
11
11
  z: z.union([z.number(), z.string()]),
12
12
  })
13
13
 
14
+ export const cadModelAxisDirections = [
15
+ "x+",
16
+ "x-",
17
+ "y+",
18
+ "y-",
19
+ "z+",
20
+ "z-",
21
+ ] as const
22
+
23
+ export type CadModelAxisDirection = (typeof cadModelAxisDirections)[number]
24
+
25
+ export const cadModelAxisDirection = z.enum(cadModelAxisDirections)
26
+
14
27
  export interface CadModelBase {
15
28
  rotationOffset?:
16
29
  | number
@@ -22,6 +35,8 @@ export interface CadModelBase {
22
35
  }
23
36
  size?: { x: number | string; y: number | string; z: number | string }
24
37
  modelUnitToMmScale?: Distance
38
+ modelBoardNormalDirection?: CadModelAxisDirection
39
+ pcbRotationOffset?: number
25
40
  zOffsetFromSurface?: Distance
26
41
  showAsTranslucentModel?: boolean
27
42
  }
@@ -31,6 +46,8 @@ export const cadModelBase = z.object({
31
46
  positionOffset: point3.optional(),
32
47
  size: point3.optional(),
33
48
  modelUnitToMmScale: distance.optional(),
49
+ modelBoardNormalDirection: cadModelAxisDirection.optional(),
50
+ pcbRotationOffset: z.number().optional(),
34
51
  zOffsetFromSurface: distance.optional(),
35
52
  showAsTranslucentModel: z.boolean().optional(),
36
53
  })
@@ -424,7 +424,7 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
424
424
 
425
425
  autorouter?: AutorouterProp
426
426
  autorouterEffortLevel?: "1x" | "2x" | "5x" | "10x" | "100x"
427
- autorouterVersion?: "v1" | "v2" | "latest"
427
+ autorouterVersion?: "v1" | "v2" | "v3" | "latest"
428
428
 
429
429
  /**
430
430
  * Serialized circuit JSON describing a precompiled subcircuit
@@ -587,7 +587,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
587
587
  pcbRouteCache: z.custom<PcbRouteCache>((v) => true).optional(),
588
588
  autorouter: autorouterProp.optional(),
589
589
  autorouterEffortLevel: autorouterEffortLevel.optional(),
590
- autorouterVersion: z.enum(["v1", "v2", "latest"]).optional(),
590
+ autorouterVersion: z.enum(["v1", "v2", "v3", "latest"]).optional(),
591
591
  square: z.boolean().optional(),
592
592
  emptyArea: z.string().optional(),
593
593
  filledArea: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.494",
3
+ "version": "0.0.496",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",