@tscircuit/schematic-trace-solver 0.0.77 → 0.0.79
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/.github/ISSUE_TEMPLATE/json-bug-report.yml +24 -0
- package/.github/scripts/import-json-bug-report.ts +483 -0
- package/.github/workflows/json-bug-report.yml +154 -0
- package/dist/index.d.ts +37 -10
- package/dist/index.js +281 -74
- package/lib/solvers/AvailableNetOrientationSolver/AvailableNetOrientationSolver.ts +4 -0
- package/lib/solvers/AvailableNetOrientationSolver/types.ts +1 -0
- package/lib/solvers/NetLabelNetLabelCollisionSolver/NetLabelNetLabelCollisionSolver.ts +6 -0
- package/lib/solvers/NetLabelPlacementSolver/SingleNetLabelPlacementSolver/SingleNetLabelPlacementSolver.ts +21 -1
- package/lib/solvers/NetLabelPlacementSolver/SingleNetLabelPlacementSolver/SingleNetLabelPlacementSolver_visualize.ts +9 -3
- package/lib/solvers/NetLabelPlacementSolver/SingleNetLabelPlacementSolver/solvePortOnlyPin.ts +27 -2
- package/lib/solvers/NetLabelTraceCollisionSolver/NetLabelTraceCollisionSolver.ts +87 -1
- package/lib/solvers/SchematicTraceLinesSolver/SchematicTraceLinesSolver.ts +1 -0
- package/lib/solvers/SchematicTraceLinesSolver/SchematicTraceSingleLineSolver2/SchematicTraceSingleLineSolver2.ts +121 -30
- package/lib/solvers/SchematicTraceLinesSolver/SchematicTraceSingleLineSolver2/collisions.ts +10 -10
- package/lib/solvers/SchematicTraceLinesSolver/SchematicTraceSingleLineSolver2/mid.ts +5 -8
- package/lib/solvers/SchematicTraceLinesSolver/SchematicTraceSingleLineSolver2/rect.ts +31 -6
- package/lib/solvers/TraceAnchoredNetLabelOverlapSolver/TraceAnchoredNetLabelOverlapSolver.ts +3 -0
- package/lib/solvers/TraceAnchoredNetLabelOverlapSolver/types.ts +1 -0
- package/lib/solvers/VccNetLabelCornerPlacementSolver/VccNetLabelCornerPlacementSolver.ts +3 -0
- package/lib/solvers/VccNetLabelCornerPlacementSolver/types.ts +1 -0
- package/lib/utils/textBoxBounds.ts +40 -0
- package/package.json +1 -1
- package/site/examples/example46.page.tsx +4 -0
- package/site/examples/example47.page.tsx +4 -0
- package/site/examples/example48.page.tsx +4 -0
- package/site/examples/example49.page.tsx +4 -0
- package/tests/assets/example46.json +236 -0
- package/tests/assets/example47.json +206 -0
- package/tests/assets/example48.json +104 -0
- package/tests/assets/example49.json +390 -0
- package/tests/examples/__snapshots__/example46.snap.svg +343 -0
- package/tests/examples/__snapshots__/example47.snap.svg +324 -0
- package/tests/examples/__snapshots__/example48.snap.svg +168 -0
- package/tests/examples/__snapshots__/example49.snap.svg +566 -0
- package/tests/examples/example46.test.ts +12 -0
- package/tests/examples/example47.test.ts +12 -0
- package/tests/examples/example48.test.ts +12 -0
- package/tests/examples/example49.test.ts +12 -0
- package/tests/repros/__snapshots__/manufacturePartNumber-text-box.snap.svg +12 -12
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
<svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="100%" height="100%" fill="white" />
|
|
3
|
+
<g>
|
|
4
|
+
<circle data-type="point" data-label="DPROT.1
|
|
5
|
+
y+" data-x="-2.87" data-y="1.2399999999999998" cx="181.61383285302594" cy="210.79731027857824" r="3" fill="hsl(38, 100%, 50%, 0.8)" />
|
|
6
|
+
</g>
|
|
7
|
+
<g>
|
|
8
|
+
<circle data-type="point" data-label="DPROT.2
|
|
9
|
+
y-" data-x="-2.87" data-y="0.19999999999999973" cx="181.61383285302594" cy="266.74351585014404" r="3" fill="hsl(39, 100%, 50%, 0.8)" />
|
|
10
|
+
</g>
|
|
11
|
+
<g>
|
|
12
|
+
<circle data-type="point" data-label="F1.1
|
|
13
|
+
y+" data-x="-2.87" data-y="3.6149999999999998" cx="181.61383285302594" cy="83.03554274735825" r="3" fill="hsl(214, 100%, 50%, 0.8)" />
|
|
14
|
+
</g>
|
|
15
|
+
<g>
|
|
16
|
+
<circle data-type="point" data-label="F1.2
|
|
17
|
+
y-" data-x="-2.87" data-y="2.485" cx="181.61383285302594" cy="143.82324687800187" r="3" fill="hsl(215, 100%, 50%, 0.8)" />
|
|
18
|
+
</g>
|
|
19
|
+
<g>
|
|
20
|
+
<circle data-type="point" data-label="U2.1
|
|
21
|
+
x-" data-x="-1.2850000000000001" data-y="0.2" cx="266.8780019212296" cy="266.74351585014404" r="3" fill="hsl(200, 100%, 50%, 0.8)" />
|
|
22
|
+
</g>
|
|
23
|
+
<g>
|
|
24
|
+
<circle data-type="point" data-label="U2.2
|
|
25
|
+
x-" data-x="-1.2850000000000001" data-y="0" cx="266.8780019212296" cy="277.5024015369836" r="3" fill="hsl(201, 100%, 50%, 0.8)" />
|
|
26
|
+
</g>
|
|
27
|
+
<g>
|
|
28
|
+
<circle data-type="point" data-label="U2.3
|
|
29
|
+
x-" data-x="-1.2850000000000001" data-y="-0.2" cx="266.8780019212296" cy="288.26128722382316" r="3" fill="hsl(202, 100%, 50%, 0.8)" />
|
|
30
|
+
</g>
|
|
31
|
+
<g>
|
|
32
|
+
<circle data-type="point" data-label="U2.4
|
|
33
|
+
x+" data-x="1.2850000000000001" data-y="-0.1" cx="405.12968299711815" cy="282.8818443804034" r="3" fill="hsl(203, 100%, 50%, 0.8)" />
|
|
34
|
+
</g>
|
|
35
|
+
<g>
|
|
36
|
+
<circle data-type="point" data-label="U2.5
|
|
37
|
+
x+" data-x="1.2850000000000001" data-y="0.1" cx="405.12968299711815" cy="272.1229586935638" r="3" fill="hsl(204, 100%, 50%, 0.8)" />
|
|
38
|
+
</g>
|
|
39
|
+
<g>
|
|
40
|
+
<circle data-type="point" data-label="C1.1
|
|
41
|
+
y+" data-x="-2.97" data-y="-1.0099999999999998" cx="176.23439000960616" cy="331.8347742555234" r="3" fill="hsl(121, 100%, 50%, 0.8)" />
|
|
42
|
+
</g>
|
|
43
|
+
<g>
|
|
44
|
+
<circle data-type="point" data-label="C1.2
|
|
45
|
+
y-" data-x="-2.97" data-y="-2.1100000000000003" cx="176.23439000960616" cy="391.00864553314113" r="3" fill="hsl(122, 100%, 50%, 0.8)" />
|
|
46
|
+
</g>
|
|
47
|
+
<g>
|
|
48
|
+
<circle data-type="point" data-label="C4.1
|
|
49
|
+
y+" data-x="-0.8100000000000003" data-y="-1.9050000000000002" cx="292.43035542747356" cy="379.9807877041306" r="3" fill="hsl(124, 100%, 50%, 0.8)" />
|
|
50
|
+
</g>
|
|
51
|
+
<g>
|
|
52
|
+
<circle data-type="point" data-label="C4.2
|
|
53
|
+
y-" data-x="-0.8100000000000003" data-y="-3.005000000000001" cx="292.43035542747356" cy="439.1546589817483" r="3" fill="hsl(125, 100%, 50%, 0.8)" />
|
|
54
|
+
</g>
|
|
55
|
+
<g>
|
|
56
|
+
<circle data-type="point" data-label="DPWR.1
|
|
57
|
+
y+" data-x="2.675" data-y="-1.3049999999999997" cx="479.90393852065324" cy="347.70413064361185" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
|
|
58
|
+
</g>
|
|
59
|
+
<g>
|
|
60
|
+
<circle data-type="point" data-label="DPWR.2
|
|
61
|
+
y-" data-x="2.675" data-y="-2.4349999999999996" cx="479.90393852065324" cy="408.4918347742554" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
|
|
62
|
+
</g>
|
|
63
|
+
<g>
|
|
64
|
+
<circle data-type="point" data-label="R1.1
|
|
65
|
+
y+" data-x="1.2594553499999992" data-y="-3.6399999999999997" cx="403.7555231508165" cy="473.3141210374639" r="3" fill="hsl(226, 100%, 50%, 0.8)" />
|
|
66
|
+
</g>
|
|
67
|
+
<g>
|
|
68
|
+
<circle data-type="point" data-label="R1.2
|
|
69
|
+
y-" data-x="1.2594553499999992" data-y="-4.739999999999999" cx="403.7555231508165" cy="532.4879923150816" r="3" fill="hsl(227, 100%, 50%, 0.8)" />
|
|
70
|
+
</g>
|
|
71
|
+
<g>
|
|
72
|
+
<circle data-type="point" data-label="C18.1
|
|
73
|
+
y+" data-x="-0.75" data-y="-4.215000000000001" cx="295.6580211335255" cy="504.24591738712775" r="3" fill="hsl(357, 100%, 50%, 0.8)" />
|
|
74
|
+
</g>
|
|
75
|
+
<g>
|
|
76
|
+
<circle data-type="point" data-label="C18.2
|
|
77
|
+
y-" data-x="-0.75" data-y="-5.315" cx="295.6580211335255" cy="563.4197886647453" r="3" fill="hsl(358, 100%, 50%, 0.8)" />
|
|
78
|
+
</g>
|
|
79
|
+
<g>
|
|
80
|
+
<circle data-type="point" data-label="anchorPoint
|
|
81
|
+
orientation: y+" data-x="-2.87" data-y="3.815" cx="181.61383285302594" cy="72.27665706051869" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
82
|
+
</g>
|
|
83
|
+
<g>
|
|
84
|
+
<circle data-type="point" data-label="anchorPoint
|
|
85
|
+
orientation: x-" data-x="-1.485" data-y="-0.2" cx="256.11911623439005" cy="288.26128722382316" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
86
|
+
</g>
|
|
87
|
+
<g>
|
|
88
|
+
<circle data-type="point" data-label="anchorPoint
|
|
89
|
+
orientation: y-" data-x="-1.3860000000000001" data-y="-0.301" cx="261.4447646493756" cy="293.6945244956772" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
90
|
+
</g>
|
|
91
|
+
<g>
|
|
92
|
+
<circle data-type="point" data-label="anchorPoint
|
|
93
|
+
orientation: y-" data-x="-2.97" data-y="-3.205000000000001" cx="176.23439000960616" cy="449.91354466858786" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
94
|
+
</g>
|
|
95
|
+
<g>
|
|
96
|
+
<circle data-type="point" data-label="anchorPoint
|
|
97
|
+
orientation: y-" data-x="1.2594553499999988" data-y="-5.515000000000001" cx="403.75552315081643" cy="574.178674351585" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
98
|
+
</g>
|
|
99
|
+
<g>
|
|
100
|
+
<circle data-type="point" data-label="anchorPoint
|
|
101
|
+
orientation: y+" data-x="1.98" data-y="0.1" cx="442.5168107588857" cy="272.1229586935638" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
102
|
+
</g>
|
|
103
|
+
<g>
|
|
104
|
+
<circle data-type="point" data-label="anchorPoint
|
|
105
|
+
orientation: y+" data-x="-0.8100000000000003" data-y="-1.9050000000000002" cx="292.43035542747356" cy="379.9807877041306" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
106
|
+
</g>
|
|
107
|
+
<g>
|
|
108
|
+
<circle data-type="point" data-label="anchorPoint
|
|
109
|
+
orientation: y+" data-x="-0.75" data-y="-4.215000000000001" cx="295.6580211335255" cy="504.24591738712775" 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.6749999999999994" data-y="-2.7362499999999996" cx="479.9039385206532" cy="424.69740634005757" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
114
|
+
</g>
|
|
115
|
+
<g>
|
|
116
|
+
<polyline data-points="-2.87,2.485 -2.87,1.2399999999999998" data-type="line" data-label="" points="181.61383285302594,143.82324687800187 181.61383285302594,210.79731027857824" fill="none" stroke="hsl(32, 100%, 50%, 0.8)" stroke-width="1" />
|
|
117
|
+
</g>
|
|
118
|
+
<g>
|
|
119
|
+
<polyline data-points="-2.87,1.2399999999999998 -2.87,3.6149999999999998" data-type="line" data-label="" points="181.61383285302594,210.79731027857824 181.61383285302594,83.03554274735825" fill="none" stroke="hsl(170, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
120
|
+
</g>
|
|
121
|
+
<g>
|
|
122
|
+
<polyline data-points="-2.87,1.2399999999999998 -2.87,2.485" data-type="line" data-label="" points="181.61383285302594,210.79731027857824 181.61383285302594,143.82324687800187" fill="none" stroke="hsl(170, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
123
|
+
</g>
|
|
124
|
+
<g>
|
|
125
|
+
<polyline data-points="-2.87,3.6149999999999998 -2.87,2.485" data-type="line" data-label="" points="181.61383285302594,83.03554274735825 181.61383285302594,143.82324687800187" fill="none" stroke="hsl(170, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
126
|
+
</g>
|
|
127
|
+
<g>
|
|
128
|
+
<polyline data-points="-2.87,0.19999999999999973 -1.2850000000000001,0.2" data-type="line" data-label="" points="181.61383285302594,266.74351585014404 266.8780019212296,266.74351585014404" fill="none" stroke="hsl(264, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
129
|
+
</g>
|
|
130
|
+
<g>
|
|
131
|
+
<polyline data-points="-2.87,0.19999999999999973 -1.2850000000000001,-0.2" data-type="line" data-label="" points="181.61383285302594,266.74351585014404 266.8780019212296,288.26128722382316" fill="none" stroke="hsl(264, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
132
|
+
</g>
|
|
133
|
+
<g>
|
|
134
|
+
<polyline data-points="-2.87,0.19999999999999973 -2.97,-1.0099999999999998" data-type="line" data-label="" points="181.61383285302594,266.74351585014404 176.23439000960616,331.8347742555234" fill="none" stroke="hsl(264, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
135
|
+
</g>
|
|
136
|
+
<g>
|
|
137
|
+
<polyline data-points="-1.2850000000000001,0.2 -1.2850000000000001,-0.2" data-type="line" data-label="" points="266.8780019212296,266.74351585014404 266.8780019212296,288.26128722382316" fill="none" stroke="hsl(264, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
138
|
+
</g>
|
|
139
|
+
<g>
|
|
140
|
+
<polyline data-points="-1.2850000000000001,0.2 -2.97,-1.0099999999999998" data-type="line" data-label="" points="266.8780019212296,266.74351585014404 176.23439000960616,331.8347742555234" fill="none" stroke="hsl(264, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
141
|
+
</g>
|
|
142
|
+
<g>
|
|
143
|
+
<polyline data-points="-1.2850000000000001,-0.2 -2.97,-1.0099999999999998" data-type="line" data-label="" points="266.8780019212296,288.26128722382316 176.23439000960616,331.8347742555234" fill="none" stroke="hsl(264, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
144
|
+
</g>
|
|
145
|
+
<g>
|
|
146
|
+
<polyline data-points="-1.2850000000000001,0 -2.97,-2.1100000000000003" data-type="line" data-label="" points="266.8780019212296,277.5024015369836 176.23439000960616,391.00864553314113" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
147
|
+
</g>
|
|
148
|
+
<g>
|
|
149
|
+
<polyline data-points="-1.2850000000000001,0 -0.8100000000000003,-3.005000000000001" data-type="line" data-label="" points="266.8780019212296,277.5024015369836 292.43035542747356,439.1546589817483" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
150
|
+
</g>
|
|
151
|
+
<g>
|
|
152
|
+
<polyline data-points="-1.2850000000000001,0 1.2594553499999992,-4.739999999999999" data-type="line" data-label="" points="266.8780019212296,277.5024015369836 403.7555231508165,532.4879923150816" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
153
|
+
</g>
|
|
154
|
+
<g>
|
|
155
|
+
<polyline data-points="-1.2850000000000001,0 -0.75,-5.315" data-type="line" data-label="" points="266.8780019212296,277.5024015369836 295.6580211335255,563.4197886647453" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
156
|
+
</g>
|
|
157
|
+
<g>
|
|
158
|
+
<polyline data-points="-2.97,-2.1100000000000003 -0.8100000000000003,-3.005000000000001" data-type="line" data-label="" points="176.23439000960616,391.00864553314113 292.43035542747356,439.1546589817483" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
159
|
+
</g>
|
|
160
|
+
<g>
|
|
161
|
+
<polyline data-points="-2.97,-2.1100000000000003 1.2594553499999992,-4.739999999999999" data-type="line" data-label="" points="176.23439000960616,391.00864553314113 403.7555231508165,532.4879923150816" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
162
|
+
</g>
|
|
163
|
+
<g>
|
|
164
|
+
<polyline data-points="-2.97,-2.1100000000000003 -0.75,-5.315" data-type="line" data-label="" points="176.23439000960616,391.00864553314113 295.6580211335255,563.4197886647453" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
165
|
+
</g>
|
|
166
|
+
<g>
|
|
167
|
+
<polyline data-points="-0.8100000000000003,-3.005000000000001 1.2594553499999992,-4.739999999999999" data-type="line" data-label="" points="292.43035542747356,439.1546589817483 403.7555231508165,532.4879923150816" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
168
|
+
</g>
|
|
169
|
+
<g>
|
|
170
|
+
<polyline data-points="-0.8100000000000003,-3.005000000000001 -0.75,-5.315" data-type="line" data-label="" points="292.43035542747356,439.1546589817483 295.6580211335255,563.4197886647453" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
171
|
+
</g>
|
|
172
|
+
<g>
|
|
173
|
+
<polyline data-points="1.2594553499999992,-4.739999999999999 -0.75,-5.315" data-type="line" data-label="" points="403.7555231508165,532.4879923150816 295.6580211335255,563.4197886647453" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
174
|
+
</g>
|
|
175
|
+
<g>
|
|
176
|
+
<polyline data-points="1.2850000000000001,0.1 -0.8100000000000003,-1.9050000000000002" data-type="line" data-label="" points="405.12968299711815,272.1229586935638 292.43035542747356,379.9807877041306" fill="none" stroke="hsl(154, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
177
|
+
</g>
|
|
178
|
+
<g>
|
|
179
|
+
<polyline data-points="1.2850000000000001,0.1 2.675,-1.3049999999999997" data-type="line" data-label="" points="405.12968299711815,272.1229586935638 479.90393852065324,347.70413064361185" fill="none" stroke="hsl(154, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
180
|
+
</g>
|
|
181
|
+
<g>
|
|
182
|
+
<polyline data-points="1.2850000000000001,0.1 -0.75,-4.215000000000001" data-type="line" data-label="" points="405.12968299711815,272.1229586935638 295.6580211335255,504.24591738712775" fill="none" stroke="hsl(154, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
183
|
+
</g>
|
|
184
|
+
<g>
|
|
185
|
+
<polyline data-points="-0.8100000000000003,-1.9050000000000002 2.675,-1.3049999999999997" data-type="line" data-label="" points="292.43035542747356,379.9807877041306 479.90393852065324,347.70413064361185" fill="none" stroke="hsl(154, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
186
|
+
</g>
|
|
187
|
+
<g>
|
|
188
|
+
<polyline data-points="-0.8100000000000003,-1.9050000000000002 -0.75,-4.215000000000001" data-type="line" data-label="" points="292.43035542747356,379.9807877041306 295.6580211335255,504.24591738712775" fill="none" stroke="hsl(154, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
189
|
+
</g>
|
|
190
|
+
<g>
|
|
191
|
+
<polyline data-points="2.675,-1.3049999999999997 -0.75,-4.215000000000001" data-type="line" data-label="" points="479.90393852065324,347.70413064361185 295.6580211335255,504.24591738712775" fill="none" stroke="hsl(154, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
192
|
+
</g>
|
|
193
|
+
<g>
|
|
194
|
+
<polyline data-points="2.675,-2.4349999999999996 1.2594553499999992,-3.6399999999999997" data-type="line" data-label="" points="479.90393852065324,408.4918347742554 403.7555231508165,473.3141210374639" fill="none" stroke="hsl(187, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
195
|
+
</g>
|
|
196
|
+
<g>
|
|
197
|
+
<polyline data-points="-2.87,2.485 -2.87,1.2399999999999998" data-type="line" data-label="" points="181.61383285302594,143.82324687800187 181.61383285302594,210.79731027857824" fill="none" stroke="purple" stroke-width="1" />
|
|
198
|
+
</g>
|
|
199
|
+
<g>
|
|
200
|
+
<polyline data-points="-2.87,3.6149999999999998 -2.87,3.815 -2.1099999999999994,3.815 -2.1099999999999994,2.2849999999999997 -2.87,2.2849999999999997 -2.87,2.485" data-type="line" data-label="" points="181.61383285302594,83.03554274735825 181.61383285302594,72.27665706051869 222.49759846301637,72.27665706051869 222.49759846301637,154.58213256484146 181.61383285302594,154.58213256484146 181.61383285302594,143.82324687800187" fill="none" stroke="purple" stroke-width="1" />
|
|
201
|
+
</g>
|
|
202
|
+
<g>
|
|
203
|
+
<polyline data-points="-2.87,0.19999999999999973 -2.87,-0.4049999999999998 -2.97,-0.4049999999999998 -2.97,-1.0099999999999998" data-type="line" data-label="" points="181.61383285302594,266.74351585014404 181.61383285302594,299.28914505283376 176.23439000960616,299.28914505283376 176.23439000960616,331.8347742555234" fill="none" stroke="purple" stroke-width="1" />
|
|
204
|
+
</g>
|
|
205
|
+
<g>
|
|
206
|
+
<polyline data-points="-2.97,-2.1100000000000003 -2.97,-3.205000000000001 -0.81,-3.205000000000001 -0.81,-3.005000000000001" data-type="line" data-label="" points="176.23439000960616,391.00864553314113 176.23439000960616,449.91354466858786 292.4303554274736,449.91354466858786 292.4303554274736,439.1546589817483" fill="none" stroke="purple" stroke-width="1" />
|
|
207
|
+
</g>
|
|
208
|
+
<g>
|
|
209
|
+
<polyline data-points="1.2594553499999988,-4.739999999999999 1.2594553499999988,-5.515000000000001 -0.75,-5.515000000000001 -0.75,-5.315" data-type="line" data-label="" points="403.75552315081643,532.4879923150816 403.75552315081643,574.178674351585 295.6580211335255,574.178674351585 295.6580211335255,563.4197886647453" fill="none" stroke="purple" stroke-width="1" />
|
|
210
|
+
</g>
|
|
211
|
+
<g>
|
|
212
|
+
<polyline data-points="1.2850000000000001,0.1 2.675,0.1 2.675,-1.3049999999999997" data-type="line" data-label="" points="405.12968299711815,272.1229586935638 479.90393852065324,272.1229586935638 479.90393852065324,347.70413064361185" fill="none" stroke="purple" stroke-width="1" />
|
|
213
|
+
</g>
|
|
214
|
+
<g>
|
|
215
|
+
<polyline data-points="2.6749999999999994,-2.4349999999999996 2.6749999999999994,-3.0374999999999996 1.2594553499999992,-3.0374999999999996 1.2594553499999992,-3.6399999999999997" data-type="line" data-label="" points="479.9039385206532,408.4918347742554 479.9039385206532,440.90297790585964 403.7555231508165,440.90297790585964 403.7555231508165,473.3141210374639" fill="none" stroke="purple" stroke-width="1" />
|
|
216
|
+
</g>
|
|
217
|
+
<g>
|
|
218
|
+
<polyline data-points="-1.2850000000000001,0.20000000000000018 -1.866,0.20000000000000018 -1.866,-4.440892098500626e-16 -2.87,-4.440892098500626e-16 -2.87,0.19999999999999973" data-type="line" data-label="" points="266.8780019212296,266.74351585014404 235.62343900096062,266.74351585014404 235.62343900096062,277.5024015369836 181.61383285302594,277.5024015369836 181.61383285302594,266.74351585014404" fill="none" stroke="purple" stroke-width="1" />
|
|
219
|
+
</g>
|
|
220
|
+
<g>
|
|
221
|
+
<polyline data-points="-1.2850000000000001,-0.2 -1.485,-0.2 -1.485,-0.20099999999999993 -2.166,-0.20099999999999993 -2.166,0.5 -1.485,0.5 -1.485,0.2 -1.2850000000000001,0.2" data-type="line" data-label="" points="266.8780019212296,288.26128722382316 256.11911623439005,288.26128722382316 256.11911623439005,288.3150816522574 219.48511047070127,288.3150816522574 219.48511047070127,250.60518731988466 256.11911623439005,250.60518731988466 256.11911623439005,266.74351585014404 266.8780019212296,266.74351585014404" fill="none" stroke="purple" stroke-width="1" />
|
|
222
|
+
</g>
|
|
223
|
+
<g>
|
|
224
|
+
<polyline data-points="-1.2850000000000001,0 -1.3860000000000001,0 -1.3860000000000001,-0.301" data-type="line" data-label="" points="266.8780019212296,277.5024015369836 261.4447646493756,277.5024015369836 261.4447646493756,293.6945244956772" fill="none" stroke="purple" stroke-width="1" />
|
|
225
|
+
</g>
|
|
226
|
+
<g>
|
|
227
|
+
<rect data-type="rect" data-label="schematic_component_0" data-x="-2.71" data-y="0.7199999999999998" x="167.08933717579254" y="210.79731027857824" width="46.26320845341016" height="55.9462055715658" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
228
|
+
</g>
|
|
229
|
+
<g>
|
|
230
|
+
<rect data-type="rect" data-label="schematic_component_1" data-x="-3.25" data-y="3.05" x="110.60518731988472" y="83.03554274735825" width="101.13352545629206" height="60.78770413064362" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
231
|
+
</g>
|
|
232
|
+
<g>
|
|
233
|
+
<rect data-type="rect" data-label="schematic_component_2" data-x="0" data-y="0" x="266.8780019212296" y="261.36407300672425" width="138.25168107588854" height="32.27665706051869" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
234
|
+
</g>
|
|
235
|
+
<g>
|
|
236
|
+
<rect data-type="rect" data-label="schematic_component_3" data-x="-2.755" data-y="-1.56" x="161.9788664745437" y="331.8347742555234" width="51.642651296830024" height="59.17387127761771" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
237
|
+
</g>
|
|
238
|
+
<g>
|
|
239
|
+
<rect data-type="rect" data-label="schematic_component_4" data-x="-0.5950000000000002" data-y="-2.4550000000000005" x="278.17483189241113" y="379.9807877041306" width="51.64265129682997" height="59.17387127761771" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
240
|
+
</g>
|
|
241
|
+
<g>
|
|
242
|
+
<rect data-type="rect" data-label="schematic_component_5" data-x="2.9724999999999997" data-y="-1.8699999999999997" x="462.4207492795389" y="347.70413064361185" width="66.97406340057637" height="60.78770413064353" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
243
|
+
</g>
|
|
244
|
+
<g>
|
|
245
|
+
<rect data-type="rect" data-label="schematic_component_6" data-x="1.5519553499999992" data-y="-4.1899999999999995" x="393.2949087415946" y="473.3141210374639" width="52.3909694524495" height="59.17387127761765" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
246
|
+
</g>
|
|
247
|
+
<g>
|
|
248
|
+
<rect data-type="rect" data-label="schematic_component_7" data-x="-0.5950000000000001" data-y="-4.765000000000001" x="281.402497598463" y="504.24591738712775" width="45.18731988472621" height="59.173871277617536" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.018589285714285714" />
|
|
249
|
+
</g>
|
|
250
|
+
<g>
|
|
251
|
+
<rect data-type="rect" data-label="netId: VBUS
|
|
252
|
+
globalConnNetId: connectivity_net0" data-x="-2.87" data-y="4.115" x="176.23439000960616" y="39.99999999999994" width="10.75888568683959" height="32.276657060518716" fill="#ef444466" stroke="#ef4444" stroke-width="0.018589285714285714" />
|
|
253
|
+
</g>
|
|
254
|
+
<g>
|
|
255
|
+
<rect data-type="rect" data-label="netId: RAW
|
|
256
|
+
globalConnNetId: connectivity_net1" data-x="-1.725" data-y="-0.2" x="230.29779058597504" y="282.8818443804034" width="25.821325648415012" height="10.758885686839562" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018589285714285714" />
|
|
257
|
+
</g>
|
|
258
|
+
<g>
|
|
259
|
+
<rect data-type="rect" data-label="netId: GND
|
|
260
|
+
globalConnNetId: connectivity_net2" data-x="-1.3860000000000001" data-y="-0.5409999999999999" x="256.0653218059558" y="293.6945244956772" width="10.758885686839562" height="25.821325648414984" fill="#00000066" stroke="#000000" stroke-width="0.018589285714285714" />
|
|
261
|
+
</g>
|
|
262
|
+
<g>
|
|
263
|
+
<rect data-type="rect" data-label="netId: GND
|
|
264
|
+
globalConnNetId: connectivity_net2" data-x="-2.97" data-y="-3.445000000000001" x="170.85494716618638" y="449.91354466858786" width="10.758885686839562" height="25.82132564841504" fill="#00000066" stroke="#000000" stroke-width="0.018589285714285714" />
|
|
265
|
+
</g>
|
|
266
|
+
<g>
|
|
267
|
+
<rect data-type="rect" data-label="netId: GND
|
|
268
|
+
globalConnNetId: connectivity_net2" data-x="1.2594553499999988" data-y="-5.755000000000001" x="398.37608030739665" y="574.178674351585" width="10.75888568683962" height="25.82132564841504" fill="#00000066" stroke="#000000" stroke-width="0.018589285714285714" />
|
|
269
|
+
</g>
|
|
270
|
+
<g>
|
|
271
|
+
<rect data-type="rect" data-label="netId: V3V3
|
|
272
|
+
globalConnNetId: connectivity_net3" data-x="1.98" data-y="0.4" x="437.1373679154659" y="239.84630163304507" width="10.758885686839562" height="32.276657060518744" fill="#ef444466" stroke="#ef4444" stroke-width="0.018589285714285714" />
|
|
273
|
+
</g>
|
|
274
|
+
<g>
|
|
275
|
+
<rect data-type="rect" data-label="netId: V3V3
|
|
276
|
+
globalConnNetId: connectivity_net3" data-x="-0.8100000000000003" data-y="-1.6040000000000003" x="287.0509125840538" y="347.6503362151776" width="10.758885686839562" height="32.2766570605188" fill="#ef444466" stroke="#ef4444" stroke-width="0.018589285714285714" />
|
|
277
|
+
</g>
|
|
278
|
+
<g>
|
|
279
|
+
<rect data-type="rect" data-label="netId: V3V3
|
|
280
|
+
globalConnNetId: connectivity_net3" data-x="-0.75" data-y="-3.914000000000001" x="290.27857829010566" y="471.91546589817483" width="10.75888568683962" height="32.27665706051869" fill="#ef444466" stroke="#ef4444" stroke-width="0.018589285714285714" />
|
|
281
|
+
</g>
|
|
282
|
+
<g>
|
|
283
|
+
<rect data-type="rect" data-label="netId: PWR_LED_K
|
|
284
|
+
globalConnNetId: connectivity_net4" data-x="2.0749999999999993" data-y="-2.7362499999999996" x="415.3506243996157" y="419.31796349663773" width="64.55331412103749" height="10.758885686839562" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.018589285714285714" />
|
|
285
|
+
</g>
|
|
286
|
+
<g id="crosshair" style="display: none">
|
|
287
|
+
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
288
|
+
<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>
|
|
289
|
+
</g>
|
|
290
|
+
<script>
|
|
291
|
+
<![CDATA[
|
|
292
|
+
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
293
|
+
const svg = e.currentTarget;
|
|
294
|
+
const rect = svg.getBoundingClientRect();
|
|
295
|
+
const x = e.clientX - rect.left;
|
|
296
|
+
const y = e.clientY - rect.top;
|
|
297
|
+
const crosshair = svg.getElementById('crosshair');
|
|
298
|
+
const h = svg.getElementById('crosshair-h');
|
|
299
|
+
const v = svg.getElementById('crosshair-v');
|
|
300
|
+
const coords = svg.getElementById('coordinates');
|
|
301
|
+
|
|
302
|
+
crosshair.style.display = 'block';
|
|
303
|
+
h.setAttribute('x1', '0');
|
|
304
|
+
h.setAttribute('x2', '640');
|
|
305
|
+
h.setAttribute('y1', y);
|
|
306
|
+
h.setAttribute('y2', y);
|
|
307
|
+
v.setAttribute('x1', x);
|
|
308
|
+
v.setAttribute('x2', x);
|
|
309
|
+
v.setAttribute('y1', '0');
|
|
310
|
+
v.setAttribute('y2', '640');
|
|
311
|
+
|
|
312
|
+
// Calculate real coordinates using inverse transformation
|
|
313
|
+
const matrix = {
|
|
314
|
+
"a": 53.79442843419788,
|
|
315
|
+
"c": 0,
|
|
316
|
+
"e": 336.0038424591739,
|
|
317
|
+
"b": 0,
|
|
318
|
+
"d": -53.79442843419788,
|
|
319
|
+
"f": 277.5024015369836
|
|
320
|
+
};
|
|
321
|
+
// Manually invert and apply the affine transform
|
|
322
|
+
// Since we only use translate and scale, we can directly compute:
|
|
323
|
+
// x' = (x - tx) / sx
|
|
324
|
+
// y' = (y - ty) / sy
|
|
325
|
+
const sx = matrix.a;
|
|
326
|
+
const sy = matrix.d;
|
|
327
|
+
const tx = matrix.e;
|
|
328
|
+
const ty = matrix.f;
|
|
329
|
+
const realPoint = {
|
|
330
|
+
x: (x - tx) / sx,
|
|
331
|
+
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
335
|
+
coords.setAttribute('x', (x + 5).toString());
|
|
336
|
+
coords.setAttribute('y', (y - 5).toString());
|
|
337
|
+
});
|
|
338
|
+
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
339
|
+
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
340
|
+
});
|
|
341
|
+
]]>
|
|
342
|
+
</script>
|
|
343
|
+
</svg>
|