refactor(ilustraciones): grosores unificados a la escala 1.5/2/3
El nudo, la bifurcación y la convergencia usaban 2.5 y 3.5 sueltos, así que
las tres se veían de pesos distintos puestas una al lado de otra.
Un test de contrato por ilustración exige ahora que todo trazo pertenezca a
{1.5, 2, 3}, de modo que la escala no se pueda romper en silencio más
adelante. SecuenciaClaridad queda fuera a propósito: resuelve en las barras
reales del ≡ y su grosor lo manda LINEAS_SIMBOLO.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2296fa4868
commit
29837022ce
6 files changed
+26
-5
No files matched your search
@@ -20,6 +20,13 @@ describe('<IlustracionNudo />', () => {
|
||||
expect(container.querySelectorAll('path').length).toBeGreaterThanOrEqual(3);
|
||||
});
|
||||
|
||||
it('keeps every stroke within the shared line-art scale', () => {
|
||||
const { container } = render(<IlustracionNudo />);
|
||||
const anchos = Array.from(container.querySelectorAll('path')).map((p) => p.getAttribute('stroke-width'));
|
||||
expect(anchos.length).toBeGreaterThan(0);
|
||||
anchos.forEach((a) => expect(['1.5', '2', '3']).toContain(a));
|
||||
});
|
||||
|
||||
it('renders plain, fully-visible strands under reduced motion instead of motion.path\'s dash scaffolding', () => {
|
||||
// Force the reduced-motion branch. motion.path applies stroke-dasharray/
|
||||
// stroke-dashoffset even with no explicit initial/animate resolution,
|
||||
|
||||
Reference in new issue
Block a user