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:
@@ -3,13 +3,13 @@
|
||||
<line x1="218.0" y1="181.8" x2="218.0" y2="243.0" stroke="#b06000" stroke-width="1.4" stroke-dasharray="3 3"/>
|
||||
<text x="224.0" y="212.4" fill="#b06000" style="font-weight:bold">stopul urcă la break-even</text>
|
||||
<text x="24" y="54" fill="#333" style="font-weight:bold">Pasul 6 — o jumătate la țintă fixă, cealaltă pe trail</text>
|
||||
<line x1="24" y1="141.0" x2="706" y2="141.0" stroke="#188a3e" stroke-width="1.5" stroke-dasharray="2 3"/>
|
||||
<text x="30" y="135.0" fill="#188a3e">TP1 598.00 = intrarea + 1R</text>
|
||||
<line x1="24" y1="181.8" x2="706" y2="181.8" stroke="#b06000" stroke-width="1.5" stroke-dasharray="1 3"/>
|
||||
<text x="30" y="175.8" fill="#b06000">595.60 = 60 % din drum</text>
|
||||
<line x1="24" y1="243.0" x2="706" 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="706" y2="345.0" stroke="#c00" stroke-width="1.5" stroke-dasharray="6 3"/>
|
||||
<line x1="24.0" y1="141.0" x2="706" 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 = intrarea + 1R</text>
|
||||
<line x1="24.0" y1="181.8" x2="706" y2="181.8" stroke="#b06000" stroke-width="1.5" stroke-dasharray="1 3"/>
|
||||
<text x="30.0" y="175.8" fill="#b06000">595.60 = 60 % din drum</text>
|
||||
<line x1="24.0" y1="243.0" x2="706" 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="706" y2="345.0" stroke="#c00" stroke-width="1.5" stroke-dasharray="6 3"/>
|
||||
<text x="692" y="339.0" fill="#c00" text-anchor="end">stopul inițial 586.00</text>
|
||||
<line x1="58.0" y1="299.2" x2="58.0" y2="334.8" stroke="#1a1a1a" stroke-width="1.2"/>
|
||||
<rect x="50.5" y="304.2" width="15" height="25.5" fill="#c00"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Reference in New Issue
Block a user