webvr-polyfill-dpdb is a JSON dataset containing device parameters crucial for the webvr-polyfill. It provides information like screen DPI, bezel width, and device identification rules (User-Agent, resolution, etc.) for various Android and iOS devices. This data is essential for the webvr-polyfill to accurately render stereoscopic scenes by correcting lens distortion on mobile devices, bridging the gap where web applications lack direct access to physical device characteristics. The package is currently at version 1.0.18, with its last recorded update in December 2020. Given that the underlying WebVR API has been deprecated in favor of WebXR, this database is largely superseded and serves a legacy purpose.
npm install webvr-polyfill-dpdbVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the `dpdb.json` data and programmatically access device parameters. This package primarily provides data, not executable functions.
Migrate immersive web projects to the WebXR Device API and use `webxr-polyfill` if polyfilling is needed. The `webvr-polyfill-dpdb` is not compatible with WebXR directly.
For `webvr-polyfill` applications, if you need to support newer devices, you would need to fork this repository, add the device parameters to `dpdb-formatted.json`, run `npm run build`, and use your custom-built `dpdb.json`. However, it's strongly recommended to migrate to WebXR.
Plan to transition any existing WebVR content to WebXR. This package provides data for a legacy polyfill and should not be relied upon for new development or long-term maintenance.
Import the specific JSON file directly: `import dpdb from 'webvr-polyfill-dpdb/dpdb.json';` or `const dpdb = require('webvr-polyfill-dpdb/dpdb.json');`. Ensure your build tool is configured to handle JSON imports.Verify the import path is correct and that the JSON data is parsed. Ensure you are accessing `dpdb.devices` as an array, as indicated in the package's structure. Confirm the JSON itself is valid.
No dependency data recorded yet.