@tscircuit/props 0.0.415 → 0.0.417

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.
@@ -227,6 +227,10 @@ export interface CommonComponentProps<PinLabel extends string = string>
227
227
  * chips can be placed between the pin headers) or for tall modules where chips fit underneath.
228
228
  */
229
229
  obstructsWithinBounds?: boolean
230
+ /**
231
+ * Whether to show this component's CAD model as translucent in the 3D viewer.
232
+ */
233
+ showAsTranslucentModel?: boolean
230
234
  }
231
235
 
232
236
  export const commonComponentProps = commonLayoutProps
@@ -244,6 +248,12 @@ export const commonComponentProps = commonLayoutProps
244
248
  .describe(
245
249
  "Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath",
246
250
  ),
251
+ showAsTranslucentModel: z
252
+ .boolean()
253
+ .optional()
254
+ .describe(
255
+ "Whether to show this component's CAD model as translucent in the 3D viewer.",
256
+ ),
247
257
  pinAttributes: z.record(z.string(), pinAttributeMap).optional(),
248
258
  })
249
259
 
@@ -28,7 +28,7 @@ export interface BoardProps
28
28
  title?: string
29
29
  material?: "fr4" | "fr1"
30
30
  /** Number of layers for the PCB */
31
- layers?: 1 | 2 | 4
31
+ layers?: 1 | 2 | 4 | 6 | 8
32
32
  borderRadius?: Distance
33
33
  thickness?: Distance
34
34
  boardAnchorPosition?: Point
@@ -55,7 +55,15 @@ export const boardProps = subcircuitGroupProps
55
55
  .omit({ connections: true })
56
56
  .extend({
57
57
  material: z.enum(["fr4", "fr1"]).default("fr4"),
58
- layers: z.union([z.literal(1), z.literal(2), z.literal(4)]).default(2),
58
+ layers: z
59
+ .union([
60
+ z.literal(1),
61
+ z.literal(2),
62
+ z.literal(4),
63
+ z.literal(6),
64
+ z.literal(8),
65
+ ])
66
+ .default(2),
59
67
  borderRadius: distance.optional(),
60
68
  thickness: distance.optional(),
61
69
  boardAnchorPosition: point.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.415",
3
+ "version": "0.0.417",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",