@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
@@ -0,0 +1,64 @@
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="-4.005,0.54 -2.6500000000000004,1.1" data-type="line" data-label="" points="59.628455897300256,286.0102707395253 144.13503048068222,251.08504434344127" fill="none" stroke="hsl(168, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-4.005,0.54 -2.6500000000000004,-1.1" data-type="line" data-label="" points="59.628455897300256,286.0102707395253 144.13503048068222,388.29129089948583" fill="none" stroke="hsl(128, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-3.995,-0.54 2.6500000000000004,-1.1" data-type="line" data-label="" points="60.25212065437316,353.3660645034018 474.6773517293351,388.29129089948583" fill="none" stroke="hsl(128, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-3.995,-0.54 2.6500000000000004,1.1" data-type="line" data-label="" points="60.25212065437316,353.3660645034018 474.6773517293351,251.08504434344127" fill="none" stroke="hsl(168, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.04999999999999982,1.1 0.04999999999999982,1.1" data-type="line" data-label="" points="306.287867319644,251.08504434344127 312.52451489037327,251.08504434344127" fill="none" stroke="hsl(104, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.04999999999999982,1.1 4,0.55" data-type="line" data-label="" points="306.287867319644,251.08504434344127 558.8720939341806,285.3866059824524" fill="none" stroke="hsl(200, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="0.04999999999999982,-1.1 -0.04999999999999982,-1.1" data-type="line" data-label="" points="312.52451489037327,388.29129089948583 306.287867319644,388.29129089948583" fill="none" stroke="hsl(96, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="0.04999999999999982,-1.1 4,-0.55" data-type="line" data-label="" points="312.52451489037327,388.29129089948583 558.8720939341806,353.9897292604747" fill="none" stroke="hsl(216, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-4.005,0.54 -4.005,1.1 -2.6500000000000004,1.1" data-type="line" data-label="" points="59.628455897300256,286.0102707395253 59.628455897300256,251.08504434344127 144.13503048068222,251.08504434344127" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-2.6500000000000004,-1.1 -2.8500000000000005,-1.1 -2.8500000000000005,1.1 -2.6500000000000004,1.1" data-type="line" data-label="" points="144.13503048068222,388.29129089948583 131.6617353392236,388.29129089948583 131.6617353392236,251.08504434344127 144.13503048068222,251.08504434344127" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="2.6500000000000004,1.1 2.8500000000000005,1.1 2.8500000000000005,-1.1 2.6500000000000004,-1.1" data-type="line" data-label="" points="474.6773517293351,251.08504434344127 487.1506468707937,251.08504434344127 487.1506468707937,388.29129089948583 474.6773517293351,388.29129089948583" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-3.995,-0.54 -3.995,-1.56 2.8500000000000005,-1.56 2.8500000000000005,-1.1 2.6500000000000004,-1.1" data-type="line" data-label="" points="60.25212065437316,353.3660645034018 60.25212065437316,416.9798697248406 487.1506468707937,416.9798697248406 487.1506468707937,388.29129089948583 474.6773517293351,388.29129089948583" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="0.04999999999999982,1.1 -0.04999999999999982,1.1" data-type="line" data-label="" points="312.52451489037327,251.08504434344127 306.287867319644,251.08504434344127" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-0.04999999999999982,-1.1 0.04999999999999982,-1.1" data-type="line" data-label="" points="306.287867319644,388.29129089948583 312.52451489037327,388.29129089948583" fill="none" stroke="purple" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="-4" data-y="0" x="39.999999999999986" y="286.0102707395253" width="39.88057655167344" height="67.35579376387648" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="-1.35" data-y="1.1" x="144.1350304806822" y="238.61174920198266" width="162.1528368389618" height="24.946590282917214" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="schematic_component_2" data-x="1.35" data-y="-1.1" x="312.5245148903733" y="375.8179957580272" width="162.15283683896183" height="24.946590282917214" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="schematic_component_3" data-x="1.35" data-y="1.1" x="312.5245148903733" y="238.61174920198266" width="162.15283683896183" height="24.946590282917214" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="schematic_component_4" data-x="-1.35" data-y="-1.1" x="144.1350304806822" y="375.8179957580272" width="162.1528368389618" height="24.946590282917214" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="schematic_component_5" data-x="4.2498638375" data-y="0" x="548.9104417715107" y="285.3866059824524" width="51.089558228489295" height="68.60312327802228" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="D1" data-x="-2.13" data-y="1.415" x="165.33963222116185" y="223.64379503223233" width="22.451931254625492" height="15.591618926823259" fill="rgba(160, 0, 220, 0.14)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="D2" data-x="0.57" data-y="-0.7850000000000001" x="333.7291166308529" y="360.85004158827695" width="22.451931254625492" height="15.59161892682323" fill="rgba(160, 0, 220, 0.14)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="D3" data-x="0.57" data-y="1.415" x="333.7291166308529" y="223.64379503223233" width="22.451931254625492" height="15.591618926823259" fill="rgba(160, 0, 220, 0.14)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="D4" data-x="-2.13" data-y="-0.7850000000000001" x="165.33963222116185" y="360.85004158827695" width="22.451931254625492" height="15.59161892682323" fill="rgba(160, 0, 220, 0.14)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="netId: .V1 &gt; .pin1 to .D4 &gt; .CATHODE
2
+ globalConnNetId: connectivity_net0" data-x="-3.78" data-y="0.8200000000000001" x="59.628455897300256" y="262.31100997075407" width="28.064914068281837" height="12.47329514145855" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="netId: .V1 &gt; .pin2 to .D3 &gt; .ANODE
3
+ globalConnNetId: connectivity_net1" data-x="2.8500000000000005" data-y="1.3250000000000002" x="480.9139993000644" y="223.02013027515943" width="12.473295141458607" height="28.064914068281865" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="netId: .D1 &gt; .CATHODE to .R1 &gt; .pin1
4
+ globalConnNetId: connectivity_net2" data-x="4" data-y="0.776" x="552.6354463634514" y="257.2593254384633" width="12.473295141458607" height="28.064914068281837" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.016034255401785713"/></g><g><rect data-type="rect" data-label="netId: .D2 &gt; .ANODE to .R1 &gt; .pin2
5
+ globalConnNetId: connectivity_net3" data-x="4" data-y="-0.776" x="552.6354463634514" y="354.05209573618197" width="12.473295141458607" height="28.064914068281837" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.016034255401785713"/></g><g><circle data-type="point" data-label="V1.1
6
+ y+" data-x="-4.005" data-y="0.54" cx="59.628455897300256" cy="286.0102707395253" r="3" fill="hsl(230, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="V1.2
7
+ y-" data-x="-3.995" data-y="-0.54" cx="60.25212065437316" cy="353.3660645034018" r="3" fill="hsl(231, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D1.1
8
+ x-" data-x="-2.6500000000000004" data-y="1.1" cx="144.13503048068222" cy="251.08504434344127" r="3" fill="hsl(32, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D1.2
9
+ x+" data-x="-0.04999999999999982" data-y="1.1" cx="306.287867319644" cy="251.08504434344127" r="3" fill="hsl(33, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D2.1
10
+ x-" data-x="0.04999999999999982" data-y="-1.1" cx="312.52451489037327" cy="388.29129089948583" r="3" fill="hsl(273, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D2.2
11
+ x+" data-x="2.6500000000000004" data-y="-1.1" cx="474.6773517293351" cy="388.29129089948583" r="3" fill="hsl(274, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D3.1
12
+ x+" data-x="2.6500000000000004" data-y="1.1" cx="474.6773517293351" cy="251.08504434344127" r="3" fill="hsl(154, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D3.2
13
+ x-" data-x="0.04999999999999982" data-y="1.1" cx="312.52451489037327" cy="251.08504434344127" r="3" fill="hsl(155, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D4.1
14
+ x+" data-x="-0.04999999999999982" data-y="-1.1" cx="306.287867319644" cy="388.29129089948583" r="3" fill="hsl(35, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D4.2
15
+ x-" data-x="-2.6500000000000004" data-y="-1.1" cx="144.13503048068222" cy="388.29129089948583" r="3" fill="hsl(36, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.1
16
+ y+" data-x="4" data-y="0.55" cx="558.8720939341806" cy="285.3866059824524" r="3" fill="hsl(226, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.2
17
+ y-" data-x="4" data-y="-0.55" cx="558.8720939341806" cy="353.9897292604747" r="3" fill="hsl(227, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="anchorPoint
18
+ orientation: x+" data-x="-4.005" data-y="0.8200000000000001" cx="59.628455897300256" cy="268.5476575414833" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
19
+ orientation: y+" data-x="2.8500000000000005" data-y="1.1" cx="487.1506468707937" cy="251.08504434344127" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
20
+ orientation: y+" data-x="4" data-y="0.55" cx="558.8720939341806" cy="285.3866059824524" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
21
+ orientation: y-" data-x="4" data-y="-0.55" cx="558.8720939341806" cy="353.9897292604747" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></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[
22
+ document.currentScript.parentElement.addEventListener('mousemove', (e) => {
23
+ const svg = e.currentTarget;
24
+ const rect = svg.getBoundingClientRect();
25
+ const x = e.clientX - rect.left;
26
+ const y = e.clientY - rect.top;
27
+ const crosshair = svg.getElementById('crosshair');
28
+ const h = svg.getElementById('crosshair-h');
29
+ const v = svg.getElementById('crosshair-v');
30
+ const coords = svg.getElementById('coordinates');
31
+
32
+ crosshair.style.display = 'block';
33
+ h.setAttribute('x1', '0');
34
+ h.setAttribute('x2', '640');
35
+ h.setAttribute('y1', y);
36
+ h.setAttribute('y2', y);
37
+ v.setAttribute('x1', x);
38
+ v.setAttribute('x2', x);
39
+ v.setAttribute('y1', '0');
40
+ v.setAttribute('y2', '640');
41
+
42
+ // Calculate real coordinates using inverse transformation
43
+ const matrix = {"a":62.366475707292985,"c":0,"e":309.40619110500865,"b":0,"d":-62.366475707292985,"f":319.68816762146355};
44
+ // Manually invert and apply the affine transform
45
+ // Since we only use translate and scale, we can directly compute:
46
+ // x' = (x - tx) / sx
47
+ // y' = (y - ty) / sy
48
+ const sx = matrix.a;
49
+ const sy = matrix.d;
50
+ const tx = matrix.e;
51
+ const ty = matrix.f;
52
+ const realPoint = {
53
+ x: (x - tx) / sx,
54
+ y: (y - ty) / sy // Flip y back since we used negative scale
55
+ }
56
+
57
+ coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
58
+ coords.setAttribute('x', (x + 5).toString());
59
+ coords.setAttribute('y', (y - 5).toString());
60
+ });
61
+ document.currentScript.parentElement.addEventListener('mouseleave', () => {
62
+ document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
63
+ });
64
+ ]]></script></svg>
@@ -0,0 +1,233 @@
1
+ {
2
+ "chips": [
3
+ {
4
+ "chipId": "schematic_component_0",
5
+ "center": {
6
+ "x": -4,
7
+ "y": 0
8
+ },
9
+ "width": 0.6394553499999991,
10
+ "height": 1.08,
11
+ "pins": [
12
+ {
13
+ "pinId": "V1.1",
14
+ "x": -4.005,
15
+ "y": 0.54
16
+ },
17
+ {
18
+ "pinId": "V1.2",
19
+ "x": -3.995,
20
+ "y": -0.54
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "chipId": "schematic_component_1",
26
+ "center": {
27
+ "x": -1.35,
28
+ "y": 1.1
29
+ },
30
+ "width": 1.8,
31
+ "height": 0.3999999999999999,
32
+ "pins": [
33
+ {
34
+ "pinId": "D1.1",
35
+ "x": -2.6500000000000004,
36
+ "y": 1.1
37
+ },
38
+ {
39
+ "pinId": "D1.2",
40
+ "x": -0.04999999999999982,
41
+ "y": 1.1
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "chipId": "schematic_component_2",
47
+ "center": {
48
+ "x": 1.35,
49
+ "y": -1.1
50
+ },
51
+ "width": 1.8,
52
+ "height": 0.3999999999999999,
53
+ "pins": [
54
+ {
55
+ "pinId": "D2.1",
56
+ "x": 0.04999999999999982,
57
+ "y": -1.1
58
+ },
59
+ {
60
+ "pinId": "D2.2",
61
+ "x": 2.6500000000000004,
62
+ "y": -1.1
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "chipId": "schematic_component_3",
68
+ "center": {
69
+ "x": 1.35,
70
+ "y": 1.1
71
+ },
72
+ "width": 1.8,
73
+ "height": 0.3999999999999999,
74
+ "pins": [
75
+ {
76
+ "pinId": "D3.1",
77
+ "x": 2.6500000000000004,
78
+ "y": 1.1
79
+ },
80
+ {
81
+ "pinId": "D3.2",
82
+ "x": 0.04999999999999982,
83
+ "y": 1.1
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "chipId": "schematic_component_4",
89
+ "center": {
90
+ "x": -1.35,
91
+ "y": -1.1
92
+ },
93
+ "width": 1.8,
94
+ "height": 0.3999999999999999,
95
+ "pins": [
96
+ {
97
+ "pinId": "D4.1",
98
+ "x": -0.04999999999999982,
99
+ "y": -1.1
100
+ },
101
+ {
102
+ "pinId": "D4.2",
103
+ "x": -2.6500000000000004,
104
+ "y": -1.1
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "chipId": "schematic_component_5",
110
+ "center": {
111
+ "x": 4.2498638375,
112
+ "y": 0
113
+ },
114
+ "width": 0.8191830249999996,
115
+ "height": 1.1,
116
+ "pins": [
117
+ {
118
+ "pinId": "R1.1",
119
+ "x": 4,
120
+ "y": 0.5499999999999999
121
+ },
122
+ {
123
+ "pinId": "R1.2",
124
+ "x": 4,
125
+ "y": -0.55
126
+ }
127
+ ]
128
+ }
129
+ ],
130
+ "directConnections": [
131
+ {
132
+ "pinIds": [
133
+ "V1.1",
134
+ "D1.1"
135
+ ],
136
+ "netId": ".V1 > .pin1 to .D1 > .ANODE"
137
+ },
138
+ {
139
+ "pinIds": [
140
+ "V1.1",
141
+ "D4.2"
142
+ ],
143
+ "netId": ".V1 > .pin1 to .D4 > .CATHODE"
144
+ },
145
+ {
146
+ "pinIds": [
147
+ "V1.2",
148
+ "D2.2"
149
+ ],
150
+ "netId": ".V1 > .pin2 to .D2 > .CATHODE"
151
+ },
152
+ {
153
+ "pinIds": [
154
+ "V1.2",
155
+ "D3.1"
156
+ ],
157
+ "netId": ".V1 > .pin2 to .D3 > .ANODE"
158
+ },
159
+ {
160
+ "pinIds": [
161
+ "D1.2",
162
+ "D3.2"
163
+ ],
164
+ "netId": ".D1 > .CATHODE to .D3 > .CATHODE"
165
+ },
166
+ {
167
+ "pinIds": [
168
+ "D1.2",
169
+ "R1.1"
170
+ ],
171
+ "netId": ".D1 > .CATHODE to .R1 > .pin1"
172
+ },
173
+ {
174
+ "pinIds": [
175
+ "D2.1",
176
+ "D4.1"
177
+ ],
178
+ "netId": ".D2 > .ANODE to .D4 > .ANODE"
179
+ },
180
+ {
181
+ "pinIds": [
182
+ "D2.1",
183
+ "R1.2"
184
+ ],
185
+ "netId": ".D2 > .ANODE to .R1 > .pin2"
186
+ }
187
+ ],
188
+ "netConnections": [],
189
+ "textBoxes": [
190
+ {
191
+ "chipId": "schematic_component_1",
192
+ "center": {
193
+ "x": -2.13,
194
+ "y": 1.415
195
+ },
196
+ "width": 0.3600000000000003,
197
+ "height": 0.2500000000000002,
198
+ "text": "D1"
199
+ },
200
+ {
201
+ "chipId": "schematic_component_2",
202
+ "center": {
203
+ "x": 0.57,
204
+ "y": -0.7850000000000001
205
+ },
206
+ "width": 0.36000000000000004,
207
+ "height": 0.25,
208
+ "text": "D2"
209
+ },
210
+ {
211
+ "chipId": "schematic_component_3",
212
+ "center": {
213
+ "x": 0.57,
214
+ "y": 1.415
215
+ },
216
+ "width": 0.36000000000000004,
217
+ "height": 0.2500000000000002,
218
+ "text": "D3"
219
+ },
220
+ {
221
+ "chipId": "schematic_component_4",
222
+ "center": {
223
+ "x": -2.13,
224
+ "y": -0.7850000000000001
225
+ },
226
+ "width": 0.3600000000000003,
227
+ "height": 0.25,
228
+ "text": "D4"
229
+ }
230
+ ],
231
+ "availableNetLabelOrientations": {},
232
+ "maxMspPairDistance": 10
233
+ }
@@ -0,0 +1,12 @@
1
+ import { expect, test } from "bun:test"
2
+ import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
3
+ import inputProblem from "./bug-report-20260707T020342Z.json"
4
+ import "tests/fixtures/matcher"
5
+
6
+ test("bug-report-20260707T020342Z", () => {
7
+ const solver = new SchematicTracePipelineSolver(inputProblem as any)
8
+
9
+ solver.solve()
10
+
11
+ expect(solver).toMatchSolverSnapshot(import.meta.path)
12
+ })