@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
|
@@ -1,294 +1,92 @@
|
|
|
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
|
-
x-" data-x="-0.6000000000000001" data-y="0.4999999999999998" cx="222" cy="242.99999999999997" r="3" fill="hsl(238, 100%, 50%, 0.8)"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
x-" data-x="-0.6000000000000001" data-y="0.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
x-" data-x="-0.6000000000000001" data-y="
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
x
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
x
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
x
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
x-" data-x="-0.6000000000000001" data-y="
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
x
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
x
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
x+" data-x="0.6000000000000001" data-y="-0.2999999999999998" cx="390" cy="354.9999999999999" r="3" fill="hsl(140, 100%, 50%, 0.8)" />
|
|
70
|
-
</g>
|
|
71
|
-
<g>
|
|
72
|
-
<circle data-type="point" data-label="P.18
|
|
73
|
-
x+" data-x="0.6000000000000001" data-y="-0.09999999999999987" cx="390" cy="326.99999999999994" r="3" fill="hsl(141, 100%, 50%, 0.8)" />
|
|
74
|
-
</g>
|
|
75
|
-
<g>
|
|
76
|
-
<circle data-type="point" data-label="P.19
|
|
77
|
-
x+" data-x="0.6000000000000001" data-y="0.10000000000000009" cx="390" cy="298.99999999999994" r="3" fill="hsl(142, 100%, 50%, 0.8)" />
|
|
78
|
-
</g>
|
|
79
|
-
<g>
|
|
80
|
-
<circle data-type="point" data-label="P.20
|
|
81
|
-
x+" data-x="0.6000000000000001" data-y="0.30000000000000004" cx="390" cy="270.99999999999994" r="3" fill="hsl(164, 100%, 50%, 0.8)" />
|
|
82
|
-
</g>
|
|
83
|
-
<g>
|
|
84
|
-
<circle data-type="point" data-label="P.21
|
|
85
|
-
x+" data-x="0.6000000000000001" data-y="0.5" cx="390" cy="242.99999999999994" r="3" fill="hsl(165, 100%, 50%, 0.8)" />
|
|
86
|
-
</g>
|
|
87
|
-
<g>
|
|
88
|
-
<circle data-type="point" data-label="P.22
|
|
89
|
-
x+" data-x="0.6000000000000001" data-y="0.7" cx="390" cy="214.99999999999994" r="3" fill="hsl(166, 100%, 50%, 0.8)" />
|
|
90
|
-
</g>
|
|
91
|
-
<g>
|
|
92
|
-
<circle data-type="point" data-label="P.23
|
|
93
|
-
x+" data-x="0.6000000000000001" data-y="0.8999999999999999" cx="390" cy="186.99999999999994" r="3" fill="hsl(167, 100%, 50%, 0.8)" />
|
|
94
|
-
</g>
|
|
95
|
-
<g>
|
|
96
|
-
<circle data-type="point" data-label="P.24
|
|
97
|
-
x+" data-x="0.6000000000000001" data-y="1.0999999999999999" cx="390" cy="158.99999999999997" r="3" fill="hsl(168, 100%, 50%, 0.8)" />
|
|
98
|
-
</g>
|
|
99
|
-
<g>
|
|
100
|
-
<circle data-type="point" data-label="anchorPoint
|
|
101
|
-
orientation: y+" data-x="-0.8" data-y="1.4999999999999998" cx="194" cy="102.99999999999997" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
102
|
-
</g>
|
|
103
|
-
<g>
|
|
104
|
-
<circle data-type="point" data-label="anchorPoint
|
|
105
|
-
orientation: x-" data-x="-0.6000000000000001" data-y="0.8999999999999999" cx="222" cy="186.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
106
|
-
</g>
|
|
107
|
-
<g>
|
|
108
|
-
<circle data-type="point" data-label="anchorPoint
|
|
109
|
-
orientation: x+" data-x="0.6000000000000001" data-y="-0.2999999999999998" cx="390" cy="354.9999999999999" 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="-0.6000000000000001" data-y="0.6999999999999998" cx="222" cy="214.99999999999997" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
114
|
-
</g>
|
|
115
|
-
<g>
|
|
116
|
-
<circle data-type="point" data-label="anchorPoint
|
|
117
|
-
orientation: x+" data-x="0.6000000000000001" data-y="-0.4999999999999998" cx="390" cy="382.9999999999999" 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="-1.1510000000000002" data-y="-1.6" cx="144.85999999999996" cy="537" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
122
|
-
</g>
|
|
123
|
-
<g>
|
|
124
|
-
<circle data-type="point" data-label="anchorPoint
|
|
125
|
-
orientation: x-" data-x="-0.6000000000000001" data-y="0.2999999999999998" cx="222" cy="271" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
126
|
-
</g>
|
|
127
|
-
<g>
|
|
128
|
-
<circle data-type="point" data-label="anchorPoint
|
|
129
|
-
orientation: x+" data-x="0.6000000000000001" data-y="-0.8999999999999999" cx="390" cy="438.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
130
|
-
</g>
|
|
131
|
-
<g>
|
|
132
|
-
<circle data-type="point" data-label="anchorPoint
|
|
133
|
-
orientation: x-" data-x="-0.6000000000000001" data-y="0.09999999999999987" cx="222" cy="298.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
134
|
-
</g>
|
|
135
|
-
<g>
|
|
136
|
-
<circle data-type="point" data-label="anchorPoint
|
|
137
|
-
orientation: x+" data-x="0.6000000000000001" data-y="-1.0999999999999999" cx="390" cy="466.9999999999999" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
138
|
-
</g>
|
|
139
|
-
<g>
|
|
140
|
-
<circle data-type="point" data-label="anchorPoint
|
|
141
|
-
orientation: x-" data-x="-0.6000000000000001" data-y="-0.10000000000000009" cx="222" cy="326.99999999999994" 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="0.6000000000000001" data-y="0.10000000000000009" cx="390" cy="298.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
146
|
-
</g>
|
|
147
|
-
<g>
|
|
148
|
-
<polyline data-points="-0.6000000000000001,1.0999999999999999 0.6000000000000001,-0.09999999999999987" data-type="line" data-label="" points="222,158.99999999999997 390,326.99999999999994" fill="none" stroke="hsl(16, 100%, 50%, 0.8)" stroke-width="1" />
|
|
149
|
-
</g>
|
|
150
|
-
<g>
|
|
151
|
-
<polyline data-points="-0.6000000000000001,0.8999999999999999 0.6000000000000001,-0.2999999999999998" data-type="line" data-label="" points="222,186.99999999999994 390,354.9999999999999" fill="none" stroke="hsl(128, 100%, 50%, 0.8)" stroke-width="1" />
|
|
152
|
-
</g>
|
|
153
|
-
<g>
|
|
154
|
-
<polyline data-points="-0.6000000000000001,0.6999999999999998 0.6000000000000001,-0.4999999999999998" data-type="line" data-label="" points="222,214.99999999999997 390,382.9999999999999" fill="none" stroke="hsl(32, 100%, 50%, 0.8)" stroke-width="1" />
|
|
155
|
-
</g>
|
|
156
|
-
<g>
|
|
157
|
-
<polyline data-points="-0.6000000000000001,0.4999999999999998 0.6000000000000001,-0.6999999999999998" data-type="line" data-label="" points="222,242.99999999999997 390,410.9999999999999" fill="none" stroke="hsl(144, 100%, 50%, 0.8)" stroke-width="1" />
|
|
158
|
-
</g>
|
|
159
|
-
<g>
|
|
160
|
-
<polyline data-points="-0.6000000000000001,0.2999999999999998 0.6000000000000001,-0.8999999999999999" data-type="line" data-label="" points="222,271 390,438.99999999999994" fill="none" stroke="hsl(104, 100%, 50%, 0.8)" stroke-width="1" />
|
|
161
|
-
</g>
|
|
162
|
-
<g>
|
|
163
|
-
<polyline data-points="-0.6000000000000001,0.09999999999999987 0.6000000000000001,-1.0999999999999999" data-type="line" data-label="" points="222,298.99999999999994 390,466.9999999999999" fill="none" stroke="hsl(160, 100%, 50%, 0.8)" stroke-width="1" />
|
|
164
|
-
</g>
|
|
165
|
-
<g>
|
|
166
|
-
<polyline data-points="-0.6000000000000001,-0.10000000000000009 0.6000000000000001,0.10000000000000009" data-type="line" data-label="" points="222,326.99999999999994 390,298.99999999999994" fill="none" stroke="hsl(120, 100%, 50%, 0.8)" stroke-width="1" />
|
|
167
|
-
</g>
|
|
168
|
-
<g>
|
|
169
|
-
<polyline data-points="-0.6000000000000001,1.0999999999999999 -0.8,1.0999999999999999 -0.8,1.4999999999999998 1.1510000000000002,1.4999999999999998 1.1510000000000002,-0.09999999999999992 0.6000000000000001,-0.09999999999999987" data-type="line" data-label="" points="222,158.99999999999997 194,158.99999999999997 194,102.99999999999997 467.14000000000004,102.99999999999997 467.14000000000004,326.99999999999994 390,326.99999999999994" fill="none" stroke="purple" stroke-width="1" />
|
|
170
|
-
</g>
|
|
171
|
-
<g>
|
|
172
|
-
<polyline data-points="-0.6000000000000001,0.4999999999999998 -1.1510000000000002,0.4999999999999998 -1.1510000000000002,-1.6 1.451,-1.6 1.451,-0.6999999999999998 0.6000000000000001,-0.6999999999999998" data-type="line" data-label="" points="222,242.99999999999997 144.85999999999996,242.99999999999997 144.85999999999996,537 509.14,537 509.14,410.9999999999999 390,410.9999999999999" fill="none" stroke="purple" stroke-width="1" />
|
|
173
|
-
</g>
|
|
174
|
-
<g>
|
|
175
|
-
<rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="222" y="130.99999999999997" width="168" height="363.9999999999999" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.007142857142857143" />
|
|
176
|
-
</g>
|
|
177
|
-
<g>
|
|
178
|
-
<rect data-type="rect" data-label="netId: P.pin1 to P.pin18
|
|
179
|
-
globalConnNetId: connectivity_net0
|
|
180
|
-
available orientations: y+" data-x="-0.8" data-y="1.7249999999999999" x="180" y="39.99999999999994" width="28" height="63.00000000000003" fill="#ef444466" stroke="#ef4444" stroke-width="0.007142857142857143" />
|
|
181
|
-
</g>
|
|
182
|
-
<g>
|
|
183
|
-
<rect data-type="rect" data-label="netId: P.pin2 to P.pin17
|
|
184
|
-
globalConnNetId: connectivity_net1
|
|
185
|
-
available orientations: any" data-x="-0.8260000000000001" data-y="0.8999999999999999" x="158.85999999999999" y="172.99999999999997" width="63" height="27.99999999999997" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
186
|
-
</g>
|
|
187
|
-
<g>
|
|
188
|
-
<rect data-type="rect" data-label="netId: P.pin2 to P.pin17
|
|
189
|
-
globalConnNetId: connectivity_net1
|
|
190
|
-
available orientations: any" data-x="0.8260000000000001" data-y="-0.2999999999999998" x="390.14" y="340.99999999999994" width="63" height="27.999999999999943" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
191
|
-
</g>
|
|
192
|
-
<g>
|
|
193
|
-
<rect data-type="rect" data-label="netId: P.pin3 to P.pin16
|
|
194
|
-
globalConnNetId: connectivity_net2
|
|
195
|
-
available orientations: any" data-x="-0.8260000000000001" data-y="0.6999999999999998" x="158.85999999999999" y="200.99999999999997" width="63" height="27.99999999999997" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
196
|
-
</g>
|
|
197
|
-
<g>
|
|
198
|
-
<rect data-type="rect" data-label="netId: P.pin3 to P.pin16
|
|
199
|
-
globalConnNetId: connectivity_net2
|
|
200
|
-
available orientations: any" data-x="0.8260000000000001" data-y="-0.4999999999999998" x="390.14" y="368.9999999999999" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
201
|
-
</g>
|
|
202
|
-
<g>
|
|
203
|
-
<rect data-type="rect" data-label="netId: P.pin4 to P.pin15
|
|
204
|
-
globalConnNetId: connectivity_net3
|
|
205
|
-
available orientations: y-" data-x="-1.1510000000000002" data-y="-1.8250000000000002" x="130.85999999999996" y="537" width="28.00000000000003" height="63" fill="#00000066" stroke="#000000" stroke-width="0.007142857142857143" />
|
|
206
|
-
</g>
|
|
207
|
-
<g>
|
|
208
|
-
<rect data-type="rect" data-label="netId: P.pin5 to P.pin14
|
|
209
|
-
globalConnNetId: connectivity_net4
|
|
210
|
-
available orientations: any" data-x="-0.8260000000000001" data-y="0.2999999999999998" x="158.85999999999999" y="257" width="63" height="27.999999999999943" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
211
|
-
</g>
|
|
212
|
-
<g>
|
|
213
|
-
<rect data-type="rect" data-label="netId: P.pin5 to P.pin14
|
|
214
|
-
globalConnNetId: connectivity_net4
|
|
215
|
-
available orientations: any" data-x="0.8260000000000001" data-y="-0.8999999999999999" x="390.14" y="424.99999999999994" width="63" height="27.999999999999943" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
216
|
-
</g>
|
|
217
|
-
<g>
|
|
218
|
-
<rect data-type="rect" data-label="netId: P.pin6 to P.pin13
|
|
219
|
-
globalConnNetId: connectivity_net5
|
|
220
|
-
available orientations: any" data-x="-0.8260000000000001" data-y="0.09999999999999987" x="158.85999999999999" y="284.99999999999994" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
221
|
-
</g>
|
|
222
|
-
<g>
|
|
223
|
-
<rect data-type="rect" data-label="netId: P.pin6 to P.pin13
|
|
224
|
-
globalConnNetId: connectivity_net5
|
|
225
|
-
available orientations: any" data-x="0.8260000000000001" data-y="-1.0999999999999999" x="390.14" y="452.9999999999999" width="63" height="28.000000000000057" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
226
|
-
</g>
|
|
227
|
-
<g>
|
|
228
|
-
<rect data-type="rect" data-label="netId: P.pin7 to P.pin19
|
|
229
|
-
globalConnNetId: connectivity_net6
|
|
230
|
-
available orientations: any" data-x="-0.8260000000000001" data-y="-0.10000000000000009" x="158.85999999999999" y="312.99999999999994" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
231
|
-
</g>
|
|
232
|
-
<g>
|
|
233
|
-
<rect data-type="rect" data-label="netId: P.pin7 to P.pin19
|
|
234
|
-
globalConnNetId: connectivity_net6
|
|
235
|
-
available orientations: any" data-x="0.8260000000000001" data-y="0.10000000000000009" x="390.14" y="284.99999999999994" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143" />
|
|
236
|
-
</g>
|
|
237
|
-
<g id="crosshair" style="display: none">
|
|
238
|
-
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
239
|
-
<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>
|
|
240
|
-
</g>
|
|
241
|
-
<script>
|
|
242
|
-
<![CDATA[
|
|
243
|
-
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
244
|
-
const svg = e.currentTarget;
|
|
245
|
-
const rect = svg.getBoundingClientRect();
|
|
246
|
-
const x = e.clientX - rect.left;
|
|
247
|
-
const y = e.clientY - rect.top;
|
|
248
|
-
const crosshair = svg.getElementById('crosshair');
|
|
249
|
-
const h = svg.getElementById('crosshair-h');
|
|
250
|
-
const v = svg.getElementById('crosshair-v');
|
|
251
|
-
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="-0.6000000000000001,1.0999999999999999 0.6000000000000001,-0.09999999999999987" data-type="line" data-label="" points="222,158.99999999999997 390,326.99999999999994" fill="none" stroke="hsl(16, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,0.8999999999999999 0.6000000000000001,-0.2999999999999998" data-type="line" data-label="" points="222,186.99999999999994 390,354.9999999999999" fill="none" stroke="hsl(128, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,0.6999999999999998 0.6000000000000001,-0.4999999999999998" data-type="line" data-label="" points="222,214.99999999999997 390,382.9999999999999" fill="none" stroke="hsl(32, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,0.4999999999999998 0.6000000000000001,-0.6999999999999998" data-type="line" data-label="" points="222,242.99999999999997 390,410.9999999999999" fill="none" stroke="hsl(144, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,0.2999999999999998 0.6000000000000001,-0.8999999999999999" data-type="line" data-label="" points="222,271 390,438.99999999999994" fill="none" stroke="hsl(104, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,0.09999999999999987 0.6000000000000001,-1.0999999999999999" data-type="line" data-label="" points="222,298.99999999999994 390,466.9999999999999" fill="none" stroke="hsl(160, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,-0.10000000000000009 0.6000000000000001,0.10000000000000009" data-type="line" data-label="" points="222,326.99999999999994 390,298.99999999999994" fill="none" stroke="hsl(120, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,1.0999999999999999 -0.8,1.0999999999999999 -0.8,1.4999999999999998 1.1510000000000002,1.4999999999999998 1.1510000000000002,-0.09999999999999992 0.6000000000000001,-0.09999999999999987" data-type="line" data-label="" points="222,158.99999999999997 194,158.99999999999997 194,102.99999999999997 467.14000000000004,102.99999999999997 467.14000000000004,326.99999999999994 390,326.99999999999994" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-0.6000000000000001,0.4999999999999998 -1.1510000000000002,0.4999999999999998 -1.1510000000000002,-1.6 1.451,-1.6 1.451,-0.6999999999999998 0.6000000000000001,-0.6999999999999998" data-type="line" data-label="" points="222,242.99999999999997 144.85999999999996,242.99999999999997 144.85999999999996,537 509.14,537 509.14,410.9999999999999 390,410.9999999999999" fill="none" stroke="purple" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="222" y="131" width="168" height="363.9999999999999" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin1 to P.pin18
|
|
2
|
+
globalConnNetId: connectivity_net0" data-x="-0.8" data-y="1.7249999999999999" x="180" y="39.99999999999996" width="28" height="63.00000000000003" fill="#ef444466" stroke="#ef4444" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin2 to P.pin17
|
|
3
|
+
globalConnNetId: connectivity_net1" data-x="-0.8260000000000001" data-y="0.8999999999999999" x="158.85999999999999" y="172.99999999999994" width="63" height="27.99999999999997" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin2 to P.pin17
|
|
4
|
+
globalConnNetId: connectivity_net1" data-x="0.8260000000000001" data-y="-0.2999999999999998" x="390.14" y="340.9999999999999" width="63" height="27.999999999999943" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin3 to P.pin16
|
|
5
|
+
globalConnNetId: connectivity_net2" data-x="-0.8260000000000001" data-y="0.6999999999999998" x="158.85999999999999" y="201" width="63" height="27.99999999999997" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin3 to P.pin16
|
|
6
|
+
globalConnNetId: connectivity_net2" data-x="0.8260000000000001" data-y="-0.4999999999999998" x="390.14" y="368.9999999999999" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin4 to P.pin15
|
|
7
|
+
globalConnNetId: connectivity_net3" data-x="-1.1510000000000002" data-y="-1.8250000000000002" x="130.85999999999996" y="537" width="28.00000000000003" height="63" fill="#00000066" stroke="#000000" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin5 to P.pin14
|
|
8
|
+
globalConnNetId: connectivity_net4" data-x="-0.8260000000000001" data-y="0.2999999999999998" x="158.85999999999999" y="257" width="63" height="27.999999999999943" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin5 to P.pin14
|
|
9
|
+
globalConnNetId: connectivity_net4" data-x="0.8260000000000001" data-y="-0.8999999999999999" x="390.14" y="425" width="63" height="27.999999999999943" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin6 to P.pin13
|
|
10
|
+
globalConnNetId: connectivity_net5" data-x="-0.8260000000000001" data-y="0.09999999999999987" x="158.85999999999999" y="284.99999999999994" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin6 to P.pin13
|
|
11
|
+
globalConnNetId: connectivity_net5" data-x="0.8260000000000001" data-y="-1.0999999999999999" x="390.14" y="452.9999999999999" width="63" height="28.000000000000057" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin7 to P.pin19
|
|
12
|
+
globalConnNetId: connectivity_net6" data-x="-0.8260000000000001" data-y="-0.10000000000000009" x="158.85999999999999" y="312.99999999999994" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><rect data-type="rect" data-label="netId: P.pin7 to P.pin19
|
|
13
|
+
globalConnNetId: connectivity_net6" data-x="0.8260000000000001" data-y="0.10000000000000009" x="390.14" y="284.99999999999994" width="63" height="28" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.007142857142857143"/></g><g><circle data-type="point" data-label="P.1
|
|
14
|
+
x-" data-x="-0.6000000000000001" data-y="1.0999999999999999" cx="222" cy="158.99999999999997" r="3" fill="hsl(235, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.2
|
|
15
|
+
x-" data-x="-0.6000000000000001" data-y="0.8999999999999999" cx="222" cy="186.99999999999994" r="3" fill="hsl(236, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.3
|
|
16
|
+
x-" data-x="-0.6000000000000001" data-y="0.6999999999999998" cx="222" cy="214.99999999999997" r="3" fill="hsl(237, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.4
|
|
17
|
+
x-" data-x="-0.6000000000000001" data-y="0.4999999999999998" cx="222" cy="242.99999999999997" r="3" fill="hsl(238, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.5
|
|
18
|
+
x-" data-x="-0.6000000000000001" data-y="0.2999999999999998" cx="222" cy="271" r="3" fill="hsl(239, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.6
|
|
19
|
+
x-" data-x="-0.6000000000000001" data-y="0.09999999999999987" cx="222" cy="298.99999999999994" r="3" fill="hsl(240, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.7
|
|
20
|
+
x-" data-x="-0.6000000000000001" data-y="-0.10000000000000009" cx="222" cy="326.99999999999994" r="3" fill="hsl(241, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.8
|
|
21
|
+
x-" data-x="-0.6000000000000001" data-y="-0.30000000000000004" cx="222" cy="354.99999999999994" r="3" fill="hsl(242, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.9
|
|
22
|
+
x-" data-x="-0.6000000000000001" data-y="-0.5" cx="222" cy="382.99999999999994" r="3" fill="hsl(243, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.10
|
|
23
|
+
x-" data-x="-0.6000000000000001" data-y="-0.7" cx="222" cy="410.99999999999994" r="3" fill="hsl(133, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.11
|
|
24
|
+
x-" data-x="-0.6000000000000001" data-y="-0.8999999999999999" cx="222" cy="438.99999999999994" r="3" fill="hsl(134, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.12
|
|
25
|
+
x-" data-x="-0.6000000000000001" data-y="-1.0999999999999999" cx="222" cy="466.9999999999999" r="3" fill="hsl(135, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.13
|
|
26
|
+
x+" data-x="0.6000000000000001" data-y="-1.0999999999999999" cx="390" cy="466.9999999999999" r="3" fill="hsl(136, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.14
|
|
27
|
+
x+" data-x="0.6000000000000001" data-y="-0.8999999999999999" cx="390" cy="438.99999999999994" r="3" fill="hsl(137, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.15
|
|
28
|
+
x+" data-x="0.6000000000000001" data-y="-0.6999999999999998" cx="390" cy="410.9999999999999" r="3" fill="hsl(138, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.16
|
|
29
|
+
x+" data-x="0.6000000000000001" data-y="-0.4999999999999998" cx="390" cy="382.9999999999999" r="3" fill="hsl(139, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.17
|
|
30
|
+
x+" data-x="0.6000000000000001" data-y="-0.2999999999999998" cx="390" cy="354.9999999999999" r="3" fill="hsl(140, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.18
|
|
31
|
+
x+" data-x="0.6000000000000001" data-y="-0.09999999999999987" cx="390" cy="326.99999999999994" r="3" fill="hsl(141, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.19
|
|
32
|
+
x+" data-x="0.6000000000000001" data-y="0.10000000000000009" cx="390" cy="298.99999999999994" r="3" fill="hsl(142, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.20
|
|
33
|
+
x+" data-x="0.6000000000000001" data-y="0.30000000000000004" cx="390" cy="270.99999999999994" r="3" fill="hsl(164, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.21
|
|
34
|
+
x+" data-x="0.6000000000000001" data-y="0.5" cx="390" cy="242.99999999999994" r="3" fill="hsl(165, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.22
|
|
35
|
+
x+" data-x="0.6000000000000001" data-y="0.7" cx="390" cy="214.99999999999994" r="3" fill="hsl(166, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.23
|
|
36
|
+
x+" data-x="0.6000000000000001" data-y="0.8999999999999999" cx="390" cy="186.99999999999994" r="3" fill="hsl(167, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="P.24
|
|
37
|
+
x+" data-x="0.6000000000000001" data-y="1.0999999999999999" cx="390" cy="158.99999999999997" r="3" fill="hsl(168, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
38
|
+
orientation: y+" data-x="-0.8" data-y="1.4999999999999998" cx="194" cy="102.99999999999997" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
39
|
+
orientation: x-" data-x="-0.6000000000000001" data-y="0.8999999999999999" cx="222" cy="186.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
40
|
+
orientation: x+" data-x="0.6000000000000001" data-y="-0.2999999999999998" cx="390" cy="354.9999999999999" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
41
|
+
orientation: x-" data-x="-0.6000000000000001" data-y="0.6999999999999998" cx="222" cy="214.99999999999997" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
42
|
+
orientation: x+" data-x="0.6000000000000001" data-y="-0.4999999999999998" cx="390" cy="382.9999999999999" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
43
|
+
orientation: y-" data-x="-1.1510000000000002" data-y="-1.6" cx="144.85999999999996" cy="537" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
44
|
+
orientation: x-" data-x="-0.6000000000000001" data-y="0.2999999999999998" cx="222" cy="271" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
45
|
+
orientation: x+" data-x="0.6000000000000001" data-y="-0.8999999999999999" cx="390" cy="438.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
46
|
+
orientation: x-" data-x="-0.6000000000000001" data-y="0.09999999999999987" cx="222" cy="298.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
47
|
+
orientation: x+" data-x="0.6000000000000001" data-y="-1.0999999999999999" cx="390" cy="466.9999999999999" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
48
|
+
orientation: x-" data-x="-0.6000000000000001" data-y="-0.10000000000000009" cx="222" cy="326.99999999999994" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
49
|
+
orientation: x+" data-x="0.6000000000000001" data-y="0.10000000000000009" cx="390" cy="298.99999999999994" 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[
|
|
50
|
+
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
51
|
+
const svg = e.currentTarget;
|
|
52
|
+
const rect = svg.getBoundingClientRect();
|
|
53
|
+
const x = e.clientX - rect.left;
|
|
54
|
+
const y = e.clientY - rect.top;
|
|
55
|
+
const crosshair = svg.getElementById('crosshair');
|
|
56
|
+
const h = svg.getElementById('crosshair-h');
|
|
57
|
+
const v = svg.getElementById('crosshair-v');
|
|
58
|
+
const coords = svg.getElementById('coordinates');
|
|
59
|
+
|
|
60
|
+
crosshair.style.display = 'block';
|
|
61
|
+
h.setAttribute('x1', '0');
|
|
62
|
+
h.setAttribute('x2', '640');
|
|
63
|
+
h.setAttribute('y1', y);
|
|
64
|
+
h.setAttribute('y2', y);
|
|
65
|
+
v.setAttribute('x1', x);
|
|
66
|
+
v.setAttribute('x2', x);
|
|
67
|
+
v.setAttribute('y1', '0');
|
|
68
|
+
v.setAttribute('y2', '640');
|
|
252
69
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
const sx = matrix.a;
|
|
277
|
-
const sy = matrix.d;
|
|
278
|
-
const tx = matrix.e;
|
|
279
|
-
const ty = matrix.f;
|
|
280
|
-
const realPoint = {
|
|
281
|
-
x: (x - tx) / sx,
|
|
282
|
-
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
286
|
-
coords.setAttribute('x', (x + 5).toString());
|
|
287
|
-
coords.setAttribute('y', (y - 5).toString());
|
|
288
|
-
});
|
|
289
|
-
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
290
|
-
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
291
|
-
});
|
|
292
|
-
]]>
|
|
293
|
-
</script>
|
|
294
|
-
</svg>
|
|
70
|
+
// Calculate real coordinates using inverse transformation
|
|
71
|
+
const matrix = {"a":140,"c":0,"e":306,"b":0,"d":-140,"f":312.99999999999994};
|
|
72
|
+
// Manually invert and apply the affine transform
|
|
73
|
+
// Since we only use translate and scale, we can directly compute:
|
|
74
|
+
// x' = (x - tx) / sx
|
|
75
|
+
// y' = (y - ty) / sy
|
|
76
|
+
const sx = matrix.a;
|
|
77
|
+
const sy = matrix.d;
|
|
78
|
+
const tx = matrix.e;
|
|
79
|
+
const ty = matrix.f;
|
|
80
|
+
const realPoint = {
|
|
81
|
+
x: (x - tx) / sx,
|
|
82
|
+
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
86
|
+
coords.setAttribute('x', (x + 5).toString());
|
|
87
|
+
coords.setAttribute('y', (y - 5).toString());
|
|
88
|
+
});
|
|
89
|
+
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
90
|
+
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
91
|
+
});
|
|
92
|
+
]]></script></svg>
|
|
@@ -1,89 +1,48 @@
|
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<rect data-type="rect" data-label="schematic_component_1" data-x="2.45" data-y="-0.10000000000000009" x="425.7777777777778" y="323.80111200000005" width="136.8888888888889" height="48.39777599999991" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.008035714285714287" />
|
|
26
|
-
</g>
|
|
27
|
-
<g>
|
|
28
|
-
<rect data-type="rect" data-label="netId: VCC
|
|
29
|
-
globalConnNetId: connectivity_net0
|
|
30
|
-
available orientations: y+" data-x="3.2" data-y="0.525" x="575.1111111111111" y="242.22222222222223" width="24.888888888888914" height="56" fill="#ef444466" stroke="#ef4444" stroke-width="0.008035714285714287" />
|
|
31
|
-
</g>
|
|
32
|
-
<g id="crosshair" style="display: none">
|
|
33
|
-
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
34
|
-
<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>
|
|
35
|
-
</g>
|
|
36
|
-
<script>
|
|
37
|
-
<![CDATA[
|
|
38
|
-
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
39
|
-
const svg = e.currentTarget;
|
|
40
|
-
const rect = svg.getBoundingClientRect();
|
|
41
|
-
const x = e.clientX - rect.left;
|
|
42
|
-
const y = e.clientY - rect.top;
|
|
43
|
-
const crosshair = svg.getElementById('crosshair');
|
|
44
|
-
const h = svg.getElementById('crosshair-h');
|
|
45
|
-
const v = svg.getElementById('crosshair-v');
|
|
46
|
-
const coords = svg.getElementById('coordinates');
|
|
1
|
+
<svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="white"/><g><polyline data-points="1.2000000000000002,0.30000000000000004 3,-0.10000000000000016" data-type="line" data-label="" points="338.66666666666674,298.22222222222223 562.6666666666667,348" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,0.30000000000000004 3.2,0.30000000000000004 3.2,-0.10000000000000016 3,-0.10000000000000016" data-type="line" data-label="" points="338.66666666666674,298.22222222222223 587.5555555555557,298.22222222222223 587.5555555555557,348 562.6666666666667,348" fill="none" stroke="purple" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="40" y="273.3333333333333" width="298.66666666666674" height="124.44444444444446" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.008035714285714287"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="2.45" data-y="-0.10000000000000009" x="425.7777777777778" y="323.80111200000005" width="136.8888888888889" height="48.39777599999991" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.008035714285714287"/></g><g><rect data-type="rect" data-label="netId: VCC
|
|
2
|
+
globalConnNetId: connectivity_net0" data-x="3.2" data-y="0.525" x="575.1111111111112" y="242.22222222222223" width="24.888888888888914" height="56" fill="#ef444466" stroke="#ef4444" stroke-width="0.008035714285714287"/></g><g><circle data-type="point" data-label="U1.1
|
|
3
|
+
x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="338.66666666666674" cy="298.22222222222223" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.1
|
|
4
|
+
x+" data-x="3" data-y="-0.10000000000000016" cx="562.6666666666667" cy="348" r="3" fill="hsl(226, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
5
|
+
orientation: y+" data-x="3.2" data-y="0.30000000000000004" cx="587.5555555555557" cy="298.22222222222223" 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[
|
|
6
|
+
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
7
|
+
const svg = e.currentTarget;
|
|
8
|
+
const rect = svg.getBoundingClientRect();
|
|
9
|
+
const x = e.clientX - rect.left;
|
|
10
|
+
const y = e.clientY - rect.top;
|
|
11
|
+
const crosshair = svg.getElementById('crosshair');
|
|
12
|
+
const h = svg.getElementById('crosshair-h');
|
|
13
|
+
const v = svg.getElementById('crosshair-v');
|
|
14
|
+
const coords = svg.getElementById('coordinates');
|
|
15
|
+
|
|
16
|
+
crosshair.style.display = 'block';
|
|
17
|
+
h.setAttribute('x1', '0');
|
|
18
|
+
h.setAttribute('x2', '640');
|
|
19
|
+
h.setAttribute('y1', y);
|
|
20
|
+
h.setAttribute('y2', y);
|
|
21
|
+
v.setAttribute('x1', x);
|
|
22
|
+
v.setAttribute('x2', x);
|
|
23
|
+
v.setAttribute('y1', '0');
|
|
24
|
+
v.setAttribute('y2', '640');
|
|
47
25
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const sx = matrix.a;
|
|
72
|
-
const sy = matrix.d;
|
|
73
|
-
const tx = matrix.e;
|
|
74
|
-
const ty = matrix.f;
|
|
75
|
-
const realPoint = {
|
|
76
|
-
x: (x - tx) / sx,
|
|
77
|
-
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
81
|
-
coords.setAttribute('x', (x + 5).toString());
|
|
82
|
-
coords.setAttribute('y', (y - 5).toString());
|
|
83
|
-
});
|
|
84
|
-
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
85
|
-
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
86
|
-
});
|
|
87
|
-
]]>
|
|
88
|
-
</script>
|
|
89
|
-
</svg>
|
|
26
|
+
// Calculate real coordinates using inverse transformation
|
|
27
|
+
const matrix = {"a":124.44444444444444,"c":0,"e":189.33333333333337,"b":0,"d":-124.44444444444444,"f":335.55555555555554};
|
|
28
|
+
// Manually invert and apply the affine transform
|
|
29
|
+
// Since we only use translate and scale, we can directly compute:
|
|
30
|
+
// x' = (x - tx) / sx
|
|
31
|
+
// y' = (y - ty) / sy
|
|
32
|
+
const sx = matrix.a;
|
|
33
|
+
const sy = matrix.d;
|
|
34
|
+
const tx = matrix.e;
|
|
35
|
+
const ty = matrix.f;
|
|
36
|
+
const realPoint = {
|
|
37
|
+
x: (x - tx) / sx,
|
|
38
|
+
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
42
|
+
coords.setAttribute('x', (x + 5).toString());
|
|
43
|
+
coords.setAttribute('y', (y - 5).toString());
|
|
44
|
+
});
|
|
45
|
+
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
46
|
+
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
47
|
+
});
|
|
48
|
+
]]></script></svg>
|