Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/particle-container

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/particle-container - npm Package Compare versions

Comparing version 7.2.0-beta to 7.2.0-beta.2

8

lib/ParticleContainer.d.ts
import { BLEND_MODES } from '@pixi/core';
import { Container } from '@pixi/display';
import type { BaseTexture, Renderer } from '@pixi/core';
import type { BaseTexture, ColorSource, Renderer } from '@pixi/core';
import type { IDestroyOptions } from '@pixi/display';

@@ -91,3 +91,3 @@ import type { Sprite } from '@pixi/sprite';

*/
private _tint;
private _tintColor;
/**

@@ -120,4 +120,4 @@ * @param maxSize - The maximum number of particles that can be rendered by the container.

*/
get tint(): number;
set tint(value: number);
get tint(): ColorSource;
set tint(value: ColorSource);
/**

@@ -124,0 +124,0 @@ * Renders the container using the WebGL renderer.

@@ -27,4 +27,4 @@ 'use strict';

this.setProperties(properties);
this._tint = 0;
this.tintRgb = new Float32Array(4);
this._tintColor = new core.Color(0);
this.tintRgb = new Float32Array(3);
this.tint = 16777215;

@@ -45,7 +45,7 @@ }

get tint() {
return this._tint;
return this._tintColor.value;
}
set tint(value) {
this._tint = value;
core.Color.shared.setValue(value).toRgbArray(this.tintRgb);
this._tintColor.setValue(value);
this._tintColor.toRgbArray(this.tintRgb);
}

@@ -52,0 +52,0 @@ render(renderer) {

{
"name": "@pixi/particle-container",
"version": "7.2.0-beta",
"version": "7.2.0-beta.2",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "module": "lib/index.mjs",

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