@tscircuit/schematic-trace-solver 0.0.68 → 0.0.69
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/dist/index.js +49 -23
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/rerouteCollidingTrace.ts +12 -3
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/SingleOverlapSolver/SingleOverlapSolver.ts +11 -0
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/tryFourPointDetour.ts +13 -8
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/violation.ts +54 -20
- package/package.json +1 -1
- package/tests/examples/__snapshots__/example03.snap.svg +66 -66
- package/tests/examples/__snapshots__/example16.snap.svg +5 -9
- package/tests/examples/__snapshots__/example20.snap.svg +4 -7
- package/tests/examples/__snapshots__/example22.snap.svg +5 -9
- package/tests/examples/__snapshots__/example32.snap.svg +108 -93
- package/tests/repros/__snapshots__/repro-bq24074-battery-charger.snap.svg +396 -0
- package/tests/repros/assets/repro-bq24074-battery-charger.input.json +219 -0
- package/tests/repros/repro-bq24074-battery-charger.test.ts +18 -0
|
@@ -0,0 +1,396 @@
|
|
|
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="J1.1
|
|
5
|
+
x+" data-x="-3.1600000000000006" data-y="-0.10500000000000029" cx="213.5399284862932" cy="295.8045292014303" r="3" fill="hsl(218, 100%, 50%, 0.8)" />
|
|
6
|
+
</g>
|
|
7
|
+
<g>
|
|
8
|
+
<circle data-type="point" data-label="J1.2
|
|
9
|
+
x+" data-x="-3.1600000000000006" data-y="-0.30500000000000027" cx="213.5399284862932" cy="309.15375446960667" r="3" fill="hsl(219, 100%, 50%, 0.8)" />
|
|
10
|
+
</g>
|
|
11
|
+
<g>
|
|
12
|
+
<circle data-type="point" data-label="U1.1
|
|
13
|
+
x-" data-x="-1.9500000000000002" data-y="-0.7000000000000001" cx="294.30274135876044" cy="335.51847437425505" r="3" fill="hsl(319, 100%, 50%, 0.8)" />
|
|
14
|
+
</g>
|
|
15
|
+
<g>
|
|
16
|
+
<circle data-type="point" data-label="U1.2
|
|
17
|
+
x-" data-x="-1.9500000000000002" data-y="-0.9" cx="294.30274135876044" cy="348.86769964243143" r="3" fill="hsl(320, 100%, 50%, 0.8)" />
|
|
18
|
+
</g>
|
|
19
|
+
<g>
|
|
20
|
+
<circle data-type="point" data-label="U1.4
|
|
21
|
+
x+" data-x="1.9500000000000002" data-y="-0.85" cx="554.6126340882001" cy="345.5303933253873" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
|
|
22
|
+
</g>
|
|
23
|
+
<g>
|
|
24
|
+
<circle data-type="point" data-label="U1.5
|
|
25
|
+
x+" data-x="1.9500000000000002" data-y="-0.2499999999999999" cx="554.6126340882001" cy="305.48271752085816" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
|
|
26
|
+
</g>
|
|
27
|
+
<g>
|
|
28
|
+
<circle data-type="point" data-label="U1.6
|
|
29
|
+
x+" data-x="1.9500000000000002" data-y="-0.44999999999999996" cx="554.6126340882001" cy="318.83194278903454" r="3" fill="hsl(324, 100%, 50%, 0.8)" />
|
|
30
|
+
</g>
|
|
31
|
+
<g>
|
|
32
|
+
<circle data-type="point" data-label="U1.7
|
|
33
|
+
y+" data-x="-0.44999999999999996" data-y="2.55" cx="394.42193087008343" cy="118.5935637663886" r="3" fill="hsl(325, 100%, 50%, 0.8)" />
|
|
34
|
+
</g>
|
|
35
|
+
<g>
|
|
36
|
+
<circle data-type="point" data-label="U1.8
|
|
37
|
+
x-" data-x="-1.9500000000000002" data-y="0.7" cx="294.30274135876044" cy="242.07389749702025" r="3" fill="hsl(326, 100%, 50%, 0.8)" />
|
|
38
|
+
</g>
|
|
39
|
+
<g>
|
|
40
|
+
<circle data-type="point" data-label="U1.9
|
|
41
|
+
y+" data-x="0.44999999999999996" data-y="2.55" cx="454.4934445768772" cy="118.5935637663886" r="3" fill="hsl(327, 100%, 50%, 0.8)" />
|
|
42
|
+
</g>
|
|
43
|
+
<g>
|
|
44
|
+
<circle data-type="point" data-label="U1.10
|
|
45
|
+
x+" data-x="1.9500000000000002" data-y="0.85" cx="554.6126340882001" cy="232.06197854588797" r="3" fill="hsl(217, 100%, 50%, 0.8)" />
|
|
46
|
+
</g>
|
|
47
|
+
<g>
|
|
48
|
+
<circle data-type="point" data-label="U1.12
|
|
49
|
+
y-" data-x="0" data-y="-2.55" cx="424.4576877234803" cy="458.99880810488673" r="3" fill="hsl(219, 100%, 50%, 0.8)" />
|
|
50
|
+
</g>
|
|
51
|
+
<g>
|
|
52
|
+
<circle data-type="point" data-label="U1.13
|
|
53
|
+
x-" data-x="-1.9500000000000002" data-y="0.9" cx="294.30274135876044" cy="228.72467222884387" r="3" fill="hsl(220, 100%, 50%, 0.8)" />
|
|
54
|
+
</g>
|
|
55
|
+
<g>
|
|
56
|
+
<circle data-type="point" data-label="U1.14
|
|
57
|
+
x+" data-x="1.9500000000000002" data-y="-0.6499999999999999" cx="554.6126340882001" cy="332.1811680572109" r="3" fill="hsl(221, 100%, 50%, 0.8)" />
|
|
58
|
+
</g>
|
|
59
|
+
<g>
|
|
60
|
+
<circle data-type="point" data-label="U1.15
|
|
61
|
+
y-" data-x="-0.65" data-y="-2.55" cx="381.07270560190705" cy="458.99880810488673" r="3" fill="hsl(222, 100%, 50%, 0.8)" />
|
|
62
|
+
</g>
|
|
63
|
+
<g>
|
|
64
|
+
<circle data-type="point" data-label="U1.16
|
|
65
|
+
y-" data-x="0.65" data-y="-2.55" cx="467.8426698450536" cy="458.99880810488673" r="3" fill="hsl(223, 100%, 50%, 0.8)" />
|
|
66
|
+
</g>
|
|
67
|
+
<g>
|
|
68
|
+
<circle data-type="point" data-label="C1.1
|
|
69
|
+
x-" data-x="-4.260000000000002" data-y="2.1149999999999998" cx="140.11918951132293" cy="147.62812872467228" r="3" fill="hsl(121, 100%, 50%, 0.8)" />
|
|
70
|
+
</g>
|
|
71
|
+
<g>
|
|
72
|
+
<circle data-type="point" data-label="C1.2
|
|
73
|
+
x+" data-x="-3.160000000000001" data-y="2.1149999999999998" cx="213.53992848629318" cy="147.62812872467228" r="3" fill="hsl(122, 100%, 50%, 0.8)" />
|
|
74
|
+
</g>
|
|
75
|
+
<g>
|
|
76
|
+
<circle data-type="point" data-label="BT1.1
|
|
77
|
+
x+" data-x="-2.755" data-y="-2.705" cx="240.57210965435044" cy="469.34445768772343" r="3" fill="hsl(114, 100%, 50%, 0.8)" />
|
|
78
|
+
</g>
|
|
79
|
+
<g>
|
|
80
|
+
<circle data-type="point" data-label="BT1.2
|
|
81
|
+
x+" data-x="-2.755" data-y="-2.9050000000000002" cx="240.57210965435044" cy="482.6936829558998" r="3" fill="hsl(115, 100%, 50%, 0.8)" />
|
|
82
|
+
</g>
|
|
83
|
+
<g>
|
|
84
|
+
<circle data-type="point" data-label="BT1.3
|
|
85
|
+
x+" data-x="-2.755" data-y="-3.1050000000000004" cx="240.57210965435044" cy="496.04290822407626" r="3" fill="hsl(116, 100%, 50%, 0.8)" />
|
|
86
|
+
</g>
|
|
87
|
+
<g>
|
|
88
|
+
<circle data-type="point" data-label="anchorPoint
|
|
89
|
+
orientation: x-" data-x="-2.5550000000000006" data-y="0.9" cx="253.9213349225268" cy="228.72467222884387" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
90
|
+
</g>
|
|
91
|
+
<g>
|
|
92
|
+
<circle data-type="point" data-label="anchorPoint
|
|
93
|
+
orientation: x-" data-x="-4.260000000000002" data-y="2.1149999999999998" cx="140.11918951132293" cy="147.62812872467228" 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="-2.6550000000000002" data-y="-0.30500000000000027" cx="247.24672228843863" cy="309.15375446960667" 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="2.1500000000000004" data-y="-0.85" cx="567.9618593563766" cy="345.5303933253873" 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="-3.059000000000001" data-y="1.664" cx="220.28128724672226" cy="177.73063170441003" 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="-2.654" data-y="-3.3060000000000005" cx="247.31346841477952" cy="509.4588796185935" 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.531" data-y="-0.9190000000000002" cx="255.523241954708" cy="350.1358760429082" 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="-1.9500000000000002" data-y="-0.9" cx="294.30274135876044" cy="348.86769964243143" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
118
|
+
</g>
|
|
119
|
+
<g>
|
|
120
|
+
<circle data-type="point" data-label="anchorPoint
|
|
121
|
+
orientation: x+" data-x="-2.755" data-y="-2.9050000000000002" cx="240.57210965435044" cy="482.6936829558998" 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="2.1500000000000004" data-y="-0.2499999999999999" cx="567.9618593563766" cy="305.48271752085816" 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="-1.9510000000000005" data-y="2.651" cx="294.23599523241955" cy="111.85220500595952" 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.39899999999999997" data-y="2.751" cx="451.08939213349225" cy="105.17759237187133" 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.7510000000000001" data-y="-3.3009999999999997" cx="374.33134684147797" cy="509.12514898688903" 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.7010000000000001" data-y="-2.7009999999999996" cx="377.66865315852203" cy="469.0774731823599" 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.599" data-y="-2.7009999999999996" cx="464.43861740166864" cy="469.0774731823599" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
146
|
+
</g>
|
|
147
|
+
<g>
|
|
148
|
+
<polyline data-points="-3.1600000000000006,-0.10500000000000029 -1.9500000000000002,0.9" data-type="line" data-label="" points="213.5399284862932,295.8045292014303 294.30274135876044,228.72467222884387" fill="none" stroke="hsl(181, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
149
|
+
</g>
|
|
150
|
+
<g>
|
|
151
|
+
<polyline data-points="-3.1600000000000006,-0.10500000000000029 -4.260000000000002,2.1149999999999998" data-type="line" data-label="" points="213.5399284862932,295.8045292014303 140.11918951132293,147.62812872467228" fill="none" stroke="hsl(181, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
152
|
+
</g>
|
|
153
|
+
<g>
|
|
154
|
+
<polyline data-points="-1.9500000000000002,0.9 -4.260000000000002,2.1149999999999998" data-type="line" data-label="" points="294.30274135876044,228.72467222884387 140.11918951132293,147.62812872467228" fill="none" stroke="hsl(181, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
155
|
+
</g>
|
|
156
|
+
<g>
|
|
157
|
+
<polyline data-points="-3.1600000000000006,-0.30500000000000027 1.9500000000000002,-0.85" data-type="line" data-label="" points="213.5399284862932,309.15375446960667 554.6126340882001,345.5303933253873" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
158
|
+
</g>
|
|
159
|
+
<g>
|
|
160
|
+
<polyline data-points="-3.1600000000000006,-0.30500000000000027 1.9500000000000002,-0.44999999999999996" data-type="line" data-label="" points="213.5399284862932,309.15375446960667 554.6126340882001,318.83194278903454" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
161
|
+
</g>
|
|
162
|
+
<g>
|
|
163
|
+
<polyline data-points="-3.1600000000000006,-0.30500000000000027 -1.9500000000000002,0.7" data-type="line" data-label="" points="213.5399284862932,309.15375446960667 294.30274135876044,242.07389749702025" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
164
|
+
</g>
|
|
165
|
+
<g>
|
|
166
|
+
<polyline data-points="-3.1600000000000006,-0.30500000000000027 1.9500000000000002,-0.6499999999999999" data-type="line" data-label="" points="213.5399284862932,309.15375446960667 554.6126340882001,332.1811680572109" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
167
|
+
</g>
|
|
168
|
+
<g>
|
|
169
|
+
<polyline data-points="-3.1600000000000006,-0.30500000000000027 -3.160000000000001,2.1149999999999998" data-type="line" data-label="" points="213.5399284862932,309.15375446960667 213.53992848629318,147.62812872467228" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
170
|
+
</g>
|
|
171
|
+
<g>
|
|
172
|
+
<polyline data-points="-3.1600000000000006,-0.30500000000000027 -2.755,-3.1050000000000004" data-type="line" data-label="" points="213.5399284862932,309.15375446960667 240.57210965435044,496.04290822407626" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
173
|
+
</g>
|
|
174
|
+
<g>
|
|
175
|
+
<polyline data-points="1.9500000000000002,-0.85 1.9500000000000002,-0.44999999999999996" data-type="line" data-label="" points="554.6126340882001,345.5303933253873 554.6126340882001,318.83194278903454" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
176
|
+
</g>
|
|
177
|
+
<g>
|
|
178
|
+
<polyline data-points="1.9500000000000002,-0.85 -1.9500000000000002,0.7" data-type="line" data-label="" points="554.6126340882001,345.5303933253873 294.30274135876044,242.07389749702025" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
179
|
+
</g>
|
|
180
|
+
<g>
|
|
181
|
+
<polyline data-points="1.9500000000000002,-0.85 1.9500000000000002,-0.6499999999999999" data-type="line" data-label="" points="554.6126340882001,345.5303933253873 554.6126340882001,332.1811680572109" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
182
|
+
</g>
|
|
183
|
+
<g>
|
|
184
|
+
<polyline data-points="1.9500000000000002,-0.85 -3.160000000000001,2.1149999999999998" data-type="line" data-label="" points="554.6126340882001,345.5303933253873 213.53992848629318,147.62812872467228" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
185
|
+
</g>
|
|
186
|
+
<g>
|
|
187
|
+
<polyline data-points="1.9500000000000002,-0.85 -2.755,-3.1050000000000004" data-type="line" data-label="" points="554.6126340882001,345.5303933253873 240.57210965435044,496.04290822407626" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
188
|
+
</g>
|
|
189
|
+
<g>
|
|
190
|
+
<polyline data-points="1.9500000000000002,-0.44999999999999996 -1.9500000000000002,0.7" data-type="line" data-label="" points="554.6126340882001,318.83194278903454 294.30274135876044,242.07389749702025" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
191
|
+
</g>
|
|
192
|
+
<g>
|
|
193
|
+
<polyline data-points="1.9500000000000002,-0.44999999999999996 1.9500000000000002,-0.6499999999999999" data-type="line" data-label="" points="554.6126340882001,318.83194278903454 554.6126340882001,332.1811680572109" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
194
|
+
</g>
|
|
195
|
+
<g>
|
|
196
|
+
<polyline data-points="1.9500000000000002,-0.44999999999999996 -3.160000000000001,2.1149999999999998" data-type="line" data-label="" points="554.6126340882001,318.83194278903454 213.53992848629318,147.62812872467228" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
197
|
+
</g>
|
|
198
|
+
<g>
|
|
199
|
+
<polyline data-points="1.9500000000000002,-0.44999999999999996 -2.755,-3.1050000000000004" data-type="line" data-label="" points="554.6126340882001,318.83194278903454 240.57210965435044,496.04290822407626" 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.9500000000000002,0.7 1.9500000000000002,-0.6499999999999999" data-type="line" data-label="" points="294.30274135876044,242.07389749702025 554.6126340882001,332.1811680572109" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
203
|
+
</g>
|
|
204
|
+
<g>
|
|
205
|
+
<polyline data-points="-1.9500000000000002,0.7 -3.160000000000001,2.1149999999999998" data-type="line" data-label="" points="294.30274135876044,242.07389749702025 213.53992848629318,147.62812872467228" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
206
|
+
</g>
|
|
207
|
+
<g>
|
|
208
|
+
<polyline data-points="-1.9500000000000002,0.7 -2.755,-3.1050000000000004" data-type="line" data-label="" points="294.30274135876044,242.07389749702025 240.57210965435044,496.04290822407626" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
209
|
+
</g>
|
|
210
|
+
<g>
|
|
211
|
+
<polyline data-points="1.9500000000000002,-0.6499999999999999 -3.160000000000001,2.1149999999999998" data-type="line" data-label="" points="554.6126340882001,332.1811680572109 213.53992848629318,147.62812872467228" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
212
|
+
</g>
|
|
213
|
+
<g>
|
|
214
|
+
<polyline data-points="1.9500000000000002,-0.6499999999999999 -2.755,-3.1050000000000004" data-type="line" data-label="" points="554.6126340882001,332.1811680572109 240.57210965435044,496.04290822407626" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
215
|
+
</g>
|
|
216
|
+
<g>
|
|
217
|
+
<polyline data-points="-3.160000000000001,2.1149999999999998 -2.755,-3.1050000000000004" data-type="line" data-label="" points="213.53992848629318,147.62812872467228 240.57210965435044,496.04290822407626" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
218
|
+
</g>
|
|
219
|
+
<g>
|
|
220
|
+
<polyline data-points="-1.9500000000000002,-0.7000000000000001 -2.755,-2.705" data-type="line" data-label="" points="294.30274135876044,335.51847437425505 240.57210965435044,469.34445768772343" fill="none" stroke="hsl(167, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
221
|
+
</g>
|
|
222
|
+
<g>
|
|
223
|
+
<polyline data-points="-1.9500000000000002,-0.9 -2.755,-2.9050000000000002" data-type="line" data-label="" points="294.30274135876044,348.86769964243143 240.57210965435044,482.6936829558998" fill="none" stroke="hsl(5, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
224
|
+
</g>
|
|
225
|
+
<g>
|
|
226
|
+
<polyline data-points="1.9500000000000002,-0.2499999999999999 1.9500000000000002,0.85" data-type="line" data-label="" points="554.6126340882001,305.48271752085816 554.6126340882001,232.06197854588797" fill="none" stroke="hsl(158, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
227
|
+
</g>
|
|
228
|
+
<g>
|
|
229
|
+
<polyline data-points="-1.9500000000000002,0.9 -2.5550000000000006,0.9 -2.5550000000000006,-0.10500000000000029 -3.1600000000000006,-0.10500000000000029" data-type="line" data-label="" points="294.30274135876044,228.72467222884387 253.9213349225268,228.72467222884387 253.9213349225268,295.8045292014303 213.5399284862932,295.8045292014303" fill="none" stroke="purple" stroke-width="1" />
|
|
230
|
+
</g>
|
|
231
|
+
<g>
|
|
232
|
+
<polyline data-points="-1.9500000000000002,0.7 -2.1500000000000004,0.7 -2.1500000000000004,-0.30500000000000027 -3.1600000000000006,-0.30500000000000027" data-type="line" data-label="" points="294.30274135876044,242.07389749702025 280.953516090584,242.07389749702025 280.953516090584,309.15375446960667 213.5399284862932,309.15375446960667" fill="none" stroke="purple" stroke-width="1" />
|
|
233
|
+
</g>
|
|
234
|
+
<g>
|
|
235
|
+
<polyline data-points="1.9500000000000002,-0.44999999999999996 2.1500000000000004,-0.44999999999999996 2.1500000000000004,-0.6499999999999999 1.9500000000000002,-0.6499999999999999" data-type="line" data-label="" points="554.6126340882001,318.83194278903454 567.9618593563766,318.83194278903454 567.9618593563766,332.1811680572109 554.6126340882001,332.1811680572109" fill="none" stroke="purple" stroke-width="1" />
|
|
236
|
+
</g>
|
|
237
|
+
<g>
|
|
238
|
+
<polyline data-points="1.9500000000000002,-0.85 2.1500000000000004,-0.85 2.1500000000000004,-0.6499999999999999 1.9500000000000002,-0.6499999999999999" data-type="line" data-label="" points="554.6126340882001,345.5303933253873 567.9618593563766,345.5303933253873 567.9618593563766,332.1811680572109 554.6126340882001,332.1811680572109" fill="none" stroke="purple" stroke-width="1" />
|
|
239
|
+
</g>
|
|
240
|
+
<g>
|
|
241
|
+
<polyline data-points="1.9500000000000002,-0.2499999999999999 2.1500000000000004,-0.2499999999999999 2.1500000000000004,0.85 1.9500000000000002,0.85" data-type="line" data-label="" points="554.6126340882001,305.48271752085816 567.9618593563766,305.48271752085816 567.9618593563766,232.06197854588797 554.6126340882001,232.06197854588797" fill="none" stroke="purple" stroke-width="1" />
|
|
242
|
+
</g>
|
|
243
|
+
<g>
|
|
244
|
+
<polyline data-points="-1.9500000000000002,-0.7000000000000001 -2.531,-0.7000000000000001 -2.531,-1.7025000000000001 -2.3525,-1.7025000000000001 -2.3525,-2.705 -2.755,-2.705" data-type="line" data-label="" points="294.30274135876044,335.51847437425505 255.523241954708,335.51847437425505 255.523241954708,402.4314660309892 267.4374255065554,402.4314660309892 267.4374255065554,469.34445768772343 240.57210965435044,469.34445768772343" fill="none" stroke="purple" stroke-width="1" />
|
|
245
|
+
</g>
|
|
246
|
+
<g>
|
|
247
|
+
<polyline data-points="-3.160000000000001,2.1149999999999998 -3.059000000000001,2.1149999999999998 -3.059000000000001,1.664" data-type="line" data-label="" points="213.53992848629318,147.62812872467228 220.28128724672226,147.62812872467228 220.28128724672226,177.73063170441003" fill="none" stroke="purple" stroke-width="1" />
|
|
248
|
+
</g>
|
|
249
|
+
<g>
|
|
250
|
+
<polyline data-points="-2.755,-3.1050000000000004 -2.654,-3.1050000000000004 -2.654,-3.3060000000000005" data-type="line" data-label="" points="240.57210965435044,496.04290822407626 247.31346841477952,496.04290822407626 247.31346841477952,509.4588796185935" fill="none" stroke="purple" stroke-width="1" />
|
|
251
|
+
</g>
|
|
252
|
+
<g>
|
|
253
|
+
<polyline data-points="-0.44999999999999996,2.55 -0.44999999999999996,2.5509999999999997 -1.9510000000000005,2.5509999999999997 -1.9510000000000005,2.651" data-type="line" data-label="" points="394.42193087008343,118.5935637663886 394.42193087008343,118.52681764004774 294.23599523241955,118.52681764004774 294.23599523241955,111.85220500595952" fill="none" stroke="purple" stroke-width="1" />
|
|
254
|
+
</g>
|
|
255
|
+
<g>
|
|
256
|
+
<polyline data-points="0.44999999999999996,2.55 0.44999999999999996,2.751 0.39899999999999997,2.751" data-type="line" data-label="" points="454.4934445768772,118.5935637663886 454.4934445768772,105.17759237187133 451.08939213349225,105.17759237187133" fill="none" stroke="purple" stroke-width="1" />
|
|
257
|
+
</g>
|
|
258
|
+
<g>
|
|
259
|
+
<polyline data-points="0,-2.55 0,-3.3009999999999997 -0.7510000000000001,-3.3009999999999997" data-type="line" data-label="" points="424.4576877234803,458.99880810488673 424.4576877234803,509.12514898688903 374.33134684147797,509.12514898688903" fill="none" stroke="purple" stroke-width="1" />
|
|
260
|
+
</g>
|
|
261
|
+
<g>
|
|
262
|
+
<polyline data-points="-0.65,-2.55 -0.65,-2.7009999999999996 -0.7010000000000001,-2.7009999999999996" data-type="line" data-label="" points="381.07270560190705,458.99880810488673 381.07270560190705,469.0774731823599 377.66865315852203,469.0774731823599" fill="none" stroke="purple" stroke-width="1" />
|
|
263
|
+
</g>
|
|
264
|
+
<g>
|
|
265
|
+
<polyline data-points="0.65,-2.55 0.65,-2.7009999999999996 0.599,-2.7009999999999996" data-type="line" data-label="" points="467.8426698450536,458.99880810488673 467.8426698450536,469.0774731823599 464.43861740166864,469.0774731823599" fill="none" stroke="purple" stroke-width="1" />
|
|
266
|
+
</g>
|
|
267
|
+
<g>
|
|
268
|
+
<rect data-type="rect" data-label="schematic_component_0" data-x="-4.460000000000001" data-y="-0.2050000000000003" x="40" y="282.4553039332539" width="173.5399284862932" height="40.047675804529206" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.01498214285714286" />
|
|
269
|
+
</g>
|
|
270
|
+
<g>
|
|
271
|
+
<rect data-type="rect" data-label="schematic_component_1" data-x="0" data-y="0" x="294.30274135876044" y="118.5935637663886" width="260.3098927294397" height="340.40524433849816" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.01498214285714286" />
|
|
272
|
+
</g>
|
|
273
|
+
<g>
|
|
274
|
+
<rect data-type="rect" data-label="schematic_component_2" data-x="-3.7100000000000013" data-y="2.1149999999999998" x="140.11918951132293" y="119.59475566150184" width="73.42073897497025" height="56.06674612634086" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.01498214285714286" />
|
|
275
|
+
</g>
|
|
276
|
+
<g>
|
|
277
|
+
<rect data-type="rect" data-label="schematic_component_3" data-x="-4.205" data-y="-2.9050000000000002" x="47.00834326579269" y="455.99523241954705" width="193.56376638855775" height="53.39690107270559" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.01498214285714286" />
|
|
278
|
+
</g>
|
|
279
|
+
<g>
|
|
280
|
+
<rect data-type="rect" data-label="netId: IN
|
|
281
|
+
globalConnNetId: connectivity_net0" data-x="-2.7350000000000008" data-y="0.9" x="229.89272943980927" y="222.05005959475568" width="24.028605482717524" height="13.349225268176383" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
282
|
+
</g>
|
|
283
|
+
<g>
|
|
284
|
+
<rect data-type="rect" data-label="netId: IN
|
|
285
|
+
globalConnNetId: connectivity_net0" data-x="-4.441000000000002" data-y="2.1149999999999998" x="116.02383790226457" y="140.95351609058406" width="24.028605482717467" height="13.349225268176411" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
286
|
+
</g>
|
|
287
|
+
<g>
|
|
288
|
+
<rect data-type="rect" data-label="netId: GND
|
|
289
|
+
globalConnNetId: connectivity_net1" data-x="-2.6550000000000002" data-y="-0.5450000000000003" x="240.5721096543504" y="309.15375446960667" width="13.349225268176411" height="32.038140643623365" fill="#00000066" stroke="#000000" stroke-width="0.01498214285714286" />
|
|
290
|
+
</g>
|
|
291
|
+
<g>
|
|
292
|
+
<rect data-type="rect" data-label="netId: GND
|
|
293
|
+
globalConnNetId: connectivity_net1" data-x="2.1500000000000004" data-y="-1.0899999999999999" x="561.2872467222884" y="345.5303933253873" width="13.349225268176383" height="32.038140643623365" fill="#00000066" stroke="#000000" stroke-width="0.01498214285714286" />
|
|
294
|
+
</g>
|
|
295
|
+
<g>
|
|
296
|
+
<rect data-type="rect" data-label="netId: GND
|
|
297
|
+
globalConnNetId: connectivity_net1" data-x="-3.059000000000001" data-y="1.424" x="213.60667461263404" y="177.73063170441003" width="13.349225268176411" height="32.038140643623365" fill="#00000066" stroke="#000000" stroke-width="0.01498214285714286" />
|
|
298
|
+
</g>
|
|
299
|
+
<g>
|
|
300
|
+
<rect data-type="rect" data-label="netId: GND
|
|
301
|
+
globalConnNetId: connectivity_net1" data-x="-2.654" data-y="-3.5460000000000003" x="240.63885578069133" y="509.4588796185935" width="13.349225268176411" height="32.038140643623365" fill="#00000066" stroke="#000000" stroke-width="0.01498214285714286" />
|
|
302
|
+
</g>
|
|
303
|
+
<g>
|
|
304
|
+
<rect data-type="rect" data-label="netId: TS
|
|
305
|
+
globalConnNetId: connectivity_net2" data-x="-2.7110000000000003" data-y="-0.9190000000000002" x="231.49463647199048" y="343.46126340882" width="24.028605482717524" height="13.349225268176383" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
306
|
+
</g>
|
|
307
|
+
<g>
|
|
308
|
+
<rect data-type="rect" data-label="netId: BAT
|
|
309
|
+
globalConnNetId: connectivity_net3" data-x="-2.1910000000000003" data-y="-0.9" x="262.1978545887962" y="342.19308700834324" width="32.038140643623365" height="13.349225268176383" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
310
|
+
</g>
|
|
311
|
+
<g>
|
|
312
|
+
<rect data-type="rect" data-label="netId: BAT
|
|
313
|
+
globalConnNetId: connectivity_net3" data-x="-2.514" data-y="-2.9050000000000002" x="240.63885578069136" y="476.0190703218116" width="32.03814064362331" height="13.34922526817644" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
314
|
+
</g>
|
|
315
|
+
<g>
|
|
316
|
+
<rect data-type="rect" data-label="netId: OUT
|
|
317
|
+
globalConnNetId: connectivity_net4" data-x="2.3900000000000006" data-y="-0.2499999999999999" x="567.9618593563766" y="298.80810488676997" width="32.038140643623365" height="13.349225268176383" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
318
|
+
</g>
|
|
319
|
+
<g>
|
|
320
|
+
<rect data-type="rect" data-label="netId: N_PGOOD_LED
|
|
321
|
+
globalConnNetId: connectivity_net5" data-x="-2.6710000000000003" data-y="2.651" x="198.12157330154952" y="105.17759237187133" width="96.11442193087004" height="13.349225268176411" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
322
|
+
</g>
|
|
323
|
+
<g>
|
|
324
|
+
<rect data-type="rect" data-label="netId: N_CHG_LED
|
|
325
|
+
globalConnNetId: connectivity_net6" data-x="-0.201" data-y="2.751" x="370.99404052443384" y="98.50297973778311" width="80.09535160905841" height="13.349225268176411" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
326
|
+
</g>
|
|
327
|
+
<g>
|
|
328
|
+
<rect data-type="rect" data-label="netId: ILIM
|
|
329
|
+
globalConnNetId: connectivity_net7" data-x="-1.0510000000000002" data-y="-3.3009999999999997" x="334.28367103694876" y="502.4505363528009" width="40.047675804529206" height="13.349225268176383" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
330
|
+
</g>
|
|
331
|
+
<g>
|
|
332
|
+
<rect data-type="rect" data-label="netId: ITERM
|
|
333
|
+
globalConnNetId: connectivity_net8" data-x="-1.061" data-y="-2.7009999999999996" x="329.61144219308704" y="462.40286054827163" width="48.05721096543499" height="13.34922526817644" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
334
|
+
</g>
|
|
335
|
+
<g>
|
|
336
|
+
<rect data-type="rect" data-label="netId: ISET
|
|
337
|
+
globalConnNetId: connectivity_net9" data-x="0.299" data-y="-2.7009999999999996" x="424.39094159713943" y="462.40286054827163" width="40.047675804529206" height="13.34922526817644" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.01498214285714286" />
|
|
338
|
+
</g>
|
|
339
|
+
<g id="crosshair" style="display: none">
|
|
340
|
+
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
341
|
+
<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>
|
|
342
|
+
</g>
|
|
343
|
+
<script>
|
|
344
|
+
<![CDATA[
|
|
345
|
+
document.currentScript.parentElement.addEventListener('mousemove', (e) => {
|
|
346
|
+
const svg = e.currentTarget;
|
|
347
|
+
const rect = svg.getBoundingClientRect();
|
|
348
|
+
const x = e.clientX - rect.left;
|
|
349
|
+
const y = e.clientY - rect.top;
|
|
350
|
+
const crosshair = svg.getElementById('crosshair');
|
|
351
|
+
const h = svg.getElementById('crosshair-h');
|
|
352
|
+
const v = svg.getElementById('crosshair-v');
|
|
353
|
+
const coords = svg.getElementById('coordinates');
|
|
354
|
+
|
|
355
|
+
crosshair.style.display = 'block';
|
|
356
|
+
h.setAttribute('x1', '0');
|
|
357
|
+
h.setAttribute('x2', '640');
|
|
358
|
+
h.setAttribute('y1', y);
|
|
359
|
+
h.setAttribute('y2', y);
|
|
360
|
+
v.setAttribute('x1', x);
|
|
361
|
+
v.setAttribute('x2', x);
|
|
362
|
+
v.setAttribute('y1', '0');
|
|
363
|
+
v.setAttribute('y2', '640');
|
|
364
|
+
|
|
365
|
+
// Calculate real coordinates using inverse transformation
|
|
366
|
+
const matrix = {
|
|
367
|
+
"a": 66.74612634088199,
|
|
368
|
+
"c": 0,
|
|
369
|
+
"e": 424.4576877234803,
|
|
370
|
+
"b": 0,
|
|
371
|
+
"d": -66.74612634088199,
|
|
372
|
+
"f": 288.79618593563765
|
|
373
|
+
};
|
|
374
|
+
// Manually invert and apply the affine transform
|
|
375
|
+
// Since we only use translate and scale, we can directly compute:
|
|
376
|
+
// x' = (x - tx) / sx
|
|
377
|
+
// y' = (y - ty) / sy
|
|
378
|
+
const sx = matrix.a;
|
|
379
|
+
const sy = matrix.d;
|
|
380
|
+
const tx = matrix.e;
|
|
381
|
+
const ty = matrix.f;
|
|
382
|
+
const realPoint = {
|
|
383
|
+
x: (x - tx) / sx,
|
|
384
|
+
y: (y - ty) / sy // Flip y back since we used negative scale
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
|
|
388
|
+
coords.setAttribute('x', (x + 5).toString());
|
|
389
|
+
coords.setAttribute('y', (y - 5).toString());
|
|
390
|
+
});
|
|
391
|
+
document.currentScript.parentElement.addEventListener('mouseleave', () => {
|
|
392
|
+
document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
|
|
393
|
+
});
|
|
394
|
+
]]>
|
|
395
|
+
</script>
|
|
396
|
+
</svg>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "schematic_component_0",
|
|
5
|
+
"center": {
|
|
6
|
+
"x": -4.460000000000001,
|
|
7
|
+
"y": -0.2050000000000003
|
|
8
|
+
},
|
|
9
|
+
"width": 1.8000000000000003,
|
|
10
|
+
"height": 0.6000000000000001,
|
|
11
|
+
"pins": [
|
|
12
|
+
{
|
|
13
|
+
"pinId": "J1.1",
|
|
14
|
+
"x": -3.1600000000000006,
|
|
15
|
+
"y": -0.10500000000000029
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"pinId": "J1.2",
|
|
19
|
+
"x": -3.1600000000000006,
|
|
20
|
+
"y": -0.30500000000000027
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"chipId": "schematic_component_1",
|
|
26
|
+
"center": {
|
|
27
|
+
"x": 0,
|
|
28
|
+
"y": 0
|
|
29
|
+
},
|
|
30
|
+
"width": 3.1,
|
|
31
|
+
"height": 4.3,
|
|
32
|
+
"pins": [
|
|
33
|
+
{
|
|
34
|
+
"pinId": "U1.1",
|
|
35
|
+
"x": -1.9500000000000002,
|
|
36
|
+
"y": -0.7000000000000001
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"pinId": "U1.2",
|
|
40
|
+
"x": -1.9500000000000002,
|
|
41
|
+
"y": -0.9
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"pinId": "U1.4",
|
|
45
|
+
"x": 1.9500000000000002,
|
|
46
|
+
"y": -0.85
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"pinId": "U1.5",
|
|
50
|
+
"x": 1.9500000000000002,
|
|
51
|
+
"y": -0.2499999999999999
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"pinId": "U1.6",
|
|
55
|
+
"x": 1.9500000000000002,
|
|
56
|
+
"y": -0.44999999999999996
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"pinId": "U1.7",
|
|
60
|
+
"x": -0.44999999999999996,
|
|
61
|
+
"y": 2.55
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"pinId": "U1.8",
|
|
65
|
+
"x": -1.9500000000000002,
|
|
66
|
+
"y": 0.7
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"pinId": "U1.9",
|
|
70
|
+
"x": 0.44999999999999996,
|
|
71
|
+
"y": 2.55
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"pinId": "U1.10",
|
|
75
|
+
"x": 1.9500000000000002,
|
|
76
|
+
"y": 0.85
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"pinId": "U1.12",
|
|
80
|
+
"x": 0,
|
|
81
|
+
"y": -2.55
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"pinId": "U1.13",
|
|
85
|
+
"x": -1.9500000000000002,
|
|
86
|
+
"y": 0.9
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"pinId": "U1.14",
|
|
90
|
+
"x": 1.9500000000000002,
|
|
91
|
+
"y": -0.6499999999999999
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"pinId": "U1.15",
|
|
95
|
+
"x": -0.65,
|
|
96
|
+
"y": -2.55
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"pinId": "U1.16",
|
|
100
|
+
"x": 0.65,
|
|
101
|
+
"y": -2.55
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"chipId": "schematic_component_2",
|
|
107
|
+
"center": {
|
|
108
|
+
"x": -3.7100000000000013,
|
|
109
|
+
"y": 2.1149999999999998
|
|
110
|
+
},
|
|
111
|
+
"width": 1.1,
|
|
112
|
+
"height": 0.84,
|
|
113
|
+
"pins": [
|
|
114
|
+
{
|
|
115
|
+
"pinId": "C1.1",
|
|
116
|
+
"x": -4.260000000000002,
|
|
117
|
+
"y": 2.1149999999999998
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"pinId": "C1.2",
|
|
121
|
+
"x": -3.160000000000001,
|
|
122
|
+
"y": 2.1149999999999998
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"chipId": "schematic_component_3",
|
|
128
|
+
"center": {
|
|
129
|
+
"x": -4.205,
|
|
130
|
+
"y": -2.9050000000000002
|
|
131
|
+
},
|
|
132
|
+
"width": 2.1,
|
|
133
|
+
"height": 0.8,
|
|
134
|
+
"pins": [
|
|
135
|
+
{
|
|
136
|
+
"pinId": "BT1.1",
|
|
137
|
+
"x": -2.755,
|
|
138
|
+
"y": -2.705
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"pinId": "BT1.2",
|
|
142
|
+
"x": -2.755,
|
|
143
|
+
"y": -2.9050000000000002
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"pinId": "BT1.3",
|
|
147
|
+
"x": -2.755,
|
|
148
|
+
"y": -3.1050000000000004
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"directConnections": [],
|
|
154
|
+
"netConnections": [
|
|
155
|
+
{
|
|
156
|
+
"netId": "IN",
|
|
157
|
+
"pinIds": ["J1.1", "U1.13", "C1.1"],
|
|
158
|
+
"netLabelWidth": 0.36
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"netId": "GND",
|
|
162
|
+
"pinIds": ["J1.2", "U1.4", "U1.6", "U1.8", "U1.14", "C1.2", "BT1.3"],
|
|
163
|
+
"netLabelWidth": 0.48
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"netId": "TS",
|
|
167
|
+
"pinIds": ["U1.1", "BT1.1"],
|
|
168
|
+
"netLabelWidth": 0.36
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"netId": "BAT",
|
|
172
|
+
"pinIds": ["U1.2", "BT1.2"],
|
|
173
|
+
"netLabelWidth": 0.48
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"netId": "OUT",
|
|
177
|
+
"pinIds": ["U1.5", "U1.10"],
|
|
178
|
+
"netLabelWidth": 0.48
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"netId": "N_PGOOD_LED",
|
|
182
|
+
"pinIds": ["U1.7"],
|
|
183
|
+
"netLabelWidth": 1.44
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"netId": "N_CHG_LED",
|
|
187
|
+
"pinIds": ["U1.9"],
|
|
188
|
+
"netLabelWidth": 1.2
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"netId": "ILIM",
|
|
192
|
+
"pinIds": ["U1.12"],
|
|
193
|
+
"netLabelWidth": 0.6
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"netId": "ITERM",
|
|
197
|
+
"pinIds": ["U1.15"],
|
|
198
|
+
"netLabelWidth": 0.72
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"netId": "ISET",
|
|
202
|
+
"pinIds": ["U1.16"],
|
|
203
|
+
"netLabelWidth": 0.6
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"availableNetLabelOrientations": {
|
|
207
|
+
"IN": ["x-", "x+"],
|
|
208
|
+
"GND": ["y-"],
|
|
209
|
+
"TS": ["x-", "x+"],
|
|
210
|
+
"BAT": ["x-", "x+"],
|
|
211
|
+
"N_PGOOD_LED": ["x-", "x+"],
|
|
212
|
+
"N_CHG_LED": ["x-", "x+"],
|
|
213
|
+
"OUT": ["x-", "x+"],
|
|
214
|
+
"ITERM": ["x-", "x+"],
|
|
215
|
+
"ILIM": ["x-", "x+"],
|
|
216
|
+
"ISET": ["x-", "x+"]
|
|
217
|
+
},
|
|
218
|
+
"maxMspPairDistance": 2.4
|
|
219
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { expect, test } from "bun:test"
|
|
2
|
+
import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
|
|
3
|
+
import inputProblem from "./assets/repro-bq24074-battery-charger.input.json"
|
|
4
|
+
import "tests/fixtures/matcher"
|
|
5
|
+
|
|
6
|
+
// InputProblem extracted from a tscircuit circuit: a BQ24074RGTR Li-ion battery
|
|
7
|
+
// charger (U1) wired to a DC adapter header (J1), a 1uF input capacitor (C1)
|
|
8
|
+
// and a 3-pin battery pack header (BT1). Power/ground/signal nets connect the
|
|
9
|
+
// parts, and several U1 pins (N_PGOOD, N_CHG, ILIM, ITERM, ISET) break out to
|
|
10
|
+
// net labels. Generated by rendering the circuit in @tscircuit/core with
|
|
11
|
+
// DEBUG=Group_doInitialSchematicTraceRender and copying the emitted
|
|
12
|
+
// "group-trace-render-input-problem" output.
|
|
13
|
+
test("repro bq24074 battery charger", () => {
|
|
14
|
+
const solver = new SchematicTracePipelineSolver(inputProblem as any)
|
|
15
|
+
solver.solve()
|
|
16
|
+
|
|
17
|
+
expect(solver).toMatchSolverSnapshot(import.meta.path)
|
|
18
|
+
})
|