Rendering is now animation-aware instead of snapshot based: - New/changed line zooms from anim-scale to 100% and brightens, while the outgoing line shrinks and dims after a 90 ms stagger. - Repaints run at full rate only inside that window and fall back to repaint-on-syllable-change, so the transitions cost almost nothing while a line is being sung. - Over-long lines follow the sung word with critically damped scrolling instead of jumping per syllable. - Word-boundary X positions now come from cached per-character widths, so highlighting stays correct when a line is split into font runs. New settings: font-size (font-name is now family-only and migrates its old 'Family 32' value), latin-font-name, anim-duration, anim-scale, scroll-smooth. Pango does not fall back per script for a family list, so Latin runs are measured and drawn with their own font. Also hardens the paint path found by running the extension in a nested Shell: clamp() no longer lets NaN through, a bad coordinate can no longer raise 'invalid matrix', the subscription is set up after the initial rebuild, and the tick loop stops touching C-side actor state during shutdown. Tests: 31 unit tests (new tests/anim.test.js covers the easing, stagger, scroll damping and NaN handling), prefs UI smoke test still passes.
13 lines
461 B
JSON
13 lines
461 B
JSON
{
|
|
"name": "lx-music-lyrics-wayland",
|
|
"version": "0.1.0",
|
|
"description": "Development-only package for unit testing the GNOME Shell extension's pure JS modules.",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"test": "node --test tests/lrc.test.js tests/anim.test.js",
|
|
"test:prefs": "gjs -m tests/manual/gjs-prefs-smoke-test.js",
|
|
"test:manual": "gjs -m tests/manual/gjs-lx-api-test.js && gjs -m tests/manual/gjs-lrc-live-test.js"
|
|
}
|
|
}
|