@tscircuit/props 0.0.266 → 0.0.268
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 +1 -0
- package/dist/index.d.ts +832 -213
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +28 -0
- package/lib/components/board.ts +3 -0
- package/lib/components/group.ts +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -84,7 +84,9 @@ var pcbLayoutProps = z6.object({
|
|
|
84
84
|
pcbX: distance2.optional(),
|
|
85
85
|
pcbY: distance2.optional(),
|
|
86
86
|
pcbRotation: rotation.optional(),
|
|
87
|
-
layer: layer_ref.optional()
|
|
87
|
+
layer: layer_ref.optional(),
|
|
88
|
+
pcbRelative: z6.boolean().optional(),
|
|
89
|
+
relative: z6.boolean().optional()
|
|
88
90
|
});
|
|
89
91
|
expectTypesMatch(true);
|
|
90
92
|
var commonLayoutProps = z6.object({
|
|
@@ -95,7 +97,10 @@ var commonLayoutProps = z6.object({
|
|
|
95
97
|
schY: distance2.optional(),
|
|
96
98
|
schRotation: rotation.optional(),
|
|
97
99
|
layer: layer_ref.optional(),
|
|
98
|
-
footprint: footprintProp.optional()
|
|
100
|
+
footprint: footprintProp.optional(),
|
|
101
|
+
relative: z6.boolean().optional(),
|
|
102
|
+
schRelative: z6.boolean().optional(),
|
|
103
|
+
pcbRelative: z6.boolean().optional()
|
|
99
104
|
});
|
|
100
105
|
expectTypesMatch(true);
|
|
101
106
|
var supplierProps = z6.object({
|
|
@@ -342,7 +347,7 @@ expectTypesMatch(true);
|
|
|
342
347
|
|
|
343
348
|
// lib/components/group.ts
|
|
344
349
|
var layoutConfig = z23.object({
|
|
345
|
-
layoutMode: z23.enum(["grid", "flex", "match-adapt", "none"]).optional(),
|
|
350
|
+
layoutMode: z23.enum(["grid", "flex", "match-adapt", "relative", "none"]).optional(),
|
|
346
351
|
position: z23.enum(["absolute", "relative"]).optional(),
|
|
347
352
|
grid: z23.boolean().optional(),
|
|
348
353
|
gridCols: z23.number().or(z23.string()).optional(),
|
|
@@ -468,7 +473,8 @@ expectTypesMatch(true);
|
|
|
468
473
|
|
|
469
474
|
// lib/components/board.ts
|
|
470
475
|
var boardProps = subcircuitGroupProps.extend({
|
|
471
|
-
material: z24.enum(["fr4", "fr1"]).default("fr4")
|
|
476
|
+
material: z24.enum(["fr4", "fr1"]).default("fr4"),
|
|
477
|
+
layers: z24.union([z24.literal(2), z24.literal(4)]).default(2)
|
|
472
478
|
});
|
|
473
479
|
expectTypesMatch(true);
|
|
474
480
|
|