• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HSF / phoenix / 33861084780
55%
master: 38%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 04 Sep 2026 10:04AM UTC
Jobs 1
Files 58
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2026 10:00AM UTC coverage: 46.273% (+0.3%) from 45.957%
33861084780

push

github

web-flow
fix(event-display): make cartesian grid work at non-default scales (#988)

`setCartesianGrid` iterated `for (let i = 0; i <= 62; i += 1)` over
`cartesianGrid.children`, hardcoding 63 planes, and derived its visibility
offsets from the magic indices `[10, 31, 52]`.

That count is not fixed. The planes were built by loops accumulating a
float (`z += 0.1 * scale`), so rounding decides whether the final plane is
emitted: scale 3000 yields 21 planes per axis (63 total), but scale 7 or
0.1 yields only 20 (60 total). At those scales `children[60]` is undefined
and setting `.visible` on it throws a TypeError. The default scale is 3000,
so this is latent today but breaks any non-default scale.

The visibility loops had a related flaw: `j` was stepped by `sparsity` with
no clamping, so a large distance relative to the scale could walk out of an
axis' own block into a neighbouring one, or past the end of the array.

Drive the plane loops by an integer step index instead of accumulating a
float, so each axis always builds exactly `2 * CARTESIAN_GRID_STEPS + 1`
planes at every scale. Derive the per-axis centres from that constant
rather than hardcoding `[10, 31, 52]`, and clamp each axis' reach to its
own block so indices can never leave it. Also guard a zero or negative
sparsity, which would otherwise never advance the loop.

The same float accumulation was present in the cartesian label loops, which
could drop a tick label at some scales; converted for consistency.

Verified that visibility is unchanged at the default scale of 3000 across
all 96 combinations of distance, sparsity and per-plane toggles, so this is
a bug fix with no visual change to existing behaviour.

Fixes #987

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

824 of 2087 branches covered (39.48%)

Branch coverage included in aggregate %.

52 of 53 new or added lines in 1 file covered. (98.11%)

3105 of 6404 relevant lines covered (48.49%)

204.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
63.34
2.93% packages/phoenix-event-display/src/managers/three-manager/scene-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 33861084780.1 04 Sep 2026 10:04AM UTC 58
46.27
GitHub Action Run
Source Files on build 33861084780
  • Tree
  • List 58
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33861084780
  • 9988d88c on github
  • Prev Build on main (#33860697023)
  • Next Build on main (#33948415449)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc