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

chartjs / chartjs-plugin-zoom / 11843727210
89%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2024 06:59PM UTC
Jobs 4
Files 8
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

14 Nov 2024 06:58PM UTC coverage: 83.926% (+0.6%) from 83.292%
11843727210

push

github

web-flow
Fix "original" scale limits with nonlinear pan (#774)

* Add some JSDoc types

These currently raise spurious errors, due to limitations in Chart.js types.

* Fix handling of "original" with panning nonlinear scales

Nonlinear scales failed to resolve "original" within panNumericalScale.

To fix this:

* Resolving "original" within panNumericalScale seemed redundant, when
  updateRange was already doing it, so I instead moved the logic into
  updateRange and control it with a new special value for the `zoom`
  parameter.  (Hopefully the use of a special string like this is
  acceptable as long as JSDoc calls it out - if I should use another
  approach, please let me know.)
* This change put updateRange over the configured ESLint complexity
  limit, so I extracted a new getScaleLimits function to reduce
  complexity.

Add unit tests, both for this bug and for the preexisting but untested
"original" feature.

* Upgrade Chart.js to fix type errors

264 of 329 branches covered (80.24%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 1 file covered. (100.0%)

420 of 486 relevant lines covered (86.42%)

1416.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 windows-latest-chrome - 11843727210.1 14 Nov 2024 07:01PM UTC 8
83.19
GitHub Action Run
2 ubuntu-latest-firefox - 11843727210.2 14 Nov 2024 06:59PM UTC 8
83.93
GitHub Action Run
3 windows-latest-firefox - 11843727210.3 14 Nov 2024 07:01PM UTC 8
83.93
GitHub Action Run
4 ubuntu-latest-chrome - 11843727210.4 14 Nov 2024 06:59PM UTC 8
83.93
GitHub Action Run
Source Files on build 11843727210
  • Tree
  • List 8
  • Changed 6
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • eb302dad on github
  • Prev Build on master (#11843684779)
  • Next Build on master (#11843861087)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc