@tscircuit/hypergraph 0.0.40 → 0.0.42

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +118 -246
  2. package/dist/index.js +1834 -291
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -649,401 +649,273 @@ declare class Topology {
649
649
  }
650
650
 
651
651
  var viasByNet = {
652
- Net6: [
652
+ net1: [
653
653
  {
654
- viaId: "4ef04070-bacf-4a8a-8ac9-ea222cf4bf2c",
654
+ viaId: "14ee4bf1-e7e7-4351-ad16-ba1a8aac0af3",
655
655
  diameter: 0.6,
656
656
  position: {
657
- x: 1.483834,
658
- y: 0.582296
657
+ x: 1.187494,
658
+ y: 0.226901
659
659
  }
660
660
  },
661
661
  {
662
- viaId: "79364d38-c966-4eff-aa4a-e3ff6cca6339",
662
+ viaId: "8a898812-db2b-4b81-899d-f953b3222f9a",
663
663
  diameter: 0.6,
664
664
  position: {
665
- x: -0.695585,
666
- y: -1.475
667
- }
668
- },
669
- {
670
- viaId: "f1d52fd5-ddd2-4440-8772-da3d096b033f",
671
- diameter: 0.6,
672
- position: {
673
- x: -0.428066,
674
- y: 1.185303
665
+ x: -0.890462,
666
+ y: 1.024371
675
667
  }
676
668
  }
677
669
  ],
678
- Net5: [
670
+ net3: [
679
671
  {
680
- viaId: "4e57cee8-0910-4c83-9ec1-1ed2c9d16dcc",
672
+ viaId: "13cd75da-d582-4eed-bc2c-fee6fa78bc6a",
681
673
  diameter: 0.6,
682
674
  position: {
683
- x: 0.981466,
684
- y: -1.472559
675
+ x: -1.229928,
676
+ y: -1.159683
685
677
  }
686
678
  },
687
679
  {
688
- viaId: "a3797f13-73f9-48c3-a448-bea3980cdd65",
680
+ viaId: "9f188f9d-bce8-46c7-b9e8-542b8599d48d",
689
681
  diameter: 0.6,
690
682
  position: {
691
- x: -1.276,
692
- y: -0.834191
693
- }
694
- },
695
- {
696
- viaId: "b0c56bb1-ea80-4154-9bb7-cb0fd760de8f",
697
- diameter: 0.6,
698
- position: {
699
- x: 0.685025,
700
- y: 1.338478
683
+ x: 1.364053,
684
+ y: 1.083575
701
685
  }
702
686
  }
703
687
  ],
704
- Net7: [
688
+ net4: [
705
689
  {
706
- viaId: "3719876b-17c8-4ee3-9cce-5b5c073d6614",
690
+ viaId: "2ef3b96b-58c4-4150-b5d1-e90f74b92b25",
707
691
  diameter: 0.6,
708
692
  position: {
709
- x: 1.434987,
710
- y: 1.330707
693
+ x: -0.134894,
694
+ y: 1.042149
711
695
  }
712
696
  },
713
697
  {
714
- viaId: "4e46d759-a04a-4f7e-99cd-9e05adf5fa23",
698
+ viaId: "37a70467-7553-415f-8ad7-8b88a5e56ca8",
715
699
  diameter: 0.6,
716
700
  position: {
717
- x: -1.275,
718
- y: 0
701
+ x: -1.195947,
702
+ y: 0.339403
719
703
  }
720
704
  },
721
705
  {
722
- viaId: "63afce65-b94e-47da-ae14-51ff0ee8eb39",
706
+ viaId: "6d182b7d-a260-427b-8c43-a09409422252",
723
707
  diameter: 0.6,
724
708
  position: {
725
- x: 1.478363,
726
- y: -0.910782
709
+ x: -0.141929,
710
+ y: -1.050896
727
711
  }
728
712
  }
729
713
  ],
730
- Net8: [
714
+ net5: [
731
715
  {
732
- viaId: "26d3bef1-a78f-4947-b551-c48f04289a98",
716
+ viaId: "346c301a-f2b4-44d7-b975-5438ddaa0bde",
733
717
  diameter: 0.6,
734
718
  position: {
735
- x: 1.553029,
736
- y: -0.164505
719
+ x: 0.587494,
720
+ y: -0.438741
737
721
  }
738
722
  },
739
723
  {
740
- viaId: "548acbca-8b68-4186-a589-681ec44fba42",
724
+ viaId: "c54b4b94-90e0-4240-97ef-883cf097d79d",
741
725
  diameter: 0.6,
742
726
  position: {
743
- x: 0.251271,
744
- y: -1.643783
727
+ x: 0.614052,
728
+ y: 1.081959
745
729
  }
746
730
  },
747
731
  {
748
- viaId: "d6bf60bf-4b90-4967-a295-fc930b1f2549",
732
+ viaId: "f3cb916e-b0fd-4c5e-b14b-3779f4f9bd01",
749
733
  diameter: 0.6,
750
734
  position: {
751
- x: -1.168748,
752
- y: 1.067434
735
+ x: -1.192929,
736
+ y: -0.410594
753
737
  }
754
738
  }
755
739
  ]
756
740
  };
757
741
  var routeSegments = [
758
742
  {
759
- routeId: "Net6:route_0",
760
- fromPort: "4ef04070-bacf-4a8a-8ac9-ea222cf4bf2c",
761
- toPort: "f1d52fd5-ddd2-4440-8772-da3d096b033f",
762
- layer: "bottom",
763
- segments: [
764
- {
765
- x: 1.483834,
766
- y: 0.582296
767
- },
768
- {
769
- x: 1.960987,
770
- y: 1.059449
771
- },
772
- {
773
- x: 1.960987,
774
- y: 1.548584
775
- },
776
- {
777
- x: 1.344093,
778
- y: 2.165478
779
- },
780
- {
781
- x: 0.165478,
782
- y: 2.165478
783
- },
784
- {
785
- x: -0.428066,
786
- y: 1.571934
787
- },
788
- {
789
- x: -0.428066,
790
- y: 1.185303
791
- }
792
- ]
793
- },
794
- {
795
- routeId: "Net6:route_1",
796
- fromPort: "79364d38-c966-4eff-aa4a-e3ff6cca6339",
797
- toPort: "f1d52fd5-ddd2-4440-8772-da3d096b033f",
743
+ routeId: "net1:route_0",
744
+ fromPort: "14ee4bf1-e7e7-4351-ad16-ba1a8aac0af3",
745
+ toPort: "8a898812-db2b-4b81-899d-f953b3222f9a",
798
746
  layer: "bottom",
799
747
  segments: [
800
748
  {
801
- x: -0.695585,
802
- y: -1.475
803
- },
804
- {
805
- x: -0.810394,
806
- y: -1.360191
807
- },
808
- {
809
- x: -1.493877,
810
- y: -1.360191
811
- },
812
- {
813
- x: -1.80445,
814
- y: -1.049618
815
- },
816
- {
817
- x: -1.80445,
818
- y: 0.214427
819
- },
820
- {
821
- x: -1.801,
822
- y: 0.210977
823
- },
824
- {
825
- x: -1.801,
826
- y: 0.217877
827
- },
828
- {
829
- x: -1.492877,
830
- y: 0.526
749
+ x: 1.187494,
750
+ y: 0.226901
831
751
  },
832
752
  {
833
- x: -1.057123,
834
- y: 0.526
753
+ x: 1.187494,
754
+ y: -0.582618
835
755
  },
836
756
  {
837
- x: -0.849428,
838
- y: 0.318305
757
+ x: 0.193216,
758
+ y: -1.576896
839
759
  },
840
760
  {
841
- x: -0.5,
842
- y: 0.667733
761
+ x: -0.359806,
762
+ y: -1.576896
843
763
  },
844
764
  {
845
- x: -0.5,
846
- y: 0.678735
765
+ x: -0.667929,
766
+ y: -1.268773
847
767
  },
848
768
  {
849
- x: -0.479066,
850
- y: 0.699669
851
- },
852
- {
853
- x: -0.479066,
854
- y: 1.134303
855
- },
856
- {
857
- x: -0.428066,
858
- y: 1.185303
859
- }
860
- ]
861
- },
862
- {
863
- routeId: "Net5:route_0",
864
- fromPort: "4e57cee8-0910-4c83-9ec1-1ed2c9d16dcc",
865
- toPort: "a3797f13-73f9-48c3-a448-bea3980cdd65",
866
- layer: "bottom",
867
- segments: [
868
- {
869
- x: 0.981466,
870
- y: -1.472559
769
+ x: -0.667929,
770
+ y: 0.561982
871
771
  },
872
772
  {
873
- x: 0.343098,
874
- y: -0.834191
773
+ x: -0.890462,
774
+ y: 0.784515
875
775
  },
876
776
  {
877
- x: -1.276,
878
- y: -0.834191
777
+ x: -0.890462,
778
+ y: 1.024371
879
779
  }
880
780
  ]
881
781
  },
882
782
  {
883
- routeId: "Net5:route_1",
884
- fromPort: "a3797f13-73f9-48c3-a448-bea3980cdd65",
885
- toPort: "b0c56bb1-ea80-4154-9bb7-cb0fd760de8f",
783
+ routeId: "net3:route_0",
784
+ fromPort: "13cd75da-d582-4eed-bc2c-fee6fa78bc6a",
785
+ toPort: "9f188f9d-bce8-46c7-b9e8-542b8599d48d",
886
786
  layer: "bottom",
887
787
  segments: [
888
788
  {
889
- x: -1.276,
890
- y: -0.834191
891
- },
892
- {
893
- x: -1.156476,
894
- y: -0.834191
789
+ x: -1.229928,
790
+ y: -1.159683
895
791
  },
896
792
  {
897
- x: -0.809571,
898
- y: -0.487286
793
+ x: -0.511715,
794
+ y: -1.877896
899
795
  },
900
796
  {
901
- x: -0.803663,
902
- y: -0.487286
797
+ x: 0.317894,
798
+ y: -1.877896
903
799
  },
904
800
  {
905
- x: 0.397934,
906
- y: 0.714311
801
+ x: 1.713494,
802
+ y: -0.482296
907
803
  },
908
804
  {
909
- x: 0.397934,
910
- y: 1.051387
805
+ x: 1.713494,
806
+ y: 0.734134
911
807
  },
912
808
  {
913
- x: 0.685025,
914
- y: 1.338478
809
+ x: 1.364053,
810
+ y: 1.083575
915
811
  }
916
812
  ]
917
813
  },
918
814
  {
919
- routeId: "Net7:route_0",
920
- fromPort: "3719876b-17c8-4ee3-9cce-5b5c073d6614",
921
- toPort: "63afce65-b94e-47da-ae14-51ff0ee8eb39",
815
+ routeId: "net4:route_0",
816
+ fromPort: "2ef3b96b-58c4-4150-b5d1-e90f74b92b25",
817
+ toPort: "6d182b7d-a260-427b-8c43-a09409422252",
922
818
  layer: "bottom",
923
819
  segments: [
924
820
  {
925
- x: 1.434987,
926
- y: 1.330707
821
+ x: -0.134894,
822
+ y: 1.042149
927
823
  },
928
824
  {
929
- x: 0.957834,
930
- y: 0.853554
825
+ x: -0.141929,
826
+ y: 1.035114
931
827
  },
932
828
  {
933
- x: 0.957834,
934
- y: -0.390253
935
- },
936
- {
937
- x: 1.478363,
938
- y: -0.910782
829
+ x: -0.141929,
830
+ y: -1.050896
939
831
  }
940
832
  ]
941
833
  },
942
834
  {
943
- routeId: "Net7:route_1",
944
- fromPort: "3719876b-17c8-4ee3-9cce-5b5c073d6614",
945
- toPort: "4e46d759-a04a-4f7e-99cd-9e05adf5fa23",
835
+ routeId: "net4:route_1",
836
+ fromPort: "2ef3b96b-58c4-4150-b5d1-e90f74b92b25",
837
+ toPort: "37a70467-7553-415f-8ad7-8b88a5e56ca8",
946
838
  layer: "bottom",
947
839
  segments: [
948
840
  {
949
- x: 1.434987,
950
- y: 1.330707
951
- },
952
- {
953
- x: 1.434987,
954
- y: 1.332393
841
+ x: -0.134894,
842
+ y: 1.042149
955
843
  },
956
844
  {
957
- x: 0.902902,
958
- y: 1.864478
845
+ x: -0.643116,
846
+ y: 1.550371
959
847
  },
960
848
  {
961
- x: 0.467148,
962
- y: 1.864478
849
+ x: -1.108339,
850
+ y: 1.550371
963
851
  },
964
852
  {
965
- x: 0.096934,
966
- y: 1.494264
853
+ x: -1.416462,
854
+ y: 1.242248
967
855
  },
968
856
  {
969
- x: 0.096934,
970
- y: 0.838989
857
+ x: -1.416462,
858
+ y: 0.559918
971
859
  },
972
860
  {
973
- x: -0.742055,
974
- y: 0
975
- },
976
- {
977
- x: -1.275,
978
- y: 0
861
+ x: -1.195947,
862
+ y: 0.339403
979
863
  }
980
864
  ]
981
865
  },
982
866
  {
983
- routeId: "Net8:route_0",
984
- fromPort: "26d3bef1-a78f-4947-b551-c48f04289a98",
985
- toPort: "548acbca-8b68-4186-a589-681ec44fba42",
867
+ routeId: "net5:route_0",
868
+ fromPort: "346c301a-f2b4-44d7-b975-5438ddaa0bde",
869
+ toPort: "c54b4b94-90e0-4240-97ef-883cf097d79d",
986
870
  layer: "bottom",
987
871
  segments: [
988
872
  {
989
- x: 1.553029,
990
- y: -0.164505
991
- },
992
- {
993
- x: 2.004363,
994
- y: -0.615839
873
+ x: 0.587494,
874
+ y: -0.438741
995
875
  },
996
876
  {
997
- x: 2.004363,
998
- y: -1.193539
877
+ x: 0.587494,
878
+ y: 1.080547
999
879
  },
1000
880
  {
1001
- x: 1.197902,
1002
- y: -2
881
+ x: 0.588906,
882
+ y: 1.081959
1003
883
  },
1004
884
  {
1005
- x: 0.607488,
1006
- y: -2
1007
- },
1008
- {
1009
- x: 0.251271,
1010
- y: -1.643783
885
+ x: 0.614052,
886
+ y: 1.081959
1011
887
  }
1012
888
  ]
1013
889
  },
1014
890
  {
1015
- routeId: "Net8:route_1",
1016
- fromPort: "548acbca-8b68-4186-a589-681ec44fba42",
1017
- toPort: "d6bf60bf-4b90-4967-a295-fc930b1f2549",
891
+ routeId: "net5:route_1",
892
+ fromPort: "c54b4b94-90e0-4240-97ef-883cf097d79d",
893
+ toPort: "f3cb916e-b0fd-4c5e-b14b-3779f4f9bd01",
1018
894
  layer: "bottom",
1019
895
  segments: [
1020
896
  {
1021
- x: 0.251271,
1022
- y: -1.643783
1023
- },
1024
- {
1025
- x: -0.105946,
1026
- y: -2.001
897
+ x: 0.614052,
898
+ y: 1.081959
1027
899
  },
1028
900
  {
1029
- x: -1.278746,
1030
- y: -2.001
901
+ x: -0.15536,
902
+ y: 1.851371
1031
903
  },
1032
904
  {
1033
- x: -2.10545,
1034
- y: -1.174296
905
+ x: -1.233017,
906
+ y: 1.851371
1035
907
  },
1036
908
  {
1037
- x: -2.10545,
1038
- y: 0.339105
909
+ x: -1.721947,
910
+ y: 1.362441
1039
911
  },
1040
912
  {
1041
- x: -1.377121,
1042
- y: 1.067434
913
+ x: -1.721947,
914
+ y: 0.118424
1043
915
  },
1044
916
  {
1045
- x: -1.168748,
1046
- y: 1.067434
917
+ x: -1.192929,
918
+ y: -0.410594
1047
919
  }
1048
920
  ]
1049
921
  }