@tscircuit/props 0.0.515 → 0.0.517
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 -3
- package/dist/index.d.ts +36 -7
- package/dist/index.js +16 -14
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +2 -2
- package/lib/components/group.ts +1 -0
- package/lib/components/jumper.ts +1 -0
- package/lib/components/pcb-keepout.ts +3 -1
- package/lib/components/pin-header.ts +1 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -26,7 +26,7 @@ const boardColor = z.custom<BoardColor>((value) => typeof value === "string")
|
|
|
26
26
|
export interface BoardProps
|
|
27
27
|
extends Omit<SubcircuitGroupProps, "subcircuit" | "connections"> {
|
|
28
28
|
title?: string
|
|
29
|
-
material?: "fr4" | "fr1"
|
|
29
|
+
material?: "fr4" | "fr1" | "flex"
|
|
30
30
|
/** Number of layers for the PCB */
|
|
31
31
|
layers?: 1 | 2 | 4 | 6 | 8
|
|
32
32
|
borderRadius?: Distance
|
|
@@ -55,7 +55,7 @@ export interface BoardProps
|
|
|
55
55
|
export const boardProps = subcircuitGroupProps
|
|
56
56
|
.omit({ connections: true })
|
|
57
57
|
.extend({
|
|
58
|
-
material: z.enum(["fr4", "fr1"]).default("fr4"),
|
|
58
|
+
material: z.enum(["fr4", "fr1", "flex"]).default("fr4"),
|
|
59
59
|
layers: z
|
|
60
60
|
.union([
|
|
61
61
|
z.literal(1),
|
package/lib/components/group.ts
CHANGED
package/lib/components/jumper.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface JumperProps extends CommonComponentProps {
|
|
|
28
28
|
SchematicPinLabel | SchematicPinLabel[]
|
|
29
29
|
>
|
|
30
30
|
schPinStyle?: SchematicPinStyle
|
|
31
|
+
/** @deprecated Use schPinStyle instead. */
|
|
31
32
|
schPinSpacing?: number | string
|
|
32
33
|
schWidth?: number | string
|
|
33
34
|
schHeight?: number | string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { distance } from "circuit-json"
|
|
1
|
+
import { distance, layer_ref } from "circuit-json"
|
|
2
2
|
import { pcbLayoutProps } from "lib/common/layout"
|
|
3
3
|
import { z } from "zod"
|
|
4
4
|
|
|
@@ -6,11 +6,13 @@ export const pcbKeepoutProps = z.union([
|
|
|
6
6
|
pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
7
7
|
shape: z.literal("circle"),
|
|
8
8
|
radius: distance,
|
|
9
|
+
layers: z.array(layer_ref).optional(),
|
|
9
10
|
}),
|
|
10
11
|
pcbLayoutProps.extend({
|
|
11
12
|
shape: z.literal("rect"),
|
|
12
13
|
width: distance,
|
|
13
14
|
height: distance,
|
|
15
|
+
layers: z.array(layer_ref).optional(),
|
|
14
16
|
}),
|
|
15
17
|
])
|
|
16
18
|
export type PcbKeepoutProps = z.input<typeof pcbKeepoutProps>
|