plugin/planimationLibrary.js
/**
     * Rotate the PIXI sprit object
     * @param  {PIXI.Sprite} oldSprite sprite needs to be updated
     * @param  {JSON} newSpriteDetail a JSON contains the new rotation value
     */
Rotate the PIXI sprit object
@param  {PIXI.Sprite} oldSprite sprite needs to be updated
@param  {JSON} newSpriteDetail a JSON contains the new rotation value
Rotate the PIXI sprit object @param { PIXI . Sprite } oldSprite sprite needs to be updated @param { JSON } newSpriteDetail a JSON contains the new rotation value
function updateRotateSprite(oldSprite, newSpriteDetail) {
        oldSprite.anchor.set(0.5, 0.5);
        oldSprite.rotation = newSpriteDetail.rotate * Math.PI / 180;
        oldSprite.position.set(newSpriteDetail.minX * width + (newSpriteDetail.maxX - newSpriteDetail.minX) * width / 2, newSpriteDetail.minY * width);
    }
function updateRotateSprite ( oldSprite , newSpriteDetail ) { oldSprite . anchor . set ( 0.5 , 0.5 ) ; oldSprite . rotation = newSpriteDetail . rotate * Math . PI / 180 ; oldSprite . position . set ( newSpriteDetail . minX * width + ( newSpriteDetail . maxX - newSpriteDetail . minX ) * width / 2 , newSpriteDetail . minY * width ) ; }
Rotate the PIXI sprit object
 @param  {PIXI.Sprite} oldSprite sprite needs to be updated
 @param  {JSON} newSpriteDetail a JSON contains the new rotation value
Rotate the PIXI sprit object @param { PIXI . Sprite } oldSprite sprite needs to be updated @param { JSON } newSpriteDetail a JSON contains the new rotation value