@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.
@@ -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
- pcbPositionAnchor?: AutocompleteString<z.infer<typeof ninePointAnchor>>
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 pcbPositionAnchorAutocomplete = z.custom<
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
- pcbPositionAnchor: pcbPositionAnchorAutocomplete.optional(),
546
+ pcbAnchorAlignment: pcbAnchorAlignmentAutocomplete.optional(),
547
547
  })
548
548
 
549
549
  export const partsEngine = z.custom<PartsEngine>((v) => "findPart" in v)
@@ -25,6 +25,7 @@ const baseTraceProps = z.object({
25
25
  schStroke: z.string().optional(),
26
26
  highlightColor: z.string().optional(),
27
27
  maxLength: distance.optional(),
28
+ connectsTo: z.string().or(z.array(z.string())).optional(),
28
29
  })
29
30
 
30
31
  export const traceProps = z.union([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.428",
3
+ "version": "0.0.430",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",