jimmynotjim / scrollnav

A dependency free JavaScript plugin for auto generating single page navigation
http://scrollnav.com
MIT License
461 stars 127 forks source link

Prerelease v3.0.0 #92

Closed jimmynotjim closed 6 years ago

jimmynotjim commented 6 years ago

Complete rebuild of scrollNav in es6 (with async/await from es7) with zero production dependencies, simpler user options, and less DOM manipulation. Demo hosted at https://codepen.io/jimmynotjim/pen/wmxXEP

codecov-io commented 6 years ago

Codecov Report

Merging #92 into v3.0.0 will increase coverage by 99.03%. The diff coverage is 99.03%.

Impacted file tree graph

@@             Coverage Diff             @@
##           v3.0.0      #92       +/-   ##
===========================================
+ Coverage       0%   99.03%   +99.03%     
===========================================
  Files           1       24       +23     
  Lines         203      207        +4     
  Branches       36       46       +10     
===========================================
+ Hits            0      205      +205     
+ Misses        167        2      -165     
+ Partials       36        0       -36
Impacted Files Coverage Δ
src/util/calculateScrollDuration.js 100% <100%> (ø)
src/util/calculateEasedTimes.js 100% <100%> (ø)
src/setupClickHandlers.js 100% <100%> (ø)
src/util/populateSectionData.js 100% <100%> (ø)
src/util/getOrSetID.js 100% <100%> (ø)
src/util/insertNav.js 100% <100%> (ø)
src/util/updatePositionData.js 100% <100%> (ø)
src/util/updateActiveNavItem.js 100% <100%> (ø)
src/teardownResizeHandler.js 100% <100%> (ø)
src/setupScrollHandler.js 100% <100%> (ø)
... and 37 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3852ffa...8efe476. Read the comment docs.

jimmynotjim commented 6 years ago

Squashed and merged locally https://github.com/jimmynotjim/scrollNav/commit/5263d43c9b26a5c809eb3101426a90c5826ade99