New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dpdb #103
Dpdb #103
Conversation
Adds the DPDB file which contains DPI and bevel width information for several popular devices. This is now used instead of the hard-coded device parameters in device-info.js.
// Set the callback. | ||
this.onDeviceParamsUpdated = onDeviceParamsUpdated; | ||
|
||
console.log("Fetching DPDB..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please use single quotes throughout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Looks great overall, but I left some minor nits here and there. |
This is generally great - it's good to support as many devices as possible. Thanks for submitting. But I have a few issues in addition to the ones @borismus commented on...
|
How do these values compare to those on http://www.devicespecifications.com/ On Fri, Jan 15, 2016 at 7:46 PM, Brian Chirls notifications@github.com
Dr. Pete Markiewicz
|
Also, moving the DPDB away from this repo and into an independent URL.
This all looks interesting. I will dig in tomorrow and see if this has any effect on #102 and #105. It's definitely good that there's a default iOS device, which I imagine will at least prevent some breaking errors. @btco, can you share a link to documentation on DPDB? I can't seem to find any info on who compiles it, how it works or how often it's updated? Thanks. |
I'll add the documentation to the README soon!
|
Size matrix on this app page: |
Adds the DPDB file which contains DPI and bevel width information
for several popular devices. This is now used instead of the hard-coded
device parameters in device-info.js.