@tscircuit/props 0.0.262 → 0.0.264
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 +0 -5
- package/dist/index.d.ts +576 -26
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +0 -12
- package/lib/components/group.ts +36 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -205,7 +205,10 @@ import { z as z10 } from "zod";
|
|
|
205
205
|
var schematicPinLabel = z10.string().regex(/^[A-Za-z0-9_]+$/);
|
|
206
206
|
|
|
207
207
|
// lib/components/board.ts
|
|
208
|
-
import {
|
|
208
|
+
import { z as z24 } from "zod";
|
|
209
|
+
|
|
210
|
+
// lib/components/group.ts
|
|
211
|
+
import { length, distance as distance5 } from "circuit-json";
|
|
209
212
|
|
|
210
213
|
// lib/common/point.ts
|
|
211
214
|
import { distance as distance4 } from "circuit-json";
|
|
@@ -215,11 +218,7 @@ var point = z11.object({
|
|
|
215
218
|
y: distance4
|
|
216
219
|
});
|
|
217
220
|
|
|
218
|
-
// lib/components/board.ts
|
|
219
|
-
import { z as z24 } from "zod";
|
|
220
|
-
|
|
221
221
|
// lib/components/group.ts
|
|
222
|
-
import { length } from "circuit-json";
|
|
223
222
|
import { z as z23 } from "zod";
|
|
224
223
|
|
|
225
224
|
// lib/manual-edits/manual-edit-events/base_manual_edit_event.ts
|
|
@@ -359,6 +358,9 @@ var layoutConfig = z23.object({
|
|
|
359
358
|
flexRow: z23.boolean().optional(),
|
|
360
359
|
flexColumn: z23.boolean().optional(),
|
|
361
360
|
gap: z23.number().or(z23.string()).optional(),
|
|
361
|
+
pack: z23.boolean().optional().describe("Pack the contents of this group using a packing strategy"),
|
|
362
|
+
packOrderStrategy: z23.enum(["largest_to_smallest"]).optional(),
|
|
363
|
+
packPlacementStrategy: z23.enum(["shortest_connection_along_outline"]).optional(),
|
|
362
364
|
padding: length.optional(),
|
|
363
365
|
paddingLeft: length.optional(),
|
|
364
366
|
paddingRight: length.optional(),
|
|
@@ -435,7 +437,15 @@ var subcircuitGroupProps = baseGroupProps.extend({
|
|
|
435
437
|
minTraceWidth: length.optional(),
|
|
436
438
|
partsEngine: partsEngine.optional(),
|
|
437
439
|
pcbRouteCache: z23.custom((v) => true).optional(),
|
|
438
|
-
autorouter: autorouterProp.optional()
|
|
440
|
+
autorouter: autorouterProp.optional(),
|
|
441
|
+
square: z23.boolean().optional(),
|
|
442
|
+
emptyArea: z23.string().optional(),
|
|
443
|
+
filledArea: z23.string().optional(),
|
|
444
|
+
width: distance5.optional(),
|
|
445
|
+
height: distance5.optional(),
|
|
446
|
+
outline: z23.array(point).optional(),
|
|
447
|
+
outlineOffsetX: distance5.optional(),
|
|
448
|
+
outlineOffsetY: distance5.optional()
|
|
439
449
|
});
|
|
440
450
|
var subcircuitGroupPropsWithBool = subcircuitGroupProps.extend({
|
|
441
451
|
subcircuit: z23.literal(true)
|
|
@@ -450,11 +460,6 @@ expectTypesMatch(true);
|
|
|
450
460
|
|
|
451
461
|
// lib/components/board.ts
|
|
452
462
|
var boardProps = subcircuitGroupProps.extend({
|
|
453
|
-
width: distance5.optional(),
|
|
454
|
-
height: distance5.optional(),
|
|
455
|
-
outline: z24.array(point).optional(),
|
|
456
|
-
outlineOffsetX: distance5.optional(),
|
|
457
|
-
outlineOffsetY: distance5.optional(),
|
|
458
463
|
material: z24.enum(["fr4", "fr1"]).default("fr4")
|
|
459
464
|
});
|
|
460
465
|
expectTypesMatch(true);
|