Added pixelRatio option to override canvas upscaling. Resolves #876, test included...
authorJeff VanDyke <jeffvd.a216@gmail.com>
Wed, 20 Sep 2017 22:17:03 +0000 (18:17 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Wed, 20 Sep 2017 22:17:03 +0000 (18:17 -0400)
commit64f1c4dfd7425931fcd1bd9949157c0ba6958656
treee7abb844a458bea46fbf90de0e2ae61d2e125335
parentf6e73ea983b61b50a6152c98a9945725eb45edb2
Added pixelRatio option to override canvas upscaling. Resolves #876, test included. (#877)

* Added pixelRatio option, using where appropriate.

Falls back to old behavior if not specified.
Added to options reference,
Added to Dygraph.prototype.resizeElements_,
Added to rangeSelector.prototype.updateVisibility.

* Fixed bug in range-selector pixelRatio implementation, tests pass

* added test for the pixelRatio option, properly run.

First fails without change, then passes after change.

* Added pull request suggestions

Fix typo in docs, documented a float type,
Simplified method of reading option.

* Added note about pixelRatio affecting resolution
auto_tests/tests/hidpi.js
src/dygraph-options-reference.js
src/dygraph.js
src/plugins/range-selector.js