* Sets the framebuffer's pixel density or returns its current density. * * Computer displays are grids of little lights called pixels. A display's * pixel density describes how many pixels it packs into an area. Displays * with smaller pixels have a higher pixel density and create sharpe
(density)
| 269 | * } |
| 270 | */ |
| 271 | pixelDensity(density) { |
| 272 | if (density) { |
| 273 | this._autoSized = false; |
| 274 | this.density = density; |
| 275 | this._handleResize(); |
| 276 | } else { |
| 277 | return this.density; |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * Toggles the framebuffer's autosizing mode or returns the current mode. |
no test coverage detected