circuit-json 0.0.129 → 0.0.131

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,8 @@ Defines a group of components on the PCB
464
470
  interface PcbGroup {
465
471
  type: "pcb_group"
466
472
  pcb_group_id: string
473
+ is_subcircuit?: boolean
474
+ subcircuit_id?: string
467
475
  width: Length
468
476
  height: Length
469
477
  center: Point
@@ -482,6 +490,8 @@ Defines a circular or square hole on the PCB
482
490
  interface PcbHoleCircleOrSquare {
483
491
  type: "pcb_hole"
484
492
  pcb_hole_id: string
493
+ pcb_group_id?: string
494
+ subcircuit_id?: string
485
495
  hole_shape: "circle" | "square"
486
496
  hole_diameter: number
487
497
  x: Distance
@@ -500,6 +510,8 @@ interface PcbManualEditConflictError {
500
510
  pcb_error_id: string
501
511
  message: string
502
512
  pcb_component_id: string
513
+ pcb_group_id?: string
514
+ subcircuit_id?: string
503
515
  source_component_id: string
504
516
  }
505
517
  ```
@@ -513,6 +525,8 @@ Defines a placement error on the PCB
513
525
  interface PcbMissingFootprintError {
514
526
  type: "pcb_missing_footprint_error"
515
527
  pcb_missing_footprint_error_id: string
528
+ pcb_group_id?: string
529
+ subcircuit_id?: string
516
530
  error_type: "pcb_missing_footprint_error"
517
531
  source_component_id: string
518
532
  message: string
@@ -541,6 +555,8 @@ Defines a circular plated hole on the PCB
541
555
  interface PcbPlatedHoleCircle {
542
556
  type: "pcb_plated_hole"
543
557
  shape: "circle"
558
+ pcb_group_id?: string
559
+ subcircuit_id?: string
544
560
  outer_diameter: number
545
561
  hole_diameter: number
546
562
  x: Distance
@@ -555,6 +571,8 @@ interface PcbPlatedHoleCircle {
555
571
  interface PcbHoleCircularWithRectPad {
556
572
  type: "pcb_plated_hole"
557
573
  shape: "circular_hole_with_rect_pad"
574
+ pcb_group_id?: string
575
+ subcircuit_id?: string
558
576
  hole_shape: "circle"
559
577
  pad_shape: "rect"
560
578
  hole_diameter: number
@@ -579,6 +597,8 @@ Defines a port on the PCB
579
597
  interface PcbPort {
580
598
  type: "pcb_port"
581
599
  pcb_port_id: string
600
+ pcb_group_id?: string
601
+ subcircuit_id?: string
582
602
  source_port_id: string
583
603
  pcb_component_id: string
584
604
  x: Distance
@@ -611,6 +631,8 @@ interface PcbSilkscreenCircle {
611
631
  type: "pcb_silkscreen_circle"
612
632
  pcb_silkscreen_circle_id: string
613
633
  pcb_component_id: string
634
+ pcb_group_id?: string
635
+ subcircuit_id?: string
614
636
  center: Point
615
637
  radius: Length
616
638
  layer: VisibleLayer
@@ -627,6 +649,8 @@ interface PcbSilkscreenLine {
627
649
  type: "pcb_silkscreen_line"
628
650
  pcb_silkscreen_line_id: string
629
651
  pcb_component_id: string
652
+ pcb_group_id?: string
653
+ subcircuit_id?: string
630
654
  stroke_width: Distance
631
655
  x1: Distance
632
656
  y1: Distance
@@ -646,6 +670,8 @@ interface PcbSilkscreenOval {
646
670
  type: "pcb_silkscreen_oval"
647
671
  pcb_silkscreen_oval_id: string
648
672
  pcb_component_id: string
673
+ pcb_group_id?: string
674
+ subcircuit_id?: string
649
675
  center: Point
650
676
  radius_x: Distance
651
677
  radius_y: Distance
@@ -663,6 +689,8 @@ interface PcbSilkscreenPath {
663
689
  type: "pcb_silkscreen_path"
664
690
  pcb_silkscreen_path_id: string
665
691
  pcb_component_id: string
692
+ pcb_group_id?: string
693
+ subcircuit_id?: string
666
694
  layer: VisibleLayerRef
667
695
  route: Point[]
668
696
  stroke_width: Length
@@ -679,6 +707,8 @@ interface PcbSilkscreenPill {
679
707
  type: "pcb_silkscreen_pill"
680
708
  pcb_silkscreen_pill_id: string
681
709
  pcb_component_id: string
710
+ pcb_group_id?: string
711
+ subcircuit_id?: string
682
712
  center: Point
683
713
  width: Length
684
714
  height: Length
@@ -696,6 +726,8 @@ interface PcbSilkscreenRect {
696
726
  type: "pcb_silkscreen_rect"
697
727
  pcb_silkscreen_rect_id: string
698
728
  pcb_component_id: string
729
+ pcb_group_id?: string
730
+ subcircuit_id?: string
699
731
  center: Point
700
732
  width: Length
701
733
  height: Length
@@ -712,6 +744,8 @@ Defines silkscreen text on the PCB
712
744
  interface PcbSilkscreenText {
713
745
  type: "pcb_silkscreen_text"
714
746
  pcb_silkscreen_text_id: string
747
+ pcb_group_id?: string
748
+ subcircuit_id?: string
715
749
  font: "tscircuit2024"
716
750
  font_size: Length
717
751
  pcb_component_id: string
@@ -739,6 +773,8 @@ interface PcbSolderPasteCircle {
739
773
  type: "pcb_solder_paste"
740
774
  shape: "circle"
741
775
  pcb_solder_paste_id: string
776
+ pcb_group_id?: string
777
+ subcircuit_id?: string
742
778
  x: Distance
743
779
  y: Distance
744
780
  radius: number
@@ -757,6 +793,8 @@ Defines text on the PCB
757
793
  interface PcbText {
758
794
  type: "pcb_text"
759
795
  pcb_text_id: string
796
+ pcb_group_id?: string
797
+ subcircuit_id?: string
760
798
  text: string
761
799
  center: Point
762
800
  layer: LayerRef