@tscircuit/schematic-trace-solver 0.0.87 → 0.0.89

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 (118) hide show
  1. package/.agents/skills/schematic-trace-visualization/SKILL.md +115 -0
  2. package/.github/scripts/import-json-bug-report.ts +15 -1
  3. package/.github/workflows/json-bug-report.yml +3 -2
  4. package/AGENTS.md +22 -0
  5. package/dist/index.js +30 -22
  6. package/lib/solvers/Example28Solver/reroute.ts +10 -0
  7. package/lib/testing/PipelineStageDebugRunner.ts +344 -0
  8. package/package.json +3 -2
  9. package/scripts/debug-pipeline-stages.ts +146 -0
  10. package/site/bug-reports/bug-report-20260706T220324Z.page.tsx +4 -0
  11. package/site/bug-reports/bug-report-20260707T020342Z.page.tsx +4 -0
  12. package/site/bug-reports/bug-report-20260707T092615Z.page.tsx +4 -0
  13. package/site/bug-reports/bug-report-20260707T134549Z.page.tsx +4 -0
  14. package/site/bug-reports/bug-report-20260707T134722Z.page.tsx +4 -0
  15. package/site/bug-reports/bug-report-20260707T140410Z.page.tsx +4 -0
  16. package/site/bug-reports/bug-report-20260707T141025Z.page.tsx +4 -0
  17. package/site/bug-reports/bug-report-20260707T141421Z.page.tsx +4 -0
  18. package/tests/bug-reports/bug-report-20260706T213649Z/__snapshots__/bug-report-20260706T213649Z.snap.svg +386 -0
  19. package/tests/bug-reports/bug-report-20260706T213649Z/bug-report-20260706T213649Z.json +1471 -0
  20. package/tests/bug-reports/bug-report-20260706T213649Z/bug-report-20260706T213649Z.test.ts +12 -0
  21. package/tests/bug-reports/bug-report-20260706T220324Z/__snapshots__/bug-report-20260706T220324Z.snap.svg +357 -3448
  22. package/tests/bug-reports/bug-report-20260707T020342Z/__snapshots__/bug-report-20260707T020342Z.snap.svg +64 -0
  23. package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.json +233 -0
  24. package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.test.ts +12 -0
  25. package/tests/bug-reports/bug-report-20260707T092615Z/__snapshots__/bug-report-20260707T092615Z.snap.svg +252 -0
  26. package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.json +1392 -0
  27. package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.test.ts +12 -0
  28. package/tests/bug-reports/bug-report-20260707T134549Z/__snapshots__/bug-report-20260707T134549Z.snap.svg +124 -0
  29. package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.json +652 -0
  30. package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.test.ts +12 -0
  31. package/tests/bug-reports/bug-report-20260707T134722Z/__snapshots__/bug-report-20260707T134722Z.snap.svg +73 -0
  32. package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.json +265 -0
  33. package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.test.ts +12 -0
  34. package/tests/bug-reports/bug-report-20260707T140410Z/__snapshots__/bug-report-20260707T140410Z.snap.svg +154 -0
  35. package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.json +610 -0
  36. package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.test.ts +12 -0
  37. package/tests/bug-reports/bug-report-20260707T141025Z/__snapshots__/bug-report-20260707T141025Z.snap.svg +67 -0
  38. package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.json +185 -0
  39. package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.test.ts +12 -0
  40. package/tests/bug-reports/bug-report-20260707T141421Z/__snapshots__/bug-report-20260707T141421Z.snap.svg +114 -0
  41. package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.json +499 -0
  42. package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.test.ts +23 -0
  43. package/tests/examples/__snapshots__/example01.snap.svg +59 -162
  44. package/tests/examples/__snapshots__/example02.snap.svg +64 -273
  45. package/tests/examples/__snapshots__/example03.snap.svg +85 -290
  46. package/tests/examples/__snapshots__/example04.snap.svg +50 -94
  47. package/tests/examples/__snapshots__/example05.snap.svg +73 -191
  48. package/tests/examples/__snapshots__/example06.snap.svg +49 -95
  49. package/tests/examples/__snapshots__/example07.snap.svg +65 -218
  50. package/tests/examples/__snapshots__/example08.snap.svg +61 -143
  51. package/tests/examples/__snapshots__/example09.snap.svg +123 -493
  52. package/tests/examples/__snapshots__/example10.snap.svg +57 -136
  53. package/tests/examples/__snapshots__/example11.snap.svg +64 -173
  54. package/tests/examples/__snapshots__/example12.snap.svg +58 -159
  55. package/tests/examples/__snapshots__/example13.snap.svg +78 -348
  56. package/tests/examples/__snapshots__/example14.snap.svg +77 -293
  57. package/tests/examples/__snapshots__/example15.snap.svg +140 -984
  58. package/tests/examples/__snapshots__/example16.snap.svg +62 -162
  59. package/tests/examples/__snapshots__/example17.snap.svg +67 -198
  60. package/tests/examples/__snapshots__/example18.snap.svg +69 -249
  61. package/tests/examples/__snapshots__/example19.snap.svg +63 -202
  62. package/tests/examples/__snapshots__/example20.snap.svg +60 -148
  63. package/tests/examples/__snapshots__/example21.snap.svg +73 -298
  64. package/tests/examples/__snapshots__/example22.snap.svg +62 -156
  65. package/tests/examples/__snapshots__/example23.snap.svg +66 -172
  66. package/tests/examples/__snapshots__/example24.snap.svg +64 -164
  67. package/tests/examples/__snapshots__/example25.snap.svg +76 -299
  68. package/tests/examples/__snapshots__/example26.snap.svg +64 -164
  69. package/tests/examples/__snapshots__/example27.snap.svg +83 -300
  70. package/tests/examples/__snapshots__/example28.snap.svg +54 -115
  71. package/tests/examples/__snapshots__/example29.snap.svg +257 -1299
  72. package/tests/examples/__snapshots__/example30.snap.svg +91 -293
  73. package/tests/examples/__snapshots__/example31.snap.svg +47 -88
  74. package/tests/examples/__snapshots__/example32.snap.svg +107 -405
  75. package/tests/examples/__snapshots__/example33.snap.svg +71 -180
  76. package/tests/examples/__snapshots__/example34.snap.svg +55 -116
  77. package/tests/examples/__snapshots__/example35.snap.svg +69 -176
  78. package/tests/examples/__snapshots__/example36.snap.svg +65 -159
  79. package/tests/examples/__snapshots__/example37.snap.svg +75 -223
  80. package/tests/examples/__snapshots__/example38.snap.svg +46 -76
  81. package/tests/examples/__snapshots__/example39.snap.svg +51 -106
  82. package/tests/examples/__snapshots__/example40.snap.svg +83 -270
  83. package/tests/examples/__snapshots__/example41.snap.svg +54 -118
  84. package/tests/examples/__snapshots__/example42.snap.svg +67 -194
  85. package/tests/examples/__snapshots__/example43.snap.svg +62 -168
  86. package/tests/examples/__snapshots__/example44.snap.svg +86 -369
  87. package/tests/examples/__snapshots__/example45.snap.svg +60 -169
  88. package/tests/examples/__snapshots__/example46.snap.svg +80 -342
  89. package/tests/examples/__snapshots__/example47.snap.svg +82 -323
  90. package/tests/examples/__snapshots__/example48.snap.svg +64 -167
  91. package/tests/examples/__snapshots__/example49.snap.svg +120 -565
  92. package/tests/examples/__snapshots__/example50.snap.svg +71 -189
  93. package/tests/fixtures/getLastStepGraphicsObject.ts +38 -0
  94. package/tests/fixtures/getLastStepSvg.ts +9 -0
  95. package/tests/repros/__snapshots__/bugreport-001-gnd-overlap.snap.svg +67 -218
  96. package/tests/repros/__snapshots__/manufacturePartNumber-text-box.snap.svg +47 -87
  97. package/tests/repros/__snapshots__/netlabel-connector-through-rail-label.snap.svg +73 -272
  98. package/tests/repros/__snapshots__/repro-atmega328p-fault-pullup.snap.svg +88 -0
  99. package/tests/repros/__snapshots__/repro-atmega328p-missing-gnd-netlabel.snap.svg +118 -0
  100. package/tests/repros/__snapshots__/repro-bq24074-battery-charger.snap.svg +94 -395
  101. package/tests/repros/__snapshots__/repro-cc2340r5.snap.svg +88 -467
  102. package/tests/repros/__snapshots__/repro-ina237-current-monitor.snap.svg +109 -569
  103. package/tests/repros/__snapshots__/repro130-bq27441-fuel-gauge-trace-through-c1.snap.svg +95 -459
  104. package/tests/repros/__snapshots__/repro51-overlap-junction-crossing.snap.svg +64 -176
  105. package/tests/repros/__snapshots__/trace-overlap-box-resistor.snap.svg +51 -112
  106. package/tests/repros/assets/repro-atmega328p-fault-pullup.input.json +239 -0
  107. package/tests/repros/assets/repro-atmega328p-missing-gnd-netlabel.input.json +432 -0
  108. package/tests/repros/repro-atmega328p-fault-pullup.test.ts +11 -0
  109. package/tests/repros/repro-atmega328p-missing-gnd-netlabel.test.ts +16 -0
  110. package/tests/solvers/SchematicTraceSingleLineSolver2/__snapshots__/SchematicTraceSingleLineSolver2_01-example17-d1_1-u1_1.snap.svg +59 -159
  111. package/tests/solvers/TraceCleanupSolver/__snapshots__/TraceCleanupSolver.snap.svg +54 -118
  112. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/__snapshots__/TraceLabelOverlapAvoidanceSolver.snap.svg +58 -245
  113. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView01.snap.svg +73 -222
  114. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView02.snap.svg +65 -204
  115. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView03.snap.svg +65 -183
  116. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/MergedNetLabelObstacles.snap.svg +54 -139
  117. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/OverlapAvoidanceStepSolver.snap.svg +61 -215
  118. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/SingleOverlapSolver.snap.svg +54 -124
@@ -1,205 +1,66 @@
1
- <svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg">
2
- <rect width="100%" height="100%" fill="white" />
3
- <g>
4
- <circle data-type="point" data-label="U1.1
5
- x+" data-x="1.2000000000000002" data-y="-0.30000000000000004" cx="159.4666666666667" cy="286.0577777777778" r="3" fill="hsl(319, 100%, 50%, 0.8)" />
6
- </g>
7
- <g>
8
- <circle data-type="point" data-label="U1.2
9
- x-" data-x="-1.2000000000000002" data-y="-0.30000000000000004" cx="40.00000000000001" cy="286.0577777777778" r="3" fill="hsl(320, 100%, 50%, 0.8)" />
10
- </g>
11
- <g>
12
- <circle data-type="point" data-label="U1.3
13
- x+" data-x="1.2000000000000002" data-y="0.09999999999999998" cx="159.4666666666667" cy="266.1466666666667" r="3" fill="hsl(321, 100%, 50%, 0.8)" />
14
- </g>
15
- <g>
16
- <circle data-type="point" data-label="U1.4
17
- x-" data-x="-1.2000000000000002" data-y="0.30000000000000004" cx="40.00000000000001" cy="256.1911111111111" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
18
- </g>
19
- <g>
20
- <circle data-type="point" data-label="U1.5
21
- x-" data-x="-1.2000000000000002" data-y="0.10000000000000003" cx="40.00000000000001" cy="266.1466666666667" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
22
- </g>
23
- <g>
24
- <circle data-type="point" data-label="U1.6
25
- x-" data-x="-1.2000000000000002" data-y="-0.09999999999999998" cx="40.00000000000001" cy="276.1022222222222" r="3" fill="hsl(324, 100%, 50%, 0.8)" />
26
- </g>
27
- <g>
28
- <circle data-type="point" data-label="U1.7
29
- x+" data-x="1.2000000000000002" data-y="-0.10000000000000003" cx="159.4666666666667" cy="276.1022222222222" r="3" fill="hsl(325, 100%, 50%, 0.8)" />
30
- </g>
31
- <g>
32
- <circle data-type="point" data-label="U1.8
33
- x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="159.4666666666667" cy="256.1911111111111" r="3" fill="hsl(326, 100%, 50%, 0.8)" />
34
- </g>
35
- <g>
36
- <circle data-type="point" data-label="J1.1
37
- x-" data-x="1.6" data-y="-1.895" cx="179.3777777777778" cy="365.4533333333334" r="3" fill="hsl(218, 100%, 50%, 0.8)" />
38
- </g>
39
- <g>
40
- <circle data-type="point" data-label="J1.2
41
- x-" data-x="1.6" data-y="-2.095" cx="179.3777777777778" cy="375.4088888888889" r="3" fill="hsl(219, 100%, 50%, 0.8)" />
42
- </g>
43
- <g>
44
- <circle data-type="point" data-label="J1.3
45
- x-" data-x="1.6" data-y="-2.295" cx="179.3777777777778" cy="385.3644444444445" r="3" fill="hsl(220, 100%, 50%, 0.8)" />
46
- </g>
47
- <g>
48
- <circle data-type="point" data-label="U1.1
49
- x+" data-x="7.450000000000001" data-y="-0.55" cx="470.57777777777784" cy="298.50222222222226" r="3" fill="hsl(319, 100%, 50%, 0.8)" />
50
- </g>
51
- <g>
52
- <circle data-type="point" data-label="U1.2
53
- x-" data-x="5.050000000000001" data-y="-0.55" cx="351.1111111111112" cy="298.50222222222226" r="3" fill="hsl(320, 100%, 50%, 0.8)" />
54
- </g>
55
- <g>
56
- <circle data-type="point" data-label="U1.3
57
- x+" data-x="7.450000000000001" data-y="-0.15000000000000002" cx="470.57777777777784" cy="278.5911111111111" r="3" fill="hsl(321, 100%, 50%, 0.8)" />
58
- </g>
59
- <g>
60
- <circle data-type="point" data-label="U1.4
61
- x-" data-x="5.050000000000001" data-y="0.050000000000000044" cx="351.1111111111112" cy="268.6355555555556" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
62
- </g>
63
- <g>
64
- <circle data-type="point" data-label="U1.5
65
- x-" data-x="5.050000000000001" data-y="-0.14999999999999997" cx="351.1111111111112" cy="278.5911111111111" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
66
- </g>
67
- <g>
68
- <circle data-type="point" data-label="U1.6
69
- x-" data-x="5.050000000000001" data-y="-0.35" cx="351.1111111111112" cy="288.5466666666667" r="3" fill="hsl(324, 100%, 50%, 0.8)" />
70
- </g>
71
- <g>
72
- <circle data-type="point" data-label="U1.7
73
- x+" data-x="7.450000000000001" data-y="-0.35000000000000003" cx="470.57777777777784" cy="288.5466666666667" r="3" fill="hsl(325, 100%, 50%, 0.8)" />
74
- </g>
75
- <g>
76
- <circle data-type="point" data-label="U1.8
77
- x+" data-x="7.450000000000001" data-y="0.050000000000000044" cx="470.57777777777784" cy="268.6355555555556" r="3" fill="hsl(326, 100%, 50%, 0.8)" />
78
- </g>
79
- <g>
80
- <circle data-type="point" data-label="J1.1
81
- x-" data-x="7.850000000000001" data-y="-2.145" cx="490.488888888889" cy="377.89777777777783" r="3" fill="hsl(218, 100%, 50%, 0.8)" />
82
- </g>
83
- <g>
84
- <circle data-type="point" data-label="J1.2
85
- x-" data-x="7.850000000000001" data-y="-2.345" cx="490.488888888889" cy="387.85333333333335" r="3" fill="hsl(219, 100%, 50%, 0.8)" />
86
- </g>
87
- <g>
88
- <circle data-type="point" data-label="J1.3
89
- x-" data-x="7.850000000000001" data-y="-2.545" cx="490.488888888889" cy="397.8088888888889" r="3" fill="hsl(220, 100%, 50%, 0.8)" />
90
- </g>
91
- <g>
92
- <polyline data-points="1.2000000000000002,-0.30000000000000004 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,286.0577777777778 179.3777777777778,385.3644444444445" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
93
- </g>
94
- <g>
95
- <polyline data-points="1.2000000000000002,0.30000000000000004 1.6,-1.895" data-type="line" data-label="" points="159.4666666666667,256.1911111111111 179.3777777777778,365.4533333333334" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
96
- </g>
97
- <g>
98
- <polyline data-points="1.2000000000000002,-0.30000000000000004 1.4000000000000001,-0.30000000000000004 1.4000000000000001,-1.2974999999999999 1.4000000000000001,-2.295 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,286.0577777777778 169.42222222222225,286.0577777777778 169.42222222222225,335.7111111111111 169.42222222222225,385.3644444444445 179.3777777777778,385.3644444444445" fill="none" stroke="blue" stroke-width="1" />
99
- </g>
100
- <g>
101
- <polyline data-points="1.149,-1.995 1.5990000000000002,-1.995 1.5990000000000002,-1.795 1.149,-1.795 1.149,-1.995" data-type="line" data-label="" points="156.92800000000003,370.43111111111114 179.32800000000003,370.43111111111114 179.32800000000003,360.47555555555556 156.92800000000003,360.47555555555556 156.92800000000003,370.43111111111114" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1" stroke-dasharray="4 4" />
102
- </g>
103
- <g>
104
- <polyline data-points="1.374,-1.895 1.374,-1.995" data-type="line" data-label="" points="168.12800000000004,365.4533333333334 168.12800000000004,370.43111111111114" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1" stroke-dasharray="2 2" />
105
- </g>
106
- <g>
107
- <polyline data-points="1.149,-2.1950000000000003 1.5990000000000002,-2.1950000000000003 1.5990000000000002,-1.995 1.149,-1.995 1.149,-2.1950000000000003" data-type="line" data-label="" points="156.92800000000003,380.3866666666667 179.32800000000003,380.3866666666667 179.32800000000003,370.43111111111114 156.92800000000003,370.43111111111114 156.92800000000003,380.3866666666667" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1" stroke-dasharray="4 4" />
108
- </g>
109
- <g>
110
- <polyline data-points="1.374,-2.095 1.374,-1.995" data-type="line" data-label="" points="168.12800000000004,375.4088888888889 168.12800000000004,370.43111111111114" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1" stroke-dasharray="2 2" />
111
- </g>
112
- <g>
113
- <polyline data-points="7.450000000000001,-0.55 7.850000000000001,-2.545" data-type="line" data-label="" points="470.57777777777784,298.50222222222226 490.488888888889,397.8088888888889" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
114
- </g>
115
- <g>
116
- <polyline data-points="7.450000000000001,0.050000000000000044 7.850000000000001,-2.145" data-type="line" data-label="" points="470.57777777777784,268.6355555555556 490.488888888889,377.89777777777783" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
117
- </g>
118
- <g>
119
- <polyline data-points="7.450000000000001,-0.55 7.650000000000001,-0.55 7.650000000000001,-1.5474999999999999 7.650000000000001,-2.545 7.850000000000001,-2.545" data-type="line" data-label="" points="470.57777777777784,298.50222222222226 480.5333333333334,298.50222222222226 480.5333333333334,348.15555555555557 480.5333333333334,397.8088888888889 490.488888888889,397.8088888888889" fill="none" stroke="red" stroke-width="1" stroke-dasharray="4 4" />
120
- </g>
121
- <g>
122
- <polyline data-points="7.450000000000001,-0.55 7.650000000000001,-0.55 7.650000000000001,-1.9449999999999998 7.299000000000001,-1.9449999999999998 7.299000000000001,-2.5450000000000004 7.850000000000001,-2.545" data-type="line" data-label="" points="470.57777777777784,298.50222222222226 480.5333333333334,298.50222222222226 480.5333333333334,367.94222222222226 463.06133333333344,367.94222222222226 463.06133333333344,397.80888888888893 490.488888888889,397.8088888888889" fill="none" stroke="green" stroke-width="1" />
123
- </g>
124
- <g>
125
- <rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="40.00000000000001" y="246.23555555555558" width="119.4666666666667" height="49.7777777777778" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
126
- </g>
127
- <g>
128
- <rect data-type="rect" data-label="schematic_component_1" data-x="2.7" data-y="-2.095" x="179.3777777777778" y="355.4977777777778" width="109.51111111111112" height="39.82222222222225" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
129
- </g>
130
- <g>
131
- <rect data-type="rect" data-label="connectivity_net0" data-x="1.4000000000000001" data-y="-2.52" x="164.44444444444446" y="385.3644444444445" width="9.955555555555577" height="22.400000000000034" fill="none" stroke="hsl(40, 100%, 50%, 1)" stroke-width="0.020089285714285712" />
132
- </g>
133
- <g>
134
- <rect data-type="rect" data-label="connectivity_net1" data-x="1.4260000000000002" data-y="0.30000000000000004" x="159.51644444444446" y="251.21333333333337" width="22.400000000000034" height="9.95555555555552" fill="none" stroke="hsl(40, 100%, 50%, 1)" stroke-width="0.020089285714285712" />
135
- </g>
136
- <g>
137
- <rect data-type="rect" data-label="merged-group-J1-x-" data-x="1.374" data-y="-1.995" x="156.92800000000003" y="360.47555555555556" width="22.400000000000006" height="19.911111111111154" fill="hsl(296, 100%, 50%, 0.2)" stroke="hsl(296, 100%, 50%, 1)" stroke-width="0.020089285714285712" />
138
- </g>
139
- <g>
140
- <rect data-type="rect" data-label="schematic_component_0" data-x="6.250000000000001" data-y="-0.25" x="351.1111111111112" y="258.68" width="119.46666666666664" height="49.77777777777777" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
141
- </g>
142
- <g>
143
- <rect data-type="rect" data-label="schematic_component_1" data-x="8.950000000000001" data-y="-2.345" x="490.488888888889" y="367.94222222222226" width="109.511111111111" height="39.82222222222225" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
144
- </g>
145
- <g>
146
- <rect data-type="rect" data-label="" data-x="7.6240000000000006" data-y="-2.245" x="468.0391111111112" y="372.92" width="22.39999999999992" height="19.911111111111097" fill="rgba(255, 0, 0, 0.2)" stroke="black" stroke-width="0.020089285714285712" />
147
- </g><text data-type="text" data-label="MergedNetLabelObstaclesSolver" data-x="1.3" data-y="0.78125" x="164.44444444444446" y="232.23555555555558" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">MergedNetLabelObstaclesSolver</text><text data-type="text" data-label="SingleOverlapSolver" data-x="7.550000000000001" data-y="0.53125" x="475.5555555555556" y="244.68" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">SingleOverlapSolver</text>
148
- <g id="crosshair" style="display: none">
149
- <line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
150
- <line id="crosshair-v" x1="0" x2="640" stroke="#666" stroke-width="0.5" /><text id="coordinates" font-family="monospace" font-size="12" fill="#666"></text>
151
- </g>
152
- <script>
153
- <![CDATA[
154
- document.currentScript.parentElement.addEventListener('mousemove', (e) => {
155
- const svg = e.currentTarget;
156
- const rect = svg.getBoundingClientRect();
157
- const x = e.clientX - rect.left;
158
- const y = e.clientY - rect.top;
159
- const crosshair = svg.getElementById('crosshair');
160
- const h = svg.getElementById('crosshair-h');
161
- const v = svg.getElementById('crosshair-v');
162
- const coords = svg.getElementById('coordinates');
1
+ <svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="white"/><g><polyline data-points="1.2000000000000002,-0.30000000000000004 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,286.0577777777778 179.3777777777778,385.3644444444445" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,0.30000000000000004 1.6,-1.895" data-type="line" data-label="" points="159.4666666666667,256.1911111111111 179.3777777777778,365.4533333333334" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,-0.30000000000000004 1.4000000000000001,-0.30000000000000004 1.4000000000000001,-1.2974999999999999 1.4000000000000001,-2.295 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,286.0577777777778 169.42222222222225,286.0577777777778 169.42222222222225,335.7111111111111 169.42222222222225,385.3644444444445 179.3777777777778,385.3644444444445" fill="none" stroke="blue" stroke-width="1px"/></g><g><polyline data-points="1.149,-1.995 1.5990000000000002,-1.995 1.5990000000000002,-1.795 1.149,-1.795 1.149,-1.995" data-type="line" data-label="" points="156.92800000000003,370.43111111111114 179.32800000000003,370.43111111111114 179.32800000000003,360.47555555555556 156.92800000000003,360.47555555555556 156.92800000000003,370.43111111111114" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1px" stroke-dasharray="4 4"/></g><g><polyline data-points="1.374,-1.895 1.374,-1.995" data-type="line" data-label="" points="168.12800000000004,365.4533333333334 168.12800000000004,370.43111111111114" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1px" stroke-dasharray="2 2"/></g><g><polyline data-points="1.149,-2.1950000000000003 1.5990000000000002,-2.1950000000000003 1.5990000000000002,-1.995 1.149,-1.995 1.149,-2.1950000000000003" data-type="line" data-label="" points="156.92800000000003,380.3866666666667 179.32800000000003,380.3866666666667 179.32800000000003,370.43111111111114 156.92800000000003,370.43111111111114 156.92800000000003,380.3866666666667" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1px" stroke-dasharray="4 4"/></g><g><polyline data-points="1.374,-2.095 1.374,-1.995" data-type="line" data-label="" points="168.12800000000004,375.4088888888889 168.12800000000004,370.43111111111114" fill="none" stroke="hsl(296, 100%, 50%, 1)" stroke-width="1px" stroke-dasharray="2 2"/></g><g><polyline data-points="7.450000000000001,-0.55 7.850000000000001,-2.545" data-type="line" data-label="" points="470.57777777777784,298.50222222222226 490.488888888889,397.8088888888889" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="7.450000000000001,0.050000000000000044 7.850000000000001,-2.145" data-type="line" data-label="" points="470.57777777777784,268.6355555555556 490.488888888889,377.89777777777783" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="7.450000000000001,-0.55 7.650000000000001,-0.55 7.650000000000001,-1.5474999999999999 7.650000000000001,-2.545 7.850000000000001,-2.545" data-type="line" data-label="" points="470.57777777777784,298.50222222222226 480.5333333333334,298.50222222222226 480.5333333333334,348.15555555555557 480.5333333333334,397.8088888888889 490.488888888889,397.8088888888889" fill="none" stroke="red" stroke-width="1px" stroke-dasharray="4 4"/></g><g><polyline data-points="7.450000000000001,-0.55 7.650000000000001,-0.55 7.650000000000001,-1.9449999999999998 7.299000000000001,-1.9449999999999998 7.299000000000001,-2.5450000000000004 7.850000000000001,-2.545" data-type="line" data-label="" points="470.57777777777784,298.50222222222226 480.5333333333334,298.50222222222226 480.5333333333334,367.94222222222226 463.06133333333344,367.94222222222226 463.06133333333344,397.80888888888893 490.488888888889,397.8088888888889" fill="none" stroke="green" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="40" y="246.23555555555555" width="119.4666666666667" height="49.7777777777778" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="2.7" data-y="-2.095" x="179.3777777777778" y="355.49777777777774" width="109.51111111111112" height="39.82222222222225" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="merged-group-J1-x-" data-x="1.374" data-y="-1.995" x="156.92800000000005" y="360.47555555555556" width="22.400000000000006" height="19.911111111111154" fill="hsl(296, 100%, 50%, 0.2)" stroke="hsl(296, 100%, 50%, 1)" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="connectivity_net1" data-x="1.4260000000000002" data-y="0.30000000000000004" x="159.51644444444443" y="251.21333333333337" width="22.400000000000034" height="9.95555555555552" fill="none" stroke="hsl(40, 100%, 50%, 1)" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="connectivity_net0" data-x="1.4000000000000001" data-y="-2.52" x="164.44444444444446" y="385.3644444444444" width="9.955555555555577" height="22.400000000000034" fill="none" stroke="hsl(40, 100%, 50%, 1)" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="6.250000000000001" data-y="-0.25" x="351.1111111111112" y="258.68000000000006" width="119.46666666666664" height="49.77777777777777" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="8.950000000000001" data-y="-2.345" x="490.48888888888905" y="367.9422222222222" width="109.511111111111" height="39.82222222222225" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="" data-x="7.6240000000000006" data-y="-2.245" x="468.0391111111112" y="372.9200000000001" width="22.39999999999992" height="19.911111111111097" fill="rgba(255, 0, 0, 0.2)" stroke="black" stroke-width="0.020089285714285712"/></g><text data-type="text" data-label="MergedNetLabelObstaclesSolver" data-x="1.3" data-y="0.78125" x="164.44444444444446" y="232.23555555555558" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">MergedNetLabelObstaclesSolver</text><text data-type="text" data-label="SingleOverlapSolver" data-x="7.550000000000001" data-y="0.53125" x="475.5555555555556" y="244.68" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">SingleOverlapSolver</text><g><circle data-type="point" data-label="U1.1
2
+ x+" data-x="1.2000000000000002" data-y="-0.30000000000000004" cx="159.4666666666667" cy="286.0577777777778" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.2
3
+ x-" data-x="-1.2000000000000002" data-y="-0.30000000000000004" cx="40.00000000000001" cy="286.0577777777778" r="3" fill="hsl(320, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.3
4
+ x+" data-x="1.2000000000000002" data-y="0.09999999999999998" cx="159.4666666666667" cy="266.1466666666667" r="3" fill="hsl(321, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.4
5
+ x-" data-x="-1.2000000000000002" data-y="0.30000000000000004" cx="40.00000000000001" cy="256.1911111111111" r="3" fill="hsl(322, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.5
6
+ x-" data-x="-1.2000000000000002" data-y="0.10000000000000003" cx="40.00000000000001" cy="266.1466666666667" r="3" fill="hsl(323, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.6
7
+ x-" data-x="-1.2000000000000002" data-y="-0.09999999999999998" cx="40.00000000000001" cy="276.1022222222222" r="3" fill="hsl(324, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.7
8
+ x+" data-x="1.2000000000000002" data-y="-0.10000000000000003" cx="159.4666666666667" cy="276.1022222222222" r="3" fill="hsl(325, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.8
9
+ x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="159.4666666666667" cy="256.1911111111111" r="3" fill="hsl(326, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.1
10
+ x-" data-x="1.6" data-y="-1.895" cx="179.3777777777778" cy="365.4533333333334" r="3" fill="hsl(218, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.2
11
+ x-" data-x="1.6" data-y="-2.095" cx="179.3777777777778" cy="375.4088888888889" r="3" fill="hsl(219, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.3
12
+ x-" data-x="1.6" data-y="-2.295" cx="179.3777777777778" cy="385.3644444444445" r="3" fill="hsl(220, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.1
13
+ x+" data-x="7.450000000000001" data-y="-0.55" cx="470.57777777777784" cy="298.50222222222226" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.2
14
+ x-" data-x="5.050000000000001" data-y="-0.55" cx="351.1111111111112" cy="298.50222222222226" r="3" fill="hsl(320, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.3
15
+ x+" data-x="7.450000000000001" data-y="-0.15000000000000002" cx="470.57777777777784" cy="278.5911111111111" r="3" fill="hsl(321, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.4
16
+ x-" data-x="5.050000000000001" data-y="0.050000000000000044" cx="351.1111111111112" cy="268.6355555555556" r="3" fill="hsl(322, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.5
17
+ x-" data-x="5.050000000000001" data-y="-0.14999999999999997" cx="351.1111111111112" cy="278.5911111111111" r="3" fill="hsl(323, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.6
18
+ x-" data-x="5.050000000000001" data-y="-0.35" cx="351.1111111111112" cy="288.5466666666667" r="3" fill="hsl(324, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.7
19
+ x+" data-x="7.450000000000001" data-y="-0.35000000000000003" cx="470.57777777777784" cy="288.5466666666667" r="3" fill="hsl(325, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.8
20
+ x+" data-x="7.450000000000001" data-y="0.050000000000000044" cx="470.57777777777784" cy="268.6355555555556" r="3" fill="hsl(326, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.1
21
+ x-" data-x="7.850000000000001" data-y="-2.145" cx="490.488888888889" cy="377.89777777777783" r="3" fill="hsl(218, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.2
22
+ x-" data-x="7.850000000000001" data-y="-2.345" cx="490.488888888889" cy="387.85333333333335" r="3" fill="hsl(219, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.3
23
+ x-" data-x="7.850000000000001" data-y="-2.545" cx="490.488888888889" cy="397.8088888888889" r="3" fill="hsl(220, 100%, 50%, 0.8)"/></g><g id="crosshair" style="display: none"><line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5"/><line id="crosshair-v" x1="0" x2="640" stroke="#666" stroke-width="0.5"/><text id="coordinates" font-family="monospace" font-size="12" fill="#666"></text></g><script><![CDATA[
24
+ document.currentScript.parentElement.addEventListener('mousemove', (e) => {
25
+ const svg = e.currentTarget;
26
+ const rect = svg.getBoundingClientRect();
27
+ const x = e.clientX - rect.left;
28
+ const y = e.clientY - rect.top;
29
+ const crosshair = svg.getElementById('crosshair');
30
+ const h = svg.getElementById('crosshair-h');
31
+ const v = svg.getElementById('crosshair-v');
32
+ const coords = svg.getElementById('coordinates');
33
+
34
+ crosshair.style.display = 'block';
35
+ h.setAttribute('x1', '0');
36
+ h.setAttribute('x2', '640');
37
+ h.setAttribute('y1', y);
38
+ h.setAttribute('y2', y);
39
+ v.setAttribute('x1', x);
40
+ v.setAttribute('x2', x);
41
+ v.setAttribute('y1', '0');
42
+ v.setAttribute('y2', '640');
163
43
 
164
- crosshair.style.display = 'block';
165
- h.setAttribute('x1', '0');
166
- h.setAttribute('x2', '640');
167
- h.setAttribute('y1', y);
168
- h.setAttribute('y2', y);
169
- v.setAttribute('x1', x);
170
- v.setAttribute('x2', x);
171
- v.setAttribute('y1', '0');
172
- v.setAttribute('y2', '640');
173
-
174
- // Calculate real coordinates using inverse transformation
175
- const matrix = {
176
- "a": 49.77777777777778,
177
- "c": 0,
178
- "e": 99.73333333333335,
179
- "b": 0,
180
- "d": -49.77777777777778,
181
- "f": 271.12444444444446
182
- };
183
- // Manually invert and apply the affine transform
184
- // Since we only use translate and scale, we can directly compute:
185
- // x' = (x - tx) / sx
186
- // y' = (y - ty) / sy
187
- const sx = matrix.a;
188
- const sy = matrix.d;
189
- const tx = matrix.e;
190
- const ty = matrix.f;
191
- const realPoint = {
192
- x: (x - tx) / sx,
193
- y: (y - ty) / sy // Flip y back since we used negative scale
194
- }
195
-
196
- coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
197
- coords.setAttribute('x', (x + 5).toString());
198
- coords.setAttribute('y', (y - 5).toString());
199
- });
200
- document.currentScript.parentElement.addEventListener('mouseleave', () => {
201
- document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
202
- });
203
- ]]>
204
- </script>
205
- </svg>
44
+ // Calculate real coordinates using inverse transformation
45
+ const matrix = {"a":49.77777777777778,"c":0,"e":99.73333333333335,"b":0,"d":-49.77777777777778,"f":271.12444444444446};
46
+ // Manually invert and apply the affine transform
47
+ // Since we only use translate and scale, we can directly compute:
48
+ // x' = (x - tx) / sx
49
+ // y' = (y - ty) / sy
50
+ const sx = matrix.a;
51
+ const sy = matrix.d;
52
+ const tx = matrix.e;
53
+ const ty = matrix.f;
54
+ const realPoint = {
55
+ x: (x - tx) / sx,
56
+ y: (y - ty) / sy // Flip y back since we used negative scale
57
+ }
58
+
59
+ coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
60
+ coords.setAttribute('x', (x + 5).toString());
61
+ coords.setAttribute('y', (y - 5).toString());
62
+ });
63
+ document.currentScript.parentElement.addEventListener('mouseleave', () => {
64
+ document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
65
+ });
66
+ ]]></script></svg>
@@ -1,184 +1,66 @@
1
- <svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg">
2
- <rect width="100%" height="100%" fill="white" />
3
- <g>
4
- <circle data-type="point" data-label="U1.1
5
- x+" data-x="1.2000000000000002" data-y="-0.30000000000000004" cx="159.4666666666667" cy="292.28000000000003" r="3" fill="hsl(319, 100%, 50%, 0.8)" />
6
- </g>
7
- <g>
8
- <circle data-type="point" data-label="U1.2
9
- x-" data-x="-1.2000000000000002" data-y="-0.30000000000000004" cx="40.00000000000001" cy="292.28000000000003" r="3" fill="hsl(320, 100%, 50%, 0.8)" />
10
- </g>
11
- <g>
12
- <circle data-type="point" data-label="U1.3
13
- x+" data-x="1.2000000000000002" data-y="0.09999999999999998" cx="159.4666666666667" cy="272.36888888888893" r="3" fill="hsl(321, 100%, 50%, 0.8)" />
14
- </g>
15
- <g>
16
- <circle data-type="point" data-label="U1.4
17
- x-" data-x="-1.2000000000000002" data-y="0.30000000000000004" cx="40.00000000000001" cy="262.41333333333336" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
18
- </g>
19
- <g>
20
- <circle data-type="point" data-label="U1.5
21
- x-" data-x="-1.2000000000000002" data-y="0.10000000000000003" cx="40.00000000000001" cy="272.36888888888893" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
22
- </g>
23
- <g>
24
- <circle data-type="point" data-label="U1.6
25
- x-" data-x="-1.2000000000000002" data-y="-0.09999999999999998" cx="40.00000000000001" cy="282.32444444444445" r="3" fill="hsl(324, 100%, 50%, 0.8)" />
26
- </g>
27
- <g>
28
- <circle data-type="point" data-label="U1.7
29
- x+" data-x="1.2000000000000002" data-y="-0.10000000000000003" cx="159.4666666666667" cy="282.32444444444445" r="3" fill="hsl(325, 100%, 50%, 0.8)" />
30
- </g>
31
- <g>
32
- <circle data-type="point" data-label="U1.8
33
- x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="159.4666666666667" cy="262.41333333333336" r="3" fill="hsl(326, 100%, 50%, 0.8)" />
34
- </g>
35
- <g>
36
- <circle data-type="point" data-label="J1.1
37
- x-" data-x="1.6" data-y="-1.895" cx="179.3777777777778" cy="371.6755555555556" r="3" fill="hsl(218, 100%, 50%, 0.8)" />
38
- </g>
39
- <g>
40
- <circle data-type="point" data-label="J1.2
41
- x-" data-x="1.6" data-y="-2.095" cx="179.3777777777778" cy="381.6311111111112" r="3" fill="hsl(219, 100%, 50%, 0.8)" />
42
- </g>
43
- <g>
44
- <circle data-type="point" data-label="J1.3
45
- x-" data-x="1.6" data-y="-2.295" cx="179.3777777777778" cy="391.5866666666667" r="3" fill="hsl(220, 100%, 50%, 0.8)" />
46
- </g>
47
- <g>
48
- <circle data-type="point" data-label="U1.1
49
- x+" data-x="7.450000000000001" data-y="-0.30000000000000004" cx="470.57777777777784" cy="292.28000000000003" r="3" fill="hsl(319, 100%, 50%, 0.8)" />
50
- </g>
51
- <g>
52
- <circle data-type="point" data-label="U1.2
53
- x-" data-x="5.050000000000001" data-y="-0.30000000000000004" cx="351.1111111111112" cy="292.28000000000003" r="3" fill="hsl(320, 100%, 50%, 0.8)" />
54
- </g>
55
- <g>
56
- <circle data-type="point" data-label="U1.3
57
- x+" data-x="7.450000000000001" data-y="0.09999999999999998" cx="470.57777777777784" cy="272.36888888888893" r="3" fill="hsl(321, 100%, 50%, 0.8)" />
58
- </g>
59
- <g>
60
- <circle data-type="point" data-label="U1.4
61
- x-" data-x="5.050000000000001" data-y="0.30000000000000004" cx="351.1111111111112" cy="262.41333333333336" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
62
- </g>
63
- <g>
64
- <circle data-type="point" data-label="U1.5
65
- x-" data-x="5.050000000000001" data-y="0.10000000000000003" cx="351.1111111111112" cy="272.36888888888893" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
66
- </g>
67
- <g>
68
- <circle data-type="point" data-label="U1.6
69
- x-" data-x="5.050000000000001" data-y="-0.09999999999999998" cx="351.1111111111112" cy="282.32444444444445" r="3" fill="hsl(324, 100%, 50%, 0.8)" />
70
- </g>
71
- <g>
72
- <circle data-type="point" data-label="U1.7
73
- x+" data-x="7.450000000000001" data-y="-0.10000000000000003" cx="470.57777777777784" cy="282.32444444444445" r="3" fill="hsl(325, 100%, 50%, 0.8)" />
74
- </g>
75
- <g>
76
- <circle data-type="point" data-label="U1.8
77
- x+" data-x="7.450000000000001" data-y="0.30000000000000004" cx="470.57777777777784" cy="262.41333333333336" r="3" fill="hsl(326, 100%, 50%, 0.8)" />
78
- </g>
79
- <g>
80
- <circle data-type="point" data-label="J1.1
81
- x-" data-x="7.850000000000001" data-y="-1.895" cx="490.488888888889" cy="371.6755555555556" r="3" fill="hsl(218, 100%, 50%, 0.8)" />
82
- </g>
83
- <g>
84
- <circle data-type="point" data-label="J1.2
85
- x-" data-x="7.850000000000001" data-y="-2.095" cx="490.488888888889" cy="381.6311111111112" r="3" fill="hsl(219, 100%, 50%, 0.8)" />
86
- </g>
87
- <g>
88
- <circle data-type="point" data-label="J1.3
89
- x-" data-x="7.850000000000001" data-y="-2.295" cx="490.488888888889" cy="391.5866666666667" r="3" fill="hsl(220, 100%, 50%, 0.8)" />
90
- </g>
91
- <g>
92
- <polyline data-points="1.2000000000000002,-0.30000000000000004 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,292.28000000000003 179.3777777777778,391.5866666666667" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
93
- </g>
94
- <g>
95
- <polyline data-points="1.2000000000000002,0.30000000000000004 1.6,-1.895" data-type="line" data-label="" points="159.4666666666667,262.41333333333336 179.3777777777778,371.6755555555556" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
96
- </g>
97
- <g>
98
- <polyline data-points="1.2000000000000002,-0.30000000000000004 1.4000000000000001,-0.30000000000000004 1.4000000000000001,-1.2974999999999999 1.4000000000000001,-2.295 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,292.28000000000003 169.42222222222225,292.28000000000003 169.42222222222225,341.93333333333334 169.42222222222225,391.5866666666667 179.3777777777778,391.5866666666667" fill="none" stroke="red" stroke-width="1" stroke-dasharray="4 4" />
99
- </g>
100
- <g>
101
- <polyline data-points="1.2000000000000002,-0.30000000000000004 1.4000000000000001,-0.30000000000000004 1.4000000000000001,-1.6949999999999998 1.049,-1.6949999999999998 1.049,-2.2950000000000004 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,292.28000000000003 169.42222222222225,292.28000000000003 169.42222222222225,361.72 151.95022222222224,361.72 151.95022222222224,391.5866666666667 179.3777777777778,391.5866666666667" fill="none" stroke="green" stroke-width="1" />
102
- </g>
103
- <g>
104
- <polyline data-points="7.450000000000001,-0.30000000000000004 7.850000000000001,-2.295" data-type="line" data-label="" points="470.57777777777784,292.28000000000003 490.488888888889,391.5866666666667" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
105
- </g>
106
- <g>
107
- <polyline data-points="7.450000000000001,0.30000000000000004 7.850000000000001,-1.895" data-type="line" data-label="" points="470.57777777777784,262.41333333333336 490.488888888889,371.6755555555556" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1" stroke-dasharray="4 2" />
108
- </g>
109
- <g>
110
- <polyline data-points="7.450000000000001,-0.30000000000000004 7.650000000000001,-0.30000000000000004 7.650000000000001,-1.2975000000000003 7.299000000000001,-1.2975000000000003 7.299000000000001,-2.2950000000000004 7.850000000000001,-2.295" data-type="line" data-label="" points="470.57777777777784,292.28000000000003 480.5333333333334,292.28000000000003 480.5333333333334,341.9333333333334 463.06133333333344,341.9333333333334 463.06133333333344,391.5866666666667 490.488888888889,391.5866666666667" fill="none" stroke="red" stroke-width="1" />
111
- </g>
112
- <g>
113
- <rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="40.00000000000001" y="252.4577777777778" width="119.4666666666667" height="49.7777777777778" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
114
- </g>
115
- <g>
116
- <rect data-type="rect" data-label="schematic_component_1" data-x="2.7" data-y="-2.095" x="179.3777777777778" y="361.72" width="109.51111111111112" height="39.822222222222194" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
117
- </g>
118
- <g>
119
- <rect data-type="rect" data-label="" data-x="1.374" data-y="-1.995" x="156.92800000000003" y="366.6977777777778" width="22.400000000000006" height="19.911111111111154" fill="rgba(255, 0, 0, 0.2)" stroke="black" stroke-width="0.020089285714285712" />
120
- </g>
121
- <g>
122
- <rect data-type="rect" data-label="schematic_component_0" data-x="6.250000000000001" data-y="0" x="351.1111111111112" y="252.4577777777778" width="119.46666666666664" height="49.7777777777778" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
123
- </g>
124
- <g>
125
- <rect data-type="rect" data-label="schematic_component_1" data-x="8.950000000000001" data-y="-2.095" x="490.488888888889" y="361.72" width="109.511111111111" height="39.822222222222194" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712" />
126
- </g><text data-type="text" data-label="SingleOverlapSolver" data-x="1.3" data-y="0.78125" x="164.44444444444446" y="238.4577777777778" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">SingleOverlapSolver</text><text data-type="text" data-label="TraceCleanupSolver" data-x="7.550000000000001" data-y="0.78125" x="475.5555555555556" y="238.4577777777778" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">TraceCleanupSolver</text>
127
- <g id="crosshair" style="display: none">
128
- <line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
129
- <line id="crosshair-v" x1="0" x2="640" stroke="#666" stroke-width="0.5" /><text id="coordinates" font-family="monospace" font-size="12" fill="#666"></text>
130
- </g>
131
- <script>
132
- <![CDATA[
133
- document.currentScript.parentElement.addEventListener('mousemove', (e) => {
134
- const svg = e.currentTarget;
135
- const rect = svg.getBoundingClientRect();
136
- const x = e.clientX - rect.left;
137
- const y = e.clientY - rect.top;
138
- const crosshair = svg.getElementById('crosshair');
139
- const h = svg.getElementById('crosshair-h');
140
- const v = svg.getElementById('crosshair-v');
141
- const coords = svg.getElementById('coordinates');
1
+ <svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="white"/><g><polyline data-points="1.2000000000000002,-0.30000000000000004 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,292.28000000000003 179.3777777777778,391.5866666666667" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,0.30000000000000004 1.6,-1.895" data-type="line" data-label="" points="159.4666666666667,262.41333333333336 179.3777777777778,371.6755555555556" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,-0.30000000000000004 1.4000000000000001,-0.30000000000000004 1.4000000000000001,-1.2974999999999999 1.4000000000000001,-2.295 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,292.28000000000003 169.42222222222225,292.28000000000003 169.42222222222225,341.93333333333334 169.42222222222225,391.5866666666667 179.3777777777778,391.5866666666667" fill="none" stroke="red" stroke-width="1px" stroke-dasharray="4 4"/></g><g><polyline data-points="1.2000000000000002,-0.30000000000000004 1.4000000000000001,-0.30000000000000004 1.4000000000000001,-1.6949999999999998 1.049,-1.6949999999999998 1.049,-2.2950000000000004 1.6,-2.295" data-type="line" data-label="" points="159.4666666666667,292.28000000000003 169.42222222222225,292.28000000000003 169.42222222222225,361.72 151.95022222222224,361.72 151.95022222222224,391.5866666666667 179.3777777777778,391.5866666666667" fill="none" stroke="green" stroke-width="1px"/></g><g><polyline data-points="7.450000000000001,-0.30000000000000004 7.850000000000001,-2.295" data-type="line" data-label="" points="470.57777777777784,292.28000000000003 490.488888888889,391.5866666666667" fill="none" stroke="hsl(157, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="7.450000000000001,0.30000000000000004 7.850000000000001,-1.895" data-type="line" data-label="" points="470.57777777777784,262.41333333333336 490.488888888889,371.6755555555556" fill="none" stroke="hsl(190, 100%, 50%, 0.1)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="7.450000000000001,-0.30000000000000004 7.650000000000001,-0.30000000000000004 7.650000000000001,-1.2975000000000003 7.299000000000001,-1.2975000000000003 7.299000000000001,-2.2950000000000004 7.850000000000001,-2.295" data-type="line" data-label="" points="470.57777777777784,292.28000000000003 480.5333333333334,292.28000000000003 480.5333333333334,341.9333333333334 463.06133333333344,341.9333333333334 463.06133333333344,391.5866666666667 490.488888888889,391.5866666666667" fill="none" stroke="red" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="40" y="252.45777777777778" width="119.4666666666667" height="49.7777777777778" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="2.7" data-y="-2.095" x="179.3777777777778" y="361.7200000000001" width="109.51111111111112" height="39.822222222222194" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="" data-x="1.374" data-y="-1.995" x="156.92800000000005" y="366.6977777777778" width="22.400000000000006" height="19.911111111111154" fill="rgba(255, 0, 0, 0.2)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="6.250000000000001" data-y="0" x="351.1111111111112" y="252.45777777777778" width="119.46666666666664" height="49.7777777777778" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="8.950000000000001" data-y="-2.095" x="490.48888888888905" y="361.7200000000001" width="109.511111111111" height="39.822222222222194" fill="hsl(24, 100%, 50%, 0.1)" stroke="black" stroke-width="0.020089285714285712"/></g><text data-type="text" data-label="SingleOverlapSolver" data-x="1.3" data-y="0.78125" x="164.44444444444446" y="238.4577777777778" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">SingleOverlapSolver</text><text data-type="text" data-label="TraceCleanupSolver" data-x="7.550000000000001" data-y="0.78125" x="475.5555555555556" y="238.4577777777778" fill="black" font-size="14" font-family="sans-serif" text-anchor="middle" dominant-baseline="text-after-edge">TraceCleanupSolver</text><g><circle data-type="point" data-label="U1.1
2
+ x+" data-x="1.2000000000000002" data-y="-0.30000000000000004" cx="159.4666666666667" cy="292.28000000000003" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.2
3
+ x-" data-x="-1.2000000000000002" data-y="-0.30000000000000004" cx="40.00000000000001" cy="292.28000000000003" r="3" fill="hsl(320, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.3
4
+ x+" data-x="1.2000000000000002" data-y="0.09999999999999998" cx="159.4666666666667" cy="272.36888888888893" r="3" fill="hsl(321, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.4
5
+ x-" data-x="-1.2000000000000002" data-y="0.30000000000000004" cx="40.00000000000001" cy="262.41333333333336" r="3" fill="hsl(322, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.5
6
+ x-" data-x="-1.2000000000000002" data-y="0.10000000000000003" cx="40.00000000000001" cy="272.36888888888893" r="3" fill="hsl(323, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.6
7
+ x-" data-x="-1.2000000000000002" data-y="-0.09999999999999998" cx="40.00000000000001" cy="282.32444444444445" r="3" fill="hsl(324, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.7
8
+ x+" data-x="1.2000000000000002" data-y="-0.10000000000000003" cx="159.4666666666667" cy="282.32444444444445" r="3" fill="hsl(325, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.8
9
+ x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="159.4666666666667" cy="262.41333333333336" r="3" fill="hsl(326, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.1
10
+ x-" data-x="1.6" data-y="-1.895" cx="179.3777777777778" cy="371.6755555555556" r="3" fill="hsl(218, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.2
11
+ x-" data-x="1.6" data-y="-2.095" cx="179.3777777777778" cy="381.6311111111112" r="3" fill="hsl(219, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.3
12
+ x-" data-x="1.6" data-y="-2.295" cx="179.3777777777778" cy="391.5866666666667" r="3" fill="hsl(220, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.1
13
+ x+" data-x="7.450000000000001" data-y="-0.30000000000000004" cx="470.57777777777784" cy="292.28000000000003" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.2
14
+ x-" data-x="5.050000000000001" data-y="-0.30000000000000004" cx="351.1111111111112" cy="292.28000000000003" r="3" fill="hsl(320, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.3
15
+ x+" data-x="7.450000000000001" data-y="0.09999999999999998" cx="470.57777777777784" cy="272.36888888888893" r="3" fill="hsl(321, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.4
16
+ x-" data-x="5.050000000000001" data-y="0.30000000000000004" cx="351.1111111111112" cy="262.41333333333336" r="3" fill="hsl(322, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.5
17
+ x-" data-x="5.050000000000001" data-y="0.10000000000000003" cx="351.1111111111112" cy="272.36888888888893" r="3" fill="hsl(323, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.6
18
+ x-" data-x="5.050000000000001" data-y="-0.09999999999999998" cx="351.1111111111112" cy="282.32444444444445" r="3" fill="hsl(324, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.7
19
+ x+" data-x="7.450000000000001" data-y="-0.10000000000000003" cx="470.57777777777784" cy="282.32444444444445" r="3" fill="hsl(325, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.8
20
+ x+" data-x="7.450000000000001" data-y="0.30000000000000004" cx="470.57777777777784" cy="262.41333333333336" r="3" fill="hsl(326, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.1
21
+ x-" data-x="7.850000000000001" data-y="-1.895" cx="490.488888888889" cy="371.6755555555556" r="3" fill="hsl(218, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.2
22
+ x-" data-x="7.850000000000001" data-y="-2.095" cx="490.488888888889" cy="381.6311111111112" r="3" fill="hsl(219, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="J1.3
23
+ x-" data-x="7.850000000000001" data-y="-2.295" cx="490.488888888889" cy="391.5866666666667" r="3" fill="hsl(220, 100%, 50%, 0.8)"/></g><g id="crosshair" style="display: none"><line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5"/><line id="crosshair-v" x1="0" x2="640" stroke="#666" stroke-width="0.5"/><text id="coordinates" font-family="monospace" font-size="12" fill="#666"></text></g><script><![CDATA[
24
+ document.currentScript.parentElement.addEventListener('mousemove', (e) => {
25
+ const svg = e.currentTarget;
26
+ const rect = svg.getBoundingClientRect();
27
+ const x = e.clientX - rect.left;
28
+ const y = e.clientY - rect.top;
29
+ const crosshair = svg.getElementById('crosshair');
30
+ const h = svg.getElementById('crosshair-h');
31
+ const v = svg.getElementById('crosshair-v');
32
+ const coords = svg.getElementById('coordinates');
33
+
34
+ crosshair.style.display = 'block';
35
+ h.setAttribute('x1', '0');
36
+ h.setAttribute('x2', '640');
37
+ h.setAttribute('y1', y);
38
+ h.setAttribute('y2', y);
39
+ v.setAttribute('x1', x);
40
+ v.setAttribute('x2', x);
41
+ v.setAttribute('y1', '0');
42
+ v.setAttribute('y2', '640');
142
43
 
143
- crosshair.style.display = 'block';
144
- h.setAttribute('x1', '0');
145
- h.setAttribute('x2', '640');
146
- h.setAttribute('y1', y);
147
- h.setAttribute('y2', y);
148
- v.setAttribute('x1', x);
149
- v.setAttribute('x2', x);
150
- v.setAttribute('y1', '0');
151
- v.setAttribute('y2', '640');
152
-
153
- // Calculate real coordinates using inverse transformation
154
- const matrix = {
155
- "a": 49.77777777777778,
156
- "c": 0,
157
- "e": 99.73333333333335,
158
- "b": 0,
159
- "d": -49.77777777777778,
160
- "f": 277.3466666666667
161
- };
162
- // Manually invert and apply the affine transform
163
- // Since we only use translate and scale, we can directly compute:
164
- // x' = (x - tx) / sx
165
- // y' = (y - ty) / sy
166
- const sx = matrix.a;
167
- const sy = matrix.d;
168
- const tx = matrix.e;
169
- const ty = matrix.f;
170
- const realPoint = {
171
- x: (x - tx) / sx,
172
- y: (y - ty) / sy // Flip y back since we used negative scale
173
- }
174
-
175
- coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
176
- coords.setAttribute('x', (x + 5).toString());
177
- coords.setAttribute('y', (y - 5).toString());
178
- });
179
- document.currentScript.parentElement.addEventListener('mouseleave', () => {
180
- document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
181
- });
182
- ]]>
183
- </script>
184
- </svg>
44
+ // Calculate real coordinates using inverse transformation
45
+ const matrix = {"a":49.77777777777778,"c":0,"e":99.73333333333335,"b":0,"d":-49.77777777777778,"f":277.3466666666667};
46
+ // Manually invert and apply the affine transform
47
+ // Since we only use translate and scale, we can directly compute:
48
+ // x' = (x - tx) / sx
49
+ // y' = (y - ty) / sy
50
+ const sx = matrix.a;
51
+ const sy = matrix.d;
52
+ const tx = matrix.e;
53
+ const ty = matrix.f;
54
+ const realPoint = {
55
+ x: (x - tx) / sx,
56
+ y: (y - ty) / sy // Flip y back since we used negative scale
57
+ }
58
+
59
+ coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
60
+ coords.setAttribute('x', (x + 5).toString());
61
+ coords.setAttribute('y', (y - 5).toString());
62
+ });
63
+ document.currentScript.parentElement.addEventListener('mouseleave', () => {
64
+ document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
65
+ });
66
+ ]]></script></svg>