@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.
- package/dist/index.d.ts +8 -0
- package/dist/index.js +20 -14
- package/dist/index.js.map +1 -1
- package/lib/common/implicitBreakoutPointSolver.ts +5 -0
- package/lib/components/port.ts +9 -0
- package/package.json +1 -1
|
@@ -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 {
|
package/lib/components/port.ts
CHANGED
|
@@ -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(),
|