CanvasRenderer#CanvasMaskManager

CanvasMaskManager : PIXI.CanvasMaskManager Instance of a PIXI.CanvasMaskManager, handles masking when using the canvas renderer Source code: pixi/renderers/canvas/CanvasRenderer.js (Line 118)

CanvasRenderer#autoResize

autoResize : boolean Whether the render view should be resized automatically Source code: pixi/renderers/canvas/CanvasRenderer.js (Line 61)

CanvasMaskManager#pushMask()

pushMask(maskData, renderSession) This method adds it to the current stack of masks. Parameters Name Type Description maskData Object the maskData that will be pushed renderSession Object The renderSession whose context will be used for this mask manager. Source code: pixi/renderers/canvas/utils/CanvasMaskManager.js (Line 17)

CanvasMaskManager#popMask()

popMask(renderSession) Restores the current drawing context to the state it was before the mask was applied. Parameters Name Type Description renderSession Object The renderSession whose context will be used for this mask manager. Source code: pixi/renderers/canvas/utils/CanvasMaskManager.js (Line 49)

CanvasMaskManager#CanvasMaskManager

new CanvasMaskManager() A set of functions used to handle masking. Source code: pixi/renderers/canvas/utils/CanvasMaskManager.js (Line 5)

Canvas.setUserSelect()

<static> setUserSelect(canvas, value) → {HTMLCanvasElement} Sets the user-select property on the canvas style. Can be used to disable default browser selection actions. Parameters Name Type Argument Description canvas HTMLCanvasElement The canvas to set the touch action on. value string <optional> The touch action to set. Defaults to 'none'. Returns HTMLCanvasElement - The source canvas. Source code: utils/Canvas.js (Line 85)

Canvas.setTransform()

<static> setTransform(context, translateX, translateY, scaleX, scaleY, skewX, skewY) → {CanvasRenderingContext2D} Sets the transform of the given canvas to the matrix values provided. Parameters Name Type Description context CanvasRenderingContext2D The context to set the transform on. translateX number The value to translate horizontally by. translateY number The value to translate vertically by. scaleX number The value to scale horizontally by. scaleY number The value to s

Canvas.setTouchAction()

<static> setTouchAction(canvas, value) → {HTMLCanvasElement} Sets the touch-action property on the canvas style. Can be used to disable default browser touch actions. Parameters Name Type Argument Description canvas HTMLCanvasElement The canvas to set the touch action on. value string <optional> The touch action to set. Defaults to 'none'. Returns HTMLCanvasElement - The source canvas. Source code: utils/Canvas.js (Line 65)

Canvas.setSmoothingEnabled()

<static> setSmoothingEnabled(context, value) → {CanvasRenderingContext2D} Sets the Image Smoothing property on the given context. Set to false to disable image smoothing.By default browsers have image smoothing enabled, which isn't always what you visually want, especiallywhen using pixel art in a game. Note that this sets the property on the context itself, so that any imagedrawn to the context will be affected. This sets the property across all current browsers but support ispatchy o

Canvas.setImageRenderingCrisp()

<static> setImageRenderingCrisp(canvas) → {HTMLCanvasElement} Sets the CSS image-rendering property on the given canvas to be 'crisp' (aka 'optimize contrast' on webkit).Note that if this doesn't given the desired result then see the setSmoothingEnabled. Parameters Name Type Description canvas HTMLCanvasElement The canvas to set image-rendering crisp on. Returns HTMLCanvasElement - Returns the source canvas. Source code: utils/Canvas.js (Line 260)