setSize
const setSize: {
Variable: setSize
const setSize: {
(width, height, updateStyle?): (self) => Renderer;
(self, width, height, updateStyle?): Renderer;
};Defined in: packages/three/src/Renderer.ts:339
Set the renderer's logical size in CSS pixels.
Call Signature
(
width,
height,
updateStyle?): (self) => Renderer;Parameters
| Parameter | Type |
|---|---|
width | number |
height | number |
updateStyle? | boolean |
Returns
(self) => Renderer
Call Signature
(
self,
width,
height,
updateStyle?): Renderer;Parameters
| Parameter | Type |
|---|---|
self | Renderer |
width | number |
height | number |
updateStyle? | boolean |
Returns
Remarks
The actual drawing buffer is this multiplied by the pixel ratio. Canvas
CSS is left alone unless updateStyle is true, since callers usually own
the element's layout.
Default Value
updateStyle — false