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:
Claude Agent
2026-10-02 06:12:32 +00:00
parent d82e1d5ce5
commit 84f933bcfa
60 changed files with 505 additions and 444 deletions

View File

@@ -1,5 +1,5 @@
<svg viewBox="0 0 780 594" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;font-family:system-ui,sans-serif;font-size:13px">
<svg x="8" y="48" width="380" height="414" viewBox="0 0 380 414"> <line x1="24" y1="181.1" x2="366" y2="181.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<svg x="8" y="48" width="380" height="414" viewBox="0 0 380 414"> <line x1="24.0" y1="181.1" x2="366" y2="181.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="352" y="175.1" fill="#1a5fb4" text-anchor="end">bandă 623.90</text>
<line x1="44.0" y1="34.0" x2="44.0" y2="64.6" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="39.0" y="40.8" width="10" height="17.0" fill="#c00"/>
@@ -31,7 +31,7 @@
<rect x="119.0" y="318.0" width="10" height="50.6" fill="#c00"/>
<text x="140.0" y="386.6" fill="#c00">M: TICUS -1150 (sub -1000)</text>
<text x="124.0" y="210.1" fill="#c00" text-anchor="middle" style="font-weight:bold">M: close 623.87 &lt; bandă 623.90</text></svg>
<svg x="396" y="48" width="380" height="414" viewBox="0 0 380 414"> <line x1="24" y1="181.1" x2="366" y2="181.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<svg x="396" y="48" width="380" height="414" viewBox="0 0 380 414"> <line x1="24.0" y1="181.1" x2="366" y2="181.1" stroke="#1a5fb4" stroke-width="1.5" stroke-dasharray="4 3"/>
<text x="352" y="175.1" fill="#1a5fb4" text-anchor="end">bandă 623.90</text>
<line x1="44.0" y1="34.0" x2="44.0" y2="64.6" stroke="#1a1a1a" stroke-width="1.2"/>
<rect x="39.0" y="40.8" width="10" height="17.0" fill="#c00"/>

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB