fix(grafico): SecuenciaClaridad usa el grosor de su propia barra

Cada línea resuelta tomaba el grosor de LINEAS_SIMBOLO[0] sin importar a
qué barra pertenecía; funcionaba por coincidencia porque las tres barras
del manual comparten height: 8. Se indexa ahora por DISPERSAS[i].barra, y
se agrega una prueba de regresión que fija el grosor de cada línea al de
su propia barra (derivado de LINEAS_SIMBOLO, no hardcodeado).
This commit is contained in:
erikgh committed 2026-07-31 11:14:02 -06:00
1 parent a900bdd99d
commit bd16de2aa3
2 files changed
+38 -2

No files matched your search

+2 -1
View File
@@ -80,7 +80,8 @@ export function SecuenciaClaridad({
};
};
const grosor = (i: number) => (completa && SOBREVIVE.includes(i) ? LINEAS_SIMBOLO[0].grosor : 1.5);
const grosor = (i: number) =>
completa && SOBREVIVE.includes(i) ? LINEAS_SIMBOLO[DISPERSAS[i].barra].grosor : 1.5;
// Reduced motion renders plain <line> elements: motion.line would apply its
// own dash scaffolding and leave the drawing invisible (see the same trap in