Measures: totals on summaries, values on hover cards, and plugins (#575)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Every edition's overview groups now carry their measures' totals (#574); this shows them and lets plugins use them. - Summaries: a label says what it holds, then up to two totals, each labelled and printed as its measure prints totals ("3 moments · Cost $21.50"); the tooltip and accessible name list them all. Separated tracks show their own. Comparisons of several timelines, whose measures differ, show none. - Single events: hover cards list their values as the reader does. Server and desktop overviews carry a marker's `measures` (up to 1 KiB) when a plugin is enabled, as they carry other plugin metadata. - Plugins: - scripts read a moment's value exactly with `api.measure(name)` and compare it with `rational`, `compare`, `add`, `sub`, `mul`, `div`; - `sizeBy: {measure}` sizes markers and summaries by their total, relative to the largest in view (thirds: small, medium, large); - the background chart's `{kind: "measure", measure}` draws a measure's totals across the view instead of the count. - Docs (plugins, measures), unit tests and the browser check. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/commit/501e4786bb3383bd060d45ecd8c547f276edd942
Related
Open Measures: totals on summaries, values on hover cards, and plugins (#575) in the timeline