@tscircuit/schematic-trace-solver 0.0.86 → 0.0.88
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/.agents/skills/schematic-trace-visualization/SKILL.md +115 -0
- package/.github/scripts/import-json-bug-report.ts +15 -1
- package/.github/workflows/json-bug-report.yml +3 -2
- package/AGENTS.md +22 -0
- package/dist/index.js +86 -10
- package/lib/solvers/Example28Solver/Example28Solver.ts +46 -10
- package/lib/solvers/Example28Solver/countCrossingsWithOtherTraces.ts +19 -0
- package/lib/solvers/Example28Solver/scoreSolutionTracePath.ts +26 -0
- package/lib/testing/PipelineStageDebugRunner.ts +344 -0
- package/package.json +3 -2
- package/scripts/debug-pipeline-stages.ts +146 -0
- package/site/bug-reports/bug-report-20260706T220324Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T020342Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T092615Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T134549Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T134722Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T140410Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T141025Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T141421Z.page.tsx +4 -0
- package/tests/bug-reports/bug-report-20260706T220324Z/__snapshots__/bug-report-20260706T220324Z.snap.svg +357 -3448
- package/tests/bug-reports/bug-report-20260707T020342Z/__snapshots__/bug-report-20260707T020342Z.snap.svg +64 -0
- package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.json +233 -0
- package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T092615Z/__snapshots__/bug-report-20260707T092615Z.snap.svg +2098 -0
- package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.json +1392 -0
- package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T134549Z/__snapshots__/bug-report-20260707T134549Z.snap.svg +857 -0
- package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.json +652 -0
- package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T134722Z/__snapshots__/bug-report-20260707T134722Z.snap.svg +275 -0
- package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.json +265 -0
- package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T140410Z/__snapshots__/bug-report-20260707T140410Z.snap.svg +950 -0
- package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.json +610 -0
- package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T141025Z/__snapshots__/bug-report-20260707T141025Z.snap.svg +218 -0
- package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.json +185 -0
- package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T141421Z/__snapshots__/bug-report-20260707T141421Z.snap.svg +613 -0
- package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.json +499 -0
- package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.test.ts +12 -0
- package/tests/examples/__snapshots__/example01.snap.svg +59 -162
- package/tests/examples/__snapshots__/example02.snap.svg +64 -273
- package/tests/examples/__snapshots__/example03.snap.svg +85 -290
- package/tests/examples/__snapshots__/example04.snap.svg +50 -94
- package/tests/examples/__snapshots__/example05.snap.svg +73 -191
- package/tests/examples/__snapshots__/example06.snap.svg +49 -95
- package/tests/examples/__snapshots__/example07.snap.svg +65 -218
- package/tests/examples/__snapshots__/example08.snap.svg +61 -143
- package/tests/examples/__snapshots__/example09.snap.svg +123 -493
- package/tests/examples/__snapshots__/example10.snap.svg +57 -136
- package/tests/examples/__snapshots__/example11.snap.svg +64 -173
- package/tests/examples/__snapshots__/example12.snap.svg +58 -159
- package/tests/examples/__snapshots__/example13.snap.svg +78 -348
- package/tests/examples/__snapshots__/example14.snap.svg +77 -293
- package/tests/examples/__snapshots__/example15.snap.svg +140 -984
- package/tests/examples/__snapshots__/example16.snap.svg +62 -162
- package/tests/examples/__snapshots__/example17.snap.svg +67 -198
- package/tests/examples/__snapshots__/example18.snap.svg +69 -249
- package/tests/examples/__snapshots__/example19.snap.svg +63 -202
- package/tests/examples/__snapshots__/example20.snap.svg +60 -148
- package/tests/examples/__snapshots__/example21.snap.svg +73 -298
- package/tests/examples/__snapshots__/example22.snap.svg +62 -156
- package/tests/examples/__snapshots__/example23.snap.svg +66 -172
- package/tests/examples/__snapshots__/example24.snap.svg +64 -164
- package/tests/examples/__snapshots__/example25.snap.svg +76 -299
- package/tests/examples/__snapshots__/example26.snap.svg +64 -164
- package/tests/examples/__snapshots__/example27.snap.svg +83 -300
- package/tests/examples/__snapshots__/example28.snap.svg +54 -115
- package/tests/examples/__snapshots__/example29.snap.svg +257 -1299
- package/tests/examples/__snapshots__/example30.snap.svg +91 -293
- package/tests/examples/__snapshots__/example31.snap.svg +47 -88
- package/tests/examples/__snapshots__/example32.snap.svg +107 -405
- package/tests/examples/__snapshots__/example33.snap.svg +71 -180
- package/tests/examples/__snapshots__/example34.snap.svg +55 -116
- package/tests/examples/__snapshots__/example35.snap.svg +69 -176
- package/tests/examples/__snapshots__/example36.snap.svg +65 -159
- package/tests/examples/__snapshots__/example37.snap.svg +75 -223
- package/tests/examples/__snapshots__/example38.snap.svg +46 -76
- package/tests/examples/__snapshots__/example39.snap.svg +51 -106
- package/tests/examples/__snapshots__/example40.snap.svg +83 -270
- package/tests/examples/__snapshots__/example41.snap.svg +54 -118
- package/tests/examples/__snapshots__/example42.snap.svg +67 -194
- package/tests/examples/__snapshots__/example43.snap.svg +62 -168
- package/tests/examples/__snapshots__/example44.snap.svg +86 -369
- package/tests/examples/__snapshots__/example45.snap.svg +60 -169
- package/tests/examples/__snapshots__/example46.snap.svg +80 -342
- package/tests/examples/__snapshots__/example47.snap.svg +82 -323
- package/tests/examples/__snapshots__/example48.snap.svg +64 -167
- package/tests/examples/__snapshots__/example49.snap.svg +120 -565
- package/tests/examples/__snapshots__/example50.snap.svg +71 -195
- package/tests/fixtures/getLastStepGraphicsObject.ts +38 -0
- package/tests/fixtures/getLastStepSvg.ts +9 -0
- package/tests/repros/__snapshots__/bugreport-001-gnd-overlap.snap.svg +67 -218
- package/tests/repros/__snapshots__/manufacturePartNumber-text-box.snap.svg +47 -87
- package/tests/repros/__snapshots__/netlabel-connector-through-rail-label.snap.svg +73 -272
- package/tests/repros/__snapshots__/repro-atmega328p-fault-pullup.snap.svg +284 -0
- package/tests/repros/__snapshots__/repro-atmega328p-missing-gnd-netlabel.snap.svg +470 -0
- package/tests/repros/__snapshots__/repro-bq24074-battery-charger.snap.svg +94 -395
- package/tests/repros/__snapshots__/repro-cc2340r5.snap.svg +88 -467
- package/tests/repros/__snapshots__/repro-ina237-current-monitor.snap.svg +109 -569
- package/tests/repros/__snapshots__/repro130-bq27441-fuel-gauge-trace-through-c1.snap.svg +95 -459
- package/tests/repros/__snapshots__/repro51-overlap-junction-crossing.snap.svg +64 -176
- package/tests/repros/__snapshots__/trace-overlap-box-resistor.snap.svg +51 -112
- package/tests/repros/assets/repro-atmega328p-fault-pullup.input.json +239 -0
- package/tests/repros/assets/repro-atmega328p-missing-gnd-netlabel.input.json +432 -0
- package/tests/repros/repro-atmega328p-fault-pullup.test.ts +11 -0
- package/tests/repros/repro-atmega328p-missing-gnd-netlabel.test.ts +16 -0
- package/tests/solvers/SchematicTraceSingleLineSolver2/__snapshots__/SchematicTraceSingleLineSolver2_01-example17-d1_1-u1_1.snap.svg +59 -159
- package/tests/solvers/TraceCleanupSolver/__snapshots__/TraceCleanupSolver.snap.svg +54 -118
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/__snapshots__/TraceLabelOverlapAvoidanceSolver.snap.svg +58 -245
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView01.snap.svg +73 -222
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView02.snap.svg +65 -204
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView03.snap.svg +65 -183
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/MergedNetLabelObstacles.snap.svg +54 -139
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/OverlapAvoidanceStepSolver.snap.svg +61 -215
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/SingleOverlapSolver.snap.svg +54 -124
|
@@ -0,0 +1,284 @@
|
|
|
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="U_MCU.1
|
|
5
|
+
x-" data-x="8.9" data-y="15.5" cx="114.19999999999993" cy="120.86906275000001" r="3" fill="hsl(144, 100%, 50%, 0.8)" />
|
|
6
|
+
</g>
|
|
7
|
+
<g>
|
|
8
|
+
<circle data-type="point" data-label="U_MCU.2
|
|
9
|
+
x-" data-x="8.9" data-y="15.3" cx="114.19999999999993" cy="134.86906275" r="3" fill="hsl(145, 100%, 50%, 0.8)" />
|
|
10
|
+
</g>
|
|
11
|
+
<g>
|
|
12
|
+
<circle data-type="point" data-label="U_MCU.3
|
|
13
|
+
x-" data-x="8.9" data-y="15.1" cx="114.19999999999993" cy="148.86906275" r="3" fill="hsl(146, 100%, 50%, 0.8)" />
|
|
14
|
+
</g>
|
|
15
|
+
<g>
|
|
16
|
+
<circle data-type="point" data-label="U_MCU.4
|
|
17
|
+
x-" data-x="8.9" data-y="14.9" cx="114.19999999999993" cy="162.86906275" r="3" fill="hsl(147, 100%, 50%, 0.8)" />
|
|
18
|
+
</g>
|
|
19
|
+
<g>
|
|
20
|
+
<circle data-type="point" data-label="U_MCU.5
|
|
21
|
+
x-" data-x="8.9" data-y="14.7" cx="114.19999999999993" cy="176.86906275" r="3" fill="hsl(148, 100%, 50%, 0.8)" />
|
|
22
|
+
</g>
|
|
23
|
+
<g>
|
|
24
|
+
<circle data-type="point" data-label="U_MCU.6
|
|
25
|
+
x-" data-x="8.9" data-y="14.5" cx="114.19999999999993" cy="190.86906275" r="3" fill="hsl(149, 100%, 50%, 0.8)" />
|
|
26
|
+
</g>
|
|
27
|
+
<g>
|
|
28
|
+
<circle data-type="point" data-label="U_MCU.7
|
|
29
|
+
x-" data-x="8.9" data-y="14.3" cx="114.19999999999993" cy="204.86906275" r="3" fill="hsl(150, 100%, 50%, 0.8)" />
|
|
30
|
+
</g>
|
|
31
|
+
<g>
|
|
32
|
+
<circle data-type="point" data-label="U_MCU.8
|
|
33
|
+
x-" data-x="8.9" data-y="14.1" cx="114.19999999999993" cy="218.86906275" r="3" fill="hsl(151, 100%, 50%, 0.8)" />
|
|
34
|
+
</g>
|
|
35
|
+
<g>
|
|
36
|
+
<circle data-type="point" data-label="U_MCU.9
|
|
37
|
+
x-" data-x="8.9" data-y="13.9" cx="114.19999999999993" cy="232.86906275" r="3" fill="hsl(152, 100%, 50%, 0.8)" />
|
|
38
|
+
</g>
|
|
39
|
+
<g>
|
|
40
|
+
<circle data-type="point" data-label="U_MCU.10
|
|
41
|
+
x-" data-x="8.9" data-y="13.700000000000001" cx="114.19999999999993" cy="246.86906275" r="3" fill="hsl(192, 100%, 50%, 0.8)" />
|
|
42
|
+
</g>
|
|
43
|
+
<g>
|
|
44
|
+
<circle data-type="point" data-label="U_MCU.11
|
|
45
|
+
x-" data-x="8.9" data-y="13.5" cx="114.19999999999993" cy="260.86906275" r="3" fill="hsl(193, 100%, 50%, 0.8)" />
|
|
46
|
+
</g>
|
|
47
|
+
<g>
|
|
48
|
+
<circle data-type="point" data-label="U_MCU.12
|
|
49
|
+
x-" data-x="8.9" data-y="13.3" cx="114.19999999999993" cy="274.86906275" r="3" fill="hsl(194, 100%, 50%, 0.8)" />
|
|
50
|
+
</g>
|
|
51
|
+
<g>
|
|
52
|
+
<circle data-type="point" data-label="U_MCU.13
|
|
53
|
+
x-" data-x="8.9" data-y="13.1" cx="114.19999999999993" cy="288.8690627500001" r="3" fill="hsl(195, 100%, 50%, 0.8)" />
|
|
54
|
+
</g>
|
|
55
|
+
<g>
|
|
56
|
+
<circle data-type="point" data-label="U_MCU.14
|
|
57
|
+
x-" data-x="8.9" data-y="12.9" cx="114.19999999999993" cy="302.86906275" r="3" fill="hsl(196, 100%, 50%, 0.8)" />
|
|
58
|
+
</g>
|
|
59
|
+
<g>
|
|
60
|
+
<circle data-type="point" data-label="U_MCU.15
|
|
61
|
+
x-" data-x="8.9" data-y="12.7" cx="114.19999999999993" cy="316.8690627500001" r="3" fill="hsl(197, 100%, 50%, 0.8)" />
|
|
62
|
+
</g>
|
|
63
|
+
<g>
|
|
64
|
+
<circle data-type="point" data-label="U_MCU.16
|
|
65
|
+
x-" data-x="8.9" data-y="12.5" cx="114.19999999999993" cy="330.86906275" r="3" fill="hsl(198, 100%, 50%, 0.8)" />
|
|
66
|
+
</g>
|
|
67
|
+
<g>
|
|
68
|
+
<circle data-type="point" data-label="U_MCU.17
|
|
69
|
+
x+" data-x="11.1" data-y="12.5" cx="268.19999999999993" cy="330.86906275" r="3" fill="hsl(199, 100%, 50%, 0.8)" />
|
|
70
|
+
</g>
|
|
71
|
+
<g>
|
|
72
|
+
<circle data-type="point" data-label="U_MCU.18
|
|
73
|
+
x+" data-x="11.1" data-y="12.7" cx="268.19999999999993" cy="316.8690627500001" r="3" fill="hsl(200, 100%, 50%, 0.8)" />
|
|
74
|
+
</g>
|
|
75
|
+
<g>
|
|
76
|
+
<circle data-type="point" data-label="U_MCU.19
|
|
77
|
+
x+" data-x="11.1" data-y="12.9" cx="268.19999999999993" cy="302.86906275" r="3" fill="hsl(201, 100%, 50%, 0.8)" />
|
|
78
|
+
</g>
|
|
79
|
+
<g>
|
|
80
|
+
<circle data-type="point" data-label="U_MCU.20
|
|
81
|
+
x+" data-x="11.1" data-y="13.1" cx="268.19999999999993" cy="288.8690627500001" r="3" fill="hsl(223, 100%, 50%, 0.8)" />
|
|
82
|
+
</g>
|
|
83
|
+
<g>
|
|
84
|
+
<circle data-type="point" data-label="U_MCU.21
|
|
85
|
+
x+" data-x="11.1" data-y="13.3" cx="268.19999999999993" cy="274.86906275" r="3" fill="hsl(224, 100%, 50%, 0.8)" />
|
|
86
|
+
</g>
|
|
87
|
+
<g>
|
|
88
|
+
<circle data-type="point" data-label="U_MCU.22
|
|
89
|
+
x+" data-x="11.1" data-y="13.5" cx="268.19999999999993" cy="260.86906275" r="3" fill="hsl(225, 100%, 50%, 0.8)" />
|
|
90
|
+
</g>
|
|
91
|
+
<g>
|
|
92
|
+
<circle data-type="point" data-label="U_MCU.23
|
|
93
|
+
x+" data-x="11.1" data-y="13.7" cx="268.19999999999993" cy="246.86906275000013" r="3" fill="hsl(226, 100%, 50%, 0.8)" />
|
|
94
|
+
</g>
|
|
95
|
+
<g>
|
|
96
|
+
<circle data-type="point" data-label="U_MCU.24
|
|
97
|
+
x+" data-x="11.1" data-y="13.9" cx="268.19999999999993" cy="232.86906275" r="3" fill="hsl(227, 100%, 50%, 0.8)" />
|
|
98
|
+
</g>
|
|
99
|
+
<g>
|
|
100
|
+
<circle data-type="point" data-label="U_MCU.25
|
|
101
|
+
x+" data-x="11.1" data-y="14.1" cx="268.19999999999993" cy="218.86906275" r="3" fill="hsl(228, 100%, 50%, 0.8)" />
|
|
102
|
+
</g>
|
|
103
|
+
<g>
|
|
104
|
+
<circle data-type="point" data-label="U_MCU.26
|
|
105
|
+
x+" data-x="11.1" data-y="14.299999999999999" cx="268.19999999999993" cy="204.86906275000013" r="3" fill="hsl(229, 100%, 50%, 0.8)" />
|
|
106
|
+
</g>
|
|
107
|
+
<g>
|
|
108
|
+
<circle data-type="point" data-label="U_MCU.27
|
|
109
|
+
x+" data-x="11.1" data-y="14.5" cx="268.19999999999993" cy="190.86906275" r="3" fill="hsl(230, 100%, 50%, 0.8)" />
|
|
110
|
+
</g>
|
|
111
|
+
<g>
|
|
112
|
+
<circle data-type="point" data-label="U_MCU.28
|
|
113
|
+
x+" data-x="11.1" data-y="14.7" cx="268.19999999999993" cy="176.86906275" r="3" fill="hsl(231, 100%, 50%, 0.8)" />
|
|
114
|
+
</g>
|
|
115
|
+
<g>
|
|
116
|
+
<circle data-type="point" data-label="U_MCU.29
|
|
117
|
+
x+" data-x="11.1" data-y="14.9" cx="268.19999999999993" cy="162.86906275" r="3" fill="hsl(232, 100%, 50%, 0.8)" />
|
|
118
|
+
</g>
|
|
119
|
+
<g>
|
|
120
|
+
<circle data-type="point" data-label="U_MCU.30
|
|
121
|
+
x+" data-x="11.1" data-y="15.1" cx="268.19999999999993" cy="148.86906275" r="3" fill="hsl(254, 100%, 50%, 0.8)" />
|
|
122
|
+
</g>
|
|
123
|
+
<g>
|
|
124
|
+
<circle data-type="point" data-label="U_MCU.31
|
|
125
|
+
x+" data-x="11.1" data-y="15.3" cx="268.19999999999993" cy="134.86906275" r="3" fill="hsl(255, 100%, 50%, 0.8)" />
|
|
126
|
+
</g>
|
|
127
|
+
<g>
|
|
128
|
+
<circle data-type="point" data-label="U_MCU.32
|
|
129
|
+
x+" data-x="11.1" data-y="15.5" cx="268.19999999999993" cy="120.86906275000001" r="3" fill="hsl(256, 100%, 50%, 0.8)" />
|
|
130
|
+
</g>
|
|
131
|
+
<g>
|
|
132
|
+
<circle data-type="point" data-label="R_FAULT_PULLUP.1
|
|
133
|
+
x-" data-x="13.08" data-y="10" cx="406.79999999999995" cy="505.8690627500001" r="3" fill="hsl(344, 100%, 50%, 0.8)" />
|
|
134
|
+
</g>
|
|
135
|
+
<g>
|
|
136
|
+
<circle data-type="point" data-label="R_FAULT_PULLUP.2
|
|
137
|
+
x+" data-x="14.92" data-y="10" cx="535.6000000000001" cy="505.8690627500001" r="3" fill="hsl(344, 100%, 50%, 0.8)" />
|
|
138
|
+
</g>
|
|
139
|
+
<g>
|
|
140
|
+
<circle data-type="point" data-label="anchorPoint
|
|
141
|
+
orientation: x-" data-x="8.600000000000001" data-y="14.7" cx="93.20000000000005" cy="176.86906275" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
142
|
+
</g>
|
|
143
|
+
<g>
|
|
144
|
+
<circle data-type="point" data-label="anchorPoint
|
|
145
|
+
orientation: x+" data-x="11.1" data-y="13.3" cx="268.19999999999993" cy="274.86906275" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
146
|
+
</g>
|
|
147
|
+
<g>
|
|
148
|
+
<circle data-type="point" data-label="anchorPoint
|
|
149
|
+
orientation: x-" data-x="8.8" data-y="14.5" cx="107.20000000000005" cy="190.86906275" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
150
|
+
</g>
|
|
151
|
+
<g>
|
|
152
|
+
<circle data-type="point" data-label="anchorPoint
|
|
153
|
+
orientation: y+" data-x="11.7" data-y="12.7" cx="310.19999999999993" cy="316.8690627500001" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
154
|
+
</g>
|
|
155
|
+
<g>
|
|
156
|
+
<circle data-type="point" data-label="anchorPoint
|
|
157
|
+
orientation: x+" data-x="15.12" data-y="15.5" cx="549.5999999999999" cy="120.86906275000001" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
158
|
+
</g>
|
|
159
|
+
<g>
|
|
160
|
+
<polyline data-points="8.9,15.1 8.9,14.7" data-type="line" data-label="" points="114.19999999999993,148.86906275 114.19999999999993,176.86906275" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
161
|
+
</g>
|
|
162
|
+
<g>
|
|
163
|
+
<polyline data-points="8.9,15.1 11.1,13.3" data-type="line" data-label="" points="114.19999999999993,148.86906275 268.19999999999993,274.86906275" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
164
|
+
</g>
|
|
165
|
+
<g>
|
|
166
|
+
<polyline data-points="8.9,14.7 11.1,13.3" data-type="line" data-label="" points="114.19999999999993,176.86906275 268.19999999999993,274.86906275" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
167
|
+
</g>
|
|
168
|
+
<g>
|
|
169
|
+
<polyline data-points="8.9,14.9 8.9,14.5" data-type="line" data-label="" points="114.19999999999993,162.86906275 114.19999999999993,190.86906275" fill="none" stroke="hsl(23, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
170
|
+
</g>
|
|
171
|
+
<g>
|
|
172
|
+
<polyline data-points="8.9,14.9 11.1,12.7" data-type="line" data-label="" points="114.19999999999993,162.86906275 268.19999999999993,316.8690627500001" fill="none" stroke="hsl(23, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
173
|
+
</g>
|
|
174
|
+
<g>
|
|
175
|
+
<polyline data-points="8.9,14.9 13.08,10" data-type="line" data-label="" points="114.19999999999993,162.86906275 406.79999999999995,505.8690627500001" fill="none" stroke="hsl(23, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
176
|
+
</g>
|
|
177
|
+
<g>
|
|
178
|
+
<polyline data-points="8.9,14.5 11.1,12.7" data-type="line" data-label="" points="114.19999999999993,190.86906275 268.19999999999993,316.8690627500001" fill="none" stroke="hsl(23, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
179
|
+
</g>
|
|
180
|
+
<g>
|
|
181
|
+
<polyline data-points="8.9,14.5 13.08,10" data-type="line" data-label="" points="114.19999999999993,190.86906275 406.79999999999995,505.8690627500001" fill="none" stroke="hsl(23, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
182
|
+
</g>
|
|
183
|
+
<g>
|
|
184
|
+
<polyline data-points="11.1,12.7 13.08,10" data-type="line" data-label="" points="268.19999999999993,316.8690627500001 406.79999999999995,505.8690627500001" fill="none" stroke="hsl(23, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
185
|
+
</g>
|
|
186
|
+
<g>
|
|
187
|
+
<polyline data-points="11.1,15.5 14.92,10" data-type="line" data-label="" points="268.19999999999993,120.86906275000001 535.6000000000001,505.8690627500001" fill="none" stroke="hsl(50, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
188
|
+
</g>
|
|
189
|
+
<g>
|
|
190
|
+
<polyline data-points="8.9,14.7 8.600000000000001,14.7 8.600000000000001,15.1 8.9,15.1" data-type="line" data-label="" points="114.19999999999993,176.86906275 93.20000000000005,176.86906275 93.20000000000005,148.86906275 114.19999999999993,148.86906275" fill="none" stroke="purple" stroke-width="1" />
|
|
191
|
+
</g>
|
|
192
|
+
<g>
|
|
193
|
+
<polyline data-points="8.9,14.5 8.8,14.5 8.8,14.9 8.9,14.9" data-type="line" data-label="" points="114.19999999999993,190.86906275 107.20000000000005,190.86906275 107.20000000000005,162.86906275 114.19999999999993,162.86906275" fill="none" stroke="purple" stroke-width="1" />
|
|
194
|
+
</g>
|
|
195
|
+
<g>
|
|
196
|
+
<polyline data-points="11.1,12.7 12.09,12.7 12.09,10 13.08,10" data-type="line" data-label="" points="268.19999999999993,316.8690627500001 337.5,316.8690627500001 337.5,505.8690627500001 406.79999999999995,505.8690627500001" fill="none" stroke="purple" stroke-width="1" />
|
|
197
|
+
</g>
|
|
198
|
+
<g>
|
|
199
|
+
<polyline data-points="11.1,15.5 15.12,15.5 15.12,10 14.92,10" data-type="line" data-label="" points="268.19999999999993,120.86906275000001 549.5999999999999,120.86906275000001 549.5999999999999,505.8690627500001 535.6000000000001,505.8690627500001" fill="none" stroke="purple" stroke-width="1" />
|
|
200
|
+
</g>
|
|
201
|
+
<g>
|
|
202
|
+
<rect data-type="rect" data-label="schematic_component_0" data-x="10" data-y="14" x="114.19999999999993" y="106.86906275000001" width="154" height="238" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.014285714285714284" />
|
|
203
|
+
</g>
|
|
204
|
+
<g>
|
|
205
|
+
<rect data-type="rect" data-label="schematic_component_1" data-x="14" data-y="10" x="406.79999999999995" y="478.60718825000015" width="128.80000000000018" height="54.52374899999984" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.014285714285714284" />
|
|
206
|
+
</g>
|
|
207
|
+
<g>
|
|
208
|
+
<rect data-type="rect" data-label="netId: GND
|
|
209
|
+
globalConnNetId: connectivity_net0" data-x="8.359900000000001" data-y="14.7" x="59.593000000000075" y="169.86906275" width="33.60000000000002" height="14" fill="#00000066" stroke="#000000" stroke-width="0.014285714285714284" />
|
|
210
|
+
</g>
|
|
211
|
+
<g>
|
|
212
|
+
<rect data-type="rect" data-label="netId: GND
|
|
213
|
+
globalConnNetId: connectivity_net0" data-x="11.341" data-y="13.3" x="268.26999999999987" y="267.86906275" width="33.600000000000136" height="14" fill="#00000066" stroke="#000000" stroke-width="0.014285714285714284" />
|
|
214
|
+
</g>
|
|
215
|
+
<g>
|
|
216
|
+
<rect data-type="rect" data-label="netId: VCC_3V3
|
|
217
|
+
globalConnNetId: connectivity_net1" data-x="8.32" data-y="14.5" x="39.999999999999886" y="183.86906275" width="67.20000000000016" height="14" fill="#ef444466" stroke="#ef4444" stroke-width="0.014285714285714284" />
|
|
218
|
+
</g>
|
|
219
|
+
<g>
|
|
220
|
+
<rect data-type="rect" data-label="netId: VCC_3V3
|
|
221
|
+
globalConnNetId: connectivity_net1" data-x="11.7" data-y="13.18" x="303.19999999999993" y="249.66906275000008" width="14" height="67.20000000000005" fill="#ef444466" stroke="#ef4444" stroke-width="0.014285714285714284" />
|
|
222
|
+
</g>
|
|
223
|
+
<g>
|
|
224
|
+
<rect data-type="rect" data-label="netId: FAULT
|
|
225
|
+
globalConnNetId: connectivity_net2" data-x="15.479999999999999" data-y="15.5" x="549.5999999999999" y="113.86906275000001" width="50.40000000000009" height="14" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.014285714285714284" />
|
|
226
|
+
</g>
|
|
227
|
+
<g id="crosshair" style="display: none">
|
|
228
|
+
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
229
|
+
<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>
|
|
230
|
+
</g>
|
|
231
|
+
<script>
|
|
232
|
+
<![CDATA[
|
|
233
|
+
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
234
|
+
const svg = e.currentTarget;
|
|
235
|
+
const rect = svg.getBoundingClientRect();
|
|
236
|
+
const x = e.clientX - rect.left;
|
|
237
|
+
const y = e.clientY - rect.top;
|
|
238
|
+
const crosshair = svg.getElementById('crosshair');
|
|
239
|
+
const h = svg.getElementById('crosshair-h');
|
|
240
|
+
const v = svg.getElementById('crosshair-v');
|
|
241
|
+
const coords = svg.getElementById('coordinates');
|
|
242
|
+
|
|
243
|
+
crosshair.style.display = 'block';
|
|
244
|
+
h.setAttribute('x1', '0');
|
|
245
|
+
h.setAttribute('x2', '640');
|
|
246
|
+
h.setAttribute('y1', y);
|
|
247
|
+
h.setAttribute('y2', y);
|
|
248
|
+
v.setAttribute('x1', x);
|
|
249
|
+
v.setAttribute('x2', x);
|
|
250
|
+
v.setAttribute('y1', '0');
|
|
251
|
+
v.setAttribute('y2', '640');
|
|
252
|
+
|
|
253
|
+
// Calculate real coordinates using inverse transformation
|
|
254
|
+
const matrix = {
|
|
255
|
+
"a": 70.00000000000001,
|
|
256
|
+
"c": 0,
|
|
257
|
+
"e": -508.8000000000002,
|
|
258
|
+
"b": 0,
|
|
259
|
+
"d": -70.00000000000001,
|
|
260
|
+
"f": 1205.8690627500002
|
|
261
|
+
};
|
|
262
|
+
// Manually invert and apply the affine transform
|
|
263
|
+
// Since we only use translate and scale, we can directly compute:
|
|
264
|
+
// x' = (x - tx) / sx
|
|
265
|
+
// y' = (y - ty) / sy
|
|
266
|
+
const sx = matrix.a;
|
|
267
|
+
const sy = matrix.d;
|
|
268
|
+
const tx = matrix.e;
|
|
269
|
+
const ty = matrix.f;
|
|
270
|
+
const realPoint = {
|
|
271
|
+
x: (x - tx) / sx,
|
|
272
|
+
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
276
|
+
coords.setAttribute('x', (x + 5).toString());
|
|
277
|
+
coords.setAttribute('y', (y - 5).toString());
|
|
278
|
+
});
|
|
279
|
+
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
280
|
+
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
281
|
+
});
|
|
282
|
+
]]>
|
|
283
|
+
</script>
|
|
284
|
+
</svg>
|