Socket
Socket
Sign inDemoInstall

@pixi/canvas-renderer

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/canvas-renderer - npm Package Compare versions

Comparing version 6.3.2 to 6.4.0

51

dist/browser/canvas-renderer.js
/*!
* @pixi/canvas-renderer - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/canvas-renderer - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -207,3 +207,2 @@ * @pixi/canvas-renderer is licensed under the MIT License.

* Sprite masking is not supported on the CanvasRenderer.
*
* @class

@@ -220,3 +219,2 @@ * @memberof PIXI

* This method adds it to the current stack of masks.
*
* @param maskData - the maskData that will be pushed

@@ -247,3 +245,2 @@ */

* Renders all PIXI.Graphics shapes in a subtree.
*
* @param container - container to scan.

@@ -265,3 +262,2 @@ * @param out - where to put found shapes

* Renders a PIXI.Graphics shape.
*
* @param graphics - The object to render.

@@ -385,3 +381,2 @@ */

* Restores the current drawing context to the state it was before the mask was applied.
*
* @param renderer - The renderer context to use.

@@ -402,6 +397,5 @@ */

* Creates a little colored canvas
*
* @ignore
* @param {string} color - The color to make the canvas
* @return {canvas} a small canvas element
* @returns {HTMLCanvasElement} a small canvas element
*/

@@ -419,5 +413,4 @@ function createColoredCanvas(color) {

* Checks whether the Canvas BlendModes are supported by the current browser
*
* @private
* @return {boolean} whether they are supported
* @returns {boolean} whether they are supported
*/

@@ -447,3 +440,2 @@ function canUseNewCanvasBlendModes() {

* Maps blend combinations to Canvas.
*
* @memberof PIXI

@@ -453,3 +445,3 @@ * @function mapCanvasBlendModesToPixi

* @param {string[]} [array=[]] - The array to output into.
* @return {string[]} Mapped modes.
* @returns {string[]} Mapped modes.
*/

@@ -521,3 +513,2 @@ function mapCanvasBlendModesToPixi(array) {

* Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything!
*
* @class

@@ -590,5 +581,3 @@ * @memberof PIXI

}
/**
* Adds a new system to the renderer. It does nothing in the CanvasRenderer.
*/
/** Adds a new system to the renderer. It does nothing in the CanvasRenderer. */
CanvasRenderer.prototype.addSystem = function () {

@@ -716,3 +705,2 @@ return this;

* Clear the canvas of renderer.
*
* @param {string} [clearColor] - Clear the canvas with this color, except the canvas is transparent.

@@ -735,3 +723,2 @@ * @param {number} [alpha] - Alpha to apply to the background fill color.

* Sets the blend mode of the renderer.
*
* @param {number} blendMode - See {@link PIXI.BLEND_MODES} for valid values.

@@ -758,3 +745,2 @@ * @param {boolean} [readyForOuterBlend=false] - Some blendModes are dangerous, they affect outer space of sprite.

* Removes everything from the renderer and optionally removes the Canvas DOM element.
*
* @param {boolean} [removeView=false] - Removes the Canvas element from the DOM.

@@ -773,5 +759,3 @@ */

* Resizes the canvas view to the specified width and height.
*
* @extends PIXI.AbstractRenderer#resize
*
* @param desiredScreenWidth - the desired width of the screen

@@ -805,3 +789,2 @@ * @param desiredScreenHeight - the desired height of the screen

* Adds a plugin to the renderer.
*
* @param pluginName - The name of the plugin.

@@ -822,3 +805,2 @@ * @param ctor - The constructor function or class for the plugin.

* so be aware of the performance implications.
*
* @namespace PIXI.canvasUtils

@@ -831,7 +813,7 @@ * @memberof PIXI

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Sprite} sprite - the sprite to tint
* @param sprite.texture
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -869,7 +851,6 @@ getTintedCanvas: function (sprite, color) {

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Texture} texture - the sprite to tint
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -895,3 +876,2 @@ getTintedPattern: function (texture, color) {

* Tint a texture using the 'multiply' operation.
*
* @memberof PIXI.canvasUtils

@@ -924,3 +904,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture using the 'overlay' operation.
*
* @memberof PIXI.canvasUtils

@@ -952,3 +931,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture pixel per pixel.
*
* @memberof PIXI.canvasUtils

@@ -988,6 +966,5 @@ * @param {PIXI.Texture} texture - the texture to tint

* Rounds the specified color according to the canvasUtils.cacheStepsPerColorChannel.
*
* @memberof PIXI.canvasUtils
* @param {number} color - the color to round, should be a hex color
* @return {number} The rounded color.
* @returns {number} The rounded color.
*/

@@ -1004,3 +981,2 @@ roundColor: function (color) {

* Number of steps which will be used as a cap when rounding colors.
*
* @memberof PIXI.canvasUtils

@@ -1012,3 +988,2 @@ * @type {number}

* Tint cache boolean flag.
*
* @memberof PIXI.canvasUtils

@@ -1020,3 +995,2 @@ * @type {boolean}

* Whether or not the Canvas BlendModes are supported, consequently the ability to tint using the multiply method.
*
* @memberof PIXI.canvasUtils

@@ -1028,3 +1002,2 @@ * @type {boolean}

* The tinting method that will be used.
*
* @memberof PIXI.canvasUtils

@@ -1042,2 +1015,3 @@ * @type {Function}

* Also supports forceCanvas option with Application or autoDetectRenderer.
* @param options
* @private

@@ -1063,3 +1037,3 @@ */

* @memberof PIXI.BaseTexture#
* @return {PIXI.ICanvasImageSource} Source to render with CanvasRenderer
* @returns {PIXI.ICanvasImageSource} Source to render with CanvasRenderer
*/

@@ -1072,3 +1046,2 @@ core.BaseTexture.prototype.getDrawableSource = function getDrawableSource() {

* A reference to the canvas render target (we only need one as this can be shared across renderers)
*
* @protected

@@ -1075,0 +1048,0 @@ * @member {PIXI.utils.CanvasRenderTarget} _canvasRenderTarget

/*!
* @pixi/canvas-renderer - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/canvas-renderer - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -5,0 +5,0 @@ * @pixi/canvas-renderer is licensed under the MIT License.

/*!
* @pixi/canvas-renderer - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/canvas-renderer - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -51,3 +51,2 @@ * @pixi/canvas-renderer is licensed under the MIT License.

* Sprite masking is not supported on the CanvasRenderer.
*
* @class

@@ -64,3 +63,2 @@ * @memberof PIXI

* This method adds it to the current stack of masks.
*
* @param maskData - the maskData that will be pushed

@@ -91,3 +89,2 @@ */

* Renders all PIXI.Graphics shapes in a subtree.
*
* @param container - container to scan.

@@ -109,3 +106,2 @@ * @param out - where to put found shapes

* Renders a PIXI.Graphics shape.
*
* @param graphics - The object to render.

@@ -229,3 +225,2 @@ */

* Restores the current drawing context to the state it was before the mask was applied.
*
* @param renderer - The renderer context to use.

@@ -246,6 +241,5 @@ */

* Creates a little colored canvas
*
* @ignore
* @param {string} color - The color to make the canvas
* @return {canvas} a small canvas element
* @returns {HTMLCanvasElement} a small canvas element
*/

@@ -263,5 +257,4 @@ function createColoredCanvas(color) {

* Checks whether the Canvas BlendModes are supported by the current browser
*
* @private
* @return {boolean} whether they are supported
* @returns {boolean} whether they are supported
*/

@@ -291,3 +284,2 @@ function canUseNewCanvasBlendModes() {

* Maps blend combinations to Canvas.
*
* @memberof PIXI

@@ -297,3 +289,3 @@ * @function mapCanvasBlendModesToPixi

* @param {string[]} [array=[]] - The array to output into.
* @return {string[]} Mapped modes.
* @returns {string[]} Mapped modes.
*/

@@ -365,3 +357,2 @@ function mapCanvasBlendModesToPixi(array) {

* Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything!
*
* @class

@@ -434,5 +425,3 @@ * @memberof PIXI

}
/**
* Adds a new system to the renderer. It does nothing in the CanvasRenderer.
*/
/** Adds a new system to the renderer. It does nothing in the CanvasRenderer. */
CanvasRenderer.prototype.addSystem = function () {

@@ -560,3 +549,2 @@ return this;

* Clear the canvas of renderer.
*
* @param {string} [clearColor] - Clear the canvas with this color, except the canvas is transparent.

@@ -579,3 +567,2 @@ * @param {number} [alpha] - Alpha to apply to the background fill color.

* Sets the blend mode of the renderer.
*
* @param {number} blendMode - See {@link PIXI.BLEND_MODES} for valid values.

@@ -602,3 +589,2 @@ * @param {boolean} [readyForOuterBlend=false] - Some blendModes are dangerous, they affect outer space of sprite.

* Removes everything from the renderer and optionally removes the Canvas DOM element.
*
* @param {boolean} [removeView=false] - Removes the Canvas element from the DOM.

@@ -617,5 +603,3 @@ */

* Resizes the canvas view to the specified width and height.
*
* @extends PIXI.AbstractRenderer#resize
*
* @param desiredScreenWidth - the desired width of the screen

@@ -649,3 +633,2 @@ * @param desiredScreenHeight - the desired height of the screen

* Adds a plugin to the renderer.
*
* @param pluginName - The name of the plugin.

@@ -666,3 +649,2 @@ * @param ctor - The constructor function or class for the plugin.

* so be aware of the performance implications.
*
* @namespace PIXI.canvasUtils

@@ -675,7 +657,7 @@ * @memberof PIXI

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Sprite} sprite - the sprite to tint
* @param sprite.texture
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -713,7 +695,6 @@ getTintedCanvas: function (sprite, color) {

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Texture} texture - the sprite to tint
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -739,3 +720,2 @@ getTintedPattern: function (texture, color) {

* Tint a texture using the 'multiply' operation.
*
* @memberof PIXI.canvasUtils

@@ -768,3 +748,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture using the 'overlay' operation.
*
* @memberof PIXI.canvasUtils

@@ -796,3 +775,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture pixel per pixel.
*
* @memberof PIXI.canvasUtils

@@ -832,6 +810,5 @@ * @param {PIXI.Texture} texture - the texture to tint

* Rounds the specified color according to the canvasUtils.cacheStepsPerColorChannel.
*
* @memberof PIXI.canvasUtils
* @param {number} color - the color to round, should be a hex color
* @return {number} The rounded color.
* @returns {number} The rounded color.
*/

@@ -848,3 +825,2 @@ roundColor: function (color) {

* Number of steps which will be used as a cap when rounding colors.
*
* @memberof PIXI.canvasUtils

@@ -856,3 +832,2 @@ * @type {number}

* Tint cache boolean flag.
*
* @memberof PIXI.canvasUtils

@@ -864,3 +839,2 @@ * @type {boolean}

* Whether or not the Canvas BlendModes are supported, consequently the ability to tint using the multiply method.
*
* @memberof PIXI.canvasUtils

@@ -872,3 +846,2 @@ * @type {boolean}

* The tinting method that will be used.
*
* @memberof PIXI.canvasUtils

@@ -886,2 +859,3 @@ * @type {Function}

* Also supports forceCanvas option with Application or autoDetectRenderer.
* @param options
* @private

@@ -907,3 +881,3 @@ */

* @memberof PIXI.BaseTexture#
* @return {PIXI.ICanvasImageSource} Source to render with CanvasRenderer
* @returns {PIXI.ICanvasImageSource} Source to render with CanvasRenderer
*/

@@ -916,3 +890,2 @@ core.BaseTexture.prototype.getDrawableSource = function getDrawableSource() {

* A reference to the canvas render target (we only need one as this can be shared across renderers)
*
* @protected

@@ -919,0 +892,0 @@ * @member {PIXI.utils.CanvasRenderTarget} _canvasRenderTarget

/*!
* @pixi/canvas-renderer - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/canvas-renderer - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -5,0 +5,0 @@ * @pixi/canvas-renderer is licensed under the MIT License.

/*!
* @pixi/canvas-renderer - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/canvas-renderer - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -47,3 +47,2 @@ * @pixi/canvas-renderer is licensed under the MIT License.

* Sprite masking is not supported on the CanvasRenderer.
*
* @class

@@ -60,3 +59,2 @@ * @memberof PIXI

* This method adds it to the current stack of masks.
*
* @param maskData - the maskData that will be pushed

@@ -87,3 +85,2 @@ */

* Renders all PIXI.Graphics shapes in a subtree.
*
* @param container - container to scan.

@@ -105,3 +102,2 @@ * @param out - where to put found shapes

* Renders a PIXI.Graphics shape.
*
* @param graphics - The object to render.

@@ -225,3 +221,2 @@ */

* Restores the current drawing context to the state it was before the mask was applied.
*
* @param renderer - The renderer context to use.

@@ -242,6 +237,5 @@ */

* Creates a little colored canvas
*
* @ignore
* @param {string} color - The color to make the canvas
* @return {canvas} a small canvas element
* @returns {HTMLCanvasElement} a small canvas element
*/

@@ -259,5 +253,4 @@ function createColoredCanvas(color) {

* Checks whether the Canvas BlendModes are supported by the current browser
*
* @private
* @return {boolean} whether they are supported
* @returns {boolean} whether they are supported
*/

@@ -287,3 +280,2 @@ function canUseNewCanvasBlendModes() {

* Maps blend combinations to Canvas.
*
* @memberof PIXI

@@ -293,3 +285,3 @@ * @function mapCanvasBlendModesToPixi

* @param {string[]} [array=[]] - The array to output into.
* @return {string[]} Mapped modes.
* @returns {string[]} Mapped modes.
*/

@@ -361,3 +353,2 @@ function mapCanvasBlendModesToPixi(array) {

* Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything!
*
* @class

@@ -430,5 +421,3 @@ * @memberof PIXI

}
/**
* Adds a new system to the renderer. It does nothing in the CanvasRenderer.
*/
/** Adds a new system to the renderer. It does nothing in the CanvasRenderer. */
CanvasRenderer.prototype.addSystem = function () {

@@ -556,3 +545,2 @@ return this;

* Clear the canvas of renderer.
*
* @param {string} [clearColor] - Clear the canvas with this color, except the canvas is transparent.

@@ -575,3 +563,2 @@ * @param {number} [alpha] - Alpha to apply to the background fill color.

* Sets the blend mode of the renderer.
*
* @param {number} blendMode - See {@link PIXI.BLEND_MODES} for valid values.

@@ -598,3 +585,2 @@ * @param {boolean} [readyForOuterBlend=false] - Some blendModes are dangerous, they affect outer space of sprite.

* Removes everything from the renderer and optionally removes the Canvas DOM element.
*
* @param {boolean} [removeView=false] - Removes the Canvas element from the DOM.

@@ -613,5 +599,3 @@ */

* Resizes the canvas view to the specified width and height.
*
* @extends PIXI.AbstractRenderer#resize
*
* @param desiredScreenWidth - the desired width of the screen

@@ -645,3 +629,2 @@ * @param desiredScreenHeight - the desired height of the screen

* Adds a plugin to the renderer.
*
* @param pluginName - The name of the plugin.

@@ -662,3 +645,2 @@ * @param ctor - The constructor function or class for the plugin.

* so be aware of the performance implications.
*
* @namespace PIXI.canvasUtils

@@ -671,7 +653,7 @@ * @memberof PIXI

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Sprite} sprite - the sprite to tint
* @param sprite.texture
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -709,7 +691,6 @@ getTintedCanvas: function (sprite, color) {

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Texture} texture - the sprite to tint
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -735,3 +716,2 @@ getTintedPattern: function (texture, color) {

* Tint a texture using the 'multiply' operation.
*
* @memberof PIXI.canvasUtils

@@ -764,3 +744,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture using the 'overlay' operation.
*
* @memberof PIXI.canvasUtils

@@ -792,3 +771,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture pixel per pixel.
*
* @memberof PIXI.canvasUtils

@@ -828,6 +806,5 @@ * @param {PIXI.Texture} texture - the texture to tint

* Rounds the specified color according to the canvasUtils.cacheStepsPerColorChannel.
*
* @memberof PIXI.canvasUtils
* @param {number} color - the color to round, should be a hex color
* @return {number} The rounded color.
* @returns {number} The rounded color.
*/

@@ -844,3 +821,2 @@ roundColor: function (color) {

* Number of steps which will be used as a cap when rounding colors.
*
* @memberof PIXI.canvasUtils

@@ -852,3 +828,2 @@ * @type {number}

* Tint cache boolean flag.
*
* @memberof PIXI.canvasUtils

@@ -860,3 +835,2 @@ * @type {boolean}

* Whether or not the Canvas BlendModes are supported, consequently the ability to tint using the multiply method.
*
* @memberof PIXI.canvasUtils

@@ -868,3 +842,2 @@ * @type {boolean}

* The tinting method that will be used.
*
* @memberof PIXI.canvasUtils

@@ -882,2 +855,3 @@ * @type {Function}

* Also supports forceCanvas option with Application or autoDetectRenderer.
* @param options
* @private

@@ -903,3 +877,3 @@ */

* @memberof PIXI.BaseTexture#
* @return {PIXI.ICanvasImageSource} Source to render with CanvasRenderer
* @returns {PIXI.ICanvasImageSource} Source to render with CanvasRenderer
*/

@@ -912,3 +886,2 @@ BaseTexture.prototype.getDrawableSource = function getDrawableSource() {

* A reference to the canvas render target (we only need one as this can be shared across renderers)
*
* @protected

@@ -915,0 +888,0 @@ * @member {PIXI.utils.CanvasRenderTarget} _canvasRenderTarget

/*!
* @pixi/canvas-renderer - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/canvas-renderer - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -5,0 +5,0 @@ * @pixi/canvas-renderer is licensed under the MIT License.

@@ -20,5 +20,4 @@ /// <reference path="./global.d.ts" />

* Checks whether the Canvas BlendModes are supported by the current browser
*
* @private
* @return {boolean} whether they are supported
* @returns {boolean} whether they are supported
*/

@@ -31,3 +30,2 @@ export declare function canUseNewCanvasBlendModes(): boolean;

* Sprite masking is not supported on the CanvasRenderer.
*
* @class

@@ -44,3 +42,2 @@ * @memberof PIXI

* This method adds it to the current stack of masks.
*
* @param maskData - the maskData that will be pushed

@@ -51,3 +48,2 @@ */

* Renders all PIXI.Graphics shapes in a subtree.
*
* @param container - container to scan.

@@ -59,3 +55,2 @@ * @param out - where to put found shapes

* Renders a PIXI.Graphics shape.
*
* @param graphics - The object to render.

@@ -66,3 +61,2 @@ */

* Restores the current drawing context to the state it was before the mask was applied.
*
* @param renderer - The renderer context to use.

@@ -80,3 +74,2 @@ */

* Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything!
*
* @class

@@ -137,9 +130,6 @@ * @memberof PIXI

constructor(options?: IRendererOptions);
/**
* Adds a new system to the renderer. It does nothing in the CanvasRenderer.
*/
/** Adds a new system to the renderer. It does nothing in the CanvasRenderer. */
addSystem(): this;
/**
* Renders the object to its WebGL view.
*
* @param displayObject - The object to be rendered.

@@ -155,3 +145,2 @@ * @param options - Object to use for render options.

* Please use the `option` render arguments instead.
*
* @deprecated Since 6.0.0

@@ -176,3 +165,2 @@ * @param displayObject - The object to be rendered.

* Clear the canvas of renderer.
*
* @param {string} [clearColor] - Clear the canvas with this color, except the canvas is transparent.

@@ -184,3 +172,2 @@ * @param {number} [alpha] - Alpha to apply to the background fill color.

* Sets the blend mode of the renderer.
*
* @param {number} blendMode - See {@link PIXI.BLEND_MODES} for valid values.

@@ -193,3 +180,2 @@ * @param {boolean} [readyForOuterBlend=false] - Some blendModes are dangerous, they affect outer space of sprite.

* Removes everything from the renderer and optionally removes the Canvas DOM element.
*
* @param {boolean} [removeView=false] - Removes the Canvas element from the DOM.

@@ -200,5 +186,3 @@ */

* Resizes the canvas view to the specified width and height.
*
* @extends PIXI.AbstractRenderer#resize
*
* @param desiredScreenWidth - the desired width of the screen

@@ -224,3 +208,2 @@ * @param desiredScreenHeight - the desired height of the screen

* Adds a plugin to the renderer.
*
* @param pluginName - The name of the plugin.

@@ -237,3 +220,2 @@ * @param ctor - The constructor function or class for the plugin.

* so be aware of the performance implications.
*
* @namespace PIXI.canvasUtils

@@ -246,7 +228,7 @@ * @memberof PIXI

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Sprite} sprite - the sprite to tint
* @param sprite.texture
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -258,7 +240,6 @@ getTintedCanvas: (sprite: {

* Basically this method just needs a sprite and a color and tints the sprite with the given color.
*
* @memberof PIXI.canvasUtils
* @param {PIXI.Texture} texture - the sprite to tint
* @param {number} color - the color to use to tint the sprite with
* @return {HTMLCanvasElement} The tinted canvas
* @returns {HTMLCanvasElement} The tinted canvas
*/

@@ -268,3 +249,2 @@ getTintedPattern: (texture: Texture, color: number) => CanvasPattern;

* Tint a texture using the 'multiply' operation.
*
* @memberof PIXI.canvasUtils

@@ -278,3 +258,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture using the 'overlay' operation.
*
* @memberof PIXI.canvasUtils

@@ -288,3 +267,2 @@ * @param {PIXI.Texture} texture - the texture to tint

* Tint a texture pixel per pixel.
*
* @memberof PIXI.canvasUtils

@@ -298,6 +276,5 @@ * @param {PIXI.Texture} texture - the texture to tint

* Rounds the specified color according to the canvasUtils.cacheStepsPerColorChannel.
*
* @memberof PIXI.canvasUtils
* @param {number} color - the color to round, should be a hex color
* @return {number} The rounded color.
* @returns {number} The rounded color.
*/

@@ -307,3 +284,2 @@ roundColor: (color: number) => number;

* Number of steps which will be used as a cap when rounding colors.
*
* @memberof PIXI.canvasUtils

@@ -315,3 +291,2 @@ * @type {number}

* Tint cache boolean flag.
*
* @memberof PIXI.canvasUtils

@@ -323,3 +298,2 @@ * @type {boolean}

* Whether or not the Canvas BlendModes are supported, consequently the ability to tint using the multiply method.
*
* @memberof PIXI.canvasUtils

@@ -331,3 +305,2 @@ * @type {boolean}

* The tinting method that will be used.
*
* @memberof PIXI.canvasUtils

@@ -334,0 +307,0 @@ * @type {Function}

{
"name": "@pixi/canvas-renderer",
"version": "6.3.2",
"version": "6.4.0",
"main": "dist/cjs/canvas-renderer.js",
"module": "dist/esm/canvas-renderer.js",
"bundle": "dist/browser/canvas-renderer.js",
"types": "index.d.ts",
"exports": {
".": {
"import": {
"default": "./dist/cjs/canvas-renderer.js",
"types": "./index.d.ts"
},
"require": {
"default": "./dist/esm/canvas-renderer.js",
"types": "./index.d.ts"
}
}
},
"description": "Rendering using the Canvas API",

@@ -28,9 +41,9 @@ "author": "Mat Groves",

"peerDependencies": {
"@pixi/constants": "6.3.2",
"@pixi/core": "6.3.2",
"@pixi/math": "6.3.2",
"@pixi/settings": "6.3.2",
"@pixi/utils": "6.3.2"
"@pixi/constants": "6.4.0",
"@pixi/core": "6.4.0",
"@pixi/math": "6.4.0",
"@pixi/settings": "6.4.0",
"@pixi/utils": "6.4.0"
},
"gitHead": "87031295631dcd7db3e24b99ed7ceb2c4f963a40"
"gitHead": "e7eaa713b6e0eeb335e90384aec778f5c99c60d5"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc