circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#244 Draw one label per ruler tick while levels crossfade

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#244
  • pull request
  • state:merged

Fixes #241. While two graduation levels crossfade, a tick carries two label versions. When they print differently, for example "20:00" for half-hour steps and "20h" for hourly ones, both were drawn on top of each other, reading like "20000". Some zooms sit midway through the crossfade, so a still view could stay like that. - `tickLabel` (in `src/ruler.ts`, exported from the core) adds the weights of versions that print the same. Of versions that differ, it draws the stronger one alone, with their combined weight. The label switches over midway through the zoom instead of two showing at once. - The editor draws each tick's label through it. Tests: - A new ruler test uses the issue's 8-hour view, where an hour tick prints both "20:00" and "20h", and checks that one label is drawn. - `npm test` passes (302), and so does the Chromium browser suite. - I checked the same view in the real editor: the hours read "20h", "21h", with the half-hours faint between them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/244

Related

Open #244 Draw one label per ruler tick while levels crossfade in the timeline

#244 Draw one label per ruler tick while levels crossfade