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

@eva/renderer-adapter

Package Overview
Dependencies
Maintainers
6
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eva/renderer-adapter - npm Package Compare versions

Comparing version 1.2.7-fix.4 to 1.2.7-fix.5

dist/EVA.rendererAdapter.js.map

49

dist/EVA.rendererAdapter.js
window.EVA = window.EVA || {};
var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) {

@@ -15,15 +16,22 @@ 'use strict';

};
return _extendStatics(d, b);
};
function __extends(d, b) {
_extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var Application = function (_super) {
__extends(Application, _super);
function Application(params) {
var _this = this;
params.autoStart = false;

@@ -33,26 +41,40 @@ _this = _super.call(this, params) || this;

}
return Application;
}(pixi_js.Application);
var Application$1 = Application;
var Container = function (_super) {
__extends(Container, _super);
function Container() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Container;
}(pixi_js.Container);
var Container$1 = Container;
var Graphics = function (_super) {
__extends(Graphics, _super);
function Graphics() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Graphics;
}(pixi_js.Graphics);
var Graphics$1 = Graphics;
var NinePatch = function (_super) {
__extends(NinePatch, _super);
function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
var _this = this;
var texture;
if (img === 'string') {

@@ -63,8 +85,12 @@ texture = pixi_js.Texture.fromFrame(img);

}
_this = _super.call(this, texture, leftWidth, topHeight, rightWidth, bottomHeight) || this;
return _this;
}
return NinePatch;
}(pixi_js.mesh.NineSlicePlane);
var NinePatch$1 = NinePatch;
var Sprite = function () {

@@ -74,2 +100,3 @@ function Sprite(image) {

this._image = image;
if (image) {

@@ -85,2 +112,3 @@ if (image instanceof HTMLImageElement) {

}
Object.defineProperty(Sprite.prototype, "image", {

@@ -94,2 +122,3 @@ get: function get() {

}
if (val instanceof HTMLImageElement) {

@@ -101,2 +130,3 @@ this.sprite.texture && this.sprite.texture.destroy(false);

}
this._image = val;

@@ -109,3 +139,5 @@ },

}();
var Sprite$1 = Sprite;
var SpriteAnimation = function () {

@@ -116,14 +148,19 @@ function SpriteAnimation(_a) {

}
SpriteAnimation.prototype.play = function () {
this.animatedSprite.play();
};
SpriteAnimation.prototype.stop = function () {
this.animatedSprite.stop();
};
SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
this.animatedSprite.gotoAndPlay(frameNumber);
};
SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
this.animatedSprite.gotoAndStop(frameNumber);
};
Object.defineProperty(SpriteAnimation.prototype, "speed", {

@@ -141,12 +178,18 @@ get: function get() {

}();
var SpriteAnimation$1 = SpriteAnimation;
var Text = function (_super) {
__extends(Text, _super);
function Text(text, style) {
return _super.call(this, text, style) || this;
}
return Text;
}(pixi_js.Text);
var Text$1 = Text;
var PIXITilingSprite = pixi_js.extras.TilingSprite;
var TilingSprite = function () {

@@ -156,2 +199,3 @@ function TilingSprite(image) {

this._image = image;
if (image) {

@@ -167,2 +211,3 @@ if (image instanceof HTMLImageElement) {

}
Object.defineProperty(TilingSprite.prototype, "image", {

@@ -176,2 +221,3 @@ get: function get() {

}
if (val instanceof HTMLImageElement) {

@@ -182,2 +228,3 @@ this.tilingSprite.texture = pixi_js.Texture.from(val);

}
this._image = val;

@@ -190,2 +237,3 @@ },

}();
var TilingSprite$1 = TilingSprite;

@@ -205,2 +253,3 @@ exports.Application = Application$1;

}({}, PIXI);
window.EVA.rendererAdapter = window.EVA.rendererAdapter || _EVA_IIFE_rendererAdapter;

2

dist/EVA.rendererAdapter.min.js

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

window.EVA=window.EVA||{};var _EVA_IIFE_rendererAdapter=function(t,e){"use strict";var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},i(t,e)};function n(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(t){function e(e){return e.autoStart=!1,t.call(this,e)||this}return n(e,t),e}(e.Application),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Container),a=o,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Graphics),p=u,s=function(t){function i(i,n,r,o,a){var u;return u="string"===i?e.Texture.fromFrame(i):e.Texture.from(i),t.call(this,u,n,r,o,a)||this}return n(i,t),i}(e.mesh.NineSlicePlane),c=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.sprite=e.Sprite.from(t):t instanceof e.Texture&&(this.sprite=new e.Sprite(t)):this.sprite=new e.Sprite}return Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(t instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=e.Texture.from(t)):t instanceof e.Texture&&(this.sprite.texture=t),this._image=t)},enumerable:!1,configurable:!0}),t}(),f=function(){function t(t){var i=t.frames;this.animatedSprite=new e.extras.AnimatedSprite(i)}return t.prototype.play=function(){this.animatedSprite.play()},t.prototype.stop=function(){this.animatedSprite.stop()},t.prototype.gotoAndPlay=function(t){this.animatedSprite.gotoAndPlay(t)},t.prototype.gotoAndStop=function(t){this.animatedSprite.gotoAndStop(t)},Object.defineProperty(t.prototype,"speed",{get:function(){return this.animatedSprite.animationSpeed},set:function(t){this.animatedSprite.animationSpeed=t},enumerable:!1,configurable:!0}),t}(),h=function(t){function e(e,i){return t.call(this,e,i)||this}return n(e,t),e}(e.Text),l=e.extras.TilingSprite,m=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.tilingSprite=new l(e.Texture.from(t)):t instanceof e.Texture&&(this.tilingSprite=new l(t)):this.tilingSprite=new l(e.Texture.EMPTY)}return Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(t instanceof HTMLImageElement?this.tilingSprite.texture=e.Texture.from(t):t instanceof e.Texture&&(this.tilingSprite.texture=t),this._image=t)},enumerable:!1,configurable:!0}),t}();return t.Application=r,t.Container=a,t.Graphics=p,t.NinePatch=s,t.Sprite=c,t.SpriteAnimation=f,t.Text=h,t.TilingSprite=m,Object.defineProperty(t,"__esModule",{value:!0}),t}({},PIXI);window.EVA.rendererAdapter=window.EVA.rendererAdapter||_EVA_IIFE_rendererAdapter;
window.EVA=window.EVA||{};var _EVA_IIFE_rendererAdapter=function(t,e){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function n(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(t){function e(e){return e.autoStart=!1,t.call(this,e)||this}return n(e,t),e}(e.Application),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Container),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(e.Graphics),u=function(t){function i(i,n,r,o,a){var u;return u="string"===i?e.Texture.fromFrame(i):e.Texture.from(i),t.call(this,u,n,r,o,a)||this}return n(i,t),i}(e.mesh.NineSlicePlane),p=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.sprite=e.Sprite.from(t):t instanceof e.Texture&&(this.sprite=new e.Sprite(t)):this.sprite=new e.Sprite}return Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(t instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=e.Texture.from(t)):t instanceof e.Texture&&(this.sprite.texture=t),this._image=t)},enumerable:!1,configurable:!0}),t}(),s=function(){function t(t){var i=t.frames;this.animatedSprite=new e.extras.AnimatedSprite(i)}return t.prototype.play=function(){this.animatedSprite.play()},t.prototype.stop=function(){this.animatedSprite.stop()},t.prototype.gotoAndPlay=function(t){this.animatedSprite.gotoAndPlay(t)},t.prototype.gotoAndStop=function(t){this.animatedSprite.gotoAndStop(t)},Object.defineProperty(t.prototype,"speed",{get:function(){return this.animatedSprite.animationSpeed},set:function(t){this.animatedSprite.animationSpeed=t},enumerable:!1,configurable:!0}),t}(),c=function(t){function e(e,i){return t.call(this,e,i)||this}return n(e,t),e}(e.Text),f=e.extras.TilingSprite,h=function(){function t(t){this._image=null,this._image=t,t?t instanceof HTMLImageElement?this.tilingSprite=new f(e.Texture.from(t)):t instanceof e.Texture&&(this.tilingSprite=new f(t)):this.tilingSprite=new f(e.Texture.EMPTY)}return Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(t instanceof HTMLImageElement?this.tilingSprite.texture=e.Texture.from(t):t instanceof e.Texture&&(this.tilingSprite.texture=t),this._image=t)},enumerable:!1,configurable:!0}),t}();return t.Application=r,t.Container=o,t.Graphics=a,t.NinePatch=u,t.Sprite=p,t.SpriteAnimation=s,t.Text=c,t.TilingSprite=h,Object.defineProperty(t,"__esModule",{value:!0}),t}({},PIXI);window.EVA.rendererAdapter=window.EVA.rendererAdapter||_EVA_IIFE_rendererAdapter;
import { __extends } from 'tslib';
import { Application as Application$2, Container as Container$2, Graphics as Graphics$2, Texture, mesh, Sprite as Sprite$2, extras, Text as Text$2 } from '@eva/miniprogram-pixi';
import { Image } from '@eva/miniprogram-adapter';
var Application = function (_super) {
__extends(Application, _super);
function Application(params) {
var _this = this;
params.autoStart = false;

@@ -12,26 +15,40 @@ _this = _super.call(this, params) || this;

}
return Application;
}(Application$2);
var Application$1 = Application;
var Container = function (_super) {
__extends(Container, _super);
function Container() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Container;
}(Container$2);
var Container$1 = Container;
var Graphics = function (_super) {
__extends(Graphics, _super);
function Graphics() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Graphics;
}(Graphics$2);
var Graphics$1 = Graphics;
var NinePatch = function (_super) {
__extends(NinePatch, _super);
function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
var _this = this;
var texture;
if (img === 'string') {

@@ -42,8 +59,12 @@ texture = Texture.fromFrame(img);

}
_this = _super.call(this, texture, leftWidth, topHeight, rightWidth, bottomHeight) || this;
return _this;
}
return NinePatch;
}(mesh.NineSlicePlane);
var NinePatch$1 = NinePatch;
var Sprite = function () {

@@ -53,2 +74,3 @@ function Sprite(image) {

this._image = image;
if (image) {

@@ -64,2 +86,3 @@ if (image instanceof Image) {

}
Object.defineProperty(Sprite.prototype, "image", {

@@ -73,2 +96,3 @@ get: function get() {

}
if (val instanceof Image) {

@@ -80,2 +104,3 @@ this.sprite.texture && this.sprite.texture.destroy(false);

}
this._image = val;

@@ -88,3 +113,5 @@ },

}();
var Sprite$1 = Sprite;
var SpriteAnimation = function () {

@@ -95,14 +122,19 @@ function SpriteAnimation(_a) {

}
SpriteAnimation.prototype.play = function () {
this.animatedSprite.play();
};
SpriteAnimation.prototype.stop = function () {
this.animatedSprite.stop();
};
SpriteAnimation.prototype.gotoAndPlay = function (frameNumber) {
this.animatedSprite.gotoAndPlay(frameNumber);
};
SpriteAnimation.prototype.gotoAndStop = function (frameNumber) {
this.animatedSprite.gotoAndStop(frameNumber);
};
Object.defineProperty(SpriteAnimation.prototype, "speed", {

@@ -120,12 +152,18 @@ get: function get() {

}();
var SpriteAnimation$1 = SpriteAnimation;
var Text = function (_super) {
__extends(Text, _super);
function Text(text, style) {
return _super.call(this, text, style) || this;
}
return Text;
}(Text$2);
var Text$1 = Text;
var PIXITilingSprite = extras.TilingSprite;
var TilingSprite = function () {

@@ -135,2 +173,3 @@ function TilingSprite(image) {

this._image = image;
if (image) {

@@ -146,2 +185,3 @@ if (image instanceof Image) {

}
Object.defineProperty(TilingSprite.prototype, "image", {

@@ -155,2 +195,3 @@ get: function get() {

}
if (val instanceof Image) {

@@ -161,2 +202,3 @@ this.tilingSprite.texture = Texture.from(val);

}
this._image = val;

@@ -169,3 +211,4 @@ },

}();
var TilingSprite$1 = TilingSprite;
export { Application$1 as Application, Container$1 as Container, Graphics$1 as Graphics, NinePatch$1 as NinePatch, Sprite$1 as Sprite, SpriteAnimation$1 as SpriteAnimation, Text$1 as Text, TilingSprite$1 as TilingSprite };

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js"),e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},e(t,i)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js"),e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,i)};
/*! *****************************************************************************

@@ -3,0 +3,0 @@ Copyright (c) Microsoft Corporation. All rights reserved.

{
"name": "@eva/renderer-adapter",
"version": "1.2.7-fix.4",
"version": "1.2.7-fix.5",
"description": "@eva/renderer-adapter",

@@ -5,0 +5,0 @@ "main": "index.js",

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