@tscircuit/props 0.0.208 → 0.0.210
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/dist/index.d.ts +215 -7
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +2 -0
- package/lib/components/schematic-box.ts +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -327,7 +327,8 @@ var layoutConfig = z21.object({
|
|
|
327
327
|
gap: z21.number().or(z21.string()).optional(),
|
|
328
328
|
width: length.optional(),
|
|
329
329
|
height: length.optional(),
|
|
330
|
-
matchAdapt: z21.boolean().optional()
|
|
330
|
+
matchAdapt: z21.boolean().optional(),
|
|
331
|
+
matchAdaptTemplate: z21.any().optional()
|
|
331
332
|
});
|
|
332
333
|
expectTypesMatch(true);
|
|
333
334
|
var autorouterConfig = z21.object({
|
|
@@ -1172,7 +1173,7 @@ var powerSourceProps = commonComponentProps.extend({
|
|
|
1172
1173
|
});
|
|
1173
1174
|
|
|
1174
1175
|
// lib/components/schematic-box.ts
|
|
1175
|
-
import { distance as distance18 } from "circuit-json";
|
|
1176
|
+
import { distance as distance18, position } from "circuit-json";
|
|
1176
1177
|
import { z as z60 } from "zod";
|
|
1177
1178
|
|
|
1178
1179
|
// lib/common/nine_point_anchor.ts
|
|
@@ -1202,7 +1203,11 @@ var schematicBoxProps = z60.object({
|
|
|
1202
1203
|
paddingTop: distance18.optional(),
|
|
1203
1204
|
paddingBottom: distance18.optional(),
|
|
1204
1205
|
title: z60.string().optional(),
|
|
1205
|
-
|
|
1206
|
+
titleAnchorPosition: z60.object({
|
|
1207
|
+
x: position.optional(),
|
|
1208
|
+
y: position.optional()
|
|
1209
|
+
}).optional(),
|
|
1210
|
+
titleAnchorAlignment: nine_point_anchor.default("center"),
|
|
1206
1211
|
titleColor: z60.string().optional(),
|
|
1207
1212
|
titleFontSize: distance18.optional(),
|
|
1208
1213
|
titleInside: z60.boolean().default(false),
|