@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.
- 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 +30 -22
- package/lib/solvers/Example28Solver/reroute.ts +10 -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-20260706T213649Z/__snapshots__/bug-report-20260706T213649Z.snap.svg +386 -0
- package/tests/bug-reports/bug-report-20260706T213649Z/bug-report-20260706T213649Z.json +1471 -0
- package/tests/bug-reports/bug-report-20260706T213649Z/bug-report-20260706T213649Z.test.ts +12 -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 +252 -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 +124 -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 +73 -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 +154 -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 +67 -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 +114 -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 +23 -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 -189
- 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 +88 -0
- package/tests/repros/__snapshots__/repro-atmega328p-missing-gnd-netlabel.snap.svg +118 -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
|
@@ -1,406 +1,108 @@
|
|
|
1
|
-
<svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
x-" data-x="-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
x
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
x+" data-x="2.7" data-y="2.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
x
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
x
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
x-" data-x="
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
x-" data-x="
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
x
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
x-" data-x="
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
x-" data-x="-3.55" data-y="-3" cx="115.60439560439559" cy="479.3406593406594" r="3" fill="hsl(121, 100%, 50%, 0.8)" />
|
|
86
|
-
</g>
|
|
87
|
-
<g>
|
|
88
|
-
<circle data-type="point" data-label="C1.2
|
|
89
|
-
x+" data-x="-2.45" data-y="-3" cx="176.04395604395603" cy="479.3406593406594" r="3" fill="hsl(122, 100%, 50%, 0.8)" />
|
|
90
|
-
</g>
|
|
91
|
-
<g>
|
|
92
|
-
<circle data-type="point" data-label="R3.1
|
|
93
|
-
x-" data-x="1.95" data-y="-1.5" cx="417.80219780219784" cy="396.92307692307696" r="3" fill="hsl(348, 100%, 50%, 0.8)" />
|
|
94
|
-
</g>
|
|
95
|
-
<g>
|
|
96
|
-
<circle data-type="point" data-label="R3.2
|
|
97
|
-
x+" data-x="3.05" data-y="-1.5" cx="478.24175824175825" cy="396.92307692307696" r="3" fill="hsl(349, 100%, 50%, 0.8)" />
|
|
98
|
-
</g>
|
|
99
|
-
<g>
|
|
100
|
-
<circle data-type="point" data-label="D1.1
|
|
101
|
-
x-" data-x="3.935" data-y="-1.5" cx="526.868131868132" cy="396.92307692307696" r="3" fill="hsl(32, 100%, 50%, 0.8)" />
|
|
102
|
-
</g>
|
|
103
|
-
<g>
|
|
104
|
-
<circle data-type="point" data-label="D1.2
|
|
105
|
-
x+" data-x="5.0649999999999995" data-y="-1.5" cx="588.9560439560439" cy="396.92307692307696" r="3" fill="hsl(33, 100%, 50%, 0.8)" />
|
|
106
|
-
</g>
|
|
107
|
-
<g>
|
|
108
|
-
<circle data-type="point" data-label="anchorPoint
|
|
109
|
-
orientation: x-" data-x="-4.475" data-y="2.9699999999999998" cx="64.78021978021977" cy="151.31868131868134" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
110
|
-
</g>
|
|
111
|
-
<g>
|
|
112
|
-
<circle data-type="point" data-label="anchorPoint
|
|
113
|
-
orientation: x-" data-x="-2.38" data-y="3" cx="179.89010989010987" cy="149.67032967032966" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
114
|
-
</g>
|
|
115
|
-
<g>
|
|
116
|
-
<circle data-type="point" data-label="anchorPoint
|
|
117
|
-
orientation: y-" data-x="-2.9699999999999998" data-y="2.8" cx="147.47252747252747" cy="160.65934065934067" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
118
|
-
</g>
|
|
119
|
-
<g>
|
|
120
|
-
<circle data-type="point" data-label="anchorPoint
|
|
121
|
-
orientation: y-" data-x="4.75" data-y="1.5" cx="571.6483516483518" cy="232.08791208791212" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
122
|
-
</g>
|
|
123
|
-
<g>
|
|
124
|
-
<circle data-type="point" data-label="anchorPoint
|
|
125
|
-
orientation: y-" data-x="-2.349" data-y="-3.4509999999999996" cx="181.59340659340657" cy="504.1208791208792" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
126
|
-
</g>
|
|
127
|
-
<g>
|
|
128
|
-
<circle data-type="point" data-label="anchorPoint
|
|
129
|
-
orientation: y-" data-x="5.1659999999999995" data-y="-1.851" cx="594.5054945054945" cy="416.20879120879124" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
130
|
-
</g>
|
|
131
|
-
<g>
|
|
132
|
-
<circle data-type="point" data-label="anchorPoint
|
|
133
|
-
orientation: y+" data-x="-1.5190000000000001" data-y="3.251" cx="227.1978021978022" cy="135.87912087912088" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
134
|
-
</g>
|
|
135
|
-
<g>
|
|
136
|
-
<circle data-type="point" data-label="anchorPoint
|
|
137
|
-
orientation: y+" data-x="-3.651" data-y="1.9509999999999998" cx="110.05494505494505" cy="207.30769230769232" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
138
|
-
</g>
|
|
139
|
-
<g>
|
|
140
|
-
<circle data-type="point" data-label="anchorPoint
|
|
141
|
-
orientation: y+" data-x="0.09999999999999981" data-y="3.2" cx="316.15384615384613" cy="138.68131868131866" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
142
|
-
</g>
|
|
143
|
-
<g>
|
|
144
|
-
<circle data-type="point" data-label="anchorPoint
|
|
145
|
-
orientation: y+" data-x="-4.651000000000001" data-y="-1.2990000000000002" cx="55.109890109890046" cy="385.87912087912093" 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="0.09999999999999981" data-y="2.4" cx="316.15384615384613" cy="182.63736263736266" 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="-1.25" data-y="-1.5" cx="241.97802197802196" cy="396.92307692307696" 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="2.7" data-y="2.6" cx="459.0109890109891" cy="171.64835164835165" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
158
|
-
</g>
|
|
159
|
-
<g>
|
|
160
|
-
<circle data-type="point" data-label="anchorPoint
|
|
161
|
-
orientation: x-" data-x="1.95" data-y="-1.5" cx="417.80219780219784" cy="396.92307692307696" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
162
|
-
</g>
|
|
163
|
-
<g>
|
|
164
|
-
<circle data-type="point" data-label="anchorPoint
|
|
165
|
-
orientation: x-" data-x="0.2999999999999998" data-y="2.6" cx="327.14285714285717" cy="171.64835164835165" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
166
|
-
</g>
|
|
167
|
-
<g>
|
|
168
|
-
<circle data-type="point" data-label="anchorPoint
|
|
169
|
-
orientation: x-" data-x="3.45" data-y="1.5" cx="500.2197802197803" cy="232.08791208791212" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
170
|
-
</g>
|
|
171
|
-
<g>
|
|
172
|
-
<circle data-type="point" data-label="anchorPoint
|
|
173
|
-
orientation: y+" data-x="-3" data-y="-1.5" cx="145.8241758241758" cy="396.92307692307696" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
174
|
-
</g>
|
|
175
|
-
<g>
|
|
176
|
-
<circle data-type="point" data-label="anchorPoint
|
|
177
|
-
orientation: x+" data-x="2.7" data-y="2.4" cx="459.0109890109891" cy="182.63736263736266" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
178
|
-
</g>
|
|
179
|
-
<g>
|
|
180
|
-
<circle data-type="point" data-label="anchorPoint
|
|
181
|
-
orientation: y+" data-x="3.4924999999999997" data-y="-1.5" cx="502.55494505494505" cy="396.92307692307696" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
182
|
-
</g>
|
|
183
|
-
<g>
|
|
184
|
-
<polyline data-points="-4.475,2.9699999999999998 -2.38,3" data-type="line" data-label="" points="64.78021978021977,151.31868131868134 179.89010989010987,149.67032967032966" fill="none" stroke="hsl(192, 100%, 50%, 0.8)" stroke-width="1" />
|
|
185
|
-
</g>
|
|
186
|
-
<g>
|
|
187
|
-
<polyline data-points="0.2999999999999998,2.6 3.45,1.5" data-type="line" data-label="" points="327.14285714285717,171.64835164835165 500.2197802197803,232.08791208791212" fill="none" stroke="hsl(120, 100%, 50%, 0.8)" stroke-width="1" />
|
|
188
|
-
</g>
|
|
189
|
-
<g>
|
|
190
|
-
<polyline data-points="0.2999999999999998,2.4 0.2999999999999998,2.2" data-type="line" data-label="" points="327.14285714285717,182.63736263736266 327.14285714285717,193.6263736263736" fill="none" stroke="hsl(192, 100%, 50%, 0.8)" stroke-width="1" />
|
|
191
|
-
</g>
|
|
192
|
-
<g>
|
|
193
|
-
<polyline data-points="3.05,-1.5 3.935,-1.5" data-type="line" data-label="" points="478.24175824175825,396.92307692307696 526.868131868132,396.92307692307696" fill="none" stroke="hsl(344, 100%, 50%, 0.8)" stroke-width="1" />
|
|
194
|
-
</g>
|
|
195
|
-
<g>
|
|
196
|
-
<polyline data-points="-3.525,2.9699999999999998 -2.45,1.5" data-type="line" data-label="" points="116.97802197802196,151.31868131868134 176.04395604395603,232.08791208791212" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
197
|
-
</g>
|
|
198
|
-
<g>
|
|
199
|
-
<polyline data-points="2.7,2.2 4.55,1.5" data-type="line" data-label="" points="459.0109890109891,193.6263736263736 560.6593406593407,232.08791208791212" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
200
|
-
</g>
|
|
201
|
-
<g>
|
|
202
|
-
<polyline data-points="-1.62,3 -3.55,1.5" data-type="line" data-label="" points="221.64835164835165,149.67032967032966 115.60439560439559,232.08791208791212" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
203
|
-
</g>
|
|
204
|
-
<g>
|
|
205
|
-
<polyline data-points="0.2999999999999998,2.8 2.7,2.8" data-type="line" data-label="" points="327.14285714285717,160.65934065934067 459.0109890109891,160.65934065934067" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
206
|
-
</g>
|
|
207
|
-
<g>
|
|
208
|
-
<polyline data-points="0.2999999999999998,2.4 0.09999999999999981,2.4 0.09999999999999981,2.2 0.2999999999999998,2.2" data-type="line" data-label="" points="327.14285714285717,182.63736263736266 316.15384615384613,182.63736263736266 316.15384615384613,193.6263736263736 327.14285714285717,193.6263736263736" fill="none" stroke="purple" stroke-width="1" />
|
|
209
|
-
</g>
|
|
210
|
-
<g>
|
|
211
|
-
<polyline data-points="-2.55,-1.5 -3.4499999999999997,-1.5" data-type="line" data-label="" points="170.54945054945054,396.92307692307696 121.09890109890108,396.92307692307696" fill="none" stroke="purple" stroke-width="1" />
|
|
212
|
-
</g>
|
|
213
|
-
<g>
|
|
214
|
-
<polyline data-points="3.05,-1.5 3.935,-1.5" data-type="line" data-label="" points="478.24175824175825,396.92307692307696 526.868131868132,396.92307692307696" fill="none" stroke="purple" stroke-width="1" />
|
|
215
|
-
</g>
|
|
216
|
-
<g>
|
|
217
|
-
<polyline data-points="-1.4500000000000002,-1.5 -1.25,-1.5 -1.25,-2.25 -3.75,-2.25 -3.75,-3 -3.55,-3" data-type="line" data-label="" points="230.98901098901098,396.92307692307696 241.97802197802196,396.92307692307696 241.97802197802196,438.1318681318682 104.61538461538458,438.1318681318682 104.61538461538458,479.3406593406594 115.60439560439559,479.3406593406594" fill="none" stroke="purple" stroke-width="1" />
|
|
218
|
-
</g>
|
|
219
|
-
<g>
|
|
220
|
-
<polyline data-points="2.7,2.2 4.75,2.2 4.75,1.5 4.55,1.5" data-type="line" data-label="" points="459.0109890109891,193.6263736263736 571.6483516483518,193.6263736263736 571.6483516483518,232.08791208791212 560.6593406593407,232.08791208791212" fill="none" stroke="purple" stroke-width="1" />
|
|
221
|
-
</g>
|
|
222
|
-
<g>
|
|
223
|
-
<polyline data-points="0.2999999999999998,2.8 0.09999999999999981,2.8 0.09999999999999981,3.2 2.9000000000000004,3.2 2.9000000000000004,2.8 2.7,2.8" data-type="line" data-label="" points="327.14285714285717,160.65934065934067 316.15384615384613,160.65934065934067 316.15384615384613,138.68131868131866 470.00000000000006,138.68131868131866 470.00000000000006,160.65934065934067 459.0109890109891,160.65934065934067" fill="none" stroke="purple" stroke-width="1" />
|
|
224
|
-
</g>
|
|
225
|
-
<g>
|
|
226
|
-
<polyline data-points="-3.525,2.9699999999999998 -3.525,2.8 -2.415,2.8 -2.415,1.5 -2.45,1.5" data-type="line" data-label="" points="116.97802197802196,151.31868131868134 116.97802197802196,160.65934065934067 177.96703296703296,160.65934065934067 177.96703296703296,232.08791208791212 176.04395604395603,232.08791208791212" fill="none" stroke="purple" stroke-width="1" />
|
|
227
|
-
</g>
|
|
228
|
-
<g>
|
|
229
|
-
<polyline data-points="-2.45,-3 -2.349,-3 -2.349,-3.4509999999999996" data-type="line" data-label="" points="176.04395604395603,479.3406593406594 181.59340659340657,479.3406593406594 181.59340659340657,504.1208791208792" fill="none" stroke="purple" stroke-width="1" />
|
|
230
|
-
</g>
|
|
231
|
-
<g>
|
|
232
|
-
<polyline data-points="5.0649999999999995,-1.5 5.1659999999999995,-1.5 5.1659999999999995,-1.851" data-type="line" data-label="" points="588.9560439560439,396.92307692307696 594.5054945054945,396.92307692307696 594.5054945054945,416.20879120879124" fill="none" stroke="purple" stroke-width="1" />
|
|
233
|
-
</g>
|
|
234
|
-
<g>
|
|
235
|
-
<polyline data-points="-1.62,3 -1.5190000000000001,3 -1.5190000000000001,3.251" data-type="line" data-label="" points="221.64835164835165,149.67032967032966 227.1978021978022,149.67032967032966 227.1978021978022,135.87912087912088" fill="none" stroke="purple" stroke-width="1" />
|
|
236
|
-
</g>
|
|
237
|
-
<g>
|
|
238
|
-
<polyline data-points="-3.55,1.5 -3.651,1.5 -3.651,1.9509999999999998" data-type="line" data-label="" points="115.60439560439559,232.08791208791212 110.05494505494505,232.08791208791212 110.05494505494505,207.30769230769232" fill="none" stroke="purple" stroke-width="1" />
|
|
239
|
-
</g>
|
|
240
|
-
<g>
|
|
241
|
-
<polyline data-points="-4.550000000000001,-1.5 -4.651000000000001,-1.5 -4.651000000000001,-1.2990000000000002" data-type="line" data-label="" points="60.659340659340586,396.92307692307696 55.109890109890046,396.92307692307696 55.109890109890046,385.87912087912093" fill="none" stroke="purple" stroke-width="1" />
|
|
242
|
-
</g>
|
|
243
|
-
<g>
|
|
244
|
-
<rect data-type="rect" data-label="schematic_component_0" data-x="-4" data-y="3" x="64.78021978021977" y="141.7032967032967" width="52.19780219780219" height="15.934065934065927" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
245
|
-
</g>
|
|
246
|
-
<g>
|
|
247
|
-
<rect data-type="rect" data-label="schematic_component_1" data-x="-2" data-y="3" x="179.89010989010987" y="135.93406593406593" width="41.75824175824178" height="27.472527472527474" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
248
|
-
</g>
|
|
249
|
-
<g>
|
|
250
|
-
<rect data-type="rect" data-label="schematic_component_2" data-x="-3" data-y="1.5" x="115.60439560439559" y="209.01098901098902" width="60.43956043956044" height="46.15384615384616" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
251
|
-
</g>
|
|
252
|
-
<g>
|
|
253
|
-
<rect data-type="rect" data-label="schematic_component_3" data-x="1.5" data-y="2.5" x="327.14285714285717" y="149.67032967032966" width="131.8681318681319" height="54.94505494505498" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
254
|
-
</g>
|
|
255
|
-
<g>
|
|
256
|
-
<rect data-type="rect" data-label="schematic_component_4" data-x="4" data-y="1.5" x="500.2197802197803" y="209.01098901098902" width="60.43956043956041" height="46.15384615384616" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
257
|
-
</g>
|
|
258
|
-
<g>
|
|
259
|
-
<rect data-type="rect" data-label="schematic_component_5" data-x="-4" data-y="-1.5" x="60.659340659340586" y="386.2387170329671" width="60.439560439560495" height="21.36871978021975" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
260
|
-
</g>
|
|
261
|
-
<g>
|
|
262
|
-
<rect data-type="rect" data-label="schematic_component_6" data-x="-2" data-y="-1.5" x="170.54945054945054" y="386.2387170329671" width="60.43956043956044" height="21.36871978021975" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
263
|
-
</g>
|
|
264
|
-
<g>
|
|
265
|
-
<rect data-type="rect" data-label="schematic_component_7" data-x="-3" data-y="-3" x="115.60439560439559" y="456.2637362637363" width="60.43956043956044" height="46.15384615384619" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
266
|
-
</g>
|
|
267
|
-
<g>
|
|
268
|
-
<rect data-type="rect" data-label="schematic_component_8" data-x="2.5" data-y="-1.5" x="417.80219780219784" y="386.2387170329671" width="60.43956043956041" height="21.36871978021975" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
269
|
-
</g>
|
|
270
|
-
<g>
|
|
271
|
-
<rect data-type="rect" data-label="schematic_component_9" data-x="4.5" data-y="-1.5" x="526.868131868132" y="379.06593406593413" width="62.087912087911945" height="35.71428571428572" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997" />
|
|
272
|
-
</g>
|
|
273
|
-
<g>
|
|
274
|
-
<rect data-type="rect" data-label="netId: .B1 > .pin1 to .SW1 > .pin1
|
|
275
|
-
globalConnNetId: connectivity_net0" data-x="-4.701" data-y="2.9699999999999998" x="40" y="145.82417582417582" width="24.725274725274687" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
276
|
-
</g>
|
|
277
|
-
<g>
|
|
278
|
-
<rect data-type="rect" data-label="netId: .B1 > .pin1 to .SW1 > .pin1
|
|
279
|
-
globalConnNetId: connectivity_net0" data-x="-2.606" data-y="3" x="155.1098901098901" y="144.17582417582418" width="24.725274725274744" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
280
|
-
</g>
|
|
281
|
-
<g>
|
|
282
|
-
<rect data-type="rect" data-label="netId: GND
|
|
283
|
-
globalConnNetId: connectivity_net6" data-x="-2.9699999999999998" data-y="2.65" x="141.97802197802196" y="160.65934065934067" width="10.989010989011007" height="16.483516483516468" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997" />
|
|
284
|
-
</g>
|
|
285
|
-
<g>
|
|
286
|
-
<rect data-type="rect" data-label="netId: GND
|
|
287
|
-
globalConnNetId: connectivity_net6" data-x="4.75" data-y="1.35" x="566.1538461538462" y="232.08791208791212" width="10.989010989010922" height="16.483516483516468" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997" />
|
|
288
|
-
</g>
|
|
289
|
-
<g>
|
|
290
|
-
<rect data-type="rect" data-label="netId: GND
|
|
291
|
-
globalConnNetId: connectivity_net6" data-x="-2.349" data-y="-3.6009999999999995" x="176.09890109890108" y="504.1208791208792" width="10.989010989010978" height="16.483516483516496" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997" />
|
|
292
|
-
</g>
|
|
293
|
-
<g>
|
|
294
|
-
<rect data-type="rect" data-label="netId: GND
|
|
295
|
-
globalConnNetId: connectivity_net6" data-x="5.1659999999999995" data-y="-2.001" x="589.0109890109891" y="416.20879120879124" width="10.989010989010922" height="16.483516483516496" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997" />
|
|
296
|
-
</g>
|
|
297
|
-
<g>
|
|
298
|
-
<rect data-type="rect" data-label="netId: VCC
|
|
299
|
-
globalConnNetId: connectivity_net7" data-x="-1.5190000000000001" data-y="3.401" x="221.7032967032967" y="119.39560439560441" width="10.989010989010978" height="16.483516483516468" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997" />
|
|
300
|
-
</g>
|
|
301
|
-
<g>
|
|
302
|
-
<rect data-type="rect" data-label="netId: VCC
|
|
303
|
-
globalConnNetId: connectivity_net7" data-x="-3.651" data-y="2.101" x="104.56043956043953" y="190.82417582417582" width="10.989010989011007" height="16.483516483516496" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997" />
|
|
304
|
-
</g>
|
|
305
|
-
<g>
|
|
306
|
-
<rect data-type="rect" data-label="netId: VCC
|
|
307
|
-
globalConnNetId: connectivity_net7" data-x="0.09999999999999981" data-y="3.35" x="310.65934065934067" y="122.19780219780219" width="10.989010989010978" height="16.483516483516468" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997" />
|
|
308
|
-
</g>
|
|
309
|
-
<g>
|
|
310
|
-
<rect data-type="rect" data-label="netId: VCC
|
|
311
|
-
globalConnNetId: connectivity_net7" data-x="-4.651000000000001" data-y="-1.1490000000000002" x="49.615384615384585" y="369.39560439560444" width="10.989010989010922" height="16.483516483516496" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997" />
|
|
312
|
-
</g>
|
|
313
|
-
<g>
|
|
314
|
-
<rect data-type="rect" data-label="netId: .U1 > .THRES to .C1 > .pin1
|
|
315
|
-
globalConnNetId: connectivity_net2" data-x="-0.1250000000000002" data-y="2.4" x="291.42857142857144" y="177.14285714285714" width="24.725274725274687" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
316
|
-
</g>
|
|
317
|
-
<g>
|
|
318
|
-
<rect data-type="rect" data-label="netId: .R2 > .pin2 to .U1 > .THRES
|
|
319
|
-
globalConnNetId: connectivity_net2" data-x="-1.25" data-y="-1.275" x="236.4835164835165" y="372.1978021978022" width="10.989010989010978" height="24.725274725274744" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
320
|
-
</g>
|
|
321
|
-
<g>
|
|
322
|
-
<rect data-type="rect" data-label="netId: .U1 > .OUT to .R3 > .pin1
|
|
323
|
-
globalConnNetId: connectivity_net4" data-x="2.926" data-y="2.6" x="459.06593406593413" y="166.15384615384616" width="24.725274725274744" height="10.989010989010978" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
324
|
-
</g>
|
|
325
|
-
<g>
|
|
326
|
-
<rect data-type="rect" data-label="netId: .U1 > .OUT to .R3 > .pin1
|
|
327
|
-
globalConnNetId: connectivity_net4" data-x="1.724" data-y="-1.5" x="393.02197802197804" y="391.42857142857144" width="24.725274725274744" height="10.989010989011035" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
328
|
-
</g>
|
|
329
|
-
<g>
|
|
330
|
-
<rect data-type="rect" data-label="netId: .U1 > .CTRL to .C2 > .pin1
|
|
331
|
-
globalConnNetId: connectivity_net1" data-x="0.07399999999999982" data-y="2.6" x="302.3626373626374" y="166.15384615384616" width="24.725274725274744" height="10.989010989010978" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
332
|
-
</g>
|
|
333
|
-
<g>
|
|
334
|
-
<rect data-type="rect" data-label="netId: .U1 > .CTRL to .C2 > .pin1
|
|
335
|
-
globalConnNetId: connectivity_net1" data-x="3.224" data-y="1.5" x="475.4395604395605" y="226.5934065934066" width="24.725274725274744" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
336
|
-
</g>
|
|
337
|
-
<g>
|
|
338
|
-
<rect data-type="rect" data-label="netId: .U1 > .DISCH to .R2 > .pin1
|
|
339
|
-
globalConnNetId: connectivity_net3" data-x="-3" data-y="-1.275" x="140.3296703296703" y="372.1978021978022" width="10.989010989011007" height="24.725274725274744" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
340
|
-
</g>
|
|
341
|
-
<g>
|
|
342
|
-
<rect data-type="rect" data-label="netId: .U1 > .DISCH to .R2 > .pin1
|
|
343
|
-
globalConnNetId: connectivity_net3" data-x="2.926" data-y="2.4" x="459.06593406593413" y="177.14285714285714" width="24.725274725274744" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
344
|
-
</g>
|
|
345
|
-
<g>
|
|
346
|
-
<rect data-type="rect" data-label="netId: .R3 > .pin2 to .D1 > .pin1
|
|
347
|
-
globalConnNetId: connectivity_net5" data-x="3.4924999999999997" data-y="-1.275" x="497.0604395604396" y="372.1978021978022" width="10.989010989011035" height="24.725274725274744" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997" />
|
|
348
|
-
</g>
|
|
349
|
-
<g id="crosshair" style="display: none">
|
|
350
|
-
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
351
|
-
<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>
|
|
352
|
-
</g>
|
|
353
|
-
<script>
|
|
354
|
-
<![CDATA[
|
|
355
|
-
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
356
|
-
const svg = e.currentTarget;
|
|
357
|
-
const rect = svg.getBoundingClientRect();
|
|
358
|
-
const x = e.clientX - rect.left;
|
|
359
|
-
const y = e.clientY - rect.top;
|
|
360
|
-
const crosshair = svg.getElementById('crosshair');
|
|
361
|
-
const h = svg.getElementById('crosshair-h');
|
|
362
|
-
const v = svg.getElementById('crosshair-v');
|
|
363
|
-
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="-4.475,2.9699999999999998 -2.38,3" data-type="line" data-label="" points="64.78021978021977,151.31868131868134 179.89010989010987,149.67032967032966" fill="none" stroke="hsl(192, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="0.2999999999999998,2.6 3.45,1.5" data-type="line" data-label="" points="327.14285714285717,171.64835164835165 500.2197802197803,232.08791208791212" fill="none" stroke="hsl(120, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="0.2999999999999998,2.4 0.2999999999999998,2.2" data-type="line" data-label="" points="327.14285714285717,182.63736263736266 327.14285714285717,193.6263736263736" fill="none" stroke="hsl(192, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="3.05,-1.5 3.935,-1.5" data-type="line" data-label="" points="478.24175824175825,396.92307692307696 526.868131868132,396.92307692307696" fill="none" stroke="hsl(344, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-3.525,2.9699999999999998 -2.45,1.5" data-type="line" data-label="" points="116.97802197802196,151.31868131868134 176.04395604395603,232.08791208791212" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="2.7,2.2 4.55,1.5" data-type="line" data-label="" points="459.0109890109891,193.6263736263736 560.6593406593407,232.08791208791212" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="-1.62,3 -3.55,1.5" data-type="line" data-label="" points="221.64835164835165,149.67032967032966 115.60439560439559,232.08791208791212" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="0.2999999999999998,2.8 2.7,2.8" data-type="line" data-label="" points="327.14285714285717,160.65934065934067 459.0109890109891,160.65934065934067" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="0.2999999999999998,2.4 0.09999999999999981,2.4 0.09999999999999981,2.2 0.2999999999999998,2.2" data-type="line" data-label="" points="327.14285714285717,182.63736263736266 316.15384615384613,182.63736263736266 316.15384615384613,193.6263736263736 327.14285714285717,193.6263736263736" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-2.55,-1.5 -3.4499999999999997,-1.5" data-type="line" data-label="" points="170.54945054945054,396.92307692307696 121.09890109890108,396.92307692307696" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="3.05,-1.5 3.935,-1.5" data-type="line" data-label="" points="478.24175824175825,396.92307692307696 526.868131868132,396.92307692307696" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-1.4500000000000002,-1.5 -1.25,-1.5 -1.25,-2.25 -3.75,-2.25 -3.75,-3 -3.55,-3" data-type="line" data-label="" points="230.98901098901098,396.92307692307696 241.97802197802196,396.92307692307696 241.97802197802196,438.1318681318682 104.61538461538458,438.1318681318682 104.61538461538458,479.3406593406594 115.60439560439559,479.3406593406594" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="2.7,2.2 4.75,2.2 4.75,1.5 4.55,1.5" data-type="line" data-label="" points="459.0109890109891,193.6263736263736 571.6483516483518,193.6263736263736 571.6483516483518,232.08791208791212 560.6593406593407,232.08791208791212" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="0.2999999999999998,2.8 0.09999999999999981,2.8 0.09999999999999981,3.2 2.9000000000000004,3.2 2.9000000000000004,2.8 2.7,2.8" data-type="line" data-label="" points="327.14285714285717,160.65934065934067 316.15384615384613,160.65934065934067 316.15384615384613,138.68131868131866 470.00000000000006,138.68131868131866 470.00000000000006,160.65934065934067 459.0109890109891,160.65934065934067" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-3.525,2.9699999999999998 -2.415,2.9699999999999998 -2.415,1.5 -2.45,1.5" data-type="line" data-label="" points="116.97802197802196,151.31868131868134 177.96703296703296,151.31868131868134 177.96703296703296,232.08791208791212 176.04395604395603,232.08791208791212" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-2.45,-3 -2.349,-3 -2.349,-3.4509999999999996" data-type="line" data-label="" points="176.04395604395603,479.3406593406594 181.59340659340657,479.3406593406594 181.59340659340657,504.1208791208792" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="5.0649999999999995,-1.5 5.1659999999999995,-1.5 5.1659999999999995,-1.851" data-type="line" data-label="" points="588.9560439560439,396.92307692307696 594.5054945054945,396.92307692307696 594.5054945054945,416.20879120879124" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-1.62,3 -1.5190000000000001,3 -1.5190000000000001,3.251" data-type="line" data-label="" points="221.64835164835165,149.67032967032966 227.1978021978022,149.67032967032966 227.1978021978022,135.87912087912088" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-3.55,1.5 -3.651,1.5 -3.651,1.9509999999999998" data-type="line" data-label="" points="115.60439560439559,232.08791208791212 110.05494505494505,232.08791208791212 110.05494505494505,207.30769230769232" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-4.550000000000001,-1.5 -4.651000000000001,-1.5 -4.651000000000001,-1.2990000000000002" data-type="line" data-label="" points="60.659340659340586,396.92307692307696 55.109890109890046,396.92307692307696 55.109890109890046,385.87912087912093" fill="none" stroke="purple" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="-4" data-y="3" x="64.78021978021975" y="141.7032967032967" width="52.19780219780219" height="15.934065934065927" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="-2" data-y="3" x="179.8901098901099" y="135.93406593406593" width="41.75824175824178" height="27.472527472527474" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_2" data-x="-3" data-y="1.5" x="115.60439560439558" y="209.01098901098902" width="60.43956043956044" height="46.15384615384616" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_3" data-x="1.5" data-y="2.5" x="327.1428571428571" y="149.67032967032964" width="131.8681318681319" height="54.94505494505498" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_4" data-x="4" data-y="1.5" x="500.2197802197803" y="209.01098901098902" width="60.43956043956041" height="46.15384615384616" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_5" data-x="-4" data-y="-1.5" x="60.6593406593406" y="386.2387170329671" width="60.439560439560495" height="21.36871978021975" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_6" data-x="-2" data-y="-1.5" x="170.54945054945057" y="386.2387170329671" width="60.43956043956044" height="21.36871978021975" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_7" data-x="-3" data-y="-3" x="115.60439560439558" y="456.2637362637363" width="60.43956043956044" height="46.15384615384619" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_8" data-x="2.5" data-y="-1.5" x="417.80219780219784" y="386.2387170329671" width="60.43956043956041" height="21.36871978021975" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="schematic_component_9" data-x="4.5" data-y="-1.5" x="526.868131868132" y="379.06593406593413" width="62.087912087911945" height="35.71428571428572" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .B1 > .pin1 to .SW1 > .pin1
|
|
2
|
+
globalConnNetId: connectivity_net0" data-x="-4.701" data-y="2.9699999999999998" x="40.00000000000003" y="145.82417582417582" width="24.725274725274687" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .B1 > .pin1 to .SW1 > .pin1
|
|
3
|
+
globalConnNetId: connectivity_net0" data-x="-2.606" data-y="3" x="155.1098901098901" y="144.17582417582418" width="24.725274725274744" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: GND
|
|
4
|
+
globalConnNetId: connectivity_net6" data-x="-2.9699999999999998" data-y="2.82" x="141.97802197802196" y="151.31868131868134" width="10.989010989011007" height="16.483516483516468" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: GND
|
|
5
|
+
globalConnNetId: connectivity_net6" data-x="4.75" data-y="1.35" x="566.1538461538463" y="232.08791208791212" width="10.989010989010922" height="16.483516483516468" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: GND
|
|
6
|
+
globalConnNetId: connectivity_net6" data-x="-2.349" data-y="-3.6009999999999995" x="176.09890109890108" y="504.1208791208792" width="10.989010989010978" height="16.483516483516496" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: GND
|
|
7
|
+
globalConnNetId: connectivity_net6" data-x="5.1659999999999995" data-y="-2.001" x="589.0109890109891" y="416.20879120879124" width="10.989010989010922" height="16.483516483516496" fill="#00000066" stroke="#000000" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: VCC
|
|
8
|
+
globalConnNetId: connectivity_net7" data-x="-1.5190000000000001" data-y="3.401" x="221.7032967032967" y="119.39560439560442" width="10.989010989010978" height="16.483516483516468" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: VCC
|
|
9
|
+
globalConnNetId: connectivity_net7" data-x="-3.651" data-y="2.101" x="104.56043956043955" y="190.82417582417582" width="10.989010989011007" height="16.483516483516496" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: VCC
|
|
10
|
+
globalConnNetId: connectivity_net7" data-x="0.09999999999999981" data-y="3.35" x="310.6593406593406" y="122.1978021978022" width="10.989010989010978" height="16.483516483516468" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: VCC
|
|
11
|
+
globalConnNetId: connectivity_net7" data-x="-4.651000000000001" data-y="-1.1490000000000002" x="49.615384615384585" y="369.39560439560444" width="10.989010989010922" height="16.483516483516496" fill="#ef444466" stroke="#ef4444" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .THRES to .C1 > .pin1
|
|
12
|
+
globalConnNetId: connectivity_net2" data-x="-0.1250000000000002" data-y="2.4" x="291.42857142857144" y="177.14285714285717" width="24.725274725274687" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .R2 > .pin2 to .U1 > .THRES
|
|
13
|
+
globalConnNetId: connectivity_net2" data-x="-1.25" data-y="-1.275" x="236.48351648351647" y="372.1978021978022" width="10.989010989010978" height="24.725274725274744" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .OUT to .R3 > .pin1
|
|
14
|
+
globalConnNetId: connectivity_net4" data-x="2.926" data-y="2.6" x="459.0659340659341" y="166.15384615384616" width="24.725274725274744" height="10.989010989010978" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .OUT to .R3 > .pin1
|
|
15
|
+
globalConnNetId: connectivity_net4" data-x="1.724" data-y="-1.5" x="393.02197802197804" y="391.42857142857144" width="24.725274725274744" height="10.989010989011035" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .CTRL to .C2 > .pin1
|
|
16
|
+
globalConnNetId: connectivity_net1" data-x="0.07399999999999982" data-y="2.6" x="302.3626373626374" y="166.15384615384616" width="24.725274725274744" height="10.989010989010978" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .CTRL to .C2 > .pin1
|
|
17
|
+
globalConnNetId: connectivity_net1" data-x="3.224" data-y="1.5" x="475.43956043956047" y="226.5934065934066" width="24.725274725274744" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .DISCH to .R2 > .pin1
|
|
18
|
+
globalConnNetId: connectivity_net3" data-x="-3" data-y="-1.275" x="140.3296703296703" y="372.1978021978022" width="10.989010989011007" height="24.725274725274744" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .U1 > .DISCH to .R2 > .pin1
|
|
19
|
+
globalConnNetId: connectivity_net3" data-x="2.926" data-y="2.4" x="459.0659340659341" y="177.14285714285717" width="24.725274725274744" height="10.989010989011007" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><rect data-type="rect" data-label="netId: .R3 > .pin2 to .D1 > .pin1
|
|
20
|
+
globalConnNetId: connectivity_net5" data-x="3.4924999999999997" data-y="-1.275" x="497.06043956043953" y="372.1978021978022" width="10.989010989011035" height="24.725274725274744" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018199999999999997"/></g><g><circle data-type="point" data-label="B1.1
|
|
21
|
+
x-" data-x="-4.475" data-y="2.9699999999999998" cx="64.78021978021977" cy="151.31868131868134" r="3" fill="hsl(210, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="B1.2
|
|
22
|
+
x+" data-x="-3.525" data-y="2.9699999999999998" cx="116.97802197802196" cy="151.31868131868134" r="3" fill="hsl(211, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="SW1.1
|
|
23
|
+
x-" data-x="-2.38" data-y="3" cx="179.89010989010987" cy="149.67032967032966" r="3" fill="hsl(104, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="SW1.2
|
|
24
|
+
x+" data-x="-1.62" data-y="3" cx="221.64835164835165" cy="149.67032967032966" r="3" fill="hsl(105, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C3.1
|
|
25
|
+
x-" data-x="-3.55" data-y="1.5" cx="115.60439560439559" cy="232.08791208791212" r="3" fill="hsl(243, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C3.2
|
|
26
|
+
x+" data-x="-2.45" data-y="1.5" cx="176.04395604395603" cy="232.08791208791212" r="3" fill="hsl(244, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.1
|
|
27
|
+
x+" data-x="2.7" data-y="2.2" cx="459.0109890109891" cy="193.6263736263736" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.2
|
|
28
|
+
x-" data-x="0.2999999999999998" data-y="2.2" cx="327.14285714285717" cy="193.6263736263736" r="3" fill="hsl(320, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.3
|
|
29
|
+
x+" data-x="2.7" data-y="2.6" cx="459.0109890109891" cy="171.64835164835165" r="3" fill="hsl(321, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.4
|
|
30
|
+
x-" data-x="0.2999999999999998" data-y="2.8" cx="327.14285714285717" cy="160.65934065934067" r="3" fill="hsl(322, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.5
|
|
31
|
+
x-" data-x="0.2999999999999998" data-y="2.6" cx="327.14285714285717" cy="171.64835164835165" r="3" fill="hsl(323, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.6
|
|
32
|
+
x-" data-x="0.2999999999999998" data-y="2.4" cx="327.14285714285717" cy="182.63736263736266" r="3" fill="hsl(324, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.7
|
|
33
|
+
x+" data-x="2.7" data-y="2.4" cx="459.0109890109891" cy="182.63736263736266" r="3" fill="hsl(325, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.8
|
|
34
|
+
x+" data-x="2.7" data-y="2.8" cx="459.0109890109891" cy="160.65934065934067" r="3" fill="hsl(326, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C2.1
|
|
35
|
+
x-" data-x="3.45" data-y="1.5" cx="500.2197802197803" cy="232.08791208791212" r="3" fill="hsl(2, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C2.2
|
|
36
|
+
x+" data-x="4.55" data-y="1.5" cx="560.6593406593407" cy="232.08791208791212" r="3" fill="hsl(3, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.1
|
|
37
|
+
x-" data-x="-4.550000000000001" data-y="-1.5" cx="60.659340659340586" cy="396.92307692307696" r="3" fill="hsl(226, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.2
|
|
38
|
+
x+" data-x="-3.4499999999999997" data-y="-1.5" cx="121.09890109890108" cy="396.92307692307696" r="3" fill="hsl(227, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R2.1
|
|
39
|
+
x-" data-x="-2.55" data-y="-1.5" cx="170.54945054945054" cy="396.92307692307696" r="3" fill="hsl(107, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R2.2
|
|
40
|
+
x+" data-x="-1.45" data-y="-1.5" cx="230.98901098901098" cy="396.92307692307696" r="3" fill="hsl(108, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C1.1
|
|
41
|
+
x-" data-x="-3.55" data-y="-3" cx="115.60439560439559" cy="479.3406593406594" r="3" fill="hsl(121, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C1.2
|
|
42
|
+
x+" data-x="-2.45" data-y="-3" cx="176.04395604395603" cy="479.3406593406594" r="3" fill="hsl(122, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R3.1
|
|
43
|
+
x-" data-x="1.95" data-y="-1.5" cx="417.80219780219784" cy="396.92307692307696" r="3" fill="hsl(348, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R3.2
|
|
44
|
+
x+" data-x="3.05" data-y="-1.5" cx="478.24175824175825" cy="396.92307692307696" r="3" fill="hsl(349, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D1.1
|
|
45
|
+
x-" data-x="3.935" data-y="-1.5" cx="526.868131868132" cy="396.92307692307696" r="3" fill="hsl(32, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="D1.2
|
|
46
|
+
x+" data-x="5.0649999999999995" data-y="-1.5" cx="588.9560439560439" cy="396.92307692307696" r="3" fill="hsl(33, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
47
|
+
orientation: x-" data-x="-4.475" data-y="2.9699999999999998" cx="64.78021978021977" cy="151.31868131868134" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
48
|
+
orientation: x-" data-x="-2.38" data-y="3" cx="179.89010989010987" cy="149.67032967032966" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
49
|
+
orientation: y-" data-x="-2.9699999999999998" data-y="2.9699999999999998" cx="147.47252747252747" cy="151.31868131868134" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
50
|
+
orientation: y-" data-x="4.75" data-y="1.5" cx="571.6483516483518" cy="232.08791208791212" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
51
|
+
orientation: y-" data-x="-2.349" data-y="-3.4509999999999996" cx="181.59340659340657" cy="504.1208791208792" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
52
|
+
orientation: y-" data-x="5.1659999999999995" data-y="-1.851" cx="594.5054945054945" cy="416.20879120879124" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
53
|
+
orientation: y+" data-x="-1.5190000000000001" data-y="3.251" cx="227.1978021978022" cy="135.87912087912088" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
54
|
+
orientation: y+" data-x="-3.651" data-y="1.9509999999999998" cx="110.05494505494505" cy="207.30769230769232" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
55
|
+
orientation: y+" data-x="0.09999999999999981" data-y="3.2" cx="316.15384615384613" cy="138.68131868131866" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
56
|
+
orientation: y+" data-x="-4.651000000000001" data-y="-1.2990000000000002" cx="55.109890109890046" cy="385.87912087912093" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
57
|
+
orientation: x-" data-x="0.09999999999999981" data-y="2.4" cx="316.15384615384613" cy="182.63736263736266" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
58
|
+
orientation: y+" data-x="-1.25" data-y="-1.5" cx="241.97802197802196" cy="396.92307692307696" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
59
|
+
orientation: x+" data-x="2.7" data-y="2.6" cx="459.0109890109891" cy="171.64835164835165" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
60
|
+
orientation: x-" data-x="1.95" data-y="-1.5" cx="417.80219780219784" cy="396.92307692307696" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
61
|
+
orientation: x-" data-x="0.2999999999999998" data-y="2.6" cx="327.14285714285717" cy="171.64835164835165" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
62
|
+
orientation: x-" data-x="3.45" data-y="1.5" cx="500.2197802197803" cy="232.08791208791212" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
63
|
+
orientation: y+" data-x="-3" data-y="-1.5" cx="145.8241758241758" cy="396.92307692307696" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
64
|
+
orientation: x+" data-x="2.7" data-y="2.4" cx="459.0109890109891" cy="182.63736263736266" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
65
|
+
orientation: y+" data-x="3.4924999999999997" data-y="-1.5" cx="502.55494505494505" cy="396.92307692307696" 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[
|
|
66
|
+
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
67
|
+
const svg = e.currentTarget;
|
|
68
|
+
const rect = svg.getBoundingClientRect();
|
|
69
|
+
const x = e.clientX - rect.left;
|
|
70
|
+
const y = e.clientY - rect.top;
|
|
71
|
+
const crosshair = svg.getElementById('crosshair');
|
|
72
|
+
const h = svg.getElementById('crosshair-h');
|
|
73
|
+
const v = svg.getElementById('crosshair-v');
|
|
74
|
+
const coords = svg.getElementById('coordinates');
|
|
75
|
+
|
|
76
|
+
crosshair.style.display = 'block';
|
|
77
|
+
h.setAttribute('x1', '0');
|
|
78
|
+
h.setAttribute('x2', '640');
|
|
79
|
+
h.setAttribute('y1', y);
|
|
80
|
+
h.setAttribute('y2', y);
|
|
81
|
+
v.setAttribute('x1', x);
|
|
82
|
+
v.setAttribute('x2', x);
|
|
83
|
+
v.setAttribute('y1', '0');
|
|
84
|
+
v.setAttribute('y2', '640');
|
|
364
85
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
const sx = matrix.a;
|
|
389
|
-
const sy = matrix.d;
|
|
390
|
-
const tx = matrix.e;
|
|
391
|
-
const ty = matrix.f;
|
|
392
|
-
const realPoint = {
|
|
393
|
-
x: (x - tx) / sx,
|
|
394
|
-
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
398
|
-
coords.setAttribute('x', (x + 5).toString());
|
|
399
|
-
coords.setAttribute('y', (y - 5).toString());
|
|
400
|
-
});
|
|
401
|
-
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
402
|
-
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
403
|
-
});
|
|
404
|
-
]]>
|
|
405
|
-
</script>
|
|
406
|
-
</svg>
|
|
86
|
+
// Calculate real coordinates using inverse transformation
|
|
87
|
+
const matrix = {"a":54.945054945054956,"c":0,"e":310.65934065934067,"b":0,"d":-54.945054945054956,"f":314.50549450549454};
|
|
88
|
+
// Manually invert and apply the affine transform
|
|
89
|
+
// Since we only use translate and scale, we can directly compute:
|
|
90
|
+
// x' = (x - tx) / sx
|
|
91
|
+
// y' = (y - ty) / sy
|
|
92
|
+
const sx = matrix.a;
|
|
93
|
+
const sy = matrix.d;
|
|
94
|
+
const tx = matrix.e;
|
|
95
|
+
const ty = matrix.f;
|
|
96
|
+
const realPoint = {
|
|
97
|
+
x: (x - tx) / sx,
|
|
98
|
+
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
102
|
+
coords.setAttribute('x', (x + 5).toString());
|
|
103
|
+
coords.setAttribute('y', (y - 5).toString());
|
|
104
|
+
});
|
|
105
|
+
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
106
|
+
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
107
|
+
});
|
|
108
|
+
]]></script></svg>
|