草案
此页面不完整。
PaintWorklet.devicePixelRatio
只读特性在
PaintWorklet
interface returns the current device's ratio of physical pixels to logical pixels.
var devicePixelRatio = paintWorklet.devicePixelRatio;
A double-precision integer.
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Painting API Level 1
The definition of 'PaintWorklet.devicePixelRatio' in that specification. |
工作草案 | 初始定义。 |
No compatibility data found. Please contribute data for "api.PaintWorklet.PaintWorklet.devicePixelRatio" (depth: 1) to the MDN 兼容性数据存储库 .
PaintWorklet
devicePixelRatio
devicePixelRatio
devicePixelRatio
registerPaint