effect-motion
API ReferencethreeNamespacesRendererVariables

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

ParameterType
widthnumber
heightnumber
updateStyle?boolean

Returns

(self) => Renderer

Call Signature

(
   self,
   width,
   height,
   updateStyle?): Renderer;

Parameters

ParameterType
selfRenderer
widthnumber
heightnumber
updateStyle?boolean

Returns

Renderer

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

On this page