@tscircuit/hypergraph 0.0.30 → 0.0.32
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/dist/index.d.ts +563 -107
- package/dist/index.js +625 -126
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -625,115 +625,557 @@ declare class Topology {
|
|
|
625
625
|
getPortIds(): string[];
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
628
|
+
var viasByNet = {
|
|
629
|
+
Net6: [
|
|
630
|
+
{
|
|
631
|
+
viaId: "4ef04070-bacf-4a8a-8ac9-ea222cf4bf2c",
|
|
632
|
+
diameter: 0.6,
|
|
633
|
+
position: {
|
|
634
|
+
x: 1.483834,
|
|
635
|
+
y: 0.582296
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
viaId: "79364d38-c966-4eff-aa4a-e3ff6cca6339",
|
|
640
|
+
diameter: 0.6,
|
|
641
|
+
position: {
|
|
642
|
+
x: -0.8,
|
|
643
|
+
y: -1.893395
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
viaId: "f1d52fd5-ddd2-4440-8772-da3d096b033f",
|
|
648
|
+
diameter: 0.6,
|
|
649
|
+
position: {
|
|
650
|
+
x: -0.703066,
|
|
651
|
+
y: 1.2
|
|
652
|
+
}
|
|
635
653
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
654
|
+
],
|
|
655
|
+
Net5: [
|
|
656
|
+
{
|
|
657
|
+
viaId: "4e57cee8-0910-4c83-9ec1-1ed2c9d16dcc",
|
|
658
|
+
diameter: 0.6,
|
|
659
|
+
position: {
|
|
660
|
+
x: 1.268717,
|
|
661
|
+
y: -1.698536
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
viaId: "a3797f13-73f9-48c3-a448-bea3980cdd65",
|
|
666
|
+
diameter: 0.6,
|
|
667
|
+
position: {
|
|
668
|
+
x: -1.115754,
|
|
669
|
+
y: -0.799377
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
viaId: "b0c56bb1-ea80-4154-9bb7-cb0fd760de8f",
|
|
674
|
+
diameter: 0.6,
|
|
675
|
+
position: {
|
|
676
|
+
x: 0.397934,
|
|
677
|
+
y: 1.458567
|
|
678
|
+
}
|
|
643
679
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
680
|
+
],
|
|
681
|
+
Net7: [
|
|
682
|
+
{
|
|
683
|
+
viaId: "3719876b-17c8-4ee3-9cce-5b5c073d6614",
|
|
684
|
+
diameter: 0.6,
|
|
685
|
+
position: {
|
|
686
|
+
x: 1.186721,
|
|
687
|
+
y: 1.32508
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
viaId: "4e46d759-a04a-4f7e-99cd-9e05adf5fa23",
|
|
692
|
+
diameter: 0.6,
|
|
693
|
+
position: {
|
|
694
|
+
x: -1.275,
|
|
695
|
+
y: 0
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
viaId: "63afce65-b94e-47da-ae14-51ff0ee8eb39",
|
|
700
|
+
diameter: 0.6,
|
|
701
|
+
position: {
|
|
702
|
+
x: 1.655408,
|
|
703
|
+
y: -0.998198
|
|
704
|
+
}
|
|
651
705
|
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
706
|
+
],
|
|
707
|
+
Net8: [
|
|
708
|
+
{
|
|
709
|
+
viaId: "26d3bef1-a78f-4947-b551-c48f04289a98",
|
|
710
|
+
diameter: 0.6,
|
|
711
|
+
position: {
|
|
712
|
+
x: 1.553029,
|
|
713
|
+
y: -0.164505
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
viaId: "548acbca-8b68-4186-a589-681ec44fba42",
|
|
718
|
+
diameter: 0.6,
|
|
719
|
+
position: {
|
|
720
|
+
x: 0.222457,
|
|
721
|
+
y: -1.866711
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
viaId: "d6bf60bf-4b90-4967-a295-fc930b1f2549",
|
|
726
|
+
diameter: 0.6,
|
|
727
|
+
position: {
|
|
728
|
+
x: -1.419706,
|
|
729
|
+
y: 0.868747
|
|
730
|
+
}
|
|
661
731
|
}
|
|
662
|
-
|
|
732
|
+
]
|
|
733
|
+
};
|
|
734
|
+
var routeSegments = [
|
|
663
735
|
{
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
736
|
+
routeId: "Net6:route_0",
|
|
737
|
+
fromPort: "4ef04070-bacf-4a8a-8ac9-ea222cf4bf2c",
|
|
738
|
+
toPort: "f1d52fd5-ddd2-4440-8772-da3d096b033f",
|
|
739
|
+
layer: "bottom",
|
|
740
|
+
segments: [
|
|
741
|
+
{
|
|
742
|
+
x: 1.483834,
|
|
743
|
+
y: 0.582296
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
x: 1.31705,
|
|
747
|
+
y: 0.74908
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
x: 1.425309,
|
|
751
|
+
y: 0.74908
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
x: 1.762721,
|
|
755
|
+
y: 1.086492
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
x: 1.762721,
|
|
759
|
+
y: 1.563668
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
x: 1.425309,
|
|
763
|
+
y: 1.90108
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
x: 1.266397,
|
|
767
|
+
y: 1.90108
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
x: 0.781911,
|
|
771
|
+
y: 2.385567
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
x: 0.013957,
|
|
775
|
+
y: 2.385567
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
x: -0.753066,
|
|
779
|
+
y: 1.618543
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
x: -0.753066,
|
|
783
|
+
y: 1.360375
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
x: -0.703066,
|
|
787
|
+
y: 1.310375
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
x: -0.703066,
|
|
791
|
+
y: 1.2
|
|
792
|
+
}
|
|
793
|
+
]
|
|
670
794
|
},
|
|
671
795
|
{
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
796
|
+
routeId: "Net6:route_1",
|
|
797
|
+
fromPort: "79364d38-c966-4eff-aa4a-e3ff6cca6339",
|
|
798
|
+
toPort: "f1d52fd5-ddd2-4440-8772-da3d096b033f",
|
|
799
|
+
layer: "bottom",
|
|
800
|
+
segments: [
|
|
801
|
+
{
|
|
802
|
+
x: -0.8,
|
|
803
|
+
y: -1.893395
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
x: -1.706605,
|
|
807
|
+
y: -1.893395
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
x: -2.2,
|
|
811
|
+
y: -1.4
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
x: -2.2,
|
|
815
|
+
y: 0.903041
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
x: -1.603041,
|
|
819
|
+
y: 1.5
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
x: -1.516757,
|
|
823
|
+
y: 1.5
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
x: -1.430473,
|
|
827
|
+
y: 1.586284
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
x: -0.978975,
|
|
831
|
+
y: 1.586284
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
x: -0.703066,
|
|
835
|
+
y: 1.310375
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
x: -0.703066,
|
|
839
|
+
y: 1.2
|
|
840
|
+
}
|
|
841
|
+
]
|
|
842
|
+
},
|
|
681
843
|
{
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
844
|
+
routeId: "Net5:route_0",
|
|
845
|
+
fromPort: "a3797f13-73f9-48c3-a448-bea3980cdd65",
|
|
846
|
+
toPort: "b0c56bb1-ea80-4154-9bb7-cb0fd760de8f",
|
|
847
|
+
layer: "bottom",
|
|
848
|
+
segments: [
|
|
849
|
+
{
|
|
850
|
+
x: -1.115754,
|
|
851
|
+
y: -0.799377
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
x: -0.764375,
|
|
855
|
+
y: -0.447998
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
x: -0.636191,
|
|
859
|
+
y: -0.447998
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
x: -0.368136,
|
|
863
|
+
y: -0.179943
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
x: -0.368136,
|
|
867
|
+
y: -0.178529
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
x: 0.556834,
|
|
871
|
+
y: 0.746441
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
x: 0.397934,
|
|
875
|
+
y: 0.905341
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
x: 0.397934,
|
|
879
|
+
y: 1.458567
|
|
880
|
+
}
|
|
881
|
+
]
|
|
688
882
|
},
|
|
689
883
|
{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
884
|
+
routeId: "Net5:route_1",
|
|
885
|
+
fromPort: "4e57cee8-0910-4c83-9ec1-1ed2c9d16dcc",
|
|
886
|
+
toPort: "b0c56bb1-ea80-4154-9bb7-cb0fd760de8f",
|
|
887
|
+
layer: "bottom",
|
|
888
|
+
segments: [
|
|
889
|
+
{
|
|
890
|
+
x: 1.268717,
|
|
891
|
+
y: -1.698536
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
x: 1.405649,
|
|
895
|
+
y: -1.561604
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
x: 1.393076,
|
|
899
|
+
y: -1.561604
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
x: 1.055664,
|
|
903
|
+
y: -1.224192
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
x: 1.055664,
|
|
907
|
+
y: -0.905992
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
x: 0.556834,
|
|
911
|
+
y: -0.407162
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
x: 0.556834,
|
|
915
|
+
y: 0.746441
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
x: 0.397934,
|
|
919
|
+
y: 0.905341
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
x: 0.397934,
|
|
923
|
+
y: 1.458567
|
|
924
|
+
}
|
|
925
|
+
]
|
|
696
926
|
},
|
|
697
927
|
{
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
928
|
+
routeId: "Net7:route_0",
|
|
929
|
+
fromPort: "3719876b-17c8-4ee3-9cce-5b5c073d6614",
|
|
930
|
+
toPort: "63afce65-b94e-47da-ae14-51ff0ee8eb39",
|
|
931
|
+
layer: "bottom",
|
|
932
|
+
segments: [
|
|
933
|
+
{
|
|
934
|
+
x: 1.186721,
|
|
935
|
+
y: 1.32508
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
x: 0.907834,
|
|
939
|
+
y: 1.046193
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
x: 0.907834,
|
|
943
|
+
y: -0.261774
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
x: 1.644258,
|
|
947
|
+
y: -0.998198
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
x: 1.655408,
|
|
951
|
+
y: -0.998198
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
},
|
|
707
955
|
{
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
956
|
+
routeId: "Net7:route_1",
|
|
957
|
+
fromPort: "3719876b-17c8-4ee3-9cce-5b5c073d6614",
|
|
958
|
+
toPort: "4e46d759-a04a-4f7e-99cd-9e05adf5fa23",
|
|
959
|
+
layer: "bottom",
|
|
960
|
+
segments: [
|
|
961
|
+
{
|
|
962
|
+
x: 1.186721,
|
|
963
|
+
y: 1.32508
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
x: 1.186721,
|
|
967
|
+
y: 1.484368
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
x: 0.636522,
|
|
971
|
+
y: 2.034567
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
x: 0.159346,
|
|
975
|
+
y: 2.034567
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
x: 0.06239,
|
|
979
|
+
y: 1.93761
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
x: -0.178066,
|
|
983
|
+
y: 1.697155
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
x: -0.178066,
|
|
987
|
+
y: 0.824715
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
x: -1.042874,
|
|
991
|
+
y: -0.040093
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
x: -1.169705,
|
|
995
|
+
y: -0.040093
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
x: -1.209798,
|
|
999
|
+
y: 0
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
x: -1.275,
|
|
1003
|
+
y: 0
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
714
1006
|
},
|
|
715
1007
|
{
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
1008
|
+
routeId: "Net8:route_0",
|
|
1009
|
+
fromPort: "26d3bef1-a78f-4947-b551-c48f04289a98",
|
|
1010
|
+
toPort: "548acbca-8b68-4186-a589-681ec44fba42",
|
|
1011
|
+
layer: "bottom",
|
|
1012
|
+
segments: [
|
|
1013
|
+
{
|
|
1014
|
+
x: 1.553029,
|
|
1015
|
+
y: -0.164505
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
x: 1.562188,
|
|
1019
|
+
y: -0.173664
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
x: 1.634312,
|
|
1023
|
+
y: -0.173664
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
x: 2.207664,
|
|
1027
|
+
y: -0.747016
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
x: 2.207664,
|
|
1031
|
+
y: -1.224192
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
x: 1.870252,
|
|
1035
|
+
y: -1.561604
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
x: 1.844717,
|
|
1039
|
+
y: -1.561604
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
x: 1.844717,
|
|
1043
|
+
y: -1.937124
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
x: 1.507305,
|
|
1047
|
+
y: -2.274536
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
x: 1.030129,
|
|
1051
|
+
y: -2.274536
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
x: 0.692717,
|
|
1055
|
+
y: -1.937124
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
x: 0.692717,
|
|
1059
|
+
y: -1.739534
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
x: 0.475553,
|
|
1063
|
+
y: -1.739534
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
x: 0.470734,
|
|
1067
|
+
y: -1.744353
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
x: 0.455647,
|
|
1071
|
+
y: -1.744353
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
x: 0.30246,
|
|
1075
|
+
y: -1.89754
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
x: 0.253286,
|
|
1079
|
+
y: -1.89754
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
x: 0.222457,
|
|
1083
|
+
y: -1.866711
|
|
1084
|
+
}
|
|
1085
|
+
]
|
|
722
1086
|
},
|
|
723
1087
|
{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
1088
|
+
routeId: "Net8:route_1",
|
|
1089
|
+
fromPort: "548acbca-8b68-4186-a589-681ec44fba42",
|
|
1090
|
+
toPort: "d6bf60bf-4b90-4967-a295-fc930b1f2549",
|
|
1091
|
+
layer: "bottom",
|
|
1092
|
+
segments: [
|
|
1093
|
+
{
|
|
1094
|
+
x: 0.222457,
|
|
1095
|
+
y: -1.866711
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
x: 0.208345,
|
|
1099
|
+
y: -1.866711
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
x: 0.2,
|
|
1103
|
+
y: -1.858366
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
x: 0.2,
|
|
1107
|
+
y: -1.2
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
x: -0.701789,
|
|
1111
|
+
y: -1.2
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
x: -0.869184,
|
|
1115
|
+
y: -1.367395
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
x: -1.017877,
|
|
1119
|
+
y: -1.367395
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
x: -1.025859,
|
|
1123
|
+
y: -1.375377
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
x: -1.354342,
|
|
1127
|
+
y: -1.375377
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
x: -1.529719,
|
|
1131
|
+
y: -1.2
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
x: -1.636994,
|
|
1135
|
+
y: -1.2
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
x: -1.718497,
|
|
1139
|
+
y: -1.118497
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
x: -1.8,
|
|
1143
|
+
y: -1.2
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
x: -1.8,
|
|
1147
|
+
y: -1.036995
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
x: -1.80003,
|
|
1151
|
+
y: -1.036965
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
x: -1.80003,
|
|
1155
|
+
y: -0.559789
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
x: -1.8,
|
|
1159
|
+
y: -0.559759
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
x: -1.8,
|
|
1163
|
+
y: 0.877363
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
x: -1.614161,
|
|
1167
|
+
y: 1.063202
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
x: -1.419706,
|
|
1171
|
+
y: 0.868747
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
730
1174
|
}
|
|
731
1175
|
];
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
Net7: Net7,
|
|
736
|
-
Net8: Net8
|
|
1176
|
+
var viaTile = {
|
|
1177
|
+
viasByNet: viasByNet,
|
|
1178
|
+
routeSegments: routeSegments
|
|
737
1179
|
};
|
|
738
1180
|
|
|
739
1181
|
declare const VIA_GRAPH_SOLVER_DEFAULTS: {
|
|
@@ -752,11 +1194,25 @@ type ViaData = {
|
|
|
752
1194
|
y: number;
|
|
753
1195
|
};
|
|
754
1196
|
};
|
|
755
|
-
type
|
|
1197
|
+
type RouteSegment = {
|
|
1198
|
+
routeId: string;
|
|
1199
|
+
fromPort: ViaData["viaId"];
|
|
1200
|
+
toPort: ViaData["viaId"];
|
|
1201
|
+
layer: string;
|
|
1202
|
+
segments: Array<{
|
|
1203
|
+
x: number;
|
|
1204
|
+
y: number;
|
|
1205
|
+
}>;
|
|
1206
|
+
};
|
|
1207
|
+
type ViaByNet = Record<string, ViaData[]>;
|
|
1208
|
+
type ViaTile = {
|
|
1209
|
+
viasByNet: ViaByNet;
|
|
1210
|
+
routeSegments: RouteSegment[];
|
|
1211
|
+
};
|
|
756
1212
|
declare class ViaGraphSolver extends HyperGraphSolver<JRegion, JPort> {
|
|
757
1213
|
getSolverName(): string;
|
|
758
1214
|
UNIT_OF_COST: string;
|
|
759
|
-
|
|
1215
|
+
viaTile?: ViaTile;
|
|
760
1216
|
portUsagePenalty: number;
|
|
761
1217
|
portUsagePenaltySq: number;
|
|
762
1218
|
crossingPenalty: number;
|
|
@@ -768,7 +1224,7 @@ declare class ViaGraphSolver extends HyperGraphSolver<JRegion, JPort> {
|
|
|
768
1224
|
constructor(input: {
|
|
769
1225
|
inputGraph: HyperGraph | SerializedHyperGraph;
|
|
770
1226
|
inputConnections: (Connection | SerializedConnection)[];
|
|
771
|
-
|
|
1227
|
+
viaTile?: ViaTile;
|
|
772
1228
|
ripCost?: number;
|
|
773
1229
|
portUsagePenalty?: number;
|
|
774
1230
|
crossingPenalty?: number;
|
|
@@ -801,14 +1257,14 @@ type Bounds$1 = {
|
|
|
801
1257
|
* space between the tiled area and the problem bounds.
|
|
802
1258
|
*/
|
|
803
1259
|
declare function generateViaTopologyGrid(opts: {
|
|
804
|
-
|
|
1260
|
+
viaTile: ViaTile;
|
|
805
1261
|
bounds: Bounds$1;
|
|
806
1262
|
tileSize?: number;
|
|
807
1263
|
portPitch?: number;
|
|
808
1264
|
}): {
|
|
809
1265
|
regions: JRegion[];
|
|
810
1266
|
ports: JPort[];
|
|
811
|
-
|
|
1267
|
+
viaTile: ViaTile;
|
|
812
1268
|
tileCount: {
|
|
813
1269
|
rows: number;
|
|
814
1270
|
cols: number;
|
|
@@ -823,7 +1279,7 @@ declare function generateViaTopologyGrid(opts: {
|
|
|
823
1279
|
* (connected by straight diagonal lines between segments), and whose outer
|
|
824
1280
|
* edge is the graph boundary.
|
|
825
1281
|
*/
|
|
826
|
-
declare const generateViaTopologyRegions: (
|
|
1282
|
+
declare const generateViaTopologyRegions: (viaTile: ViaTile, opts?: {
|
|
827
1283
|
graphSize?: number;
|
|
828
1284
|
idPrefix?: string;
|
|
829
1285
|
}) => {
|
|
@@ -835,10 +1291,10 @@ declare function generateDefaultViaTopologyRegions(opts: Parameters<typeof gener
|
|
|
835
1291
|
regions: JRegion[];
|
|
836
1292
|
ports: JPort[];
|
|
837
1293
|
};
|
|
838
|
-
declare function generateDefaultViaTopologyGrid(opts: Omit<Parameters<typeof generateViaTopologyGrid>[0], "
|
|
1294
|
+
declare function generateDefaultViaTopologyGrid(opts: Omit<Parameters<typeof generateViaTopologyGrid>[0], "viaTile">): {
|
|
839
1295
|
regions: JRegion[];
|
|
840
1296
|
ports: JPort[];
|
|
841
|
-
|
|
1297
|
+
viaTile: ViaTile;
|
|
842
1298
|
tileCount: {
|
|
843
1299
|
rows: number;
|
|
844
1300
|
cols: number;
|
|
@@ -847,7 +1303,7 @@ declare function generateDefaultViaTopologyGrid(opts: Omit<Parameters<typeof gen
|
|
|
847
1303
|
|
|
848
1304
|
type ConvexViaGraphFromXYConnectionsResult = JumperGraph & {
|
|
849
1305
|
connections: Connection[];
|
|
850
|
-
|
|
1306
|
+
viaTile: ViaTile;
|
|
851
1307
|
tileCount: {
|
|
852
1308
|
rows: number;
|
|
853
1309
|
cols: number;
|
|
@@ -867,10 +1323,10 @@ type ConvexViaGraphFromXYConnectionsResult = JumperGraph & {
|
|
|
867
1323
|
* 5. Attaches connection regions to the graph
|
|
868
1324
|
*
|
|
869
1325
|
* @param xyConnections - Array of connections with start/end XY coordinates
|
|
870
|
-
* @param
|
|
1326
|
+
* @param viaTile - Via tile data (defaults to built-in via-tile.json)
|
|
871
1327
|
* @param opts - Optional configuration
|
|
872
1328
|
*/
|
|
873
|
-
declare function createConvexViaGraphFromXYConnections(xyConnections: XYConnection[],
|
|
1329
|
+
declare function createConvexViaGraphFromXYConnections(xyConnections: XYConnection[], viaTile?: ViaTile, opts?: {
|
|
874
1330
|
tileSize?: number;
|
|
875
1331
|
portPitch?: number;
|
|
876
1332
|
clearance?: number;
|
|
@@ -879,7 +1335,7 @@ declare function createConvexViaGraphFromXYConnections(xyConnections: XYConnecti
|
|
|
879
1335
|
|
|
880
1336
|
type ViaGraphFromXYConnectionsResult = JumperGraph & {
|
|
881
1337
|
connections: Connection[];
|
|
882
|
-
|
|
1338
|
+
viaTile: ViaTile;
|
|
883
1339
|
tileCount: {
|
|
884
1340
|
rows: number;
|
|
885
1341
|
cols: number;
|
|
@@ -896,10 +1352,10 @@ type ViaGraphFromXYConnectionsResult = JumperGraph & {
|
|
|
896
1352
|
* 4. Attaches connection regions to the graph
|
|
897
1353
|
*
|
|
898
1354
|
* @param xyConnections - Array of connections with start/end XY coordinates
|
|
899
|
-
* @param
|
|
1355
|
+
* @param viaTile - Via tile data (vias grouped by net plus route segments)
|
|
900
1356
|
* @param opts - Optional configuration (tileSize defaults to 5mm, portPitch to 0.4mm)
|
|
901
1357
|
*/
|
|
902
|
-
declare function createViaGraphFromXYConnections(xyConnections: XYConnection[],
|
|
1358
|
+
declare function createViaGraphFromXYConnections(xyConnections: XYConnection[], viaTile: ViaTile, opts?: {
|
|
903
1359
|
tileSize?: number;
|
|
904
1360
|
portPitch?: number;
|
|
905
1361
|
}): ViaGraphFromXYConnectionsResult;
|
|
@@ -932,7 +1388,7 @@ type Bounds = {
|
|
|
932
1388
|
* 4. Ports are created between adjacent convex regions and between convex/via regions
|
|
933
1389
|
*/
|
|
934
1390
|
declare function generateConvexViaTopologyRegions(opts: {
|
|
935
|
-
|
|
1391
|
+
viaTile: ViaTile;
|
|
936
1392
|
bounds: Bounds;
|
|
937
1393
|
tileSize?: number;
|
|
938
1394
|
portPitch?: number;
|
|
@@ -941,11 +1397,11 @@ declare function generateConvexViaTopologyRegions(opts: {
|
|
|
941
1397
|
}): {
|
|
942
1398
|
regions: JRegion[];
|
|
943
1399
|
ports: JPort[];
|
|
944
|
-
|
|
1400
|
+
viaTile: ViaTile;
|
|
945
1401
|
tileCount: {
|
|
946
1402
|
rows: number;
|
|
947
1403
|
cols: number;
|
|
948
1404
|
};
|
|
949
1405
|
};
|
|
950
1406
|
|
|
951
|
-
export { type Bounds$2 as Bounds, type BuildOpts, type Candidate, ConnectBuilder, type ConnectOpts, type Connection, type ConnectionId, type ConvexViaGraphFromXYConnectionsResult, type GScore, type GraphEdgeId, type HyperGraph, HyperGraphSolver, type JPort, type JRegion, JUMPER_GRAPH_SOLVER_DEFAULTS, type JumperGraph, JumperGraphSolver, type JumperGraphWithConnections, type NetworkId, type PortAssignment, PortBuilder, type PortData, type PortId, type PortSpread, type Region, RegionBuilder, type RegionData, type RegionId, type RegionPort, type RegionPortAssignment, type RegionRef, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SharedBoundary, type SolvedRoute, Topology, TopologyError, VIA_GRAPH_SOLVER_DEFAULTS, type ValidateOpts, type ViaData, type ViaGraphFromXYConnectionsResult, ViaGraphSolver, type ViaGraphWithConnections, type
|
|
1407
|
+
export { type Bounds$2 as Bounds, type BuildOpts, type Candidate, ConnectBuilder, type ConnectOpts, type Connection, type ConnectionId, type ConvexViaGraphFromXYConnectionsResult, type GScore, type GraphEdgeId, type HyperGraph, HyperGraphSolver, type JPort, type JRegion, JUMPER_GRAPH_SOLVER_DEFAULTS, type JumperGraph, JumperGraphSolver, type JumperGraphWithConnections, type NetworkId, type PortAssignment, PortBuilder, type PortData, type PortId, type PortSpread, type Region, RegionBuilder, type RegionData, type RegionId, type RegionPort, type RegionPortAssignment, type RegionRef, type RouteSegment, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SharedBoundary, type SolvedRoute, Topology, TopologyError, VIA_GRAPH_SOLVER_DEFAULTS, type ValidateOpts, type ViaByNet, type ViaData, type ViaGraphFromXYConnectionsResult, ViaGraphSolver, type ViaGraphWithConnections, type ViaTile, type XYConnection, applyTransformToGraph, calculateGraphBounds, convertConnectionsToSerializedConnections, convertHyperGraphToSerializedHyperGraph, createConvexViaGraphFromXYConnections, createGraphWithConnectionsFromBaseGraph, createViaGraphFromXYConnections, createViaGraphWithConnections, generateConvexViaTopologyRegions, generateDefaultViaTopologyGrid, generateDefaultViaTopologyRegions, generateJumperGrid, generateJumperX4Grid, generateViaTopologyGrid, generateViaTopologyRegions, rotateGraph90Degrees, viaTile };
|