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:
@@ -6,13 +6,13 @@
|
||||
<text x="24" y="54" fill="#333" style="font-weight:bold">Exemplu construit — bare de 60 de minute, 5 ședințe</text>
|
||||
<rect x="357.5" y="123.7" width="109.0" height="229.4" fill="#1a5fb4" fill-opacity="0.08" stroke="#1a5fb4" stroke-width="1"/>
|
||||
<text x="357.5" y="53.0" fill="#1a5fb4" style="font-weight:bold">ziua a 4-a: pivotul mic e deja peste cel mare</text>
|
||||
<line x1="24" y1="141.0" x2="738" y2="141.0" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="2 3"/>
|
||||
<text x="30" y="135.0" fill="#188a3e">TP1 598.00 — poziția 1</text>
|
||||
<line x1="24" y1="243.0" x2="738" y2="243.0" stroke="#333" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30" y="237.0" fill="#333">intrarea 592.00</text>
|
||||
<line x1="24" y1="345.0" x2="738" y2="345.0" stroke="#c00" stroke-width="1.5" stroke-dasharray="6 3"/>
|
||||
<text x="30" y="339.0" fill="#c00">stopul 586.00</text>
|
||||
<line x1="24" y1="379.0" x2="738" y2="379.0" stroke="#777" stroke-width="1.5" stroke-dasharray="8 4"/>
|
||||
<line x1="24.0" y1="141.0" x2="738" y2="141.0" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="2 3"/>
|
||||
<text x="30.0" y="135.0" fill="#188a3e">TP1 598.00 — poziția 1</text>
|
||||
<line x1="24.0" y1="243.0" x2="738" y2="243.0" stroke="#333" stroke-width="1.5" stroke-dasharray="4 3"/>
|
||||
<text x="30.0" y="237.0" fill="#333">intrarea 592.00</text>
|
||||
<line x1="24.0" y1="345.0" x2="738" y2="345.0" stroke="#c00" stroke-width="1.5" stroke-dasharray="6 3"/>
|
||||
<text x="30.0" y="339.0" fill="#c00">stopul 586.00</text>
|
||||
<line x1="24.0" y1="379.0" x2="738" y2="379.0" stroke="#777" stroke-width="1.5" stroke-dasharray="8 4"/>
|
||||
<text x="724" y="373.0" fill="#777" text-anchor="end">pivot weekly (mare) 584.00</text>
|
||||
<line x1="52.0" y1="355.2" x2="52.0" y2="379.9" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="47.5" y="362.0" width="9" height="13.6" fill="#c00"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user