@tscircuit/props 0.0.428 → 0.0.430
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 -1
- package/dist/index.d.ts +73 -34
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +3 -3
- package/lib/components/trace.ts +1 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -218,7 +218,7 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
218
218
|
/**
|
|
219
219
|
* Anchor to use when interpreting pcbX/pcbY/pcbOffsetX/pcbOffsetY relative to pcbPosition
|
|
220
220
|
*/
|
|
221
|
-
|
|
221
|
+
pcbAnchorAlignment?: AutocompleteString<z.infer<typeof ninePointAnchor>>
|
|
222
222
|
|
|
223
223
|
/** @deprecated Use `pcbGrid` */
|
|
224
224
|
grid?: boolean
|
|
@@ -336,7 +336,7 @@ export type AutorouterProp =
|
|
|
336
336
|
| AutorouterConfig
|
|
337
337
|
| AutocompleteString<AutorouterPreset>
|
|
338
338
|
|
|
339
|
-
const
|
|
339
|
+
const pcbAnchorAlignmentAutocomplete = z.custom<
|
|
340
340
|
AutocompleteString<z.infer<typeof ninePointAnchor>>
|
|
341
341
|
>((value) => typeof value === "string")
|
|
342
342
|
|
|
@@ -543,7 +543,7 @@ export const baseGroupProps = commonLayoutProps.extend({
|
|
|
543
543
|
pcbPaddingRight: length.optional(),
|
|
544
544
|
pcbPaddingTop: length.optional(),
|
|
545
545
|
pcbPaddingBottom: length.optional(),
|
|
546
|
-
|
|
546
|
+
pcbAnchorAlignment: pcbAnchorAlignmentAutocomplete.optional(),
|
|
547
547
|
})
|
|
548
548
|
|
|
549
549
|
export const partsEngine = z.custom<PartsEngine>((v) => "findPart" in v)
|
package/lib/components/trace.ts
CHANGED