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

Ruler labels take their detail from the tick's exact interval (#313)

  • github
  • github/openchronology/timeline-app
  • commit
  • main
  • github/athanclark

A tick's label detail came from the time per pixel times the label's pixel spacing, which the app passed as a float pixel width of the tick's interval. For a year-level tick that should be exactly one Julian year, the year-label threshold itself, so rounding landed it either side and the label flipped between "1997 CE" and "1997-01 CE" with every tiny change of span (two fingers on a phone are never still). The day, hour and minute thresholds, and custom formats' labelResolution, had the same tie. The presentation context gains an optional labelInterval, the exact time between the labels a text is drawn for; labelResolution (Gregorian precision and custom formats' api.labelResolution()) uses it when given, and the ruler passes each tick version's interval. A unit test sweeps the span across the quarter and year breakpoints and requires the 1997 tick's label to change once; it fails without the interval. Closes #313 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/572f1521ade0901877cbb506a026bf8012601ef1

Related

Open Ruler labels take their detail from the tick's exact interval (#313) in the timeline

Ruler labels take their detail from the tick's exact…