@tscircuit/eval 0.0.435 → 0.0.437

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.
@@ -138,10 +138,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
138
138
  } | {
139
139
  type: "source_port";
140
140
  name: string;
141
- source_component_id: string;
142
141
  source_port_id: string;
142
+ source_component_id?: string | undefined;
143
143
  subcircuit_id?: string | undefined;
144
144
  port_hints?: string[] | undefined;
145
+ source_group_id?: string | undefined;
145
146
  subcircuit_connectivity_map_key?: string | undefined;
146
147
  pin_number?: number | undefined;
147
148
  } | {
@@ -993,10 +994,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
993
994
  x: number;
994
995
  y: number;
995
996
  type: "pcb_port";
996
- pcb_component_id: string;
997
997
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
998
998
  pcb_port_id: string;
999
999
  source_port_id: string;
1000
+ pcb_component_id?: string | undefined;
1000
1001
  subcircuit_id?: string | undefined;
1001
1002
  pcb_group_id?: string | undefined;
1002
1003
  is_board_pinout?: boolean | undefined;
@@ -1340,6 +1341,30 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1340
1341
  right: number;
1341
1342
  } | undefined;
1342
1343
  is_mirrored?: boolean | undefined;
1344
+ } | {
1345
+ type: "pcb_copper_text";
1346
+ pcb_component_id: string;
1347
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1348
+ text: string;
1349
+ font: "tscircuit2024";
1350
+ font_size: number;
1351
+ anchor_position: {
1352
+ x: number;
1353
+ y: number;
1354
+ };
1355
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1356
+ pcb_copper_text_id: string;
1357
+ subcircuit_id?: string | undefined;
1358
+ pcb_group_id?: string | undefined;
1359
+ ccw_rotation?: number | undefined;
1360
+ is_knockout?: boolean | undefined;
1361
+ knockout_padding?: {
1362
+ top: number;
1363
+ bottom: number;
1364
+ left: number;
1365
+ right: number;
1366
+ } | undefined;
1367
+ is_mirrored?: boolean | undefined;
1343
1368
  } | {
1344
1369
  type: "pcb_silkscreen_rect";
1345
1370
  width: number;
@@ -1510,7 +1535,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1510
1535
  pcb_group_id?: string | undefined;
1511
1536
  text?: string | undefined;
1512
1537
  color?: string | undefined;
1538
+ text_ccw_rotation?: number | undefined;
1513
1539
  offset?: number | undefined;
1540
+ offset_distance?: number | undefined;
1541
+ offset_direction?: {
1542
+ x: number;
1543
+ y: number;
1544
+ } | undefined;
1514
1545
  } | {
1515
1546
  type: "pcb_note_text";
1516
1547
  font: "tscircuit2024";
@@ -1595,6 +1626,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1595
1626
  pcb_group_id?: string | undefined;
1596
1627
  text?: string | undefined;
1597
1628
  color?: string | undefined;
1629
+ text_ccw_rotation?: number | undefined;
1630
+ offset_distance?: number | undefined;
1631
+ offset_direction?: {
1632
+ x: number;
1633
+ y: number;
1634
+ } | undefined;
1598
1635
  } | {
1599
1636
  message: string;
1600
1637
  type: "pcb_autorouting_error";
@@ -2234,10 +2271,11 @@ declare const runTscircuitModule: (module: string, opts?: {
2234
2271
  } | {
2235
2272
  type: "source_port";
2236
2273
  name: string;
2237
- source_component_id: string;
2238
2274
  source_port_id: string;
2275
+ source_component_id?: string | undefined;
2239
2276
  subcircuit_id?: string | undefined;
2240
2277
  port_hints?: string[] | undefined;
2278
+ source_group_id?: string | undefined;
2241
2279
  subcircuit_connectivity_map_key?: string | undefined;
2242
2280
  pin_number?: number | undefined;
2243
2281
  } | {
@@ -3089,10 +3127,10 @@ declare const runTscircuitModule: (module: string, opts?: {
3089
3127
  x: number;
3090
3128
  y: number;
3091
3129
  type: "pcb_port";
3092
- pcb_component_id: string;
3093
3130
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
3094
3131
  pcb_port_id: string;
3095
3132
  source_port_id: string;
3133
+ pcb_component_id?: string | undefined;
3096
3134
  subcircuit_id?: string | undefined;
3097
3135
  pcb_group_id?: string | undefined;
3098
3136
  is_board_pinout?: boolean | undefined;
@@ -3436,6 +3474,30 @@ declare const runTscircuitModule: (module: string, opts?: {
3436
3474
  right: number;
3437
3475
  } | undefined;
3438
3476
  is_mirrored?: boolean | undefined;
3477
+ } | {
3478
+ type: "pcb_copper_text";
3479
+ pcb_component_id: string;
3480
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3481
+ text: string;
3482
+ font: "tscircuit2024";
3483
+ font_size: number;
3484
+ anchor_position: {
3485
+ x: number;
3486
+ y: number;
3487
+ };
3488
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3489
+ pcb_copper_text_id: string;
3490
+ subcircuit_id?: string | undefined;
3491
+ pcb_group_id?: string | undefined;
3492
+ ccw_rotation?: number | undefined;
3493
+ is_knockout?: boolean | undefined;
3494
+ knockout_padding?: {
3495
+ top: number;
3496
+ bottom: number;
3497
+ left: number;
3498
+ right: number;
3499
+ } | undefined;
3500
+ is_mirrored?: boolean | undefined;
3439
3501
  } | {
3440
3502
  type: "pcb_silkscreen_rect";
3441
3503
  width: number;
@@ -3606,7 +3668,13 @@ declare const runTscircuitModule: (module: string, opts?: {
3606
3668
  pcb_group_id?: string | undefined;
3607
3669
  text?: string | undefined;
3608
3670
  color?: string | undefined;
3671
+ text_ccw_rotation?: number | undefined;
3609
3672
  offset?: number | undefined;
3673
+ offset_distance?: number | undefined;
3674
+ offset_direction?: {
3675
+ x: number;
3676
+ y: number;
3677
+ } | undefined;
3610
3678
  } | {
3611
3679
  type: "pcb_note_text";
3612
3680
  font: "tscircuit2024";
@@ -3691,6 +3759,12 @@ declare const runTscircuitModule: (module: string, opts?: {
3691
3759
  pcb_group_id?: string | undefined;
3692
3760
  text?: string | undefined;
3693
3761
  color?: string | undefined;
3762
+ text_ccw_rotation?: number | undefined;
3763
+ offset_distance?: number | undefined;
3764
+ offset_direction?: {
3765
+ x: number;
3766
+ y: number;
3767
+ } | undefined;
3694
3768
  } | {
3695
3769
  message: string;
3696
3770
  type: "pcb_autorouting_error";
@@ -154,10 +154,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
154
154
  } | {
155
155
  type: "source_port";
156
156
  name: string;
157
- source_component_id: string;
158
157
  source_port_id: string;
158
+ source_component_id?: string | undefined;
159
159
  subcircuit_id?: string | undefined;
160
160
  port_hints?: string[] | undefined;
161
+ source_group_id?: string | undefined;
161
162
  subcircuit_connectivity_map_key?: string | undefined;
162
163
  pin_number?: number | undefined;
163
164
  } | {
@@ -1009,10 +1010,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1009
1010
  x: number;
1010
1011
  y: number;
1011
1012
  type: "pcb_port";
1012
- pcb_component_id: string;
1013
1013
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
1014
1014
  pcb_port_id: string;
1015
1015
  source_port_id: string;
1016
+ pcb_component_id?: string | undefined;
1016
1017
  subcircuit_id?: string | undefined;
1017
1018
  pcb_group_id?: string | undefined;
1018
1019
  is_board_pinout?: boolean | undefined;
@@ -1356,6 +1357,30 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1356
1357
  right: number;
1357
1358
  } | undefined;
1358
1359
  is_mirrored?: boolean | undefined;
1360
+ } | {
1361
+ type: "pcb_copper_text";
1362
+ pcb_component_id: string;
1363
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1364
+ text: string;
1365
+ font: "tscircuit2024";
1366
+ font_size: number;
1367
+ anchor_position: {
1368
+ x: number;
1369
+ y: number;
1370
+ };
1371
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1372
+ pcb_copper_text_id: string;
1373
+ subcircuit_id?: string | undefined;
1374
+ pcb_group_id?: string | undefined;
1375
+ ccw_rotation?: number | undefined;
1376
+ is_knockout?: boolean | undefined;
1377
+ knockout_padding?: {
1378
+ top: number;
1379
+ bottom: number;
1380
+ left: number;
1381
+ right: number;
1382
+ } | undefined;
1383
+ is_mirrored?: boolean | undefined;
1359
1384
  } | {
1360
1385
  type: "pcb_silkscreen_rect";
1361
1386
  width: number;
@@ -1526,7 +1551,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1526
1551
  pcb_group_id?: string | undefined;
1527
1552
  text?: string | undefined;
1528
1553
  color?: string | undefined;
1554
+ text_ccw_rotation?: number | undefined;
1529
1555
  offset?: number | undefined;
1556
+ offset_distance?: number | undefined;
1557
+ offset_direction?: {
1558
+ x: number;
1559
+ y: number;
1560
+ } | undefined;
1530
1561
  } | {
1531
1562
  type: "pcb_note_text";
1532
1563
  font: "tscircuit2024";
@@ -1611,6 +1642,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1611
1642
  pcb_group_id?: string | undefined;
1612
1643
  text?: string | undefined;
1613
1644
  color?: string | undefined;
1645
+ text_ccw_rotation?: number | undefined;
1646
+ offset_distance?: number | undefined;
1647
+ offset_direction?: {
1648
+ x: number;
1649
+ y: number;
1650
+ } | undefined;
1614
1651
  } | {
1615
1652
  message: string;
1616
1653
  type: "pcb_autorouting_error";
@@ -2250,10 +2287,11 @@ declare const runTscircuitModule: (module: string, opts?: {
2250
2287
  } | {
2251
2288
  type: "source_port";
2252
2289
  name: string;
2253
- source_component_id: string;
2254
2290
  source_port_id: string;
2291
+ source_component_id?: string | undefined;
2255
2292
  subcircuit_id?: string | undefined;
2256
2293
  port_hints?: string[] | undefined;
2294
+ source_group_id?: string | undefined;
2257
2295
  subcircuit_connectivity_map_key?: string | undefined;
2258
2296
  pin_number?: number | undefined;
2259
2297
  } | {
@@ -3105,10 +3143,10 @@ declare const runTscircuitModule: (module: string, opts?: {
3105
3143
  x: number;
3106
3144
  y: number;
3107
3145
  type: "pcb_port";
3108
- pcb_component_id: string;
3109
3146
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
3110
3147
  pcb_port_id: string;
3111
3148
  source_port_id: string;
3149
+ pcb_component_id?: string | undefined;
3112
3150
  subcircuit_id?: string | undefined;
3113
3151
  pcb_group_id?: string | undefined;
3114
3152
  is_board_pinout?: boolean | undefined;
@@ -3452,6 +3490,30 @@ declare const runTscircuitModule: (module: string, opts?: {
3452
3490
  right: number;
3453
3491
  } | undefined;
3454
3492
  is_mirrored?: boolean | undefined;
3493
+ } | {
3494
+ type: "pcb_copper_text";
3495
+ pcb_component_id: string;
3496
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3497
+ text: string;
3498
+ font: "tscircuit2024";
3499
+ font_size: number;
3500
+ anchor_position: {
3501
+ x: number;
3502
+ y: number;
3503
+ };
3504
+ anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3505
+ pcb_copper_text_id: string;
3506
+ subcircuit_id?: string | undefined;
3507
+ pcb_group_id?: string | undefined;
3508
+ ccw_rotation?: number | undefined;
3509
+ is_knockout?: boolean | undefined;
3510
+ knockout_padding?: {
3511
+ top: number;
3512
+ bottom: number;
3513
+ left: number;
3514
+ right: number;
3515
+ } | undefined;
3516
+ is_mirrored?: boolean | undefined;
3455
3517
  } | {
3456
3518
  type: "pcb_silkscreen_rect";
3457
3519
  width: number;
@@ -3622,7 +3684,13 @@ declare const runTscircuitModule: (module: string, opts?: {
3622
3684
  pcb_group_id?: string | undefined;
3623
3685
  text?: string | undefined;
3624
3686
  color?: string | undefined;
3687
+ text_ccw_rotation?: number | undefined;
3625
3688
  offset?: number | undefined;
3689
+ offset_distance?: number | undefined;
3690
+ offset_direction?: {
3691
+ x: number;
3692
+ y: number;
3693
+ } | undefined;
3626
3694
  } | {
3627
3695
  type: "pcb_note_text";
3628
3696
  font: "tscircuit2024";
@@ -3707,6 +3775,12 @@ declare const runTscircuitModule: (module: string, opts?: {
3707
3775
  pcb_group_id?: string | undefined;
3708
3776
  text?: string | undefined;
3709
3777
  color?: string | undefined;
3778
+ text_ccw_rotation?: number | undefined;
3779
+ offset_distance?: number | undefined;
3780
+ offset_direction?: {
3781
+ x: number;
3782
+ y: number;
3783
+ } | undefined;
3710
3784
  } | {
3711
3785
  message: string;
3712
3786
  type: "pcb_autorouting_error";