@tscircuit/schematic-trace-solver 0.0.151 → 0.0.153
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 +10 -5
- package/dist/index.js +28 -20
- package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +7 -0
- package/lib/solvers/NetLabelPlacementSolver/NetLabelPlacementSolver.ts +1 -0
- package/lib/solvers/SchematicTraceLinesSolver/SchematicTraceSingleLineSolver2/SchematicTraceSingleLineSolver2.ts +1 -1
- package/lib/solvers/SchematicTracePipelineSolver/visualizeInputProblem.ts +1 -1
- package/lib/solvers/TraceAnchoredNetLabelOverlapSolver/candidates.ts +1 -0
- package/lib/types/InputProblem.ts +12 -5
- package/lib/utils/getNetLabelWidthForConnection.ts +9 -10
- package/package.json +1 -1
- package/tests/assets/example51.json +159 -32
- package/tests/examples/__snapshots__/example51.snap.svg +485 -473
- package/tests/examples/example51.test.ts +3 -1
- package/tests/fixtures/convertSolverOutputToCircuitJson.test.ts +65 -2
- package/tests/fixtures/convertSolverOutputToCircuitJson.ts +31 -13
- package/tests/repros/__snapshots__/repro-core-tb67s579ftg-inline-label-routing.snap.svg +8 -8
- package/tests/repros/assets/repro-core-tb67s579ftg-inline-label-routing.input.json +33 -33
- package/tests/repros/repro-core-tb67s579ftg-inline-label-routing.test.ts +3 -2
- package/tests/solvers/InlineNetLabelSolver/{fallback-net-label-width.test.ts → anchored-net-label-width.test.ts} +34 -11
- /package/tests/solvers/InlineNetLabelSolver/__snapshots__/{fallback-net-label-width.snap.svg → anchored-net-label-width.snap.svg} +0 -0
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
"directConnections": [
|
|
476
476
|
{
|
|
477
477
|
"netId": "STOP_DET_VTH",
|
|
478
|
-
"
|
|
478
|
+
"anchoredNetLabelWidth": 1.56,
|
|
479
479
|
"allowInlineNetLabel": true,
|
|
480
480
|
"inlineNetLabelHeight": 0.12,
|
|
481
481
|
"inlineNetLabelWidth": 1.04,
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"netId": "KPKI_NANO",
|
|
489
|
-
"
|
|
489
|
+
"anchoredNetLabelWidth": 1.2,
|
|
490
490
|
"allowInlineNetLabel": true,
|
|
491
491
|
"inlineNetLabelHeight": 0.12,
|
|
492
492
|
"inlineNetLabelWidth": 0.8,
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
},
|
|
498
498
|
{
|
|
499
499
|
"netId": "AGC_TIME",
|
|
500
|
-
"
|
|
500
|
+
"anchoredNetLabelWidth": 1.08,
|
|
501
501
|
"allowInlineNetLabel": true,
|
|
502
502
|
"inlineNetLabelHeight": 0.12,
|
|
503
503
|
"inlineNetLabelWidth": 0.72,
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
},
|
|
509
509
|
{
|
|
510
510
|
"netId": "FREQ_MIN",
|
|
511
|
-
"
|
|
511
|
+
"anchoredNetLabelWidth": 1.08,
|
|
512
512
|
"allowInlineNetLabel": true,
|
|
513
513
|
"inlineNetLabelHeight": 0.12,
|
|
514
514
|
"inlineNetLabelWidth": 0.72,
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
521
|
"netId": "VSP_MIN",
|
|
522
|
-
"
|
|
522
|
+
"anchoredNetLabelWidth": 0.96,
|
|
523
523
|
"allowInlineNetLabel": true,
|
|
524
524
|
"inlineNetLabelHeight": 0.12,
|
|
525
525
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
},
|
|
531
531
|
{
|
|
532
532
|
"netId": "AGC_KI",
|
|
533
|
-
"
|
|
533
|
+
"anchoredNetLabelWidth": 0.84,
|
|
534
534
|
"allowInlineNetLabel": true,
|
|
535
535
|
"inlineNetLabelHeight": 0.12,
|
|
536
536
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
543
|
"netId": "AGC_KP",
|
|
544
|
-
"
|
|
544
|
+
"anchoredNetLabelWidth": 0.84,
|
|
545
545
|
"allowInlineNetLabel": true,
|
|
546
546
|
"inlineNetLabelHeight": 0.12,
|
|
547
547
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
"netId": "TARGET_ANGLE",
|
|
555
|
-
"
|
|
555
|
+
"anchoredNetLabelWidth": 1.56,
|
|
556
556
|
"allowInlineNetLabel": true,
|
|
557
557
|
"inlineNetLabelHeight": 0.12,
|
|
558
558
|
"inlineNetLabelWidth": 1.04,
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
"netId": "NFHYS",
|
|
566
|
-
"
|
|
566
|
+
"anchoredNetLabelWidth": 0.72,
|
|
567
567
|
"allowInlineNetLabel": true,
|
|
568
568
|
"inlineNetLabelHeight": 0.12,
|
|
569
569
|
"inlineNetLabelWidth": 0.48,
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
"netId": "MTBLANK",
|
|
577
|
-
"
|
|
577
|
+
"anchoredNetLabelWidth": 0.96,
|
|
578
578
|
"allowInlineNetLabel": true,
|
|
579
579
|
"inlineNetLabelHeight": 0.12,
|
|
580
580
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
"netId": "STBLANK",
|
|
588
|
-
"
|
|
588
|
+
"anchoredNetLabelWidth": 0.96,
|
|
589
589
|
"allowInlineNetLabel": true,
|
|
590
590
|
"inlineNetLabelHeight": 0.12,
|
|
591
591
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -596,7 +596,7 @@
|
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
598
|
"netId": "CTBLANK",
|
|
599
|
-
"
|
|
599
|
+
"anchoredNetLabelWidth": 0.96,
|
|
600
600
|
"allowInlineNetLabel": true,
|
|
601
601
|
"inlineNetLabelHeight": 0.12,
|
|
602
602
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
"netId": "VREG",
|
|
624
|
-
"
|
|
624
|
+
"anchoredNetLabelWidth": 0.6,
|
|
625
625
|
"allowInlineNetLabel": true,
|
|
626
626
|
"inlineNetLabelHeight": 0.12,
|
|
627
627
|
"inlineNetLabelWidth": 0.4,
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
634
|
"netId": "GND",
|
|
635
|
-
"
|
|
635
|
+
"anchoredNetLabelWidth": 0.48,
|
|
636
636
|
"allowInlineNetLabel": true,
|
|
637
637
|
"inlineNetLabelHeight": 0.12,
|
|
638
638
|
"inlineNetLabelWidth": 0.32,
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
645
|
"netId": "OUT_A_P",
|
|
646
|
-
"
|
|
646
|
+
"anchoredNetLabelWidth": 0.96,
|
|
647
647
|
"allowInlineNetLabel": true,
|
|
648
648
|
"inlineNetLabelHeight": 0.12,
|
|
649
649
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -654,7 +654,7 @@
|
|
|
654
654
|
},
|
|
655
655
|
{
|
|
656
656
|
"netId": "OUT_A_N",
|
|
657
|
-
"
|
|
657
|
+
"anchoredNetLabelWidth": 0.96,
|
|
658
658
|
"allowInlineNetLabel": true,
|
|
659
659
|
"inlineNetLabelHeight": 0.12,
|
|
660
660
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
},
|
|
666
666
|
{
|
|
667
667
|
"netId": "OUT_B_N",
|
|
668
|
-
"
|
|
668
|
+
"anchoredNetLabelWidth": 0.96,
|
|
669
669
|
"allowInlineNetLabel": true,
|
|
670
670
|
"inlineNetLabelHeight": 0.12,
|
|
671
671
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
},
|
|
677
677
|
{
|
|
678
678
|
"netId": "OUT_B_P",
|
|
679
|
-
"
|
|
679
|
+
"anchoredNetLabelWidth": 0.96,
|
|
680
680
|
"allowInlineNetLabel": true,
|
|
681
681
|
"inlineNetLabelHeight": 0.12,
|
|
682
682
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
},
|
|
688
688
|
{
|
|
689
689
|
"netId": "SERIAL_IN",
|
|
690
|
-
"
|
|
690
|
+
"anchoredNetLabelWidth": 1.2,
|
|
691
691
|
"allowInlineNetLabel": true,
|
|
692
692
|
"inlineNetLabelHeight": 0.12,
|
|
693
693
|
"inlineNetLabelWidth": 0.8,
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
},
|
|
699
699
|
{
|
|
700
700
|
"netId": "SERIAL_CLK",
|
|
701
|
-
"
|
|
701
|
+
"anchoredNetLabelWidth": 1.32,
|
|
702
702
|
"allowInlineNetLabel": true,
|
|
703
703
|
"inlineNetLabelHeight": 0.12,
|
|
704
704
|
"inlineNetLabelWidth": 0.88,
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
},
|
|
710
710
|
{
|
|
711
711
|
"netId": "DMODE2",
|
|
712
|
-
"
|
|
712
|
+
"anchoredNetLabelWidth": 0.84,
|
|
713
713
|
"allowInlineNetLabel": true,
|
|
714
714
|
"inlineNetLabelHeight": 0.12,
|
|
715
715
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
},
|
|
721
721
|
{
|
|
722
722
|
"netId": "DMODE1",
|
|
723
|
-
"
|
|
723
|
+
"anchoredNetLabelWidth": 0.84,
|
|
724
724
|
"allowInlineNetLabel": true,
|
|
725
725
|
"inlineNetLabelHeight": 0.12,
|
|
726
726
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
},
|
|
732
732
|
{
|
|
733
733
|
"netId": "DMODE0",
|
|
734
|
-
"
|
|
734
|
+
"anchoredNetLabelWidth": 0.84,
|
|
735
735
|
"allowInlineNetLabel": true,
|
|
736
736
|
"inlineNetLabelHeight": 0.12,
|
|
737
737
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
},
|
|
743
743
|
{
|
|
744
744
|
"netId": "CLK",
|
|
745
|
-
"
|
|
745
|
+
"anchoredNetLabelWidth": 0.48,
|
|
746
746
|
"allowInlineNetLabel": true,
|
|
747
747
|
"inlineNetLabelHeight": 0.12,
|
|
748
748
|
"inlineNetLabelWidth": 0.32,
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
},
|
|
754
754
|
{
|
|
755
755
|
"netId": "CW_CCW",
|
|
756
|
-
"
|
|
756
|
+
"anchoredNetLabelWidth": 0.84,
|
|
757
757
|
"allowInlineNetLabel": true,
|
|
758
758
|
"inlineNetLabelHeight": 0.12,
|
|
759
759
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
766
|
"netId": "ENABLE",
|
|
767
|
-
"
|
|
767
|
+
"anchoredNetLabelWidth": 0.84,
|
|
768
768
|
"allowInlineNetLabel": true,
|
|
769
769
|
"inlineNetLabelHeight": 0.12,
|
|
770
770
|
"inlineNetLabelWidth": 0.56,
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
},
|
|
776
776
|
{
|
|
777
777
|
"netId": "RESET_X",
|
|
778
|
-
"
|
|
778
|
+
"anchoredNetLabelWidth": 0.96,
|
|
779
779
|
"allowInlineNetLabel": true,
|
|
780
780
|
"inlineNetLabelHeight": 0.12,
|
|
781
781
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
788
|
"netId": "SLEEP_X",
|
|
789
|
-
"
|
|
789
|
+
"anchoredNetLabelWidth": 0.96,
|
|
790
790
|
"allowInlineNetLabel": true,
|
|
791
791
|
"inlineNetLabelHeight": 0.12,
|
|
792
792
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -797,7 +797,7 @@
|
|
|
797
797
|
},
|
|
798
798
|
{
|
|
799
799
|
"netId": "LO2",
|
|
800
|
-
"
|
|
800
|
+
"anchoredNetLabelWidth": 0.48,
|
|
801
801
|
"allowInlineNetLabel": true,
|
|
802
802
|
"inlineNetLabelHeight": 0.12,
|
|
803
803
|
"inlineNetLabelWidth": 0.32,
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
},
|
|
809
809
|
{
|
|
810
810
|
"netId": "LO1",
|
|
811
|
-
"
|
|
811
|
+
"anchoredNetLabelWidth": 0.48,
|
|
812
812
|
"allowInlineNetLabel": true,
|
|
813
813
|
"inlineNetLabelHeight": 0.12,
|
|
814
814
|
"inlineNetLabelWidth": 0.32,
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
821
|
"netId": "LO0",
|
|
822
|
-
"
|
|
822
|
+
"anchoredNetLabelWidth": 0.48,
|
|
823
823
|
"allowInlineNetLabel": true,
|
|
824
824
|
"inlineNetLabelHeight": 0.12,
|
|
825
825
|
"inlineNetLabelWidth": 0.32,
|
|
@@ -830,7 +830,7 @@
|
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
"netId": "MO",
|
|
833
|
-
"
|
|
833
|
+
"anchoredNetLabelWidth": 0.36,
|
|
834
834
|
"allowInlineNetLabel": true,
|
|
835
835
|
"inlineNetLabelHeight": 0.12,
|
|
836
836
|
"inlineNetLabelWidth": 0.24,
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
},
|
|
842
842
|
{
|
|
843
843
|
"netId": "AGC_OUT",
|
|
844
|
-
"
|
|
844
|
+
"anchoredNetLabelWidth": 0.96,
|
|
845
845
|
"allowInlineNetLabel": true,
|
|
846
846
|
"inlineNetLabelHeight": 0.12,
|
|
847
847
|
"inlineNetLabelWidth": 0.64,
|
|
@@ -13,7 +13,8 @@ const getPinPair = (pinIds: string[]): [string, string] => {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// Captured from @tscircuit/core@12b2ef60's TB67S579FTG breakout repro. The
|
|
16
|
-
//
|
|
16
|
+
// anchored-label widths supplied for inline labels must not affect the routed
|
|
17
|
+
// traces beside J4.
|
|
17
18
|
test("core TB67S579FTG inline label routing", () => {
|
|
18
19
|
const solverInput: InputProblem = {
|
|
19
20
|
...inputProblem,
|
|
@@ -34,7 +35,7 @@ test("core TB67S579FTG inline label routing", () => {
|
|
|
34
35
|
expect(
|
|
35
36
|
inputProblem.directConnections.find(
|
|
36
37
|
(connection) => connection.netId === "AGC_OUT",
|
|
37
|
-
)?.
|
|
38
|
+
)?.anchoredNetLabelWidth,
|
|
38
39
|
).toBe(0.96)
|
|
39
40
|
expect(solver).toMatchSolverSnapshot(import.meta.path)
|
|
40
41
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { expect, test } from "bun:test"
|
|
2
|
+
import { NET_LABEL_HORIZONTAL_WIDTH } from "lib/solvers/NetLabelPlacementSolver/SingleNetLabelPlacementSolver/geometry"
|
|
2
3
|
import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
|
|
3
4
|
import type {
|
|
4
5
|
InputDirectConnection,
|
|
@@ -9,7 +10,7 @@ import "tests/fixtures/matcher"
|
|
|
9
10
|
const inlineConnection = (
|
|
10
11
|
netId: string,
|
|
11
12
|
pinIds: [string, string],
|
|
12
|
-
|
|
13
|
+
anchoredNetLabelWidth: number,
|
|
13
14
|
inlineNetLabelWidth: number,
|
|
14
15
|
netLabelText?: string,
|
|
15
16
|
): InputDirectConnection => ({
|
|
@@ -17,7 +18,7 @@ const inlineConnection = (
|
|
|
17
18
|
netLabelText,
|
|
18
19
|
pinIds,
|
|
19
20
|
allowInlineNetLabel: true,
|
|
20
|
-
|
|
21
|
+
anchoredNetLabelWidth,
|
|
21
22
|
inlineNetLabelWidth,
|
|
22
23
|
inlineNetLabelHeight: 0.12,
|
|
23
24
|
})
|
|
@@ -88,10 +89,18 @@ const routedInputProblem: InputProblem = {
|
|
|
88
89
|
maxMspPairDistance: 20,
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
test("
|
|
92
|
+
test("anchored label width does not split routable inline connections", () => {
|
|
92
93
|
const solver = new SchematicTracePipelineSolver(routedInputProblem)
|
|
94
|
+
const inputWithoutAnchoredWidths = structuredClone(routedInputProblem)
|
|
95
|
+
for (const connection of inputWithoutAnchoredWidths.directConnections) {
|
|
96
|
+
delete connection.anchoredNetLabelWidth
|
|
97
|
+
}
|
|
98
|
+
const solverWithoutAnchoredWidths = new SchematicTracePipelineSolver(
|
|
99
|
+
inputWithoutAnchoredWidths,
|
|
100
|
+
)
|
|
93
101
|
|
|
94
102
|
solver.solve()
|
|
103
|
+
solverWithoutAnchoredWidths.solve()
|
|
95
104
|
|
|
96
105
|
expect(solver.schematicTraceLinesSolver!.solvedTracePaths).toHaveLength(5)
|
|
97
106
|
expect(solver.schematicTraceLinesSolver!.failedConnectionPairs).toHaveLength(
|
|
@@ -106,6 +115,20 @@ test("fallback label width does not split routable inline connections", () => {
|
|
|
106
115
|
(placement) => placement.stubTracePath === undefined,
|
|
107
116
|
),
|
|
108
117
|
).toBe(true)
|
|
118
|
+
expect(
|
|
119
|
+
solver.netLabelPlacementSolver!.netLabelPlacements.every(
|
|
120
|
+
(placement) =>
|
|
121
|
+
Math.max(placement.width, placement.height) ===
|
|
122
|
+
NET_LABEL_HORIZONTAL_WIDTH,
|
|
123
|
+
),
|
|
124
|
+
).toBe(true)
|
|
125
|
+
expect(
|
|
126
|
+
output.traces.map(({ mspPairId, tracePath }) => ({ mspPairId, tracePath })),
|
|
127
|
+
).toEqual(
|
|
128
|
+
solverWithoutAnchoredWidths
|
|
129
|
+
.inlineNetLabelSolver!.getOutput()
|
|
130
|
+
.traces.map(({ mspPairId, tracePath }) => ({ mspPairId, tracePath })),
|
|
131
|
+
)
|
|
109
132
|
expect(
|
|
110
133
|
output.inlineNetLabelPlacements.find(
|
|
111
134
|
(placement) => placement.netId === "OUT_A_P",
|
|
@@ -115,7 +138,7 @@ test("fallback label width does not split routable inline connections", () => {
|
|
|
115
138
|
expect(solver).toMatchSolverSnapshot(import.meta.path)
|
|
116
139
|
})
|
|
117
140
|
|
|
118
|
-
test("
|
|
141
|
+
test("anchored label width sizes anchored labels when routing is skipped", () => {
|
|
119
142
|
const inputProblem: InputProblem = {
|
|
120
143
|
chips: [
|
|
121
144
|
{
|
|
@@ -133,18 +156,18 @@ test("fallback label width sizes anchored labels when routing is skipped", () =>
|
|
|
133
156
|
pins: [{ pinId: "U2.1", x: 2.5, y: 0, _facingDirection: "x-" }],
|
|
134
157
|
},
|
|
135
158
|
],
|
|
136
|
-
directConnections: [
|
|
159
|
+
directConnections: [],
|
|
160
|
+
netConnections: [
|
|
137
161
|
{
|
|
138
162
|
netId: "SIGNAL",
|
|
139
163
|
netLabelText: "User-facing signal",
|
|
140
164
|
pinIds: ["U1.1", "U2.1"],
|
|
141
165
|
allowInlineNetLabel: true,
|
|
142
|
-
|
|
166
|
+
anchoredNetLabelWidth: 0.96,
|
|
143
167
|
inlineNetLabelWidth: 0.64,
|
|
144
168
|
inlineNetLabelHeight: 0.12,
|
|
145
169
|
},
|
|
146
170
|
],
|
|
147
|
-
netConnections: [],
|
|
148
171
|
availableNetLabelOrientations: {},
|
|
149
172
|
maxMspPairDistance: 1,
|
|
150
173
|
}
|
|
@@ -152,10 +175,10 @@ test("fallback label width sizes anchored labels when routing is skipped", () =>
|
|
|
152
175
|
const solver = new SchematicTracePipelineSolver(inputProblem)
|
|
153
176
|
solver.solve()
|
|
154
177
|
|
|
155
|
-
const [
|
|
156
|
-
expect(
|
|
157
|
-
expect(Math.max(
|
|
178
|
+
const [anchoredPlacement] = solver.netLabelPlacementSolver!.netLabelPlacements
|
|
179
|
+
expect(anchoredPlacement).toBeDefined()
|
|
180
|
+
expect(Math.max(anchoredPlacement!.width, anchoredPlacement!.height)).toBe(
|
|
158
181
|
0.96,
|
|
159
182
|
)
|
|
160
|
-
expect(
|
|
183
|
+
expect(anchoredPlacement!.netLabelText).toBe("User-facing signal")
|
|
161
184
|
})
|