@tscircuit/props 0.0.629 → 0.0.631

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.
@@ -21,6 +21,11 @@ export interface ImplicitBreakoutRegion {
21
21
  export interface ImplicitBreakoutConnectionEndpoint {
22
22
  readonly regionId: string
23
23
  readonly position: ImplicitBreakoutPoint
24
+ /**
25
+ * Optional PCB world-space routing destination, in millimeters, beyond this
26
+ * breakout region. A solver may use it to select and align a nearer edge.
27
+ */
28
+ readonly externalDestination?: ImplicitBreakoutPoint
24
29
  }
25
30
 
26
31
  export interface ImplicitBreakoutConnection {
@@ -1,3 +1,4 @@
1
+ import { distance } from "circuit-json"
1
2
  import { direction } from "lib/common/direction"
2
3
  import { commonLayoutProps } from "lib/common/layout"
3
4
  import { kicadPinMetadata } from "lib/common/kicadPinMetadata"
@@ -7,6 +8,14 @@ export const portProps = commonLayoutProps.extend({
7
8
  name: z.string().optional(),
8
9
  pinNumber: z.number().optional(),
9
10
  schStemLength: z.number().optional(),
11
+ schPinLabelFontSize: z
12
+ .enum(["default", "sm"])
13
+ .or(
14
+ distance.refine((value) => Number.isFinite(value) && value > 0, {
15
+ message: "Schematic pin-label font size must be positive and finite",
16
+ }),
17
+ )
18
+ .optional(),
10
19
  aliases: z.array(z.string()).optional(),
11
20
  layer: z.string().optional(),
12
21
  layers: z.array(z.string()).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.629",
3
+ "version": "0.0.631",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",