@eva/renderer-adapter
Advanced tools
Comparing version 1.2.7-editor.12 to 1.2.7-fix.4
window.EVA = window.EVA || {}; | ||
var _EVA_IIFE_rendererAdapter = function (exports, pixi_js) { | ||
@@ -16,22 +15,15 @@ '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; | ||
@@ -41,40 +33,26 @@ _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') { | ||
@@ -85,12 +63,8 @@ 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 () { | ||
@@ -100,3 +74,2 @@ function Sprite(image) { | ||
this._image = image; | ||
if (image) { | ||
@@ -112,3 +85,2 @@ if (image instanceof HTMLImageElement) { | ||
} | ||
Object.defineProperty(Sprite.prototype, "image", { | ||
@@ -122,3 +94,2 @@ get: function get() { | ||
} | ||
if (val instanceof HTMLImageElement) { | ||
@@ -130,3 +101,2 @@ this.sprite.texture && this.sprite.texture.destroy(false); | ||
} | ||
this._image = val; | ||
@@ -139,5 +109,3 @@ }, | ||
}(); | ||
var Sprite$1 = Sprite; | ||
var SpriteAnimation = function () { | ||
@@ -148,19 +116,14 @@ 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", { | ||
@@ -178,18 +141,12 @@ 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 () { | ||
@@ -199,3 +156,2 @@ function TilingSprite(image) { | ||
this._image = image; | ||
if (image) { | ||
@@ -211,3 +167,2 @@ if (image instanceof HTMLImageElement) { | ||
} | ||
Object.defineProperty(TilingSprite.prototype, "image", { | ||
@@ -221,3 +176,2 @@ get: function get() { | ||
} | ||
if (val instanceof HTMLImageElement) { | ||
@@ -228,3 +182,2 @@ this.tilingSprite.texture = pixi_js.Texture.from(val); | ||
} | ||
this._image = val; | ||
@@ -237,3 +190,2 @@ }, | ||
}(); | ||
var TilingSprite$1 = TilingSprite; | ||
@@ -253,3 +205,2 @@ exports.Application = Application$1; | ||
}({}, PIXI); | ||
window.EVA.rendererAdapter = window.EVA.rendererAdapter || _EVA_IIFE_rendererAdapter; |
{ | ||
"name": "@eva/renderer-adapter", | ||
"version": "1.2.7-editor.12", | ||
"version": "1.2.7-fix.4", | ||
"description": "@eva/renderer-adapter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33763
10
821