Socket
Socket
Sign inDemoInstall

@pixi/canvas-renderer

Package Overview
Dependencies
0
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.0-alpha to 7.1.0

3

lib/CanvasContextSystem.d.ts
import { BLEND_MODES, Matrix } from '@pixi/core';
import type { ExtensionMetadata, ISystem } from '@pixi/core';
import type { ICanvasRenderingContext2D } from '@pixi/settings';
import type { ExtensionMetadata, ICanvasRenderingContext2D, ISystem } from '@pixi/core';
import type { CanvasRenderer } from './CanvasRenderer';

@@ -5,0 +4,0 @@ /**

import type { ExtensionMetadata, ISystem, MaskData } from '@pixi/core';
import type { Container } from '@pixi/display';
import type { Graphics } from '@pixi/graphics';
import type { CanvasRenderer } from './CanvasRenderer';
import type { Graphics } from '@pixi/graphics';
import type { Container } from '@pixi/display';
/**

@@ -6,0 +6,0 @@ * A set of functions used to handle masking.

@@ -0,3 +1,3 @@

import type { ExtensionMetadata, IRenderableObject, IRendererRenderOptions, ISystem } from '@pixi/core';
import type { CanvasRenderer } from './CanvasRenderer';
import type { ExtensionMetadata, IRendererRenderOptions, ISystem, IRenderableObject } from '@pixi/core';
/**

@@ -4,0 +4,0 @@ * system that provides a render function that focussing on rendering Pixi Scene Graph objects

import { SystemManager } from '@pixi/core';
import type { BLEND_MODES, RENDERER_TYPE, Matrix, Rectangle, IRendererOptions, IRendererPlugins, IRendererRenderOptions, RenderTexture, IRenderableObject, GenerateTextureSystem, IRenderer, BackgroundSystem, ViewSystem, PluginSystem, StartupSystem, ExtensionMetadata, IGenerateTextureOptions } from '@pixi/core';
import type { BackgroundSystem, BLEND_MODES, ExtensionMetadata, GenerateTextureSystem, ICanvas, ICanvasRenderingContext2D, IGenerateTextureOptions, IRenderableObject, IRenderer, IRendererOptions, IRendererPlugins, IRendererRenderOptions, Matrix, PluginSystem, Rectangle, RENDERER_TYPE, RenderTexture, StartupSystem, ViewSystem } from '@pixi/core';
import type { DisplayObject } from '@pixi/display';
import type { ICanvas, ICanvasRenderingContext2D } from '@pixi/settings';
import type { CanvasContextSystem, SmoothingEnabledProperties } from './CanvasContextSystem';

@@ -10,4 +9,2 @@ import type { CanvasMaskSystem } from './CanvasMaskSystem';

}
export interface CanvasRenderer extends GlobalMixins.CanvasRenderer {
}
/**

@@ -52,2 +49,7 @@ * The CanvasRenderer draws the scene and all its content onto a 2d canvas.

/**
* Options passed to the constructor.
* @member {PIXI.IRendererOptions}
*/
readonly options: IRendererOptions;
/**
* Used with autoDetectRenderer, this is always supported for any environment, so return true.

@@ -118,5 +120,2 @@ * @ignore

* @param {PIXI.ICanvas} [options.view] - the canvas to use as a view, optional
* @param {boolean} [options.useContextAlpha=true] - Pass-through value for canvas' context `alpha` property.
* If you want to set transparency, please use `backgroundAlpha`. This option is for cases where the
* canvas needs to be opaque, possibly for performance reasons on some older devices.
* @param {boolean} [options.autoDensity=false] - Resizes renderer view in CSS pixels to allow for

@@ -123,0 +122,0 @@ * resolutions other than 1

@@ -38,2 +38,6 @@ 'use strict';

this.setup(systemConfig);
if ("useContextAlpha" in options) {
deprecation("7.0.0", "options.useContextAlpha is deprecated, use options.backgroundAlpha instead");
options.backgroundAlpha = options.useContextAlpha === false ? 1 : options.backgroundAlpha;
}
const startupOptions = {

@@ -51,6 +55,8 @@ hello: options.hello,

autoDensity: options.autoDensity,
resolution: options.resolution
resolution: options.resolution,
view: options.view
}
};
this.startup.run(startupOptions);
this.options = options;
}

@@ -116,2 +122,3 @@ static test() {

get blendModes() {
deprecation("7.0.0", "renderer.blendModes has been deprecated, please use renderer.canvasContext.blendModes instead");
return this.canvasContext.blendModes;

@@ -124,38 +131,51 @@ }

get refresh() {
deprecation("7.0.0", "renderer.refresh has been deprecated");
return true;
}
get rootContext() {
deprecation("7.0.0", "renderer.rootContext has been deprecated, please use renderer.canvasContext.rootContext instead");
return this.canvasContext.rootContext;
}
get context() {
deprecation("7.0.0", "renderer.context has been deprecated, please use renderer.canvasContext.activeContext instead");
return this.canvasContext.activeContext;
}
get smoothProperty() {
deprecation("7.0.0", "renderer.smoothProperty has been deprecated, please use renderer.canvasContext.smoothProperty instead");
return this.canvasContext.smoothProperty;
}
setBlendMode(blendMode, readyForOuterBlend) {
deprecation("7.0.0", "renderer.setBlendMode has been deprecated, use renderer.canvasContext.setBlendMode instead");
this.canvasContext.setBlendMode(blendMode, readyForOuterBlend);
}
invalidateBlendMode() {
deprecation("7.0.0", "renderer.invalidateBlendMode has been deprecated, use renderer.canvasContext.invalidateBlendMode instead");
this.canvasContext.invalidateBlendMode();
}
setContextTransform(transform, roundPixels, localResolution) {
deprecation("7.0.0", "renderer.setContextTransform has been deprecated, use renderer.canvasContext.setContextTransform instead");
this.canvasContext.setContextTransform(transform, roundPixels, localResolution);
}
get backgroundColor() {
deprecation("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead.");
return this.background.color;
}
set backgroundColor(value) {
deprecation("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead.");
this.background.color = value;
}
get backgroundAlpha() {
deprecation("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead.");
return this.background.color;
}
set backgroundAlpha(value) {
deprecation("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead.");
this.background.alpha = value;
}
get preserveDrawingBuffer() {
deprecation("7.0.0", "renderer.preserveDrawingBuffer has been deprecated");
return false;
}
get useContextAlpha() {
deprecation("7.0.0", "renderer.useContextAlpha has been deprecated");
return false;

@@ -162,0 +182,0 @@ }

@@ -1,3 +0,2 @@

import type { Texture } from '@pixi/core';
import type { ICanvas } from '@pixi/settings';
import type { ICanvas, Texture } from '@pixi/core';
/**

@@ -4,0 +3,0 @@ * Utility methods for Sprite/Texture tinting.

/// <reference path="../global.d.ts" />
export * from './CanvasRenderer';
import './BaseTexture';
export * from './CanvasContextSystem';
export * from './CanvasMaskSystem';
export * from './CanvasObjectRendererSystem';
export * from './CanvasContextSystem';
export * from './CanvasRenderer';
export * from './canvasUtils';
export * from './utils/canUseNewCanvasBlendModes';
export * from './canvasUtils';
import './BaseTexture';

@@ -5,18 +5,18 @@ 'use strict';

var CanvasRenderer = require('./CanvasRenderer.js');
require('./BaseTexture.js');
var CanvasContextSystem = require('./CanvasContextSystem.js');
var CanvasMaskSystem = require('./CanvasMaskSystem.js');
var CanvasObjectRendererSystem = require('./CanvasObjectRendererSystem.js');
var CanvasContextSystem = require('./CanvasContextSystem.js');
var CanvasRenderer = require('./CanvasRenderer.js');
var canvasUtils = require('./canvasUtils.js');
var canUseNewCanvasBlendModes = require('./utils/canUseNewCanvasBlendModes.js');
var canvasUtils = require('./canvasUtils.js');
require('./BaseTexture.js');
exports.CanvasRenderer = CanvasRenderer.CanvasRenderer;
exports.CanvasContextSystem = CanvasContextSystem.CanvasContextSystem;
exports.CanvasMaskSystem = CanvasMaskSystem.CanvasMaskSystem;
exports.CanvasObjectRendererSystem = CanvasObjectRendererSystem.CanvasObjectRendererSystem;
exports.CanvasContextSystem = CanvasContextSystem.CanvasContextSystem;
exports.CanvasRenderer = CanvasRenderer.CanvasRenderer;
exports.canvasUtils = canvasUtils.canvasUtils;
exports.canUseNewCanvasBlendModes = canUseNewCanvasBlendModes.canUseNewCanvasBlendModes;
exports.canvasUtils = canvasUtils.canvasUtils;
//# sourceMappingURL=index.js.map
{
"name": "@pixi/canvas-renderer",
"version": "7.1.0-alpha",
"version": "7.1.0",
"main": "lib/index.js",

@@ -25,7 +25,7 @@ "module": "lib/index.mjs",

"homepage": "http://pixijs.com/",
"bugs": "https://github.com/pixijs/pixi.js/issues",
"bugs": "https://github.com/pixijs/pixijs/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pixijs/pixi.js.git"
"url": "https://github.com/pixijs/pixijs.git"
},

@@ -42,3 +42,3 @@ "publishConfig": {

],
"gitHead": "0fb26a500c738cb550da277c112d15d9dd3f87b6"
"gitHead": "4079e92895ecb692afe9f0b15d3e48ee40852ada"
}

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

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc