New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/sprite-animated

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/sprite-animated - npm Package Compare versions

Comparing version 7.1.0-alpha to 7.1.0

8

lib/AnimatedSprite.d.ts

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

import { Texture } from '@pixi/core';
import { Sprite } from '@pixi/sprite';
import { Texture } from '@pixi/core';
import type { IDestroyOptions } from '@pixi/display';

@@ -103,3 +103,3 @@ /**

* objects that make up the animation.
* @param {boolean} [autoUpdate=true] - Whether to use PIXI.Ticker.shared to auto update animation time.
* @param {boolean} [autoUpdate=true] - Whether to use Ticker.shared to auto update animation time.
*/

@@ -160,3 +160,3 @@ constructor(textures: Texture[] | FrameObject[], autoUpdate?: boolean);

set textures(value: Texture[] | FrameObject[]);
/** The AnimatedSprites current frame index. */
/** The AnimatedSprite's current frame index. */
get currentFrame(): number;

@@ -169,3 +169,3 @@ set currentFrame(value: number);

get playing(): boolean;
/** Whether to use PIXI.Ticker.shared to auto update animation time. */
/** Whether to use Ticker.shared to auto update animation time. */
get autoUpdate(): boolean;

@@ -172,0 +172,0 @@ set autoUpdate(value: boolean);

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

var core = require('@pixi/core');
var sprite = require('@pixi/sprite');
var core = require('@pixi/core');

@@ -90,6 +90,4 @@ class AnimatedSprite extends sprite.Sprite {

if (this.loop && this.onLoop) {
if (this.animationSpeed > 0 && this.currentFrame < previousFrame) {
if (this.animationSpeed > 0 && this.currentFrame < previousFrame || this.animationSpeed < 0 && this.currentFrame > previousFrame) {
this.onLoop();
} else if (this.animationSpeed < 0 && this.currentFrame > previousFrame) {
this.onLoop();
}

@@ -96,0 +94,0 @@ }

{
"name": "@pixi/sprite-animated",
"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"
},

@@ -43,3 +43,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

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