MCPcopy Create free account
hub / github.com/chartjs/Chart.js / getDevicePixelRatio

Method getDevicePixelRatio

src/platform/platform.base.js:48–50  ·  view source on GitHub ↗

* @returns {number} the current devicePixelRatio of the device this platform is connected to.

()

Source from the content-addressed store, hash-verified

46 * @returns {number} the current devicePixelRatio of the device this platform is connected to.
47 */
48 getDevicePixelRatio() {
49 return 1;
50 }
51
52 /**
53 * Returns the maximum size in pixels of given canvas element.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected