Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chartjs/Chart.js
/ getDevicePixelRatio
Method
getDevicePixelRatio
src/platform/platform.dom.js:368–370 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
366
}
367
368
getDevicePixelRatio() {
369
return
window.devicePixelRatio;
370
}
371
372
/**
373
* @param {HTMLCanvasElement} canvas
Callers
2
_resize
Method · 0.45
constructor
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected