circuit-json 0.0.502 → 0.0.504
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 +6 -20
- package/dist/index.d.mts +417 -641
- package/dist/index.mjs +48 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3054,9 +3054,9 @@ interface PcbThermalSpoke {
|
|
|
3054
3054
|
|
|
3055
3055
|
### PcbTrace
|
|
3056
3056
|
|
|
3057
|
-
A `
|
|
3058
|
-
`
|
|
3059
|
-
|
|
3057
|
+
A `wire` route point can taper its outgoing segment using `start_width`,
|
|
3058
|
+
`end_width`, and `width_interpolation_mode` (`linear` or `quadratic`).
|
|
3059
|
+
See the [wire taper geometry contract](docs/pcb-trace-teardrops.md).
|
|
3060
3060
|
|
|
3061
3061
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace.ts)
|
|
3062
3062
|
|
|
@@ -3066,6 +3066,9 @@ interface PcbTraceRoutePointWire {
|
|
|
3066
3066
|
x: Distance
|
|
3067
3067
|
y: Distance
|
|
3068
3068
|
width: Distance
|
|
3069
|
+
start_width?: Distance
|
|
3070
|
+
end_width?: Distance
|
|
3071
|
+
width_interpolation_mode?: "linear" | "quadratic"
|
|
3069
3072
|
copper_pour_id?: string
|
|
3070
3073
|
is_inside_copper_pour?: boolean
|
|
3071
3074
|
start_pcb_port_id?: string
|
|
@@ -3087,27 +3090,10 @@ interface PcbTraceRoutePointVia {
|
|
|
3087
3090
|
to_layer: LayerRef
|
|
3088
3091
|
}
|
|
3089
3092
|
|
|
3090
|
-
/** A straight tapered wire segment. Coordinates and full widths are in mm. */
|
|
3091
|
-
interface PcbTraceRoutePointTeardrop {
|
|
3092
|
-
route_type: "teardrop"
|
|
3093
|
-
start: Point
|
|
3094
|
-
end: Point
|
|
3095
|
-
start_width: Distance
|
|
3096
|
-
end_width: Distance
|
|
3097
|
-
/** linear: f(t)=t; smoothstep: f(t)=3t²−2t³, with t along the centerline. */
|
|
3098
|
-
width_interpolation_mode: "linear" | "smoothstep"
|
|
3099
|
-
layer: LayerRef
|
|
3100
|
-
copper_pour_id?: string
|
|
3101
|
-
is_inside_copper_pour?: boolean
|
|
3102
|
-
start_pcb_port_id?: string
|
|
3103
|
-
end_pcb_port_id?: string
|
|
3104
|
-
}
|
|
3105
|
-
|
|
3106
3093
|
type PcbTraceRoutePoint =
|
|
3107
3094
|
| PcbTraceRoutePointWire
|
|
3108
3095
|
| PcbTraceRoutePointVia
|
|
3109
3096
|
| PcbTraceRoutePointThroughPad
|
|
3110
|
-
| PcbTraceRoutePointTeardrop
|
|
3111
3097
|
```
|
|
3112
3098
|
|
|
3113
3099
|
### PcbTraceError
|