@tscircuit/schematic-trace-solver 0.0.40 → 0.0.42
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.d.ts +155 -9
- package/dist/index.js +998 -479
- package/lib/solvers/LongDistancePairSolver/LongDistancePairSolver.ts +238 -0
- package/lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver.ts +61 -26
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/TraceLabelOverlapAvoidanceSolver.ts +94 -192
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/rerouteCollidingTrace.ts +13 -24
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/LabelMergingSolver/LabelMergingSolver.ts +205 -0
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/OverlapAvoidanceStepSolver/OverlapAvoidanceStepSolver.ts +144 -0
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/SingleOverlapSolver/SingleOverlapSolver.ts +117 -0
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/sub-solvers/TraceCleanupSolver/TraceCleanupSolver.ts +132 -0
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{balanceLShapes.ts → sub-solvers/TraceCleanupSolver/balanceLShapes.ts} +12 -10
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{hasCollisions.ts → sub-solvers/TraceCleanupSolver/hasCollisions.ts} +1 -1
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{hasCollisionsWithLabels.ts → sub-solvers/TraceCleanupSolver/hasCollisionsWithLabels.ts} +1 -1
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{minimizeTurnsWithFilteredLabels.ts → sub-solvers/TraceCleanupSolver/minimizeTurnsWithFilteredLabels.ts} +6 -6
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{simplifyPath.ts → sub-solvers/TraceCleanupSolver/simplifyPath.ts} +1 -1
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{turnMinimization.ts → sub-solvers/TraceCleanupSolver/turnMinimization.ts} +0 -2
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/tryFourPointDetour.ts +104 -0
- package/lib/solvers/TraceLabelOverlapAvoidanceSolver/trySnipAndReconnect.ts +24 -154
- package/lib/utils/does-trace-overlap-with-existing-traces.ts +33 -0
- package/package.json +1 -1
- package/site/examples/example25.page.tsx +4 -0
- package/tests/assets/1.input.json +379 -0
- package/tests/assets/2.input.json +330 -0
- package/tests/assets/3.input.json +388 -0
- package/tests/assets/MergedNetLabelObstacles.test.input.json +154 -0
- package/tests/assets/OverlapAvoidanceStepSolver.test.input.json +682 -0
- package/tests/assets/SingleOverlapSolver.test.input.json +170 -0
- package/tests/assets/TraceCleanupSolver.test.input.json +216 -0
- package/tests/assets/TraceLabelOverlapAvoidanceSolver.test.input.json +424 -0
- package/tests/assets/example25.json +96 -0
- package/tests/examples/__snapshots__/example03.snap.svg +67 -76
- package/tests/examples/__snapshots__/example10.snap.svg +24 -30
- package/tests/examples/__snapshots__/example13.snap.svg +81 -84
- package/tests/examples/__snapshots__/example15.snap.svg +5 -8
- package/tests/examples/__snapshots__/example21.snap.svg +68 -74
- package/tests/examples/__snapshots__/example25.snap.svg +3 -3
- package/tests/examples/__snapshots__/example26.snap.svg +3 -3
- package/tests/examples/__snapshots__/example28.snap.svg +273 -0
- package/tests/examples/example28.test.ts +13 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/TraceLabelOverlapAvoidanceSolver.test.ts +18 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/__snapshots__/TraceLabelOverlapAvoidanceSolver.snap.svg +243 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView01.snap.svg +223 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView02.snap.svg +205 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView03.snap.svg +184 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/renderComparisonView01.test.ts +29 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/renderComparisonView02.test.ts +27 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/renderComparisonView03.test.ts +39 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/MergedNetLabelObstacles.test.ts +14 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/OverlapAvoidanceStepSolver.test.ts +20 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/SingleOverlapSolver.test.ts +10 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/TraceCleanupSolver.test.ts +19 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/MergedNetLabelObstacles.snap.svg +140 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/OverlapAvoidanceStepSolver.snap.svg +216 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/SingleOverlapSolver.snap.svg +125 -0
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/TraceCleanupSolver.snap.svg +119 -0
- /package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{countTurns.ts → sub-solvers/TraceCleanupSolver/countTurns.ts} +0 -0
- /package/lib/solvers/TraceLabelOverlapAvoidanceSolver/{tryConnectPoints.ts → sub-solvers/TraceCleanupSolver/tryConnectPoints.ts} +0 -0
|
@@ -2,265 +2,262 @@
|
|
|
2
2
|
<rect width="100%" height="100%" fill="white" />
|
|
3
3
|
<g>
|
|
4
4
|
<circle data-type="point" data-label="PWR1.7
|
|
5
|
-
x+" data-x="1.15" data-y="0.75" cx="365.01450957632034" cy="
|
|
5
|
+
x+" data-x="1.15" data-y="0.75" cx="365.01450957632034" cy="303.749274521184" r="3" fill="hsl(159, 100%, 50%, 0.8)" />
|
|
6
6
|
</g>
|
|
7
7
|
<g>
|
|
8
8
|
<circle data-type="point" data-label="PWR1.6
|
|
9
|
-
x+" data-x="1.15" data-y="0" cx="365.01450957632034" cy="
|
|
9
|
+
x+" data-x="1.15" data-y="0" cx="365.01450957632034" cy="352.5014509576321" r="3" fill="hsl(158, 100%, 50%, 0.8)" />
|
|
10
10
|
</g>
|
|
11
11
|
<g>
|
|
12
12
|
<circle data-type="point" data-label="PWR1.5
|
|
13
|
-
x+" data-x="1.15" data-y="-0.75" cx="365.01450957632034" cy="
|
|
13
|
+
x+" data-x="1.15" data-y="-0.75" cx="365.01450957632034" cy="401.2536273940801" r="3" fill="hsl(157, 100%, 50%, 0.8)" />
|
|
14
14
|
</g>
|
|
15
15
|
<g>
|
|
16
16
|
<circle data-type="point" data-label="PWR1.4
|
|
17
|
-
x-" data-x="-1.15" data-y="-1.125" cx="215.507835171213" cy="
|
|
17
|
+
x-" data-x="-1.15" data-y="-1.125" cx="215.507835171213" cy="425.62971561230415" r="3" fill="hsl(156, 100%, 50%, 0.8)" />
|
|
18
18
|
</g>
|
|
19
19
|
<g>
|
|
20
20
|
<circle data-type="point" data-label="PWR1.3
|
|
21
|
-
x-" data-x="-1.15" data-y="-0.375" cx="215.507835171213" cy="
|
|
21
|
+
x-" data-x="-1.15" data-y="-0.375" cx="215.507835171213" cy="376.8775391758561" r="3" fill="hsl(155, 100%, 50%, 0.8)" />
|
|
22
22
|
</g>
|
|
23
23
|
<g>
|
|
24
24
|
<circle data-type="point" data-label="PWR1.2
|
|
25
|
-
x-" data-x="-1.15" data-y="0.375" cx="215.507835171213" cy="
|
|
25
|
+
x-" data-x="-1.15" data-y="0.375" cx="215.507835171213" cy="328.12536273940805" r="3" fill="hsl(154, 100%, 50%, 0.8)" />
|
|
26
26
|
</g>
|
|
27
27
|
<g>
|
|
28
28
|
<circle data-type="point" data-label="PWR1.1
|
|
29
|
-
x-" data-x="-1.15" data-y="1.125" cx="215.507835171213" cy="
|
|
29
|
+
x-" data-x="-1.15" data-y="1.125" cx="215.507835171213" cy="279.37318630296" r="3" fill="hsl(153, 100%, 50%, 0.8)" />
|
|
30
30
|
</g>
|
|
31
31
|
<g>
|
|
32
32
|
<circle data-type="point" data-label="R6.1
|
|
33
|
-
x-" data-x="-3.55" data-y="0" cx="59.50087057457921" cy="
|
|
33
|
+
x-" data-x="-3.55" data-y="0" cx="59.50087057457921" cy="352.5014509576321" r="3" fill="hsl(351, 100%, 50%, 0.8)" />
|
|
34
34
|
</g>
|
|
35
35
|
<g>
|
|
36
36
|
<circle data-type="point" data-label="R6.2
|
|
37
|
-
x+" data-x="-2.45" data-y="0" cx="131.00406268136967" cy="
|
|
37
|
+
x+" data-x="-2.45" data-y="0" cx="131.00406268136967" cy="352.5014509576321" r="3" fill="hsl(352, 100%, 50%, 0.8)" />
|
|
38
38
|
</g>
|
|
39
39
|
<g>
|
|
40
40
|
<circle data-type="point" data-label="R7.1
|
|
41
|
-
x-" data-x="-3.55" data-y="-1.9999999999999998" cx="59.50087057457921" cy="
|
|
41
|
+
x-" data-x="-3.55" data-y="-1.9999999999999998" cx="59.50087057457921" cy="482.5072547881602" r="3" fill="hsl(232, 100%, 50%, 0.8)" />
|
|
42
42
|
</g>
|
|
43
43
|
<g>
|
|
44
44
|
<circle data-type="point" data-label="R7.2
|
|
45
|
-
x+" data-x="-2.45" data-y="-1.9999999999999998" cx="131.00406268136967" cy="
|
|
45
|
+
x+" data-x="-2.45" data-y="-1.9999999999999998" cx="131.00406268136967" cy="482.5072547881602" r="3" fill="hsl(233, 100%, 50%, 0.8)" />
|
|
46
46
|
</g>
|
|
47
47
|
<g>
|
|
48
48
|
<circle data-type="point" data-label="R8.1
|
|
49
|
-
x-" data-x="-3.55" data-y="2" cx="59.50087057457921" cy="
|
|
49
|
+
x-" data-x="-3.55" data-y="2" cx="59.50087057457921" cy="222.49564712710392" r="3" fill="hsl(113, 100%, 50%, 0.8)" />
|
|
50
50
|
</g>
|
|
51
51
|
<g>
|
|
52
52
|
<circle data-type="point" data-label="R8.2
|
|
53
|
-
x+" data-x="-2.45" data-y="2" cx="131.00406268136967" cy="
|
|
53
|
+
x+" data-x="-2.45" data-y="2" cx="131.00406268136967" cy="222.49564712710392" r="3" fill="hsl(114, 100%, 50%, 0.8)" />
|
|
54
54
|
</g>
|
|
55
55
|
<g>
|
|
56
56
|
<circle data-type="point" data-label="C6.1
|
|
57
|
-
x-" data-x="2.45" data-y="-1.5" cx="449.5182820661637" cy="
|
|
57
|
+
x-" data-x="2.45" data-y="-1.5" cx="449.5182820661637" cy="450.0058038305282" r="3" fill="hsl(246, 100%, 50%, 0.8)" />
|
|
58
58
|
</g>
|
|
59
59
|
<g>
|
|
60
60
|
<circle data-type="point" data-label="C6.2
|
|
61
|
-
x+" data-x="3.55" data-y="-1.5" cx="521.0214741729542" cy="
|
|
61
|
+
x+" data-x="3.55" data-y="-1.5" cx="521.0214741729542" cy="450.0058038305282" r="3" fill="hsl(247, 100%, 50%, 0.8)" />
|
|
62
62
|
</g>
|
|
63
63
|
<g>
|
|
64
64
|
<circle data-type="point" data-label="C7.1
|
|
65
|
-
x-" data-x="2.45" data-y="0" cx="449.5182820661637" cy="
|
|
65
|
+
x-" data-x="2.45" data-y="0" cx="449.5182820661637" cy="352.5014509576321" r="3" fill="hsl(127, 100%, 50%, 0.8)" />
|
|
66
66
|
</g>
|
|
67
67
|
<g>
|
|
68
68
|
<circle data-type="point" data-label="C7.2
|
|
69
|
-
x+" data-x="3.55" data-y="0" cx="521.0214741729542" cy="
|
|
69
|
+
x+" data-x="3.55" data-y="0" cx="521.0214741729542" cy="352.5014509576321" r="3" fill="hsl(128, 100%, 50%, 0.8)" />
|
|
70
70
|
</g>
|
|
71
71
|
<g>
|
|
72
72
|
<circle data-type="point" data-label="LED1.1
|
|
73
|
-
x-" data-x="3.435" data-y="3" cx="513.5461404526988" cy="
|
|
73
|
+
x-" data-x="3.435" data-y="3" cx="513.5461404526988" cy="157.49274521183986" r="3" fill="hsl(57, 100%, 50%, 0.8)" />
|
|
74
74
|
</g>
|
|
75
75
|
<g>
|
|
76
76
|
<circle data-type="point" data-label="LED1.2
|
|
77
|
-
x+" data-x="4.5649999999999995" data-y="3" cx="586.9994196169471" cy="
|
|
77
|
+
x+" data-x="4.5649999999999995" data-y="3" cx="586.9994196169471" cy="157.49274521183986" r="3" fill="hsl(58, 100%, 50%, 0.8)" />
|
|
78
78
|
</g>
|
|
79
79
|
<g>
|
|
80
|
-
<circle data-type="point" data-label="" data-x="
|
|
80
|
+
<circle data-type="point" data-label="" data-x="3.75" data-y="-1.5" cx="534.022054556007" cy="450.0058038305282" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
81
81
|
</g>
|
|
82
82
|
<g>
|
|
83
|
-
<circle data-type="point" data-label="" data-x="2.
|
|
83
|
+
<circle data-type="point" data-label="" data-x="-2.25" data-y="-1.9999999999999998" cx="144.0046430644225" cy="482.5072547881602" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
84
84
|
</g>
|
|
85
85
|
<g>
|
|
86
|
-
<circle data-type="point" data-label="" data-x="
|
|
86
|
+
<circle data-type="point" data-label="" data-x="1.3499999999999999" data-y="0" cx="378.01508995937314" cy="352.5014509576321" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
87
87
|
</g>
|
|
88
88
|
<g>
|
|
89
|
-
<circle data-type="point" data-label="" data-x="-
|
|
89
|
+
<circle data-type="point" data-label="" data-x="-1.15" data-y="-1.125" cx="215.507835171213" cy="425.62971561230415" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
90
90
|
</g>
|
|
91
91
|
<g>
|
|
92
|
-
<circle data-type="point" data-label="" data-x="-2.25" data-y="0" cx="144.0046430644225" cy="
|
|
92
|
+
<circle data-type="point" data-label="" data-x="-2.25" data-y="0" cx="144.0046430644225" cy="352.5014509576321" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
93
93
|
</g>
|
|
94
94
|
<g>
|
|
95
|
-
<circle data-type="point" data-label="" data-x="3.75" data-y="
|
|
95
|
+
<circle data-type="point" data-label="" data-x="-3.75" data-y="2" cx="46.500290191526375" cy="222.49564712710392" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
96
96
|
</g>
|
|
97
97
|
<g>
|
|
98
|
-
<circle data-type="point" data-label="" data-x="
|
|
98
|
+
<circle data-type="point" data-label="" data-x="2.45" data-y="0" cx="449.5182820661637" cy="352.5014509576321" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
99
99
|
</g>
|
|
100
100
|
<g>
|
|
101
|
-
<circle data-type="point" data-label="" data-x="
|
|
101
|
+
<circle data-type="point" data-label="" data-x="3.235" data-y="3" cx="500.54556006964594" cy="157.49274521183986" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
|
|
102
102
|
</g>
|
|
103
103
|
<g>
|
|
104
|
-
<
|
|
104
|
+
<polyline data-points="-3.55,0 -1.15,1.125" data-type="line" data-label="" points="59.50087057457921,352.5014509576321 215.507835171213,279.37318630296" fill="none" stroke="hsl(40, 100%, 50%, 0.8)" stroke-width="1" />
|
|
105
105
|
</g>
|
|
106
106
|
<g>
|
|
107
|
-
<polyline data-points="
|
|
107
|
+
<polyline data-points="3.435,3 -2.45,2" data-type="line" data-label="" points="513.5461404526988,157.49274521183986 131.00406268136967,222.49564712710392" fill="none" stroke="hsl(224, 100%, 50%, 0.8)" stroke-width="1" />
|
|
108
108
|
</g>
|
|
109
109
|
<g>
|
|
110
|
-
<polyline data-points="
|
|
110
|
+
<polyline data-points="-1.15,0.375 -2.45,0" data-type="line" data-label="" points="215.507835171213,328.12536273940805 131.00406268136967,352.5014509576321" fill="none" stroke="hsl(272, 100%, 50%, 0.8)" stroke-width="1" />
|
|
111
111
|
</g>
|
|
112
112
|
<g>
|
|
113
|
-
<polyline data-points="-1.15,0.375 -
|
|
113
|
+
<polyline data-points="-1.15,0.375 -3.55,-1.9999999999999998" data-type="line" data-label="" points="215.507835171213,328.12536273940805 59.50087057457921,482.5072547881602" fill="none" stroke="hsl(272, 100%, 50%, 0.8)" stroke-width="1" />
|
|
114
114
|
</g>
|
|
115
115
|
<g>
|
|
116
|
-
<polyline data-points="
|
|
116
|
+
<polyline data-points="1.15,0.75 -1.15,-0.375" data-type="line" data-label="" points="365.01450957632034,303.749274521184 215.507835171213,376.8775391758561" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
117
117
|
</g>
|
|
118
118
|
<g>
|
|
119
|
-
<polyline data-points="1.15,0.75 -
|
|
119
|
+
<polyline data-points="1.15,0.75 -2.45,-1.9999999999999998" data-type="line" data-label="" points="365.01450957632034,303.749274521184 131.00406268136967,482.5072547881602" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
120
120
|
</g>
|
|
121
121
|
<g>
|
|
122
|
-
<polyline data-points="1.15,0.75
|
|
122
|
+
<polyline data-points="1.15,0.75 3.55,-1.5" data-type="line" data-label="" points="365.01450957632034,303.749274521184 521.0214741729542,450.0058038305282" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
123
123
|
</g>
|
|
124
124
|
<g>
|
|
125
|
-
<polyline data-points="1.15,0.75 3.55
|
|
125
|
+
<polyline data-points="1.15,0.75 3.55,0" data-type="line" data-label="" points="365.01450957632034,303.749274521184 521.0214741729542,352.5014509576321" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
126
126
|
</g>
|
|
127
127
|
<g>
|
|
128
|
-
<polyline data-points="1.15,0.75
|
|
128
|
+
<polyline data-points="1.15,0.75 4.5649999999999995,3" data-type="line" data-label="" points="365.01450957632034,303.749274521184 586.9994196169471,157.49274521183986" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
129
129
|
</g>
|
|
130
130
|
<g>
|
|
131
|
-
<polyline data-points="1.15
|
|
131
|
+
<polyline data-points="-1.15,-0.375 -2.45,-1.9999999999999998" data-type="line" data-label="" points="215.507835171213,376.8775391758561 131.00406268136967,482.5072547881602" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
132
132
|
</g>
|
|
133
133
|
<g>
|
|
134
|
-
<polyline data-points="-1.15,-0.375
|
|
134
|
+
<polyline data-points="-1.15,-0.375 3.55,-1.5" data-type="line" data-label="" points="215.507835171213,376.8775391758561 521.0214741729542,450.0058038305282" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
135
135
|
</g>
|
|
136
136
|
<g>
|
|
137
|
-
<polyline data-points="-1.15,-0.375 3.55
|
|
137
|
+
<polyline data-points="-1.15,-0.375 3.55,0" data-type="line" data-label="" points="215.507835171213,376.8775391758561 521.0214741729542,352.5014509576321" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
138
138
|
</g>
|
|
139
139
|
<g>
|
|
140
|
-
<polyline data-points="-1.15,-0.375
|
|
140
|
+
<polyline data-points="-1.15,-0.375 4.5649999999999995,3" data-type="line" data-label="" points="215.507835171213,376.8775391758561 586.9994196169471,157.49274521183986" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
141
141
|
</g>
|
|
142
142
|
<g>
|
|
143
|
-
<polyline data-points="-
|
|
143
|
+
<polyline data-points="-2.45,-1.9999999999999998 3.55,-1.5" data-type="line" data-label="" points="131.00406268136967,482.5072547881602 521.0214741729542,450.0058038305282" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
144
144
|
</g>
|
|
145
145
|
<g>
|
|
146
|
-
<polyline data-points="-2.45,-1.9999999999999998 3.55
|
|
146
|
+
<polyline data-points="-2.45,-1.9999999999999998 3.55,0" data-type="line" data-label="" points="131.00406268136967,482.5072547881602 521.0214741729542,352.5014509576321" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
147
147
|
</g>
|
|
148
148
|
<g>
|
|
149
|
-
<polyline data-points="-2.45,-1.9999999999999998
|
|
149
|
+
<polyline data-points="-2.45,-1.9999999999999998 4.5649999999999995,3" data-type="line" data-label="" points="131.00406268136967,482.5072547881602 586.9994196169471,157.49274521183986" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
150
150
|
</g>
|
|
151
151
|
<g>
|
|
152
|
-
<polyline data-points="
|
|
152
|
+
<polyline data-points="3.55,-1.5 3.55,0" data-type="line" data-label="" points="521.0214741729542,450.0058038305282 521.0214741729542,352.5014509576321" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
153
153
|
</g>
|
|
154
154
|
<g>
|
|
155
|
-
<polyline data-points="3.55,-1.5
|
|
155
|
+
<polyline data-points="3.55,-1.5 4.5649999999999995,3" data-type="line" data-label="" points="521.0214741729542,450.0058038305282 586.9994196169471,157.49274521183986" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
156
156
|
</g>
|
|
157
157
|
<g>
|
|
158
|
-
<polyline data-points="3.55
|
|
158
|
+
<polyline data-points="3.55,0 4.5649999999999995,3" data-type="line" data-label="" points="521.0214741729542,352.5014509576321 586.9994196169471,157.49274521183986" fill="none" stroke="hsl(253, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
159
159
|
</g>
|
|
160
160
|
<g>
|
|
161
|
-
<polyline data-points="
|
|
161
|
+
<polyline data-points="1.15,0 -1.15,-1.125" data-type="line" data-label="" points="365.01450957632034,352.5014509576321 215.507835171213,425.62971561230415" fill="none" stroke="hsl(111, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
162
162
|
</g>
|
|
163
163
|
<g>
|
|
164
|
-
<polyline data-points="1.15,0
|
|
164
|
+
<polyline data-points="1.15,0 2.45,-1.5" data-type="line" data-label="" points="365.01450957632034,352.5014509576321 449.5182820661637,450.0058038305282" fill="none" stroke="hsl(111, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
165
165
|
</g>
|
|
166
166
|
<g>
|
|
167
|
-
<polyline data-points="1.15
|
|
167
|
+
<polyline data-points="-1.15,-1.125 2.45,-1.5" data-type="line" data-label="" points="215.507835171213,425.62971561230415 449.5182820661637,450.0058038305282" fill="none" stroke="hsl(111, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
168
168
|
</g>
|
|
169
169
|
<g>
|
|
170
|
-
<polyline data-points="-1.15
|
|
170
|
+
<polyline data-points="-1.15,1.125 -3.55,0" data-type="line" data-label="" points="215.507835171213,279.37318630296 59.50087057457921,352.5014509576321" fill="none" stroke="hsl(105, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
171
171
|
</g>
|
|
172
172
|
<g>
|
|
173
|
-
<polyline data-points="-1.15,1.125 -3.55,
|
|
173
|
+
<polyline data-points="-1.15,1.125 -3.55,2" data-type="line" data-label="" points="215.507835171213,279.37318630296 59.50087057457921,222.49564712710392" fill="none" stroke="hsl(105, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
174
174
|
</g>
|
|
175
175
|
<g>
|
|
176
|
-
<polyline data-points="-1.15,1.125
|
|
176
|
+
<polyline data-points="-1.15,1.125 2.45,0" data-type="line" data-label="" points="215.507835171213,279.37318630296 449.5182820661637,352.5014509576321" fill="none" stroke="hsl(105, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
177
177
|
</g>
|
|
178
178
|
<g>
|
|
179
|
-
<polyline data-points="-
|
|
179
|
+
<polyline data-points="-3.55,0 -3.55,2" data-type="line" data-label="" points="59.50087057457921,352.5014509576321 59.50087057457921,222.49564712710392" fill="none" stroke="hsl(105, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
180
180
|
</g>
|
|
181
181
|
<g>
|
|
182
|
-
<polyline data-points="-3.55,0
|
|
182
|
+
<polyline data-points="-3.55,0 2.45,0" data-type="line" data-label="" points="59.50087057457921,352.5014509576321 449.5182820661637,352.5014509576321" fill="none" stroke="hsl(105, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
183
183
|
</g>
|
|
184
184
|
<g>
|
|
185
|
-
<polyline data-points="-3.55,
|
|
185
|
+
<polyline data-points="-3.55,2 2.45,0" data-type="line" data-label="" points="59.50087057457921,222.49564712710392 449.5182820661637,352.5014509576321" fill="none" stroke="hsl(105, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
|
|
186
186
|
</g>
|
|
187
187
|
<g>
|
|
188
|
-
<polyline data-points="-3.55,2 2.
|
|
188
|
+
<polyline data-points="-3.55,2 -3.75,2 -3.75,1.125 -1.1500000000000004,1.125" data-type="line" data-label="" points="59.50087057457921,222.49564712710392 46.500290191526375,222.49564712710392 46.500290191526375,279.37318630296 215.50783517121295,279.37318630296" fill="none" stroke="purple" stroke-width="1" />
|
|
189
189
|
</g>
|
|
190
190
|
<g>
|
|
191
|
-
<polyline data-points="-3.55,
|
|
191
|
+
<polyline data-points="-3.55,0 -3.75,0 -3.75,2 -3.55,2" data-type="line" data-label="" points="59.50087057457921,352.5014509576321 46.500290191526375,352.5014509576321 46.500290191526375,222.49564712710392 59.50087057457921,222.49564712710392" fill="none" stroke="purple" stroke-width="1" />
|
|
192
192
|
</g>
|
|
193
193
|
<g>
|
|
194
|
-
<polyline data-points="-
|
|
194
|
+
<polyline data-points="-2.45,0 -2.25,0 -1.8,0 -1.8,0.375 -1.3499999999999999,0.375 -1.15,0.375" data-type="line" data-label="" points="131.00406268136967,352.5014509576321 144.0046430644225,352.5014509576321 173.25594892629132,352.5014509576321 173.25594892629132,328.12536273940805 202.5072547881602,328.12536273940805 215.507835171213,328.12536273940805" fill="none" stroke="purple" stroke-width="1" />
|
|
195
195
|
</g>
|
|
196
196
|
<g>
|
|
197
|
-
<polyline data-points="-
|
|
197
|
+
<polyline data-points="-3.55,-1.9999999999999998 -3.75,-1.9999999999999998 -3.75,-0.9999999999999999 -2.25,-0.9999999999999999 -2.25,0 -2.45,0" data-type="line" data-label="" points="59.50087057457921,482.5072547881602 46.500290191526375,482.5072547881602 46.500290191526375,417.5043528728961 144.0046430644225,417.5043528728961 144.0046430644225,352.5014509576321 131.00406268136967,352.5014509576321" fill="none" stroke="purple" stroke-width="1" />
|
|
198
198
|
</g>
|
|
199
199
|
<g>
|
|
200
|
-
<polyline data-points="
|
|
200
|
+
<polyline data-points="3.55,0 3.75,0 3.75,-1.5 3.55,-1.5" data-type="line" data-label="" points="521.0214741729542,352.5014509576321 534.022054556007,352.5014509576321 534.022054556007,450.0058038305282 521.0214741729542,450.0058038305282" fill="none" stroke="purple" stroke-width="1" />
|
|
201
201
|
</g>
|
|
202
202
|
<g>
|
|
203
|
-
<polyline data-points="
|
|
203
|
+
<polyline data-points="1.15,0.75 3.75,0.75 3.75,0 3.55,0" data-type="line" data-label="" points="365.01450957632034,303.749274521184 534.022054556007,303.749274521184 534.022054556007,352.5014509576321 521.0214741729542,352.5014509576321" fill="none" stroke="purple" stroke-width="1" />
|
|
204
204
|
</g>
|
|
205
205
|
<g>
|
|
206
|
-
<polyline data-points="
|
|
206
|
+
<polyline data-points="4.5649999999999995,3 4.765,3 4.765,0 3.55,0" data-type="line" data-label="" points="586.9994196169471,157.49274521183986 600,157.49274521183986 600,352.5014509576321 521.0214741729542,352.5014509576321" fill="none" stroke="purple" stroke-width="1" />
|
|
207
207
|
</g>
|
|
208
208
|
<g>
|
|
209
|
-
<polyline data-points="
|
|
209
|
+
<polyline data-points="-2.45,-1.9999999999999998 -2.25,-1.9999999999999998 -1.8,-1.9999999999999998 -1.8,-0.375 -1.3499999999999999,-0.375 -1.15,-0.375" data-type="line" data-label="" points="131.00406268136967,482.5072547881602 144.0046430644225,482.5072547881602 173.25594892629132,482.5072547881602 173.25594892629132,376.8775391758561 202.5072547881602,376.8775391758561 215.507835171213,376.8775391758561" fill="none" stroke="purple" stroke-width="1" />
|
|
210
210
|
</g>
|
|
211
211
|
<g>
|
|
212
|
-
<polyline data-points="
|
|
212
|
+
<polyline data-points="1.15,0 1.3499999999999999,0 1.8,0 1.8,-1.5 2.25,-1.5 2.45,-1.5" data-type="line" data-label="" points="365.01450957632034,352.5014509576321 378.01508995937314,352.5014509576321 407.266395821242,352.5014509576321 407.266395821242,450.0058038305282 436.51770168311083,450.0058038305282 449.5182820661637,450.0058038305282" fill="none" stroke="purple" stroke-width="1" />
|
|
213
213
|
</g>
|
|
214
214
|
<g>
|
|
215
|
-
<polyline data-points="
|
|
215
|
+
<polyline data-points="3.435,3 3.235,3 0.49249999999999994,3 0.49249999999999994,2 -2.25,2 -2.45,2" data-type="line" data-label="" points="513.5461404526988,157.49274521183986 500.54556006964594,157.49274521183986 322.2751015670342,157.49274521183986 322.2751015670342,222.49564712710392 144.0046430644225,222.49564712710392 131.00406268136967,222.49564712710392" fill="none" stroke="purple" stroke-width="1" />
|
|
216
216
|
</g>
|
|
217
217
|
<g>
|
|
218
|
-
<rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="215.507835171213" y="
|
|
218
|
+
<rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="215.507835171213" y="230.62100986651194" width="149.50667440510733" height="243.76088218224027" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
219
219
|
</g>
|
|
220
220
|
<g>
|
|
221
|
-
<rect data-type="rect" data-label="schematic_component_1" data-x="-3" data-y="0" x="59.50087057457921" y="
|
|
221
|
+
<rect data-type="rect" data-label="schematic_component_1" data-x="-3" data-y="0" x="59.50087057457921" y="339.86128891468377" width="71.50319210679046" height="25.28032408589661" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
222
222
|
</g>
|
|
223
223
|
<g>
|
|
224
|
-
<rect data-type="rect" data-label="schematic_component_2" data-x="-3" data-y="-2" x="59.50087057457921" y="
|
|
224
|
+
<rect data-type="rect" data-label="schematic_component_2" data-x="-3" data-y="-2" x="59.50087057457921" y="469.8670927452119" width="71.50319210679046" height="25.280324085896666" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
225
225
|
</g>
|
|
226
226
|
<g>
|
|
227
|
-
<rect data-type="rect" data-label="schematic_component_3" data-x="-3" data-y="2" x="59.50087057457921" y="
|
|
227
|
+
<rect data-type="rect" data-label="schematic_component_3" data-x="-3" data-y="2" x="59.50087057457921" y="209.8554850841556" width="71.50319210679046" height="25.280324085896666" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
228
228
|
</g>
|
|
229
229
|
<g>
|
|
230
|
-
<rect data-type="rect" data-label="schematic_component_4" data-x="3" data-y="-1.5" x="449.5182820661637" y="
|
|
230
|
+
<rect data-type="rect" data-label="schematic_component_4" data-x="3" data-y="-1.5" x="449.5182820661637" y="422.7045850261173" width="71.5031921067905" height="54.60243760882179" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
231
231
|
</g>
|
|
232
232
|
<g>
|
|
233
|
-
<rect data-type="rect" data-label="schematic_component_5" data-x="3" data-y="0" x="449.5182820661637" y="
|
|
233
|
+
<rect data-type="rect" data-label="schematic_component_5" data-x="3" data-y="0" x="449.5182820661637" y="325.2002321532212" width="71.5031921067905" height="54.60243760882179" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
234
234
|
</g>
|
|
235
235
|
<g>
|
|
236
|
-
<rect data-type="rect" data-label="schematic_component_6" data-x="4" data-y="3" x="513.5461404526988" y="
|
|
236
|
+
<rect data-type="rect" data-label="schematic_component_6" data-x="4" data-y="3" x="513.5461404526988" y="136.366802089379" width="73.45327916424833" height="42.25188624492168" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.015383928571428571" />
|
|
237
237
|
</g>
|
|
238
238
|
<g>
|
|
239
|
-
<rect data-type="rect" data-label="" data-x="
|
|
239
|
+
<rect data-type="rect" data-label="" data-x="3.75" data-y="-1.725" x="527.5217643644805" y="450.0058038305282" width="13.000580383052807" height="29.251305861868843" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
240
240
|
</g>
|
|
241
241
|
<g>
|
|
242
|
-
<rect data-type="rect" data-label="" data-x="2.
|
|
242
|
+
<rect data-type="rect" data-label="" data-x="-2.25" data-y="-2.2249999999999996" x="137.50435287289608" y="482.5072547881602" width="13.000580383052835" height="29.251305861868843" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
243
243
|
</g>
|
|
244
244
|
<g>
|
|
245
|
-
<rect data-type="rect" data-label="" data-x="
|
|
245
|
+
<rect data-type="rect" data-label="" data-x="1.3499999999999999" data-y="0.225" x="371.51479976784674" y="323.25014509576323" width="13.000580383052807" height="29.251305861868843" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
246
246
|
</g>
|
|
247
247
|
<g>
|
|
248
|
-
<rect data-type="rect" data-label="" data-x="-
|
|
248
|
+
<rect data-type="rect" data-label="" data-x="-1.376" data-y="-1.125" x="186.19152640742888" y="419.12942542077775" width="29.251305861868843" height="13.000580383052807" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
249
249
|
</g>
|
|
250
250
|
<g>
|
|
251
|
-
<rect data-type="rect" data-label="" data-x="-2.25" data-y="0.225" x="137.50435287289608" y="
|
|
251
|
+
<rect data-type="rect" data-label="" data-x="-2.25" data-y="0.225" x="137.50435287289608" y="323.25014509576323" width="13.000580383052835" height="29.251305861868843" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
252
252
|
</g>
|
|
253
253
|
<g>
|
|
254
|
-
<rect data-type="rect" data-label="" data-x="3.75" data-y="
|
|
254
|
+
<rect data-type="rect" data-label="" data-x="-3.75" data-y="2.225" x="39.99999999999997" y="193.24434126523508" width="13.000580383052835" height="29.251305861868843" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
255
255
|
</g>
|
|
256
256
|
<g>
|
|
257
|
-
<rect data-type="rect" data-label="" data-x="
|
|
257
|
+
<rect data-type="rect" data-label="" data-x="2.224" data-y="0" x="420.20197330237954" y="346.00116076610567" width="29.2513058618689" height="13.000580383052807" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
258
258
|
</g>
|
|
259
259
|
<g>
|
|
260
|
-
<rect data-type="rect" data-label="" data-x="
|
|
261
|
-
</g>
|
|
262
|
-
<g>
|
|
263
|
-
<rect data-type="rect" data-label="" data-x="-1.376" data-y="-1.125" x="186.19152640742888" y="415.0667440510737" width="29.251305861868843" height="13.000580383052807" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
260
|
+
<rect data-type="rect" data-label="" data-x="3.235" data-y="3.225" x="494.04526987811954" y="128.241439349971" width="13.000580383052807" height="29.25130586186887" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.015383928571428571" />
|
|
264
261
|
</g>
|
|
265
262
|
<g id="crosshair" style="display: none">
|
|
266
263
|
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|
|
@@ -295,7 +292,7 @@ x+" data-x="4.5649999999999995" data-y="3" cx="586.9994196169471" cy="153.430063
|
|
|
295
292
|
"e": 290.26117237376667,
|
|
296
293
|
"b": 0,
|
|
297
294
|
"d": -65.00290191526408,
|
|
298
|
-
"f":
|
|
295
|
+
"f": 352.5014509576321
|
|
299
296
|
};
|
|
300
297
|
// Manually invert and apply the affine transform
|
|
301
298
|
// Since we only use translate and scale, we can directly compute:
|
|
@@ -341,10 +341,7 @@ y-" data-x="-2.025" data-y="-2.7" cx="318.5204755614267" cy="526.0237780713342"
|
|
|
341
341
|
<circle data-type="point" data-label="" data-x="-3.7550000000000003" data-y="2.4683333333333346" cx="233.2012329370322" cy="271.13459562600906" r="3" fill="hsl(80, 100%, 50%, 0.9)" />
|
|
342
342
|
</g>
|
|
343
343
|
<g>
|
|
344
|
-
<circle data-type="point" data-label="" data-x="-2.
|
|
345
|
-
</g>
|
|
346
|
-
<g>
|
|
347
|
-
<circle data-type="point" data-label="" data-x="-2.025" data-y="-2.7" cx="318.5204755614267" cy="526.0237780713342" r="3" fill="hsl(80, 100%, 50%, 0.9)" />
|
|
344
|
+
<circle data-type="point" data-label="" data-x="-2.49" data-y="-2.9000000000000004" cx="295.5878467635403" cy="535.8872743284896" r="3" fill="hsl(80, 100%, 50%, 0.9)" />
|
|
348
345
|
</g>
|
|
349
346
|
<g>
|
|
350
347
|
<polyline data-points="-1.1099999999999999,1.2000000000000015 -1.5675,6.505000000000002" data-type="line" data-label="" points="363.6459709379128,333.6856010568031 341.08322324966974,72.05636283575518" fill="none" stroke="hsl(280, 100%, 50%, 0.8)" stroke-width="1" />
|
|
@@ -835,6 +832,9 @@ y-" data-x="-2.025" data-y="-2.7" cx="318.5204755614267" cy="526.0237780713342"
|
|
|
835
832
|
<g>
|
|
836
833
|
<polyline data-points="-6.415,2.6683333333333357 -6.415,2.4683333333333346 -4.6850000000000005,2.4683333333333346 -4.6850000000000005,2.668333333333335" data-type="line" data-label="" points="102.01673271686491,261.2710993688536 102.01673271686491,271.13459562600906 187.3359753412594,271.13459562600906 187.3359753412594,261.2710993688536" fill="none" stroke="purple" stroke-width="1" />
|
|
837
834
|
</g>
|
|
835
|
+
<g>
|
|
836
|
+
<polyline data-points="-2.025,0.9000000000000021 -2.025,0.7000000000000011 -2.49,0.7000000000000011 -2.49,-2.9000000000000004 -2.025,-2.9000000000000004 -2.025,-2.7" data-type="line" data-label="" points="318.5204755614267,348.4808454425362 318.5204755614267,358.3443416996917 295.5878467635403,358.3443416996917 295.5878467635403,535.8872743284896 318.5204755614267,535.8872743284896 318.5204755614267,526.0237780713342" fill="none" stroke="purple" stroke-width="1" />
|
|
837
|
+
</g>
|
|
838
838
|
<g>
|
|
839
839
|
<rect data-type="rect" data-label="schematic_component_0" data-x="0.79" data-y="0" x="363.6459709379128" y="185.73315719947155" width="187.40642888595323" height="414.2668428005285" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.020276785714285723" />
|
|
840
840
|
</g>
|
|
@@ -896,10 +896,7 @@ y-" data-x="-2.025" data-y="-2.7" cx="318.5204755614267" cy="526.0237780713342"
|
|
|
896
896
|
<rect data-type="rect" data-label="" data-x="-3.7550000000000003" data-y="2.2433333333333345" x="228.26948480845445" y="271.13459562600906" width="9.863496257155447" height="22.192866578599705" fill="hsl(80, 100%, 50%, 0.35)" stroke="black" stroke-width="0.020276785714285723" />
|
|
897
897
|
</g>
|
|
898
898
|
<g>
|
|
899
|
-
<rect data-type="rect" data-label="" data-x="-2.
|
|
900
|
-
</g>
|
|
901
|
-
<g>
|
|
902
|
-
<rect data-type="rect" data-label="" data-x="-2.025" data-y="-2.926" x="313.588727432849" y="526.0730955526199" width="9.863496257155418" height="22.192866578599705" fill="hsl(80, 100%, 50%, 0.35)" stroke="black" stroke-width="0.020276785714285723" />
|
|
899
|
+
<rect data-type="rect" data-label="" data-x="-2.49" data-y="-3.1250000000000004" x="290.6560986349626" y="535.8872743284896" width="9.863496257155418" height="22.192866578599705" fill="hsl(80, 100%, 50%, 0.35)" stroke="black" stroke-width="0.020276785714285723" />
|
|
903
900
|
</g>
|
|
904
901
|
<g id="crosshair" style="display: none">
|
|
905
902
|
<line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
|