@tscircuit/props 0.0.637 → 0.0.638
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 +2 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/components/schematic-sheet.ts +5 -0
- package/package.json +1 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { z } from "zod"
|
|
2
2
|
import { expectTypesMatch } from "lib/typecheck"
|
|
3
3
|
|
|
4
|
+
export type SchematicSheetSize = "A4" | "ANSI_B"
|
|
5
|
+
|
|
4
6
|
export interface SchematicSheetProps {
|
|
5
7
|
name: string
|
|
6
8
|
displayName: string
|
|
7
9
|
sheetIndex?: number
|
|
10
|
+
/** Sheet size used to render the schematic. Defaults to A4. */
|
|
11
|
+
sheetSize?: SchematicSheetSize
|
|
8
12
|
children?: any
|
|
9
13
|
}
|
|
10
14
|
|
|
@@ -12,6 +16,7 @@ export const schematicSheetProps = z.object({
|
|
|
12
16
|
name: z.string(),
|
|
13
17
|
displayName: z.string(),
|
|
14
18
|
sheetIndex: z.number().optional(),
|
|
19
|
+
sheetSize: z.enum(["A4", "ANSI_B"]).default("A4"),
|
|
15
20
|
children: z.any().optional(),
|
|
16
21
|
})
|
|
17
22
|
|