circuit-json 0.0.130 → 0.0.132

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
@@ -386,6 +386,8 @@ Defines the board outline of the PCB
386
386
  interface PcbBoard {
387
387
  type: "pcb_board"
388
388
  pcb_board_id: string
389
+ is_subcircuit?: boolean
390
+ subcircuit_id?: string
389
391
  width: Length
390
392
  height: Length
391
393
  thickness: Length
@@ -405,6 +407,7 @@ interface PcbComponent {
405
407
  type: "pcb_component"
406
408
  pcb_component_id: string
407
409
  source_component_id: string
410
+ subcircuit_id?: string
408
411
  center: Point
409
412
  layer: LayerRef
410
413
  rotation: Rotation
@@ -423,6 +426,7 @@ interface PcbFabricationNotePath {
423
426
  type: "pcb_fabrication_note_path"
424
427
  pcb_fabrication_note_path_id: string
425
428
  pcb_component_id: string
429
+ subcircuit_id?: string
426
430
  layer: LayerRef
427
431
  route: Point[]
428
432
  stroke_width: Length
@@ -439,6 +443,8 @@ Defines a fabrication note in text on the PCB, useful for leaving notes for asse
439
443
  interface PcbFabricationNoteText {
440
444
  type: "pcb_fabrication_note_text"
441
445
  pcb_fabrication_note_text_id: string
446
+ subcircuit_id?: string
447
+ pcb_group_id?: string
442
448
  font: "tscircuit2024"
443
449
  font_size: Length
444
450
  pcb_component_id: string
@@ -464,6 +470,9 @@ Defines a group of components on the PCB
464
470
  interface PcbGroup {
465
471
  type: "pcb_group"
466
472
  pcb_group_id: string
473
+ source_group_id: string
474
+ is_subcircuit?: boolean
475
+ subcircuit_id?: string
467
476
  width: Length
468
477
  height: Length
469
478
  center: Point
@@ -482,6 +491,8 @@ Defines a circular or square hole on the PCB
482
491
  interface PcbHoleCircleOrSquare {
483
492
  type: "pcb_hole"
484
493
  pcb_hole_id: string
494
+ pcb_group_id?: string
495
+ subcircuit_id?: string
485
496
  hole_shape: "circle" | "square"
486
497
  hole_diameter: number
487
498
  x: Distance
@@ -500,6 +511,8 @@ interface PcbManualEditConflictError {
500
511
  pcb_error_id: string
501
512
  message: string
502
513
  pcb_component_id: string
514
+ pcb_group_id?: string
515
+ subcircuit_id?: string
503
516
  source_component_id: string
504
517
  }
505
518
  ```
@@ -513,6 +526,8 @@ Defines a placement error on the PCB
513
526
  interface PcbMissingFootprintError {
514
527
  type: "pcb_missing_footprint_error"
515
528
  pcb_missing_footprint_error_id: string
529
+ pcb_group_id?: string
530
+ subcircuit_id?: string
516
531
  error_type: "pcb_missing_footprint_error"
517
532
  source_component_id: string
518
533
  message: string
@@ -541,6 +556,8 @@ Defines a circular plated hole on the PCB
541
556
  interface PcbPlatedHoleCircle {
542
557
  type: "pcb_plated_hole"
543
558
  shape: "circle"
559
+ pcb_group_id?: string
560
+ subcircuit_id?: string
544
561
  outer_diameter: number
545
562
  hole_diameter: number
546
563
  x: Distance
@@ -555,6 +572,8 @@ interface PcbPlatedHoleCircle {
555
572
  interface PcbHoleCircularWithRectPad {
556
573
  type: "pcb_plated_hole"
557
574
  shape: "circular_hole_with_rect_pad"
575
+ pcb_group_id?: string
576
+ subcircuit_id?: string
558
577
  hole_shape: "circle"
559
578
  pad_shape: "rect"
560
579
  hole_diameter: number
@@ -579,6 +598,8 @@ Defines a port on the PCB
579
598
  interface PcbPort {
580
599
  type: "pcb_port"
581
600
  pcb_port_id: string
601
+ pcb_group_id?: string
602
+ subcircuit_id?: string
582
603
  source_port_id: string
583
604
  pcb_component_id: string
584
605
  x: Distance
@@ -611,6 +632,8 @@ interface PcbSilkscreenCircle {
611
632
  type: "pcb_silkscreen_circle"
612
633
  pcb_silkscreen_circle_id: string
613
634
  pcb_component_id: string
635
+ pcb_group_id?: string
636
+ subcircuit_id?: string
614
637
  center: Point
615
638
  radius: Length
616
639
  layer: VisibleLayer
@@ -627,6 +650,8 @@ interface PcbSilkscreenLine {
627
650
  type: "pcb_silkscreen_line"
628
651
  pcb_silkscreen_line_id: string
629
652
  pcb_component_id: string
653
+ pcb_group_id?: string
654
+ subcircuit_id?: string
630
655
  stroke_width: Distance
631
656
  x1: Distance
632
657
  y1: Distance
@@ -646,6 +671,8 @@ interface PcbSilkscreenOval {
646
671
  type: "pcb_silkscreen_oval"
647
672
  pcb_silkscreen_oval_id: string
648
673
  pcb_component_id: string
674
+ pcb_group_id?: string
675
+ subcircuit_id?: string
649
676
  center: Point
650
677
  radius_x: Distance
651
678
  radius_y: Distance
@@ -663,6 +690,8 @@ interface PcbSilkscreenPath {
663
690
  type: "pcb_silkscreen_path"
664
691
  pcb_silkscreen_path_id: string
665
692
  pcb_component_id: string
693
+ pcb_group_id?: string
694
+ subcircuit_id?: string
666
695
  layer: VisibleLayerRef
667
696
  route: Point[]
668
697
  stroke_width: Length
@@ -679,6 +708,8 @@ interface PcbSilkscreenPill {
679
708
  type: "pcb_silkscreen_pill"
680
709
  pcb_silkscreen_pill_id: string
681
710
  pcb_component_id: string
711
+ pcb_group_id?: string
712
+ subcircuit_id?: string
682
713
  center: Point
683
714
  width: Length
684
715
  height: Length
@@ -696,6 +727,8 @@ interface PcbSilkscreenRect {
696
727
  type: "pcb_silkscreen_rect"
697
728
  pcb_silkscreen_rect_id: string
698
729
  pcb_component_id: string
730
+ pcb_group_id?: string
731
+ subcircuit_id?: string
699
732
  center: Point
700
733
  width: Length
701
734
  height: Length
@@ -712,6 +745,8 @@ Defines silkscreen text on the PCB
712
745
  interface PcbSilkscreenText {
713
746
  type: "pcb_silkscreen_text"
714
747
  pcb_silkscreen_text_id: string
748
+ pcb_group_id?: string
749
+ subcircuit_id?: string
715
750
  font: "tscircuit2024"
716
751
  font_size: Length
717
752
  pcb_component_id: string
@@ -739,6 +774,8 @@ interface PcbSolderPasteCircle {
739
774
  type: "pcb_solder_paste"
740
775
  shape: "circle"
741
776
  pcb_solder_paste_id: string
777
+ pcb_group_id?: string
778
+ subcircuit_id?: string
742
779
  x: Distance
743
780
  y: Distance
744
781
  radius: number
@@ -757,6 +794,8 @@ Defines text on the PCB
757
794
  interface PcbText {
758
795
  type: "pcb_text"
759
796
  pcb_text_id: string
797
+ pcb_group_id?: string
798
+ subcircuit_id?: string
760
799
  text: string
761
800
  center: Point
762
801
  layer: LayerRef