circuit-json 0.0.502 → 0.0.503

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 CHANGED
@@ -3056,7 +3056,7 @@ interface PcbThermalSpoke {
3056
3056
 
3057
3057
  A `route_type: "teardrop"` entry represents an explicit straight segment with
3058
3058
  `start_width`, `end_width`, and `width_interpolation_mode` (`linear` or
3059
- `smoothstep`). See the [geometry and route traversal contract](docs/pcb-trace-teardrops.md).
3059
+ `quadratic`). See the [geometry and route traversal 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
 
@@ -3094,8 +3094,8 @@ interface PcbTraceRoutePointTeardrop {
3094
3094
  end: Point
3095
3095
  start_width: Distance
3096
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"
3097
+ /** Quadratic is concave toward the narrow end; see docs/pcb-trace-teardrops.md for profiles. */
3098
+ width_interpolation_mode: "linear" | "quadratic"
3099
3099
  layer: LayerRef
3100
3100
  copper_pour_id?: string
3101
3101
  is_inside_copper_pour?: boolean
package/dist/index.d.mts CHANGED
@@ -7414,7 +7414,7 @@ declare const pcb_trace_route_point_teardrop: z.ZodEffects<z.ZodObject<{
7414
7414
  }>;
7415
7415
  start_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
7416
7416
  end_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
7417
- width_interpolation_mode: z.ZodEnum<["linear", "smoothstep"]>;
7417
+ width_interpolation_mode: z.ZodEnum<["linear", "quadratic"]>;
7418
7418
  layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
7419
7419
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
7420
7420
  }, "strip", z.ZodTypeAny, {
@@ -7441,7 +7441,7 @@ declare const pcb_trace_route_point_teardrop: z.ZodEffects<z.ZodObject<{
7441
7441
  route_type: "teardrop";
7442
7442
  start_width: number;
7443
7443
  end_width: number;
7444
- width_interpolation_mode: "linear" | "smoothstep";
7444
+ width_interpolation_mode: "linear" | "quadratic";
7445
7445
  copper_pour_id?: string | undefined;
7446
7446
  is_inside_copper_pour?: boolean | undefined;
7447
7447
  start_pcb_port_id?: string | undefined;
@@ -7461,7 +7461,7 @@ declare const pcb_trace_route_point_teardrop: z.ZodEffects<z.ZodObject<{
7461
7461
  route_type: "teardrop";
7462
7462
  start_width: string | number;
7463
7463
  end_width: string | number;
7464
- width_interpolation_mode: "linear" | "smoothstep";
7464
+ width_interpolation_mode: "linear" | "quadratic";
7465
7465
  copper_pour_id?: string | undefined;
7466
7466
  is_inside_copper_pour?: boolean | undefined;
7467
7467
  start_pcb_port_id?: string | undefined;
@@ -7479,7 +7479,7 @@ declare const pcb_trace_route_point_teardrop: z.ZodEffects<z.ZodObject<{
7479
7479
  route_type: "teardrop";
7480
7480
  start_width: number;
7481
7481
  end_width: number;
7482
- width_interpolation_mode: "linear" | "smoothstep";
7482
+ width_interpolation_mode: "linear" | "quadratic";
7483
7483
  copper_pour_id?: string | undefined;
7484
7484
  is_inside_copper_pour?: boolean | undefined;
7485
7485
  start_pcb_port_id?: string | undefined;
@@ -7499,7 +7499,7 @@ declare const pcb_trace_route_point_teardrop: z.ZodEffects<z.ZodObject<{
7499
7499
  route_type: "teardrop";
7500
7500
  start_width: string | number;
7501
7501
  end_width: string | number;
7502
- width_interpolation_mode: "linear" | "smoothstep";
7502
+ width_interpolation_mode: "linear" | "quadratic";
7503
7503
  copper_pour_id?: string | undefined;
7504
7504
  is_inside_copper_pour?: boolean | undefined;
7505
7505
  start_pcb_port_id?: string | undefined;
@@ -7702,7 +7702,7 @@ declare const pcb_trace_route_point: z.ZodUnion<[z.ZodObject<{
7702
7702
  }>;
7703
7703
  start_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
7704
7704
  end_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
7705
- width_interpolation_mode: z.ZodEnum<["linear", "smoothstep"]>;
7705
+ width_interpolation_mode: z.ZodEnum<["linear", "quadratic"]>;
7706
7706
  layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
7707
7707
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
7708
7708
  }, "strip", z.ZodTypeAny, {
@@ -7729,7 +7729,7 @@ declare const pcb_trace_route_point: z.ZodUnion<[z.ZodObject<{
7729
7729
  route_type: "teardrop";
7730
7730
  start_width: number;
7731
7731
  end_width: number;
7732
- width_interpolation_mode: "linear" | "smoothstep";
7732
+ width_interpolation_mode: "linear" | "quadratic";
7733
7733
  copper_pour_id?: string | undefined;
7734
7734
  is_inside_copper_pour?: boolean | undefined;
7735
7735
  start_pcb_port_id?: string | undefined;
@@ -7749,7 +7749,7 @@ declare const pcb_trace_route_point: z.ZodUnion<[z.ZodObject<{
7749
7749
  route_type: "teardrop";
7750
7750
  start_width: string | number;
7751
7751
  end_width: string | number;
7752
- width_interpolation_mode: "linear" | "smoothstep";
7752
+ width_interpolation_mode: "linear" | "quadratic";
7753
7753
  copper_pour_id?: string | undefined;
7754
7754
  is_inside_copper_pour?: boolean | undefined;
7755
7755
  start_pcb_port_id?: string | undefined;
@@ -7767,7 +7767,7 @@ declare const pcb_trace_route_point: z.ZodUnion<[z.ZodObject<{
7767
7767
  route_type: "teardrop";
7768
7768
  start_width: number;
7769
7769
  end_width: number;
7770
- width_interpolation_mode: "linear" | "smoothstep";
7770
+ width_interpolation_mode: "linear" | "quadratic";
7771
7771
  copper_pour_id?: string | undefined;
7772
7772
  is_inside_copper_pour?: boolean | undefined;
7773
7773
  start_pcb_port_id?: string | undefined;
@@ -7787,7 +7787,7 @@ declare const pcb_trace_route_point: z.ZodUnion<[z.ZodObject<{
7787
7787
  route_type: "teardrop";
7788
7788
  start_width: string | number;
7789
7789
  end_width: string | number;
7790
- width_interpolation_mode: "linear" | "smoothstep";
7790
+ width_interpolation_mode: "linear" | "quadratic";
7791
7791
  copper_pour_id?: string | undefined;
7792
7792
  is_inside_copper_pour?: boolean | undefined;
7793
7793
  start_pcb_port_id?: string | undefined;
@@ -8003,7 +8003,7 @@ declare const pcb_trace: z.ZodObject<{
8003
8003
  }>;
8004
8004
  start_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
8005
8005
  end_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
8006
- width_interpolation_mode: z.ZodEnum<["linear", "smoothstep"]>;
8006
+ width_interpolation_mode: z.ZodEnum<["linear", "quadratic"]>;
8007
8007
  layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
8008
8008
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
8009
8009
  }, "strip", z.ZodTypeAny, {
@@ -8030,7 +8030,7 @@ declare const pcb_trace: z.ZodObject<{
8030
8030
  route_type: "teardrop";
8031
8031
  start_width: number;
8032
8032
  end_width: number;
8033
- width_interpolation_mode: "linear" | "smoothstep";
8033
+ width_interpolation_mode: "linear" | "quadratic";
8034
8034
  copper_pour_id?: string | undefined;
8035
8035
  is_inside_copper_pour?: boolean | undefined;
8036
8036
  start_pcb_port_id?: string | undefined;
@@ -8050,7 +8050,7 @@ declare const pcb_trace: z.ZodObject<{
8050
8050
  route_type: "teardrop";
8051
8051
  start_width: string | number;
8052
8052
  end_width: string | number;
8053
- width_interpolation_mode: "linear" | "smoothstep";
8053
+ width_interpolation_mode: "linear" | "quadratic";
8054
8054
  copper_pour_id?: string | undefined;
8055
8055
  is_inside_copper_pour?: boolean | undefined;
8056
8056
  start_pcb_port_id?: string | undefined;
@@ -8068,7 +8068,7 @@ declare const pcb_trace: z.ZodObject<{
8068
8068
  route_type: "teardrop";
8069
8069
  start_width: number;
8070
8070
  end_width: number;
8071
- width_interpolation_mode: "linear" | "smoothstep";
8071
+ width_interpolation_mode: "linear" | "quadratic";
8072
8072
  copper_pour_id?: string | undefined;
8073
8073
  is_inside_copper_pour?: boolean | undefined;
8074
8074
  start_pcb_port_id?: string | undefined;
@@ -8088,7 +8088,7 @@ declare const pcb_trace: z.ZodObject<{
8088
8088
  route_type: "teardrop";
8089
8089
  start_width: string | number;
8090
8090
  end_width: string | number;
8091
- width_interpolation_mode: "linear" | "smoothstep";
8091
+ width_interpolation_mode: "linear" | "quadratic";
8092
8092
  copper_pour_id?: string | undefined;
8093
8093
  is_inside_copper_pour?: boolean | undefined;
8094
8094
  start_pcb_port_id?: string | undefined;
@@ -8147,7 +8147,7 @@ declare const pcb_trace: z.ZodObject<{
8147
8147
  route_type: "teardrop";
8148
8148
  start_width: number;
8149
8149
  end_width: number;
8150
- width_interpolation_mode: "linear" | "smoothstep";
8150
+ width_interpolation_mode: "linear" | "quadratic";
8151
8151
  copper_pour_id?: string | undefined;
8152
8152
  is_inside_copper_pour?: boolean | undefined;
8153
8153
  start_pcb_port_id?: string | undefined;
@@ -8227,7 +8227,7 @@ declare const pcb_trace: z.ZodObject<{
8227
8227
  route_type: "teardrop";
8228
8228
  start_width: string | number;
8229
8229
  end_width: string | number;
8230
- width_interpolation_mode: "linear" | "smoothstep";
8230
+ width_interpolation_mode: "linear" | "quadratic";
8231
8231
  copper_pour_id?: string | undefined;
8232
8232
  is_inside_copper_pour?: boolean | undefined;
8233
8233
  start_pcb_port_id?: string | undefined;
@@ -8287,8 +8287,8 @@ interface PcbTraceRoutePointTeardrop {
8287
8287
  end: Point;
8288
8288
  start_width: Distance;
8289
8289
  end_width: Distance;
8290
- /** linear: f(t)=t; smoothstep: f(t)=3t²−2t³, with t along the centerline. */
8291
- width_interpolation_mode: "linear" | "smoothstep";
8290
+ /** Quadratic is concave toward the narrow end; see docs/pcb-trace-teardrops.md for profiles. */
8291
+ width_interpolation_mode: "linear" | "quadratic";
8292
8292
  layer: LayerRef;
8293
8293
  copper_pour_id?: string;
8294
8294
  is_inside_copper_pour?: boolean;
@@ -44573,7 +44573,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44573
44573
  }>;
44574
44574
  start_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
44575
44575
  end_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
44576
- width_interpolation_mode: z.ZodEnum<["linear", "smoothstep"]>;
44576
+ width_interpolation_mode: z.ZodEnum<["linear", "quadratic"]>;
44577
44577
  layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
44578
44578
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
44579
44579
  }, "strip", z.ZodTypeAny, {
@@ -44600,7 +44600,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44600
44600
  route_type: "teardrop";
44601
44601
  start_width: number;
44602
44602
  end_width: number;
44603
- width_interpolation_mode: "linear" | "smoothstep";
44603
+ width_interpolation_mode: "linear" | "quadratic";
44604
44604
  copper_pour_id?: string | undefined;
44605
44605
  is_inside_copper_pour?: boolean | undefined;
44606
44606
  start_pcb_port_id?: string | undefined;
@@ -44620,7 +44620,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44620
44620
  route_type: "teardrop";
44621
44621
  start_width: string | number;
44622
44622
  end_width: string | number;
44623
- width_interpolation_mode: "linear" | "smoothstep";
44623
+ width_interpolation_mode: "linear" | "quadratic";
44624
44624
  copper_pour_id?: string | undefined;
44625
44625
  is_inside_copper_pour?: boolean | undefined;
44626
44626
  start_pcb_port_id?: string | undefined;
@@ -44638,7 +44638,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44638
44638
  route_type: "teardrop";
44639
44639
  start_width: number;
44640
44640
  end_width: number;
44641
- width_interpolation_mode: "linear" | "smoothstep";
44641
+ width_interpolation_mode: "linear" | "quadratic";
44642
44642
  copper_pour_id?: string | undefined;
44643
44643
  is_inside_copper_pour?: boolean | undefined;
44644
44644
  start_pcb_port_id?: string | undefined;
@@ -44658,7 +44658,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44658
44658
  route_type: "teardrop";
44659
44659
  start_width: string | number;
44660
44660
  end_width: string | number;
44661
- width_interpolation_mode: "linear" | "smoothstep";
44661
+ width_interpolation_mode: "linear" | "quadratic";
44662
44662
  copper_pour_id?: string | undefined;
44663
44663
  is_inside_copper_pour?: boolean | undefined;
44664
44664
  start_pcb_port_id?: string | undefined;
@@ -44717,7 +44717,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44717
44717
  route_type: "teardrop";
44718
44718
  start_width: number;
44719
44719
  end_width: number;
44720
- width_interpolation_mode: "linear" | "smoothstep";
44720
+ width_interpolation_mode: "linear" | "quadratic";
44721
44721
  copper_pour_id?: string | undefined;
44722
44722
  is_inside_copper_pour?: boolean | undefined;
44723
44723
  start_pcb_port_id?: string | undefined;
@@ -44797,7 +44797,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
44797
44797
  route_type: "teardrop";
44798
44798
  start_width: string | number;
44799
44799
  end_width: string | number;
44800
- width_interpolation_mode: "linear" | "smoothstep";
44800
+ width_interpolation_mode: "linear" | "quadratic";
44801
44801
  copper_pour_id?: string | undefined;
44802
44802
  is_inside_copper_pour?: boolean | undefined;
44803
44803
  start_pcb_port_id?: string | undefined;
@@ -65814,7 +65814,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
65814
65814
  }>;
65815
65815
  start_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
65816
65816
  end_width: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
65817
- width_interpolation_mode: z.ZodEnum<["linear", "smoothstep"]>;
65817
+ width_interpolation_mode: z.ZodEnum<["linear", "quadratic"]>;
65818
65818
  layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
65819
65819
  name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
65820
65820
  }, "strip", z.ZodTypeAny, {
@@ -65841,7 +65841,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
65841
65841
  route_type: "teardrop";
65842
65842
  start_width: number;
65843
65843
  end_width: number;
65844
- width_interpolation_mode: "linear" | "smoothstep";
65844
+ width_interpolation_mode: "linear" | "quadratic";
65845
65845
  copper_pour_id?: string | undefined;
65846
65846
  is_inside_copper_pour?: boolean | undefined;
65847
65847
  start_pcb_port_id?: string | undefined;
@@ -65861,7 +65861,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
65861
65861
  route_type: "teardrop";
65862
65862
  start_width: string | number;
65863
65863
  end_width: string | number;
65864
- width_interpolation_mode: "linear" | "smoothstep";
65864
+ width_interpolation_mode: "linear" | "quadratic";
65865
65865
  copper_pour_id?: string | undefined;
65866
65866
  is_inside_copper_pour?: boolean | undefined;
65867
65867
  start_pcb_port_id?: string | undefined;
@@ -65879,7 +65879,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
65879
65879
  route_type: "teardrop";
65880
65880
  start_width: number;
65881
65881
  end_width: number;
65882
- width_interpolation_mode: "linear" | "smoothstep";
65882
+ width_interpolation_mode: "linear" | "quadratic";
65883
65883
  copper_pour_id?: string | undefined;
65884
65884
  is_inside_copper_pour?: boolean | undefined;
65885
65885
  start_pcb_port_id?: string | undefined;
@@ -65899,7 +65899,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
65899
65899
  route_type: "teardrop";
65900
65900
  start_width: string | number;
65901
65901
  end_width: string | number;
65902
- width_interpolation_mode: "linear" | "smoothstep";
65902
+ width_interpolation_mode: "linear" | "quadratic";
65903
65903
  copper_pour_id?: string | undefined;
65904
65904
  is_inside_copper_pour?: boolean | undefined;
65905
65905
  start_pcb_port_id?: string | undefined;
@@ -65958,7 +65958,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
65958
65958
  route_type: "teardrop";
65959
65959
  start_width: number;
65960
65960
  end_width: number;
65961
- width_interpolation_mode: "linear" | "smoothstep";
65961
+ width_interpolation_mode: "linear" | "quadratic";
65962
65962
  copper_pour_id?: string | undefined;
65963
65963
  is_inside_copper_pour?: boolean | undefined;
65964
65964
  start_pcb_port_id?: string | undefined;
@@ -66038,7 +66038,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66038
66038
  route_type: "teardrop";
66039
66039
  start_width: string | number;
66040
66040
  end_width: string | number;
66041
- width_interpolation_mode: "linear" | "smoothstep";
66041
+ width_interpolation_mode: "linear" | "quadratic";
66042
66042
  copper_pour_id?: string | undefined;
66043
66043
  is_inside_copper_pour?: boolean | undefined;
66044
66044
  start_pcb_port_id?: string | undefined;
package/dist/index.mjs CHANGED
@@ -2558,7 +2558,7 @@ var pcb_trace_route_point_teardrop = z116.object({
2558
2558
  end: finite_route_point,
2559
2559
  start_width: positive_width,
2560
2560
  end_width: positive_width,
2561
- width_interpolation_mode: z116.enum(["linear", "smoothstep"]),
2561
+ width_interpolation_mode: z116.enum(["linear", "quadratic"]),
2562
2562
  layer: layer_ref,
2563
2563
  copper_pour_id: z116.string().optional(),
2564
2564
  is_inside_copper_pour: z116.boolean().optional(),