All notable changes to this project will be documented in this file.
Added
- Option pass a callback function in the mappings object. This can be used for path details that have many possible values. See the example mappings.js for an example (#103).
- Add choose selection callback to remember what attribute index was selected (#104).
- Add
selectedAttributeIdx
to options to allow choosing a different attribute index than 0 (#105).
Added
- human readable label in the data (see example/data.js) (#99)
Fixed
- undefined event (#102)
Changed
- module field path in package.json
Fixed
- using margin width and height in tick and grid generation (#87)
Changed
- calculation of elevation bounds to a simpler method
- README.md height graph image
Fixed
Added
- click option to legend to keep it open
Fixed
- hg.addData toggles expand/minimize (#94)
- resizing with less than 2 parameters crops height graph (#93)
- graphStyle not adjusting legend items(#89)
- zooming out when changing category (#90)
- disappearing category selection arrows on resize (#92)
Security
- update dependencies
npm audit fix
lodash issues
Added
graphStyle
option to customize the graph style (PR #85)expandControls
option to hide the close button and expand by default (PR #82)resize
method for dynamic resizing of the heightgraph (#78)mapMousemoveHandler
method for handling a mousemove event to show the graph- and optionally the map-marker (PR #82)mapMouseoutHandler
method for handling the mouseout event, removing the markers (PR #82)
Changed
addData
method functionality (#37):- instead of removing and adding the whole height graph only the data is cleared and replaced, keeping the L.control.heightgraph instance
- mappings for subsequent data sets need to be specified during initialization of the height graph
- dependencies to latest (#83)
- prefixed class names (#65)
Removed
- unused dependencies: bower, concurrently & connect-modrewrite
Added
- rollup for building and bundling d3 (#45)
- modularization
es-dev-server
(replaces lite-server) for development
Changed
- folder structure
Removed
- removed d3 dependency
- grunt as task runner
- unused dev-dependencies
- lite-server
Added
xTick
andyTick
option to set axis tick frequency
Added
highlightStyle
options parameter to customize the highlighting style for the 'elevation above' feature (horizontal line)- more documentation to README.md
- babel transpiler (#70)
- minified script versions and
img
folder to distribution folder
Changed
- highlighting geometry type from multiPolyline to multiple L.polylines
- default values for
height
andmargins
to the ones that are actually stated in the readme - osm tile provider to
https
instead ofhttp
Fixed
- security issues (#66)
- some console error where
this._pointG
was undefined
Added
- Karma test runner
- Coverage report
- ES6 Support
- height selection on drag
Fixed
- option initialization on
addData()
call _fitSection()
not working with round-trips- index.html not working with undefined mappings
- horizontal line for height selection jumping on reselect (#42)
Changed
- version of
d3
,grunt-contrib-jasmine
andLeaflet
to latest - eol to LF in all files
- dependency source from bower to node
API Changes
- The class name
focus
was renamed tofocusbox
.focus
might be used in many other frameworks and could lead to css conflicts. Please make sure you update the .css when updating the .js! (#43 by boldtrn).
Improvements
Improvements
Improvements
Improvements
- Allow toggling the heightgraph on Android (#44 by boldtrn).
- Improve horizontal drag (#42 by boldtrn).
API Changes
- The width and height of the heightgraph now define the size of the heightgraph, and not the size of the heightgraph+margins. You might want to updated your height and width values (#43 by boldtrn).
- The dependencies were refined, if you were using the plugin before, you might want to recheck that you are using the correct dependencies.