@tscircuit/schematic-trace-solver 0.0.87 → 0.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/.agents/skills/schematic-trace-visualization/SKILL.md +115 -0
  2. package/.github/scripts/import-json-bug-report.ts +15 -1
  3. package/.github/workflows/json-bug-report.yml +3 -2
  4. package/AGENTS.md +22 -0
  5. package/lib/testing/PipelineStageDebugRunner.ts +344 -0
  6. package/package.json +3 -2
  7. package/scripts/debug-pipeline-stages.ts +146 -0
  8. package/site/bug-reports/bug-report-20260706T220324Z.page.tsx +4 -0
  9. package/site/bug-reports/bug-report-20260707T020342Z.page.tsx +4 -0
  10. package/site/bug-reports/bug-report-20260707T092615Z.page.tsx +4 -0
  11. package/site/bug-reports/bug-report-20260707T134549Z.page.tsx +4 -0
  12. package/site/bug-reports/bug-report-20260707T134722Z.page.tsx +4 -0
  13. package/site/bug-reports/bug-report-20260707T140410Z.page.tsx +4 -0
  14. package/site/bug-reports/bug-report-20260707T141025Z.page.tsx +4 -0
  15. package/site/bug-reports/bug-report-20260707T141421Z.page.tsx +4 -0
  16. package/tests/bug-reports/bug-report-20260706T220324Z/__snapshots__/bug-report-20260706T220324Z.snap.svg +357 -3448
  17. package/tests/bug-reports/bug-report-20260707T020342Z/__snapshots__/bug-report-20260707T020342Z.snap.svg +64 -0
  18. package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.json +233 -0
  19. package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.test.ts +12 -0
  20. package/tests/bug-reports/bug-report-20260707T092615Z/__snapshots__/bug-report-20260707T092615Z.snap.svg +2098 -0
  21. package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.json +1392 -0
  22. package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.test.ts +12 -0
  23. package/tests/bug-reports/bug-report-20260707T134549Z/__snapshots__/bug-report-20260707T134549Z.snap.svg +857 -0
  24. package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.json +652 -0
  25. package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.test.ts +12 -0
  26. package/tests/bug-reports/bug-report-20260707T134722Z/__snapshots__/bug-report-20260707T134722Z.snap.svg +275 -0
  27. package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.json +265 -0
  28. package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.test.ts +12 -0
  29. package/tests/bug-reports/bug-report-20260707T140410Z/__snapshots__/bug-report-20260707T140410Z.snap.svg +950 -0
  30. package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.json +610 -0
  31. package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.test.ts +12 -0
  32. package/tests/bug-reports/bug-report-20260707T141025Z/__snapshots__/bug-report-20260707T141025Z.snap.svg +218 -0
  33. package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.json +185 -0
  34. package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.test.ts +12 -0
  35. package/tests/bug-reports/bug-report-20260707T141421Z/__snapshots__/bug-report-20260707T141421Z.snap.svg +613 -0
  36. package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.json +499 -0
  37. package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.test.ts +12 -0
  38. package/tests/examples/__snapshots__/example01.snap.svg +59 -162
  39. package/tests/examples/__snapshots__/example02.snap.svg +64 -273
  40. package/tests/examples/__snapshots__/example03.snap.svg +85 -290
  41. package/tests/examples/__snapshots__/example04.snap.svg +50 -94
  42. package/tests/examples/__snapshots__/example05.snap.svg +73 -191
  43. package/tests/examples/__snapshots__/example06.snap.svg +49 -95
  44. package/tests/examples/__snapshots__/example07.snap.svg +65 -218
  45. package/tests/examples/__snapshots__/example08.snap.svg +61 -143
  46. package/tests/examples/__snapshots__/example09.snap.svg +123 -493
  47. package/tests/examples/__snapshots__/example10.snap.svg +57 -136
  48. package/tests/examples/__snapshots__/example11.snap.svg +64 -173
  49. package/tests/examples/__snapshots__/example12.snap.svg +58 -159
  50. package/tests/examples/__snapshots__/example13.snap.svg +78 -348
  51. package/tests/examples/__snapshots__/example14.snap.svg +77 -293
  52. package/tests/examples/__snapshots__/example15.snap.svg +140 -984
  53. package/tests/examples/__snapshots__/example16.snap.svg +62 -162
  54. package/tests/examples/__snapshots__/example17.snap.svg +67 -198
  55. package/tests/examples/__snapshots__/example18.snap.svg +69 -249
  56. package/tests/examples/__snapshots__/example19.snap.svg +63 -202
  57. package/tests/examples/__snapshots__/example20.snap.svg +60 -148
  58. package/tests/examples/__snapshots__/example21.snap.svg +73 -298
  59. package/tests/examples/__snapshots__/example22.snap.svg +62 -156
  60. package/tests/examples/__snapshots__/example23.snap.svg +66 -172
  61. package/tests/examples/__snapshots__/example24.snap.svg +64 -164
  62. package/tests/examples/__snapshots__/example25.snap.svg +76 -299
  63. package/tests/examples/__snapshots__/example26.snap.svg +64 -164
  64. package/tests/examples/__snapshots__/example27.snap.svg +83 -300
  65. package/tests/examples/__snapshots__/example28.snap.svg +54 -115
  66. package/tests/examples/__snapshots__/example29.snap.svg +257 -1299
  67. package/tests/examples/__snapshots__/example30.snap.svg +91 -293
  68. package/tests/examples/__snapshots__/example31.snap.svg +47 -88
  69. package/tests/examples/__snapshots__/example32.snap.svg +107 -405
  70. package/tests/examples/__snapshots__/example33.snap.svg +71 -180
  71. package/tests/examples/__snapshots__/example34.snap.svg +55 -116
  72. package/tests/examples/__snapshots__/example35.snap.svg +69 -176
  73. package/tests/examples/__snapshots__/example36.snap.svg +65 -159
  74. package/tests/examples/__snapshots__/example37.snap.svg +75 -223
  75. package/tests/examples/__snapshots__/example38.snap.svg +46 -76
  76. package/tests/examples/__snapshots__/example39.snap.svg +51 -106
  77. package/tests/examples/__snapshots__/example40.snap.svg +83 -270
  78. package/tests/examples/__snapshots__/example41.snap.svg +54 -118
  79. package/tests/examples/__snapshots__/example42.snap.svg +67 -194
  80. package/tests/examples/__snapshots__/example43.snap.svg +62 -168
  81. package/tests/examples/__snapshots__/example44.snap.svg +86 -369
  82. package/tests/examples/__snapshots__/example45.snap.svg +60 -169
  83. package/tests/examples/__snapshots__/example46.snap.svg +80 -342
  84. package/tests/examples/__snapshots__/example47.snap.svg +82 -323
  85. package/tests/examples/__snapshots__/example48.snap.svg +64 -167
  86. package/tests/examples/__snapshots__/example49.snap.svg +120 -565
  87. package/tests/examples/__snapshots__/example50.snap.svg +71 -189
  88. package/tests/fixtures/getLastStepGraphicsObject.ts +38 -0
  89. package/tests/fixtures/getLastStepSvg.ts +9 -0
  90. package/tests/repros/__snapshots__/bugreport-001-gnd-overlap.snap.svg +67 -218
  91. package/tests/repros/__snapshots__/manufacturePartNumber-text-box.snap.svg +47 -87
  92. package/tests/repros/__snapshots__/netlabel-connector-through-rail-label.snap.svg +73 -272
  93. package/tests/repros/__snapshots__/repro-atmega328p-fault-pullup.snap.svg +284 -0
  94. package/tests/repros/__snapshots__/repro-atmega328p-missing-gnd-netlabel.snap.svg +470 -0
  95. package/tests/repros/__snapshots__/repro-bq24074-battery-charger.snap.svg +94 -395
  96. package/tests/repros/__snapshots__/repro-cc2340r5.snap.svg +88 -467
  97. package/tests/repros/__snapshots__/repro-ina237-current-monitor.snap.svg +109 -569
  98. package/tests/repros/__snapshots__/repro130-bq27441-fuel-gauge-trace-through-c1.snap.svg +95 -459
  99. package/tests/repros/__snapshots__/repro51-overlap-junction-crossing.snap.svg +64 -176
  100. package/tests/repros/__snapshots__/trace-overlap-box-resistor.snap.svg +51 -112
  101. package/tests/repros/assets/repro-atmega328p-fault-pullup.input.json +239 -0
  102. package/tests/repros/assets/repro-atmega328p-missing-gnd-netlabel.input.json +432 -0
  103. package/tests/repros/repro-atmega328p-fault-pullup.test.ts +11 -0
  104. package/tests/repros/repro-atmega328p-missing-gnd-netlabel.test.ts +16 -0
  105. package/tests/solvers/SchematicTraceSingleLineSolver2/__snapshots__/SchematicTraceSingleLineSolver2_01-example17-d1_1-u1_1.snap.svg +59 -159
  106. package/tests/solvers/TraceCleanupSolver/__snapshots__/TraceCleanupSolver.snap.svg +54 -118
  107. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/__snapshots__/TraceLabelOverlapAvoidanceSolver.snap.svg +58 -245
  108. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView01.snap.svg +73 -222
  109. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView02.snap.svg +65 -204
  110. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView03.snap.svg +65 -183
  111. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/MergedNetLabelObstacles.snap.svg +54 -139
  112. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/OverlapAvoidanceStepSolver.snap.svg +61 -215
  113. package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/SingleOverlapSolver.snap.svg +54 -124
@@ -1,294 +1,78 @@
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="U1.1
5
- x+" data-x="1.2000000000000002" data-y="-0.30000000000000004" cx="419.07692307692315" cy="317.84615384615387" r="3" fill="hsl(319, 100%, 50%, 0.8)" />
6
- </g>
7
- <g>
8
- <circle data-type="point" data-label="U1.2
9
- x-" data-x="-1.2000000000000002" data-y="-0.30000000000000004" cx="212.30769230769232" cy="317.84615384615387" r="3" fill="hsl(320, 100%, 50%, 0.8)" />
10
- </g>
11
- <g>
12
- <circle data-type="point" data-label="U1.3
13
- x+" data-x="1.2000000000000002" data-y="0.09999999999999998" cx="419.07692307692315" cy="283.38461538461536" r="3" fill="hsl(321, 100%, 50%, 0.8)" />
14
- </g>
15
- <g>
16
- <circle data-type="point" data-label="U1.4
17
- x-" data-x="-1.2000000000000002" data-y="0.30000000000000004" cx="212.30769230769232" cy="266.15384615384613" r="3" fill="hsl(322, 100%, 50%, 0.8)" />
18
- </g>
19
- <g>
20
- <circle data-type="point" data-label="U1.5
21
- x-" data-x="-1.2000000000000002" data-y="0.10000000000000003" cx="212.30769230769232" cy="283.38461538461536" r="3" fill="hsl(323, 100%, 50%, 0.8)" />
22
- </g>
23
- <g>
24
- <circle data-type="point" data-label="U1.6
25
- x-" data-x="-1.2000000000000002" data-y="-0.09999999999999998" cx="212.30769230769232" cy="300.61538461538464" r="3" fill="hsl(324, 100%, 50%, 0.8)" />
26
- </g>
27
- <g>
28
- <circle data-type="point" data-label="U1.7
29
- x+" data-x="1.2000000000000002" data-y="-0.10000000000000003" cx="419.07692307692315" cy="300.61538461538464" r="3" fill="hsl(325, 100%, 50%, 0.8)" />
30
- </g>
31
- <g>
32
- <circle data-type="point" data-label="U1.8
33
- x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="419.07692307692315" cy="266.15384615384613" r="3" fill="hsl(326, 100%, 50%, 0.8)" />
34
- </g>
35
- <g>
36
- <circle data-type="point" data-label="R1.1
37
- x+" data-x="3" data-y="-0.10000000000000016" cx="574.1538461538462" cy="300.61538461538464" r="3" fill="hsl(226, 100%, 50%, 0.8)" />
38
- </g>
39
- <g>
40
- <circle data-type="point" data-label="R1.2
41
- x-" data-x="1.9000000000000004" data-y="-0.10000000000000002" cx="479.3846153846155" cy="300.61538461538464" r="3" fill="hsl(227, 100%, 50%, 0.8)" />
42
- </g>
43
- <g>
44
- <circle data-type="point" data-label="R2.1
45
- x+" data-x="1.2000000000000002" data-y="-1.2944553500000002" cx="419.07692307692315" cy="403.5223070769231" r="3" fill="hsl(107, 100%, 50%, 0.8)" />
46
- </g>
47
- <g>
48
- <circle data-type="point" data-label="R2.2
49
- x-" data-x="0.10000000000000009" data-y="-1.2944553500000002" cx="324.3076923076924" cy="403.5223070769231" r="3" fill="hsl(108, 100%, 50%, 0.8)" />
50
- </g>
51
- <g>
52
- <circle data-type="point" data-label="C1.1
53
- y+" data-x="-1.2000000000000002" data-y="-1.1500000000000001" cx="212.30769230769232" cy="391.0769230769231" r="3" fill="hsl(121, 100%, 50%, 0.8)" />
54
- </g>
55
- <g>
56
- <circle data-type="point" data-label="C1.2
57
- y-" data-x="-1.2000000000000002" data-y="-2.25" cx="212.30769230769232" cy="485.84615384615387" r="3" fill="hsl(122, 100%, 50%, 0.8)" />
58
- </g>
59
- <g>
60
- <circle data-type="point" data-label="C2.1
61
- x+" data-x="-1.9000000000000004" data-y="0.10000000000000002" cx="152" cy="283.38461538461536" r="3" fill="hsl(2, 100%, 50%, 0.8)" />
62
- </g>
63
- <g>
64
- <circle data-type="point" data-label="C2.2
65
- x-" data-x="-3" data-y="0.10000000000000016" cx="57.23076923076928" cy="283.38461538461536" r="3" fill="hsl(3, 100%, 50%, 0.8)" />
66
- </g>
67
- <g>
68
- <circle data-type="point" data-label="R3.1
69
- y-" data-x="1.2000000000000002" data-y="1.1500000000000001" cx="419.07692307692315" cy="192.9230769230769" r="3" fill="hsl(348, 100%, 50%, 0.8)" />
70
- </g>
71
- <g>
72
- <circle data-type="point" data-label="R3.2
73
- y+" data-x="1.2000000000000002" data-y="2.25" cx="419.07692307692315" cy="98.15384615384613" r="3" fill="hsl(349, 100%, 50%, 0.8)" />
74
- </g>
75
- <g>
76
- <circle data-type="point" data-label="anchorPoint
77
- orientation: y-" data-x="1.3510000000000002" data-y="-0.35100000000000003" cx="432.08615384615393" cy="322.24" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
78
- </g>
79
- <g>
80
- <circle data-type="point" data-label="anchorPoint
81
- orientation: y-" data-x="-1.2000000000000002" data-y="-2.45" cx="212.30769230769232" cy="503.0769230769231" 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.4000000000000001" data-y="-0.30000000000000004" cx="195.0769230769231" cy="317.84615384615387" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
86
- </g>
87
- <g>
88
- <circle data-type="point" data-label="anchorPoint
89
- orientation: x+" data-x="1.4000000000000001" data-y="0.09999999999999998" cx="436.3076923076924" cy="283.38461538461536" 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="-1.3010000000000002" data-y="0.5010000000000001" cx="203.60615384615386" cy="248.83692307692306" 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="3.2" data-y="0.30000000000000004" cx="591.3846153846155" cy="266.15384615384613" 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.5500000000000003" data-y="0.10000000000000003" cx="182.15384615384616" cy="283.38461538461536" 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="1.4755000000000003" data-y="-1.2944553500000002" cx="442.81230769230774" cy="403.5223070769231" r="3" fill="hsl(40, 100%, 50%, 0.9)" />
106
- </g>
107
- <g>
108
- <polyline data-points="-1.2000000000000002,0.10000000000000003 -1.9000000000000004,0.10000000000000002" data-type="line" data-label="" points="212.30769230769232,283.38461538461536 152,283.38461538461536" fill="none" stroke="hsl(296, 100%, 50%, 0.8)" stroke-width="1" />
109
- </g>
110
- <g>
111
- <polyline data-points="-1.2000000000000002,-0.09999999999999998 -1.2000000000000002,-0.30000000000000004" data-type="line" data-label="" points="212.30769230769232,300.61538461538464 212.30769230769232,317.84615384615387" fill="none" stroke="hsl(168, 100%, 50%, 0.8)" stroke-width="1" />
112
- </g>
113
- <g>
114
- <polyline data-points="1.9000000000000004,-0.10000000000000002 1.2000000000000002,-0.10000000000000003" data-type="line" data-label="" points="479.3846153846155,300.61538461538464 419.07692307692315,300.61538461538464" fill="none" stroke="hsl(248, 100%, 50%, 0.8)" stroke-width="1" />
115
- </g>
116
- <g>
117
- <polyline data-points="1.2000000000000002,-0.10000000000000003 1.2000000000000002,-1.2944553500000002" data-type="line" data-label="" points="419.07692307692315,300.61538461538464 419.07692307692315,403.5223070769231" fill="none" stroke="hsl(160, 100%, 50%, 0.8)" stroke-width="1" />
118
- </g>
119
- <g>
120
- <polyline data-points="0.10000000000000009,-1.2944553500000002 -1.2000000000000002,-0.09999999999999998" data-type="line" data-label="" points="324.3076923076924,403.5223070769231 212.30769230769232,300.61538461538464" fill="none" stroke="hsl(104, 100%, 50%, 0.8)" stroke-width="1" />
121
- </g>
122
- <g>
123
- <polyline data-points="-1.2000000000000002,-0.09999999999999998 -1.2000000000000002,-1.1500000000000001" data-type="line" data-label="" points="212.30769230769232,300.61538461538464 212.30769230769232,391.0769230769231" fill="none" stroke="hsl(168, 100%, 50%, 0.8)" stroke-width="1" />
124
- </g>
125
- <g>
126
- <polyline data-points="1.2000000000000002,0.09999999999999998 1.2000000000000002,1.1500000000000001" data-type="line" data-label="" points="419.07692307692315,283.38461538461536 419.07692307692315,192.9230769230769" fill="none" stroke="hsl(320, 100%, 50%, 0.8)" stroke-width="1" />
127
- </g>
128
- <g>
129
- <polyline data-points="1.2000000000000002,-0.30000000000000004 -1.2000000000000002,-2.25" data-type="line" data-label="" points="419.07692307692315,317.84615384615387 212.30769230769232,485.84615384615387" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
130
- </g>
131
- <g>
132
- <polyline data-points="1.2000000000000002,-0.30000000000000004 -3,0.10000000000000016" data-type="line" data-label="" points="419.07692307692315,317.84615384615387 57.23076923076928,283.38461538461536" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
133
- </g>
134
- <g>
135
- <polyline data-points="-1.2000000000000002,-2.25 -3,0.10000000000000016" data-type="line" data-label="" points="212.30769230769232,485.84615384615387 57.23076923076928,283.38461538461536" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
136
- </g>
137
- <g>
138
- <polyline data-points="-1.2000000000000002,0.30000000000000004 1.2000000000000002,0.30000000000000004" data-type="line" data-label="" points="212.30769230769232,266.15384615384613 419.07692307692315,266.15384615384613" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
139
- </g>
140
- <g>
141
- <polyline data-points="-1.2000000000000002,0.30000000000000004 3,-0.10000000000000016" data-type="line" data-label="" points="212.30769230769232,266.15384615384613 574.1538461538462,300.61538461538464" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
142
- </g>
143
- <g>
144
- <polyline data-points="1.2000000000000002,0.30000000000000004 3,-0.10000000000000016" data-type="line" data-label="" points="419.07692307692315,266.15384615384613 574.1538461538462,300.61538461538464" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1" stroke-dasharray="4 2" />
145
- </g>
146
- <g>
147
- <polyline data-points="-1.2000000000000002,0.10000000000000003 -1.9000000000000004,0.10000000000000002" data-type="line" data-label="" points="212.30769230769232,283.38461538461536 152,283.38461538461536" fill="none" stroke="purple" stroke-width="1" />
148
- </g>
149
- <g>
150
- <polyline data-points="-1.2000000000000002,-0.30000000000000004 -1.4000000000000001,-0.30000000000000004 -1.4000000000000001,-0.7250000000000001 -1.2000000000000002,-0.7250000000000001 -1.2000000000000002,-1.1500000000000001" data-type="line" data-label="" points="212.30769230769232,317.84615384615387 195.0769230769231,317.84615384615387 195.0769230769231,354.46153846153845 212.30769230769232,354.46153846153845 212.30769230769232,391.0769230769231" fill="none" stroke="purple" stroke-width="1" />
151
- </g>
152
- <g>
153
- <polyline data-points="-1.2000000000000002,-0.09999999999999998 -1.4000000000000001,-0.09999999999999998 -1.4000000000000001,-0.30000000000000004 -1.2000000000000002,-0.30000000000000004" data-type="line" data-label="" points="212.30769230769232,300.61538461538464 195.0769230769231,300.61538461538464 195.0769230769231,317.84615384615387 212.30769230769232,317.84615384615387" fill="none" stroke="purple" stroke-width="1" />
154
- </g>
155
- <g>
156
- <polyline data-points="0.09999999999999987,-1.2944553500000002 -0.55,-1.2944553500000002 -0.55,-0.9500000000000002 -1.2000000000000002,-0.9500000000000002 -1.2000000000000002,-1.1500000000000001" data-type="line" data-label="" points="324.3076923076923,403.5223070769231 268.3076923076923,403.5223070769231 268.3076923076923,373.84615384615387 212.30769230769232,373.84615384615387 212.30769230769232,391.0769230769231" fill="none" stroke="purple" stroke-width="1" />
157
- </g>
158
- <g>
159
- <polyline data-points="1.2000000000000002,-0.10000000000000003 1.9000000000000004,-0.10000000000000002" data-type="line" data-label="" points="419.07692307692315,300.61538461538464 479.3846153846155,300.61538461538464" fill="none" stroke="purple" stroke-width="1" />
160
- </g>
161
- <g>
162
- <polyline data-points="1.2000000000000002,0.09999999999999998 1.4000000000000001,0.09999999999999998 1.4000000000000001,0.625 1.2000000000000002,0.625 1.2000000000000002,1.1500000000000001" data-type="line" data-label="" points="419.07692307692315,283.38461538461536 436.3076923076924,283.38461538461536 436.3076923076924,238.15384615384613 419.07692307692315,238.15384615384613 419.07692307692315,192.9230769230769" fill="none" stroke="purple" stroke-width="1" />
163
- </g>
164
- <g>
165
- <polyline data-points="1.2000000000000002,0.30000000000000004 3.2,0.30000000000000004 3.2,-0.10000000000000016 3,-0.10000000000000016" data-type="line" data-label="" points="419.07692307692315,266.15384615384613 591.3846153846155,266.15384615384613 591.3846153846155,300.61538461538464 574.1538461538462,300.61538461538464" fill="none" stroke="purple" stroke-width="1" />
166
- </g>
167
- <g>
168
- <polyline data-points="-1.2000000000000002,-2.25 -1.2000000000000002,-2.45 -3.2,-2.45 -3.2,0.10000000000000016 -3,0.10000000000000016" data-type="line" data-label="" points="212.30769230769232,485.84615384615387 212.30769230769232,503.0769230769231 40,503.0769230769231 40,283.38461538461536 57.23076923076928,283.38461538461536" fill="none" stroke="purple" stroke-width="1" />
169
- </g>
170
- <g>
171
- <polyline data-points="1.2000000000000002,-1.2944553500000002 1.7510000000000003,-1.2944553500000002 1.7510000000000003,-0.10000000000000003 1.2000000000000002,-0.10000000000000003" data-type="line" data-label="" points="419.07692307692315,403.5223070769231 466.5476923076924,403.5223070769231 466.5476923076924,300.61538461538464 419.07692307692315,300.61538461538464" fill="none" stroke="purple" stroke-width="1" />
172
- </g>
173
- <g>
174
- <polyline data-points="1.2000000000000002,-0.30000000000000004 1.3510000000000002,-0.30000000000000004 1.3510000000000002,-0.35100000000000003" data-type="line" data-label="" points="419.07692307692315,317.84615384615387 432.08615384615393,317.84615384615387 432.08615384615393,322.24" fill="none" stroke="purple" stroke-width="1" />
175
- </g>
176
- <g>
177
- <polyline data-points="-1.2000000000000002,0.30000000000000004 -1.3010000000000002,0.30000000000000004 -1.3010000000000002,0.5010000000000001" data-type="line" data-label="" points="212.30769230769232,266.15384615384613 203.60615384615386,266.15384615384613 203.60615384615386,248.83692307692306" fill="none" stroke="purple" stroke-width="1" />
178
- </g>
179
- <g>
180
- <rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="212.30769230769232" y="248.9230769230769" width="206.76923076923083" height="86.15384615384619" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856" />
181
- </g>
182
- <g>
183
- <rect data-type="rect" data-label="schematic_component_1" data-x="2.45" data-y="-0.10000000000000009" x="479.3846153846155" y="283.86230830769233" width="94.76923076923072" height="33.506152615384565" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856" />
184
- </g>
185
- <g>
186
- <rect data-type="rect" data-label="schematic_component_2" data-x="0.6500000000000001" data-y="-1.2944553500000002" x="324.3076923076924" y="386.76923076923083" width="94.76923076923077" height="33.50615261538451" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856" />
187
- </g>
188
- <g>
189
- <rect data-type="rect" data-label="schematic_component_3" data-x="-1.2000000000000002" data-y="-1.7000000000000002" x="166.64615384615385" y="391.0769230769231" width="91.32307692307697" height="94.76923076923077" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856" />
190
- </g>
191
- <g>
192
- <rect data-type="rect" data-label="schematic_component_4" data-x="-2.45" data-y="0.10000000000000009" x="57.23076923076928" y="247.2" width="94.76923076923072" height="72.3692307692308" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856" />
193
- </g>
194
- <g>
195
- <rect data-type="rect" data-label="schematic_component_5" data-x="1.2000000000000002" data-y="1.7000000000000002" x="373.41538461538465" y="98.15384615384613" width="91.32307692307694" height="94.76923076923077" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856" />
196
- </g>
197
- <g>
198
- <rect data-type="rect" data-label="netId: GND
199
- globalConnNetId: connectivity_net4
200
- available orientations: y-" data-x="1.3510000000000002" data-y="-0.5760000000000001" x="423.4707692307693" y="322.24" width="17.230769230769226" height="38.769230769230774" fill="#00000066" stroke="#000000" stroke-width="0.011607142857142856" />
201
- </g>
202
- <g>
203
- <rect data-type="rect" data-label="netId: GND
204
- globalConnNetId: connectivity_net4
205
- available orientations: y-" data-x="-1.2000000000000002" data-y="-2.6750000000000003" x="203.6923076923077" y="503.0769230769231" width="17.230769230769255" height="38.76923076923083" fill="#00000066" stroke="#000000" stroke-width="0.011607142857142856" />
206
- </g>
207
- <g>
208
- <rect data-type="rect" data-label="netId: U1.THRES to U1.TRIG
209
- globalConnNetId: connectivity_net1
210
- available orientations: any" data-x="-1.6250000000000002" data-y="-0.30000000000000004" x="156.30769230769232" y="309.2307692307692" width="38.769230769230774" height="17.230769230769226" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856" />
211
- </g>
212
- <g>
213
- <rect data-type="rect" data-label="netId: U1.OUT to R3.pin1
214
- globalConnNetId: connectivity_net3
215
- available orientations: any" data-x="1.6250000000000002" data-y="0.09999999999999998" x="436.3076923076924" y="274.7692307692308" width="38.769230769230774" height="17.230769230769226" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856" />
216
- </g>
217
- <g>
218
- <rect data-type="rect" data-label="netId: VCC
219
- globalConnNetId: connectivity_net5
220
- available orientations: y+" data-x="-1.3010000000000002" data-y="0.7260000000000001" x="194.99076923076925" y="210.0676923076923" width="17.230769230769255" height="38.769230769230745" fill="#ef444466" stroke="#ef4444" stroke-width="0.011607142857142856" />
221
- </g>
222
- <g>
223
- <rect data-type="rect" data-label="netId: VCC
224
- globalConnNetId: connectivity_net5
225
- available orientations: y+" data-x="3.2" data-y="0.525" x="582.7692307692308" y="227.3846153846154" width="17.230769230769283" height="38.769230769230745" fill="#ef444466" stroke="#ef4444" stroke-width="0.011607142857142856" />
226
- </g>
227
- <g>
228
- <rect data-type="rect" data-label="netId: U1.CTRL to C2.pin1
229
- globalConnNetId: connectivity_net0
230
- available orientations: any" data-x="-1.5500000000000003" data-y="0.32500000000000007" x="173.53846153846155" y="244.6153846153846" width="17.230769230769226" height="38.769230769230745" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856" />
231
- </g>
232
- <g>
233
- <rect data-type="rect" data-label="netId: U1.DISCH to R2.pin1
234
- globalConnNetId: connectivity_net2
235
- available orientations: any" data-x="1.4755000000000003" data-y="-1.0694553500000001" x="434.19692307692316" y="364.7530763076923" width="17.230769230769226" height="38.769230769230774" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856" />
236
- </g>
237
- <g id="crosshair" style="display: none">
238
- <line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5" />
239
- <line id="crosshair-v" x1="0" x2="640" stroke="#666" stroke-width="0.5" /><text id="coordinates" font-family="monospace" font-size="12" fill="#666"></text>
240
- </g>
241
- <script>
242
- <![CDATA[
243
- document.currentScript.parentElement.addEventListener('mousemove', (e) => {
244
- const svg = e.currentTarget;
245
- const rect = svg.getBoundingClientRect();
246
- const x = e.clientX - rect.left;
247
- const y = e.clientY - rect.top;
248
- const crosshair = svg.getElementById('crosshair');
249
- const h = svg.getElementById('crosshair-h');
250
- const v = svg.getElementById('crosshair-v');
251
- const coords = svg.getElementById('coordinates');
1
+ <svg width="640" height="640" viewBox="0 0 640 640" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="white"/><g><polyline data-points="-1.2000000000000002,0.10000000000000003 -1.9000000000000004,0.10000000000000002" data-type="line" data-label="" points="212.30769230769232,283.38461538461536 152,283.38461538461536" fill="none" stroke="hsl(296, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-1.2000000000000002,-0.09999999999999998 -1.2000000000000002,-0.30000000000000004" data-type="line" data-label="" points="212.30769230769232,300.61538461538464 212.30769230769232,317.84615384615387" fill="none" stroke="hsl(168, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="1.9000000000000004,-0.10000000000000002 1.2000000000000002,-0.10000000000000003" data-type="line" data-label="" points="479.3846153846155,300.61538461538464 419.07692307692315,300.61538461538464" fill="none" stroke="hsl(248, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,-0.10000000000000003 1.2000000000000002,-1.2944553500000002" data-type="line" data-label="" points="419.07692307692315,300.61538461538464 419.07692307692315,403.5223070769231" fill="none" stroke="hsl(160, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="0.10000000000000009,-1.2944553500000002 -1.2000000000000002,-0.09999999999999998" data-type="line" data-label="" points="324.3076923076924,403.5223070769231 212.30769230769232,300.61538461538464" fill="none" stroke="hsl(104, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="-1.2000000000000002,-0.09999999999999998 -1.2000000000000002,-1.1500000000000001" data-type="line" data-label="" points="212.30769230769232,300.61538461538464 212.30769230769232,391.0769230769231" fill="none" stroke="hsl(168, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,0.09999999999999998 1.2000000000000002,1.1500000000000001" data-type="line" data-label="" points="419.07692307692315,283.38461538461536 419.07692307692315,192.9230769230769" fill="none" stroke="hsl(320, 100%, 50%, 0.8)" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,-0.30000000000000004 -1.2000000000000002,-2.25" data-type="line" data-label="" points="419.07692307692315,317.84615384615387 212.30769230769232,485.84615384615387" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,-0.30000000000000004 -3,0.10000000000000016" data-type="line" data-label="" points="419.07692307692315,317.84615384615387 57.23076923076928,283.38461538461536" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="-1.2000000000000002,-2.25 -3,0.10000000000000016" data-type="line" data-label="" points="212.30769230769232,485.84615384615387 57.23076923076928,283.38461538461536" fill="none" stroke="hsl(157, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="-1.2000000000000002,0.30000000000000004 1.2000000000000002,0.30000000000000004" data-type="line" data-label="" points="212.30769230769232,266.15384615384613 419.07692307692315,266.15384615384613" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="-1.2000000000000002,0.30000000000000004 3,-0.10000000000000016" data-type="line" data-label="" points="212.30769230769232,266.15384615384613 574.1538461538462,300.61538461538464" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="1.2000000000000002,0.30000000000000004 3,-0.10000000000000016" data-type="line" data-label="" points="419.07692307692315,266.15384615384613 574.1538461538462,300.61538461538464" fill="none" stroke="hsl(190, 100%, 50%, 0.8)" stroke-width="1px" stroke-dasharray="4 2"/></g><g><polyline data-points="-1.2000000000000002,0.10000000000000003 -1.9000000000000004,0.10000000000000002" data-type="line" data-label="" points="212.30769230769232,283.38461538461536 152,283.38461538461536" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-1.2000000000000002,-0.30000000000000004 -1.4000000000000001,-0.30000000000000004 -1.4000000000000001,-0.7250000000000001 -1.2000000000000002,-0.7250000000000001 -1.2000000000000002,-1.1500000000000001" data-type="line" data-label="" points="212.30769230769232,317.84615384615387 195.0769230769231,317.84615384615387 195.0769230769231,354.46153846153845 212.30769230769232,354.46153846153845 212.30769230769232,391.0769230769231" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-1.2000000000000002,-0.09999999999999998 -1.4000000000000001,-0.09999999999999998 -1.4000000000000001,-0.30000000000000004 -1.2000000000000002,-0.30000000000000004" data-type="line" data-label="" points="212.30769230769232,300.61538461538464 195.0769230769231,300.61538461538464 195.0769230769231,317.84615384615387 212.30769230769232,317.84615384615387" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="0.09999999999999987,-1.2944553500000002 -0.55,-1.2944553500000002 -0.55,-0.9500000000000002 -1.2000000000000002,-0.9500000000000002 -1.2000000000000002,-1.1500000000000001" data-type="line" data-label="" points="324.3076923076923,403.5223070769231 268.3076923076923,403.5223070769231 268.3076923076923,373.84615384615387 212.30769230769232,373.84615384615387 212.30769230769232,391.0769230769231" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,-0.10000000000000003 1.9000000000000004,-0.10000000000000002" data-type="line" data-label="" points="419.07692307692315,300.61538461538464 479.3846153846155,300.61538461538464" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,0.09999999999999998 1.4000000000000001,0.09999999999999998 1.4000000000000001,0.625 1.2000000000000002,0.625 1.2000000000000002,1.1500000000000001" data-type="line" data-label="" points="419.07692307692315,283.38461538461536 436.3076923076924,283.38461538461536 436.3076923076924,238.15384615384613 419.07692307692315,238.15384615384613 419.07692307692315,192.9230769230769" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,0.30000000000000004 3.2,0.30000000000000004 3.2,-0.10000000000000016 3,-0.10000000000000016" data-type="line" data-label="" points="419.07692307692315,266.15384615384613 591.3846153846155,266.15384615384613 591.3846153846155,300.61538461538464 574.1538461538462,300.61538461538464" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-1.2000000000000002,-2.25 -1.2000000000000002,-2.45 -3.2,-2.45 -3.2,0.10000000000000016 -3,0.10000000000000016" data-type="line" data-label="" points="212.30769230769232,485.84615384615387 212.30769230769232,503.0769230769231 40,503.0769230769231 40,283.38461538461536 57.23076923076928,283.38461538461536" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,-1.2944553500000002 1.7510000000000003,-1.2944553500000002 1.7510000000000003,-0.10000000000000003 1.2000000000000002,-0.10000000000000003" data-type="line" data-label="" points="419.07692307692315,403.5223070769231 466.5476923076924,403.5223070769231 466.5476923076924,300.61538461538464 419.07692307692315,300.61538461538464" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="1.2000000000000002,-0.30000000000000004 1.3510000000000002,-0.30000000000000004 1.3510000000000002,-0.35100000000000003" data-type="line" data-label="" points="419.07692307692315,317.84615384615387 432.08615384615393,317.84615384615387 432.08615384615393,322.24" fill="none" stroke="purple" stroke-width="1px"/></g><g><polyline data-points="-1.2000000000000002,0.30000000000000004 -1.3010000000000002,0.30000000000000004 -1.3010000000000002,0.5010000000000001" data-type="line" data-label="" points="212.30769230769232,266.15384615384613 203.60615384615386,266.15384615384613 203.60615384615386,248.83692307692306" fill="none" stroke="purple" stroke-width="1px"/></g><g><rect data-type="rect" data-label="schematic_component_0" data-x="0" data-y="0" x="212.30769230769232" y="248.9230769230769" width="206.76923076923083" height="86.15384615384619" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="schematic_component_1" data-x="2.45" data-y="-0.10000000000000009" x="479.3846153846155" y="283.8623083076924" width="94.76923076923072" height="33.506152615384565" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="schematic_component_2" data-x="0.6500000000000001" data-y="-1.2944553500000002" x="324.3076923076924" y="386.76923076923083" width="94.76923076923077" height="33.50615261538451" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="schematic_component_3" data-x="-1.2000000000000002" data-y="-1.7000000000000002" x="166.64615384615382" y="391.0769230769231" width="91.32307692307697" height="94.76923076923077" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="schematic_component_4" data-x="-2.45" data-y="0.10000000000000009" x="57.23076923076928" y="247.19999999999996" width="94.76923076923072" height="72.3692307692308" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="schematic_component_5" data-x="1.2000000000000002" data-y="1.7000000000000002" x="373.4153846153847" y="98.15384615384613" width="91.32307692307694" height="94.76923076923077" fill="hsl(24, 100%, 50%, 0.8)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: GND
2
+ globalConnNetId: connectivity_net4" data-x="1.3510000000000002" data-y="-0.5760000000000001" x="423.4707692307693" y="322.24" width="17.230769230769226" height="38.769230769230774" fill="#00000066" stroke="#000000" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: GND
3
+ globalConnNetId: connectivity_net4" data-x="-1.2000000000000002" data-y="-2.6750000000000003" x="203.69230769230768" y="503.07692307692315" width="17.230769230769255" height="38.76923076923083" fill="#00000066" stroke="#000000" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: U1.THRES to U1.TRIG
4
+ globalConnNetId: connectivity_net1" data-x="-1.6250000000000002" data-y="-0.30000000000000004" x="156.30769230769232" y="309.2307692307693" width="38.769230769230774" height="17.230769230769226" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: U1.OUT to R3.pin1
5
+ globalConnNetId: connectivity_net3" data-x="1.6250000000000002" data-y="0.09999999999999998" x="436.3076923076924" y="274.7692307692307" width="38.769230769230774" height="17.230769230769226" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: VCC
6
+ globalConnNetId: connectivity_net5" data-x="-1.3010000000000002" data-y="0.7260000000000001" x="194.99076923076922" y="210.0676923076923" width="17.230769230769255" height="38.769230769230745" fill="#ef444466" stroke="#ef4444" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: VCC
7
+ globalConnNetId: connectivity_net5" data-x="3.2" data-y="0.525" x="582.7692307692308" y="227.38461538461542" width="17.230769230769283" height="38.769230769230745" fill="#ef444466" stroke="#ef4444" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: U1.CTRL to C2.pin1
8
+ globalConnNetId: connectivity_net0" data-x="-1.5500000000000003" data-y="0.32500000000000007" x="173.53846153846155" y="244.61538461538464" width="17.230769230769226" height="38.769230769230745" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856"/></g><g><rect data-type="rect" data-label="netId: U1.DISCH to R2.pin1
9
+ globalConnNetId: connectivity_net2" data-x="1.4755000000000003" data-y="-1.0694553500000001" x="434.1969230769231" y="364.75307630769237" width="17.230769230769226" height="38.769230769230774" fill="hsl(40, 100%, 50%, 0.35)" stroke="black" stroke-width="0.011607142857142856"/></g><g><circle data-type="point" data-label="U1.1
10
+ x+" data-x="1.2000000000000002" data-y="-0.30000000000000004" cx="419.07692307692315" cy="317.84615384615387" r="3" fill="hsl(319, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.2
11
+ x-" data-x="-1.2000000000000002" data-y="-0.30000000000000004" cx="212.30769230769232" cy="317.84615384615387" r="3" fill="hsl(320, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.3
12
+ x+" data-x="1.2000000000000002" data-y="0.09999999999999998" cx="419.07692307692315" cy="283.38461538461536" r="3" fill="hsl(321, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.4
13
+ x-" data-x="-1.2000000000000002" data-y="0.30000000000000004" cx="212.30769230769232" cy="266.15384615384613" r="3" fill="hsl(322, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.5
14
+ x-" data-x="-1.2000000000000002" data-y="0.10000000000000003" cx="212.30769230769232" cy="283.38461538461536" r="3" fill="hsl(323, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.6
15
+ x-" data-x="-1.2000000000000002" data-y="-0.09999999999999998" cx="212.30769230769232" cy="300.61538461538464" r="3" fill="hsl(324, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.7
16
+ x+" data-x="1.2000000000000002" data-y="-0.10000000000000003" cx="419.07692307692315" cy="300.61538461538464" r="3" fill="hsl(325, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="U1.8
17
+ x+" data-x="1.2000000000000002" data-y="0.30000000000000004" cx="419.07692307692315" cy="266.15384615384613" r="3" fill="hsl(326, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.1
18
+ x+" data-x="3" data-y="-0.10000000000000016" cx="574.1538461538462" cy="300.61538461538464" r="3" fill="hsl(226, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R1.2
19
+ x-" data-x="1.9000000000000004" data-y="-0.10000000000000002" cx="479.3846153846155" cy="300.61538461538464" r="3" fill="hsl(227, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R2.1
20
+ x+" data-x="1.2000000000000002" data-y="-1.2944553500000002" cx="419.07692307692315" cy="403.5223070769231" r="3" fill="hsl(107, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R2.2
21
+ x-" data-x="0.10000000000000009" data-y="-1.2944553500000002" cx="324.3076923076924" cy="403.5223070769231" r="3" fill="hsl(108, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C1.1
22
+ y+" data-x="-1.2000000000000002" data-y="-1.1500000000000001" cx="212.30769230769232" cy="391.0769230769231" r="3" fill="hsl(121, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C1.2
23
+ y-" data-x="-1.2000000000000002" data-y="-2.25" cx="212.30769230769232" cy="485.84615384615387" r="3" fill="hsl(122, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C2.1
24
+ x+" data-x="-1.9000000000000004" data-y="0.10000000000000002" cx="152" cy="283.38461538461536" r="3" fill="hsl(2, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="C2.2
25
+ x-" data-x="-3" data-y="0.10000000000000016" cx="57.23076923076928" cy="283.38461538461536" r="3" fill="hsl(3, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R3.1
26
+ y-" data-x="1.2000000000000002" data-y="1.1500000000000001" cx="419.07692307692315" cy="192.9230769230769" r="3" fill="hsl(348, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="R3.2
27
+ y+" data-x="1.2000000000000002" data-y="2.25" cx="419.07692307692315" cy="98.15384615384613" r="3" fill="hsl(349, 100%, 50%, 0.8)"/></g><g><circle data-type="point" data-label="anchorPoint
28
+ orientation: y-" data-x="1.3510000000000002" data-y="-0.35100000000000003" cx="432.08615384615393" cy="322.24" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
29
+ orientation: y-" data-x="-1.2000000000000002" data-y="-2.45" cx="212.30769230769232" cy="503.0769230769231" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
30
+ orientation: x-" data-x="-1.4000000000000001" data-y="-0.30000000000000004" cx="195.0769230769231" cy="317.84615384615387" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
31
+ orientation: x+" data-x="1.4000000000000001" data-y="0.09999999999999998" cx="436.3076923076924" cy="283.38461538461536" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
32
+ orientation: y+" data-x="-1.3010000000000002" data-y="0.5010000000000001" cx="203.60615384615386" cy="248.83692307692306" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
33
+ orientation: y+" data-x="3.2" data-y="0.30000000000000004" cx="591.3846153846155" cy="266.15384615384613" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
34
+ orientation: y+" data-x="-1.5500000000000003" data-y="0.10000000000000003" cx="182.15384615384616" cy="283.38461538461536" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
35
+ orientation: y+" data-x="1.4755000000000003" data-y="-1.2944553500000002" cx="442.81230769230774" cy="403.5223070769231" r="3" fill="hsl(40, 100%, 50%, 0.9)"/></g><g id="crosshair" style="display: none"><line id="crosshair-h" y1="0" y2="640" stroke="#666" stroke-width="0.5"/><line id="crosshair-v" x1="0" x2="640" stroke="#666" stroke-width="0.5"/><text id="coordinates" font-family="monospace" font-size="12" fill="#666"></text></g><script><![CDATA[
36
+ document.currentScript.parentElement.addEventListener('mousemove', (e) => {
37
+ const svg = e.currentTarget;
38
+ const rect = svg.getBoundingClientRect();
39
+ const x = e.clientX - rect.left;
40
+ const y = e.clientY - rect.top;
41
+ const crosshair = svg.getElementById('crosshair');
42
+ const h = svg.getElementById('crosshair-h');
43
+ const v = svg.getElementById('crosshair-v');
44
+ const coords = svg.getElementById('coordinates');
45
+
46
+ crosshair.style.display = 'block';
47
+ h.setAttribute('x1', '0');
48
+ h.setAttribute('x2', '640');
49
+ h.setAttribute('y1', y);
50
+ h.setAttribute('y2', y);
51
+ v.setAttribute('x1', x);
52
+ v.setAttribute('x2', x);
53
+ v.setAttribute('y1', '0');
54
+ v.setAttribute('y2', '640');
252
55
 
253
- crosshair.style.display = 'block';
254
- h.setAttribute('x1', '0');
255
- h.setAttribute('x2', '640');
256
- h.setAttribute('y1', y);
257
- h.setAttribute('y2', y);
258
- v.setAttribute('x1', x);
259
- v.setAttribute('x2', x);
260
- v.setAttribute('y1', '0');
261
- v.setAttribute('y2', '640');
262
-
263
- // Calculate real coordinates using inverse transformation
264
- const matrix = {
265
- "a": 86.15384615384616,
266
- "c": 0,
267
- "e": 315.69230769230774,
268
- "b": 0,
269
- "d": -86.15384615384616,
270
- "f": 292
271
- };
272
- // Manually invert and apply the affine transform
273
- // Since we only use translate and scale, we can directly compute:
274
- // x' = (x - tx) / sx
275
- // y' = (y - ty) / sy
276
- const sx = matrix.a;
277
- const sy = matrix.d;
278
- const tx = matrix.e;
279
- const ty = matrix.f;
280
- const realPoint = {
281
- x: (x - tx) / sx,
282
- y: (y - ty) / sy // Flip y back since we used negative scale
283
- }
284
-
285
- coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
286
- coords.setAttribute('x', (x + 5).toString());
287
- coords.setAttribute('y', (y - 5).toString());
288
- });
289
- document.currentScript.parentElement.addEventListener('mouseleave', () => {
290
- document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
291
- });
292
- ]]>
293
- </script>
294
- </svg>
56
+ // Calculate real coordinates using inverse transformation
57
+ const matrix = {"a":86.15384615384616,"c":0,"e":315.69230769230774,"b":0,"d":-86.15384615384616,"f":292};
58
+ // Manually invert and apply the affine transform
59
+ // Since we only use translate and scale, we can directly compute:
60
+ // x' = (x - tx) / sx
61
+ // y' = (y - ty) / sy
62
+ const sx = matrix.a;
63
+ const sy = matrix.d;
64
+ const tx = matrix.e;
65
+ const ty = matrix.f;
66
+ const realPoint = {
67
+ x: (x - tx) / sx,
68
+ y: (y - ty) / sy // Flip y back since we used negative scale
69
+ }
70
+
71
+ coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
72
+ coords.setAttribute('x', (x + 5).toString());
73
+ coords.setAttribute('y', (y - 5).toString());
74
+ });
75
+ document.currentScript.parentElement.addEventListener('mouseleave', () => {
76
+ document.currentScript.parentElement.getElementById('crosshair').style.display = 'none';
77
+ });
78
+ ]]></script></svg>