@tscircuit/props 0.0.495 → 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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.495",
3
+ "version": "0.0.496",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",