svg_candles: cautarea nivelurilor, scoasa in functie comuna; 11 generatoare reparate
Unsprezece generatoare nu mai rulau deloc la HEAD: cautau <line x1="24", iar svg_candles scrie x1="24.0" de cand are Level.i0. Un generator mort inseamna ca diagrama nu mai poate fi regenerata, si nimeni n-ar fi aflat pana cand ar fi incercat cineva, peste luni. Cele 11 copii ale aceluiasi regex au disparut: y_niveluri() si offset_render() se agata acum de semnatura liniei de Level (stroke-width + dasharray), nu de x-ul ei. Caz nou in selftest, cu Level(i0=) si panou de volum - combinatia la care varianta veche fie crapa, fie prindea tacut linia de zero a volumului. 41 de SVG-uri regenerate, toate identice cu cele comise dupa normalizarea x1=24 -> x1=24.0, deci niciun desen n-a sarit. Verificarea asta a prins o regresie reala: la buy_doji_transe substitutia lasase scaderea veche pe randul urmator, offsetul se scadea de doua ori si desenul urca 92 px. Inca doua generatoare moarte din aceeasi familie, gasite pe drum (intrarea_cazul_lui, intrarea_doua_variante): desenau peste grafic citind ch._y() fara offset. Nu crapau zgomotos - produceau suprapuneri la 22 px. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ThN7ixZrowca8aTGrK1MUJ
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
<svg x="8" y="52" width="372" height="321" viewBox="0 0 372 321"><polyline points="40.0,241.6 52.0,246.4 64.0,245.4 76.0,244.4 88.0,245.3 100.0,248.7 112.0,254.6 124.0,261.8 136.0,268.5 148.0,275.2 160.0,277.5 172.0,280.7 184.0,280.1 196.0,280.5 208.0,277.3 220.0,275.3 232.0,269.4 244.0,264.4 256.0,255.4 268.0,244.3 280.0,228.7 292.0,209.9 304.0,196.2 316.0,189.7 328.0,191.5 340.0,200.4 352.0,212.0 364.0,226.4" fill="none" stroke="#1a5fb4" stroke-width="1.2" opacity="0.85" stroke-dasharray="4 3"/>
|
||||
<polyline points="40.0,210.0 52.0,212.9 64.0,215.4 76.0,216.4 88.0,215.8 100.0,214.7 112.0,212.2 124.0,209.4 136.0,205.3 148.0,201.0 160.0,196.5 172.0,191.9 184.0,186.9 196.0,181.8 208.0,176.5 220.0,171.0 232.0,165.3 244.0,159.4 256.0,153.1 268.0,146.1 280.0,140.3 292.0,135.6 304.0,132.7 316.0,131.5 328.0,131.9 340.0,133.8 352.0,136.8 364.0,141.2" fill="none" stroke="#1a5fb4" stroke-width="1.2" opacity="0.85"/>
|
||||
<polyline points="40.0,178.4 52.0,179.5 64.0,185.5 76.0,188.5 88.0,186.3 100.0,180.8 112.0,169.8 124.0,157.0 136.0,142.0 148.0,126.8 160.0,115.4 172.0,103.1 184.0,93.8 196.0,83.1 208.0,75.7 220.0,66.7 232.0,61.1 244.0,54.3 256.0,50.8 268.0,48.0 280.0,51.9 292.0,61.3 304.0,69.2 316.0,73.4 328.0,72.2 340.0,67.1 352.0,61.5 364.0,55.9" fill="none" stroke="#1a5fb4" stroke-width="1.2" opacity="0.85" stroke-dasharray="4 3"/>
|
||||
<line x1="24" y1="249.8" x2="358" y2="249.8" stroke="#777" stroke-width="1.5" stroke-dasharray="6 3"/>
|
||||
<line x1="24" y1="34.0" x2="358" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24" y1="294.6" x2="358" y2="294.6" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="249.8" x2="358" y2="249.8" stroke="#777" stroke-width="1.5" stroke-dasharray="6 3"/>
|
||||
<line x1="24.0" y1="34.0" x2="358" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="294.6" x2="358" y2="294.6" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="40.0" y1="229.6" x2="40.0" y2="245.2" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="36.0" y="234.2" width="8" height="6.2" fill="#c00"/>
|
||||
<line x1="52.0" y1="235.8" x2="52.0" y2="249.8" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
@@ -72,8 +72,8 @@
|
||||
<svg x="398" y="52" width="372" height="321" viewBox="0 0 372 321"><polyline points="40.0,143.2 52.0,143.4 64.0,143.5 76.0,143.5 88.0,143.2 100.0,142.8 112.0,142.4 124.0,142.3 136.0,142.3 148.0,142.5 160.0,142.5 172.0,142.6 184.0,142.1 196.0,142.3 208.0,142.1 220.0,142.2 232.0,142.2 244.0,142.3 256.0,142.3 268.0,142.7 280.0,144.4 292.0,144.2 304.0,143.9 316.0,144.5 328.0,143.6 340.0,141.7 352.0,142.5 364.0,143.9" fill="none" stroke="#1a5fb4" stroke-width="1.2" opacity="0.85" stroke-dasharray="4 3"/>
|
||||
<polyline points="40.0,113.7 52.0,113.5 64.0,113.4 76.0,113.4 88.0,113.3 100.0,113.1 112.0,113.0 124.0,113.0 136.0,112.9 148.0,112.8 160.0,112.7 172.0,112.8 184.0,112.6 196.0,112.7 208.0,112.6 220.0,112.5 232.0,112.5 244.0,112.4 256.0,112.4 268.0,112.5 280.0,113.3 292.0,114.2 304.0,114.3 316.0,113.7 328.0,112.8 340.0,112.2 352.0,112.4 364.0,113.1" fill="none" stroke="#1a5fb4" stroke-width="1.2" opacity="0.85"/>
|
||||
<polyline points="40.0,84.2 52.0,83.6 64.0,83.3 76.0,83.3 88.0,83.3 100.0,83.5 112.0,83.7 124.0,83.6 136.0,83.4 148.0,83.1 160.0,82.9 172.0,82.9 184.0,83.1 196.0,83.1 208.0,83.0 220.0,82.9 232.0,82.7 244.0,82.5 256.0,82.5 268.0,82.4 280.0,82.3 292.0,84.1 304.0,84.7 316.0,82.9 328.0,82.0 340.0,82.7 352.0,82.3 364.0,82.2" fill="none" stroke="#1a5fb4" stroke-width="1.2" opacity="0.85" stroke-dasharray="4 3"/>
|
||||
<line x1="24" y1="34.0" x2="358" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24" y1="294.6" x2="358" y2="294.6" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="34.0" x2="358" y2="34.0" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="24.0" y1="294.6" x2="358" y2="294.6" stroke="none" stroke-width="1.5" stroke-dasharray=""/>
|
||||
<line x1="40.0" y1="107.9" x2="40.0" y2="139.9" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="36.0" y="113.3" width="8" height="21.1" fill="#188a3e"/>
|
||||
<line x1="52.0" y1="90.7" x2="52.0" y2="118.8" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user