Commit d6398ae8 authored by rockyl's avatar rockyl

兼容混淆版本的引擎

parent 6e583a84
......@@ -30,7 +30,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
HashObject._object_id = 0;
return HashObject;
}());
//# sourceMappingURL=HashObject.js.map
var Event = (function (_super) {
tslib_1.__extends(Event, _super);
......@@ -93,7 +92,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Event.WINDOW_VISIBILITY_CHANGE = 'window-visibility-change';
return Event;
}(HashObject));
//# sourceMappingURL=Event.js.map
var EventDispatcher = (function (_super) {
tslib_1.__extends(EventDispatcher, _super);
......@@ -297,7 +295,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return EE;
}());
//# sourceMappingURL=EventDispatcher.js.map
var ObservablePoint = (function (_super) {
tslib_1.__extends(ObservablePoint, _super);
......@@ -361,7 +358,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ObservablePoint;
}(HashObject));
//# sourceMappingURL=ObservablePoint.js.map
var Point = (function (_super) {
tslib_1.__extends(Point, _super);
......@@ -398,7 +394,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Point;
}(HashObject));
//# sourceMappingURL=Point.js.map
var VERSION = "1.0";
var devicePixelRatio = window.devicePixelRatio ? window.devicePixelRatio : 1;
......@@ -561,7 +556,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
SCROLL_DIRECTION["HORIZONTAL"] = "horizontal";
SCROLL_DIRECTION["VERTICAL"] = "vertical";
})(exports.SCROLL_DIRECTION || (exports.SCROLL_DIRECTION = {}));
//# sourceMappingURL=const.js.map
var Matrix = (function (_super) {
tslib_1.__extends(Matrix, _super);
......@@ -832,7 +826,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Matrix;
}(HashObject));
//# sourceMappingURL=Matrix.js.map
var Transform = (function (_super) {
tslib_1.__extends(Transform, _super);
......@@ -940,7 +933,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Transform;
}(HashObject));
//# sourceMappingURL=Transform.js.map
var Rectangle = (function (_super) {
tslib_1.__extends(Rectangle, _super);
......@@ -1142,7 +1134,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Rectangle;
}(HashObject));
//# sourceMappingURL=Rectangle.js.map
var DisplayObject = (function (_super) {
tslib_1.__extends(DisplayObject, _super);
......@@ -1598,7 +1589,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}(EventDispatcher));
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
DisplayObject.prototype.displayObjectHitTestPoint = DisplayObject.prototype.hitTestPoint;
//# sourceMappingURL=DisplayObject.js.map
var GDispatcher = (function () {
function GDispatcher() {
......@@ -1646,7 +1636,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
GDispatcher.thisObjPool = {};
return GDispatcher;
}());
//# sourceMappingURL=GDispatcher.js.map
var MouseEvent = (function (_super) {
tslib_1.__extends(MouseEvent, _super);
......@@ -1679,7 +1668,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
MouseEvent.MOUSE_OUT = "onMouseOut";
return MouseEvent;
}(Event));
//# sourceMappingURL=MouseEvent.js.map
var ESCAPE_REG_EXP = /\$\{[\u4e00-\u9fa5_a-zA-Z0-9\|]+\}/g;
var linkedFlag = '$_linked_$';
......@@ -1937,7 +1925,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function toBoolean(v) {
return !isNaN(v) && v !== null && v !== undefined;
}
//# sourceMappingURL=utils.js.map
var AlignManager = (function () {
function AlignManager() {
......@@ -2055,7 +2042,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return AlignManager;
}());
var alignMgr = new AlignManager();
//# sourceMappingURL=AlignManager.js.map
function applyAutoAdjust(ctor) {
ctor.prototype.applyAutoAdjust = function () {
......@@ -2168,7 +2154,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return AdjustProxy;
}());
//# sourceMappingURL=auto-adjust.js.map
function transPoint(str, sep) {
if (sep === void 0) { sep = ','; }
......@@ -2180,7 +2165,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
}
}
//# sourceMappingURL=math.js.map
var rotateLeft = function (lValue, iShiftBits) {
return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
......@@ -2372,7 +2356,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
return tempValue.toLowerCase();
}
//# sourceMappingURL=md5.js.map
var ObjectPool = (function () {
function ObjectPool() {
......@@ -2436,7 +2419,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
ObjectPool.pools = {};
return ObjectPool;
}());
//# sourceMappingURL=ObjectPool.js.map
var scriptDefs = {};
function applyScript(ctor) {
......@@ -2579,7 +2561,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ScriptsProxy;
}());
//# sourceMappingURL=scripts.js.map
var DataCenter = (function (_super) {
tslib_1.__extends(DataCenter, _super);
......@@ -2708,7 +2689,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return DataCenter;
}(EventDispatcher));
var dataCenter = new DataCenter();
//# sourceMappingURL=data-center.js.map
var env = {};
function injectEnv(data) {
......@@ -2719,7 +2699,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=enviroment.js.map
var storeKey = 'zlog-switch';
(function (Logs) {
......@@ -2737,7 +2716,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getLogSwitch(id) {
return typeof store === 'object' ? store[id] : !!store;
}
//# sourceMappingURL=log-switch.js.map
var logConfig = getLogSwitch(exports.Logs.PROCESS);
function logProcess(meta, vm, process) {
......@@ -3035,7 +3013,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function warpAsyncScript(source) {
return "return new Promise(function(resolve, reject){\n\t" + source + "\n\t\n\tfunction next(type, payload){resolve({type: type, payload: payload})}\n\t});";
}
//# sourceMappingURL=Process.js.map
var ID_INK = 0;
var VM = (function () {
......@@ -3098,7 +3075,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return VM;
}());
//# sourceMappingURL=VM.js.map
var log = getLogSwitch(exports.Logs.PROCESS);
var processMetaLibs = [];
......@@ -3143,7 +3119,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
});
}
//# sourceMappingURL=index.js.map
var _a;
var eventsMapping = (_a = {},
......@@ -3242,7 +3217,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return EventsProxy;
}(HashObject));
//# sourceMappingURL=events.js.map
function afterConstructor(ctor) {
ctor.prototype.afterConstructor = function () {
......@@ -3251,7 +3225,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
this.applyEvents();
};
}
//# sourceMappingURL=after-constructor.js.map
var Container = (function (_super) {
tslib_1.__extends(Container, _super);
......@@ -3836,7 +3809,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return Container;
}(DisplayObject));
Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
//# sourceMappingURL=Container.js.map
var container;
var el$1;
......@@ -4004,7 +3976,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return FloatDisplay;
}(DisplayObject));
//# sourceMappingURL=FloatDisplay.js.map
var ux = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1];
var uy = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1];
......@@ -4103,7 +4074,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
matrix.append(mat);
},
};
//# sourceMappingURL=GroupD8.js.map
var INT_BITS = 32;
var INT_BITS1 = 32;
......@@ -4259,7 +4229,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var t = v | (v - 1);
return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1));
}
//# sourceMappingURL=twiddle.js.map
var tempMatrix = new Matrix();
var SystemRenderer = (function (_super) {
......@@ -4315,7 +4284,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return SystemRenderer;
}(EventDispatcher));
//# sourceMappingURL=SystemRenderer.js.map
var CanvasGraphicsRenderer = (function () {
function CanvasGraphicsRenderer(renderer) {
......@@ -4549,7 +4517,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
sum = sum + vector[vector.length - 2] * vector[1] - vector[vector.length - 1] * vector[0];
return !(sum > 0);
}
//# sourceMappingURL=CanvasGraphicsRenderer.js.map
var CanvasMaskManager = (function (_super) {
tslib_1.__extends(CanvasMaskManager, _super);
......@@ -4648,7 +4615,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return CanvasMaskManager;
}(HashObject));
//# sourceMappingURL=CanvasMaskManager.js.map
var CanvasRenderTarget = (function () {
function CanvasRenderTarget(width, height) {
......@@ -4690,7 +4656,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return CanvasRenderTarget;
}());
//# sourceMappingURL=CanvasRenderTarget.js.map
var canvasRenderWorldTransform = new Matrix();
var CanvasSpriteRenderer = (function () {
......@@ -4746,7 +4711,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return CanvasSpriteRenderer;
}());
//# sourceMappingURL=CanvasSpriteRenderer.js.map
var CanvasRenderer = (function (_super) {
tslib_1.__extends(CanvasRenderer, _super);
......@@ -4864,7 +4828,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return CanvasRenderer;
}(SystemRenderer));
//# sourceMappingURL=CanvasRenderer.js.map
var _dRender = null;
var tempMatrix$1 = new Matrix();
......@@ -4905,7 +4868,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
_dRender.render(obj, null, tempMatrix$1);
return _dRender.htmlElement.toDataURL("image/" + typeInfo.type, typeInfo.quality);
}
//# sourceMappingURL=toDisplayDataURL.js.map
function determineCrossOrigin(url, loc) {
if (loc === void 0) { loc = window.location; }
......@@ -4914,7 +4876,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return 'anonymous';
}
//# sourceMappingURL=determineCrossOrigin.js.map
var BaseTexture = (function (_super) {
tslib_1.__extends(BaseTexture, _super);
......@@ -5135,7 +5096,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BaseTexture;
}(EventDispatcher));
//# sourceMappingURL=BaseTexture.js.map
var TextureUvs = (function () {
function TextureUvs() {
......@@ -5196,7 +5156,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureUvs;
}());
//# sourceMappingURL=TextureUvs.js.map
var Texture = (function (_super) {
tslib_1.__extends(Texture, _super);
......@@ -5580,7 +5539,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return imageInfo;
}());
//# sourceMappingURL=DrawAllToCanvas.js.map
var nextUid = 0;
function uid() {
......@@ -5796,7 +5754,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
array[exports.BLEND_MODES.SCREEN_NPM] = [gl.SRC_ALPHA, gl.ONE_MINUS_SRC_COLOR, gl.ONE, gl.ONE_MINUS_SRC_COLOR];
return array;
}
//# sourceMappingURL=index.js.map
var indices = new Uint16Array([0, 1, 2, 0, 2, 3]);
var Sprite = (function (_super) {
......@@ -6055,6 +6012,11 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return;
}
this._texture = value || Texture.EMPTY;
if (this._texture != Texture.EMPTY &&
this._texture != null &&
!this._texture.baseTexture.hasLoaded) {
this._texture.removeEventListener('update', this._onTextureUpdate, this);
}
this._textureID = -1;
this._textureTrimmedID = -1;
this._cachedTint = 0xFFFFFF;
......@@ -6100,7 +6062,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Sprite;
}(Container));
//# sourceMappingURL=Sprite.js.map
var BatchDrawCall = (function () {
function BatchDrawCall() {
......@@ -6112,7 +6073,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return BatchDrawCall;
}());
//# sourceMappingURL=BatchDrawCall.js.map
var ObjectRenderer = (function () {
function ObjectRenderer(renderer) {
......@@ -6137,7 +6097,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ObjectRenderer;
}());
//# sourceMappingURL=ObjectRenderer.js.map
function createContext(canvas, options) {
var gl = canvas.getContext('webgl', options) ||
......@@ -6147,7 +6106,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return gl;
}
//# sourceMappingURL=createContext.js.map
var fragTemplate = [
'precision mediump float;',
......@@ -6199,7 +6157,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return src;
}
//# sourceMappingURL=checkMaxIfStatementsInShader.js.map
var BatchBuffer = (function () {
function BatchBuffer(size) {
......@@ -6215,7 +6172,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BatchBuffer;
}());
//# sourceMappingURL=BatchBuffer.js.map
var GLTexture = (function () {
function GLTexture(gl, width, height, format, type) {
......@@ -6347,7 +6303,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return GLTexture;
}());
var FLOATING_POINT_AVAILABLE = false;
//# sourceMappingURL=GLTexture.js.map
var EMPTY_ARRAY_BUFFER = new ArrayBuffer(0);
var GLBuffer = (function () {
......@@ -6394,7 +6349,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GLBuffer;
}());
//# sourceMappingURL=GLBuffer.js.map
function setVertexAttribArrays(gl, attribs, state) {
var i;
......@@ -6425,7 +6379,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=setVertexAttribArrays.js.map
var VertexArrayObject = (function () {
function VertexArrayObject(gl, state) {
......@@ -6543,7 +6496,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
VertexArrayObject.FORCE_NATIVE = false;
return VertexArrayObject;
}());
//# sourceMappingURL=VertexArrayObject.js.map
var GLFramebuffer = (function () {
function GLFramebuffer(gl, width, height) {
......@@ -6626,7 +6578,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GLFramebuffer;
}());
//# sourceMappingURL=GLFramebuffer.js.map
function compileProgram(gl, vertexSrc, fragmentSrc, attributeLocations) {
var glVertShader = compileShader(gl, gl.VERTEX_SHADER, vertexSrc);
......@@ -6664,7 +6615,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return shader;
};
//# sourceMappingURL=compileProgram.js.map
function mapType(gl, type) {
if (!GL_TABLE) {
......@@ -6696,7 +6646,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
'FLOAT_MAT4': 'mat4',
'SAMPLER_2D': 'sampler2D'
};
//# sourceMappingURL=mapType.js.map
function mapSize(type) {
return GLSL_TO_SIZE[type];
......@@ -6719,7 +6668,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
'mat4': 16,
'sampler2D': 1
};
//# sourceMappingURL=mapSize.js.map
function extractAttributes(gl, program) {
var attributes = {};
......@@ -6742,7 +6690,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return attributes;
}
//# sourceMappingURL=extractAttributes.js.map
function defaultValue(type, size) {
switch (type) {
......@@ -6792,7 +6739,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return array;
};
//# sourceMappingURL=defaultValue.js.map
function extractUniforms(gl, program) {
var uniforms = {};
......@@ -6810,7 +6756,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return uniforms;
}
//# sourceMappingURL=extractUniforms.js.map
function setPrecision(src, precision) {
if (src.substring(0, 9) !== 'precision') {
......@@ -6818,7 +6763,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return src;
}
//# sourceMappingURL=setPrecision.js.map
function generateUniformAccessObject(gl, uniformData) {
var uniforms = { data: {} };
......@@ -6956,7 +6900,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return cur;
}
//# sourceMappingURL=generateUniformAccessObject.js.map
var GLShader = (function () {
function GLShader(gl, vertexSrc, fragmentSrc, precision, attributeLocations) {
......@@ -6983,7 +6926,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GLShader;
}());
//# sourceMappingURL=GLShader.js.map
var VSHADER_SOURCE = "precision highp float;" +
"attribute vec2 aVertexPosition;" +
......@@ -7045,7 +6987,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
src += '\n';
return src;
}
//# sourceMappingURL=generateMultiTextureShader.js.map
var TICK = 0;
var BatchRenderer = (function (_super) {
......@@ -7269,7 +7210,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BatchRenderer;
}(ObjectRenderer));
//# sourceMappingURL=BatchRenderer.js.map
var RenderTarget = (function () {
function RenderTarget(gl, width, height, scaleMode, root) {
......@@ -7376,7 +7316,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RenderTarget;
}());
//# sourceMappingURL=RenderTarget.js.map
var TextureManager = (function () {
function TextureManager(renderer) {
......@@ -7578,7 +7517,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureManager;
}());
//# sourceMappingURL=TextureManager.js.map
var TextureGarbageCollector = (function () {
function TextureGarbageCollector(renderer) {
......@@ -7633,7 +7571,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureGarbageCollector;
}());
//# sourceMappingURL=TextureGarbageCollector.js.map
var BLEND = 0;
var DEPTH_TEST = 1;
......@@ -7736,7 +7673,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return WebGLState;
}());
//# sourceMappingURL=WebGLState.js.map
var BatchManager = (function () {
function BatchManager(renderer) {
......@@ -7760,7 +7696,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BatchManager;
}());
//# sourceMappingURL=BatchManager.js.map
var MaskManager = (function () {
function MaskManager(renderer) {
......@@ -7809,7 +7744,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return MaskManager;
}());
//# sourceMappingURL=MaskManager.js.map
var StencilManager = (function () {
function StencilManager(renderer) {
......@@ -7882,7 +7816,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return StencilManager;
}());
//# sourceMappingURL=StencilManager.js.map
var CONTEXT_UID = 0;
var WebglRenderer = (function (_super) {
......@@ -8095,7 +8028,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return WebglRenderer;
}(SystemRenderer));
WebglRenderer.registerPlugin('batch', BatchRenderer);
//# sourceMappingURL=WebglRenderer.js.map
var requestAnimationFrame = (function () {
var lastTime = 0;
......@@ -8681,7 +8613,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Stage.allUpdateObjList = [];
return Stage;
}(Container));
//# sourceMappingURL=Stage.js.map
var GraphicsData = (function (_super) {
tslib_1.__extends(GraphicsData, _super);
......@@ -8714,7 +8645,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GraphicsData;
}(HashObject));
//# sourceMappingURL=GraphicsData.js.map
var BaseRenderTexture = (function (_super) {
tslib_1.__extends(BaseRenderTexture, _super);
......@@ -8751,7 +8681,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BaseRenderTexture;
}(BaseTexture));
//# sourceMappingURL=BaseRenderTexture.js.map
var RenderTexture = (function (_super) {
tslib_1.__extends(RenderTexture, _super);
......@@ -8779,7 +8708,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RenderTexture;
}(Texture));
//# sourceMappingURL=RenderTexture.js.map
var Circle = (function () {
function Circle(x, y, radius) {
......@@ -8810,7 +8738,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Circle;
}());
//# sourceMappingURL=Circle.js.map
var Ellipse = (function () {
function Ellipse(x, y, width, height) {
......@@ -8842,7 +8769,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Ellipse;
}());
//# sourceMappingURL=Ellipse.js.map
var Polygon = (function () {
function Polygon() {
......@@ -8892,7 +8818,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Polygon;
}());
//# sourceMappingURL=Polygon.js.map
var RoundedRectangle = (function () {
function RoundedRectangle(x, y, width, height, radius) {
......@@ -8950,7 +8875,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RoundedRectangle;
}());
//# sourceMappingURL=RoundedRectangle.js.map
function earcut(data, holeIndices, dim) {
dim = dim || 2;
......@@ -9412,7 +9336,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return result;
};
//# sourceMappingURL=earcut.js.map
var buildPoly = {
build: function (graphicsData) {
......@@ -9446,7 +9369,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=buildPoly.js.map
var buildCircle = {
build: function (graphicsData) {
......@@ -9490,7 +9412,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=buildCircle.js.map
var buildRectangle = {
build: function (graphicsData) {
......@@ -9511,7 +9432,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
graphics.indices.push(vertPos, vertPos + 1, vertPos + 2, vertPos + 1, vertPos + 2, vertPos + 3);
},
};
//# sourceMappingURL=buildRectangle.js.map
var buildRoundedRectangle = {
build: function (graphicsData) {
......@@ -9571,7 +9491,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return points;
}
//# sourceMappingURL=buildRoundedRectangle.js.map
function buildLine (graphicsData, graphicsGeometry) {
buildLine$1(graphicsData, graphicsGeometry);
......@@ -9700,7 +9619,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
indexStart++;
}
}
//# sourceMappingURL=buildLine.js.map
var FillStyle = (function () {
function FillStyle() {
......@@ -9730,7 +9648,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return FillStyle;
}());
//# sourceMappingURL=FillStyle.js.map
var LineStyle = (function (_super) {
tslib_1.__extends(LineStyle, _super);
......@@ -9758,7 +9675,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return LineStyle;
}(FillStyle));
//# sourceMappingURL=LineStyle.js.map
function bezierCurveTo(fromX, fromY, cpX, cpY, cpX2, cpY2, toX, toY, n, path) {
if (path === void 0) { path = []; }
......@@ -9779,7 +9695,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return path;
}
//# sourceMappingURL=bezierCurveTo.js.map
var GRAPHICS_CURVES = {
adaptive: false,
......@@ -9851,7 +9766,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return result;
}
//# sourceMappingURL=index.js.map
var canvasRenderer;
var tempMatrix$2 = new Matrix();
......@@ -10740,7 +10654,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return geoBatchPart;
}());
//# sourceMappingURL=Graphics.js.map
var Shape = (function (_super) {
tslib_1.__extends(Shape, _super);
......@@ -11214,7 +11127,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Shape;
}(Sprite));
//# sourceMappingURL=Shape.js.map
var TextureSheet = (function () {
function TextureSheet(baseTexture, data) {
......@@ -11290,12 +11202,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureSheet;
}());
//# sourceMappingURL=TextureSheet.js.map
function getTexture(str) {
return TextureCache[str] || null;
}
//# sourceMappingURL=index.js.map
var queryParams = {};
var search = window.location.search;
......@@ -11355,7 +11265,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
document.addEventListener(visibilityChange, handleVisibilityChange, false);
}
windowVisibility();
//# sourceMappingURL=web.js.map
function httpRequest(url, method, params, type, headers) {
if (method === void 0) { method = 'get'; }
......@@ -11524,7 +11433,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}, false);
}
//# sourceMappingURL=net.js.map
function createTextureSheet(baseTexture, altaData) {
var frames = altaData;
......@@ -11550,7 +11458,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
frameIndex++;
}
}
//# sourceMappingURL=texture-sheet.js.map
var prefix = 'font-';
var fonts = {};
......@@ -11586,7 +11493,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getFont(name) {
return fonts[name];
}
//# sourceMappingURL=bmp-text-manager.js.map
var assetsConfig = [];
var loaderMapping = {
......@@ -11787,7 +11693,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=assets-manager.js.map
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
......@@ -15003,7 +14908,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
keep: true,
};
}
//# sourceMappingURL=sound.js.map
var Loader = (function (_super) {
tslib_1.__extends(Loader, _super);
......@@ -15090,7 +14994,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return Loader;
}(EventDispatcher));
var globalLoader = new Loader();
//# sourceMappingURL=Loader.js.map
var padding$1 = 50;
var styleFields = {
......@@ -15809,7 +15712,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextField;
}(Sprite));
//# sourceMappingURL=TextField.js.map
var InputText = (function (_super) {
tslib_1.__extends(InputText, _super);
......@@ -16007,7 +15909,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
InputText._inputTypeList = ["input", "password", "textarea"];
return InputText;
}(FloatDisplay));
//# sourceMappingURL=InputText.js.map
var EditableText = (function (_super) {
tslib_1.__extends(EditableText, _super);
......@@ -16109,7 +16010,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return EditableText;
}(TextField));
//# sourceMappingURL=EditableText.js.map
var ScrollViewBase = (function (_super) {
tslib_1.__extends(ScrollViewBase, _super);
......@@ -16366,7 +16266,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ScrollViewBase;
}(Container));
//# sourceMappingURL=ScrollViewBase.js.map
function fieldChanged(onModify) {
return function (target, key) {
......@@ -16409,7 +16308,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
});
//# sourceMappingURL=decorators.js.map
var ScrollListItemBase = (function (_super) {
tslib_1.__extends(ScrollListItemBase, _super);
......@@ -16608,7 +16506,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], ScrollListBase.prototype, "itemClass", void 0);
return ScrollListBase;
}(ScrollViewBase));
//# sourceMappingURL=ScrollListBase.js.map
var Tween = (function () {
function Tween(target, props, pluginData) {
......@@ -17014,7 +16911,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Tween._lastTime = 0;
return Tween;
}());
//# sourceMappingURL=Tween.js.map
var Ease = (function () {
function Ease() {
......@@ -17161,7 +17057,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Ease.elasticInOut = Ease.getElasticInOut(1, 0.3 * 1.5);
return Ease;
}());
//# sourceMappingURL=Ease.js.map
var Node$1 = (function (_super) {
tslib_1.__extends(Node, _super);
......@@ -17172,7 +17067,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return Node;
}(Container));
//# sourceMappingURL=Node.js.map
function playViewEffect(name, params, mutex, lastView, view, container, callback) {
var effect = name ? effects[name] : effects.simple;
......@@ -17420,7 +17314,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=view-effects.js.map
var StackContainer = (function (_super) {
tslib_1.__extends(StackContainer, _super);
......@@ -17517,7 +17410,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var action = 'pop';
var len = _this.childNum;
if (len <= 0) {
return false;
resolve(true);
return;
}
var lastView = _this.getChildAt(_this.children.length - 1);
var view;
......@@ -17541,7 +17435,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var action = 'replace';
var len = _this.childNum;
if (len <= 0) {
return false;
resolve(true);
return;
}
var lastView = _this.getChildAt(len - 1);
view.visible = false;
......@@ -17585,7 +17480,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return StackContainer;
}(Node$1));
//# sourceMappingURL=StackContainer.js.map
var colorName = {
"aliceblue": [240, 248, 255],
......@@ -19786,7 +19680,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Circle;
}(ShapeBase));
//# sourceMappingURL=shapes.js.map
var assetScheme = 'asset://';
var Image$1 = (function (_super) {
......@@ -19880,7 +19773,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Image;
}(Sprite));
//# sourceMappingURL=Image.js.map
var Label = (function (_super) {
tslib_1.__extends(Label, _super);
......@@ -19957,7 +19849,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Label;
}(TextField));
//# sourceMappingURL=Label.js.map
var timer;
function delayScrollTop() {
......@@ -20194,7 +20085,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], TextInput.prototype, "charRegStr", void 0);
return TextInput;
}(Label));
//# sourceMappingURL=TextInput.js.map
var proxyMethods = [
'onChildrenChange',
......@@ -20222,7 +20112,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return ScrollView;
}(ScrollViewBase));
//# sourceMappingURL=ScrollView.js.map
var ScrollListItem = (function (_super) {
tslib_1.__extends(ScrollListItem, _super);
......@@ -20265,7 +20154,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ScrollList;
}(ScrollListBase));
//# sourceMappingURL=ScrollList.js.map
var BitmapText = (function (_super) {
tslib_1.__extends(BitmapText, _super);
......@@ -20362,7 +20250,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], BitmapText.prototype, "letterSpacing", void 0);
return BitmapText;
}(Container));
//# sourceMappingURL=BitmapText.js.map
var HtmlView = (function (_super) {
tslib_1.__extends(HtmlView, _super);
......@@ -20403,12 +20290,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], HtmlView);
return HtmlView;
}(FloatDisplay));
//# sourceMappingURL=HtmlView.js.map
function isUI(obj) {
return obj.isUI;
}
//# sourceMappingURL=IUIComponent.js.map
var nodeTypeMapping = {
node: Node$1,
......@@ -20467,7 +20352,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return node;
}
//# sourceMappingURL=view-interpreter.js.map
var Toast = (function (_super) {
tslib_1.__extends(Toast, _super);
......@@ -20585,7 +20469,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Toast;
}(Node$1));
//# sourceMappingURL=Toast.js.map
function createEvalFunc(exp) {
var func;
......@@ -20616,7 +20499,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function runExp(exp, scope) {
createRunFunc(exp)(scope);
}
//# sourceMappingURL=Utils.js.map
var Watcher = (function () {
function Watcher(entity, target, exp, scope, callback) {
......@@ -20705,7 +20587,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Watcher._uid = 0;
return Watcher;
}());
//# sourceMappingURL=Watcher.js.map
var Dep = (function () {
function Dep() {
......@@ -20724,7 +20605,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Dep;
}());
//# sourceMappingURL=Dep.js.map
var Mutator = (function () {
function Mutator() {
......@@ -20838,7 +20718,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
];
return Mutator;
}());
//# sourceMappingURL=Mutator.js.map
var commands = {
set: function (context) {
......@@ -20853,7 +20732,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return context.target;
}
};
//# sourceMappingURL=Commands.js.map
var defaultCmdRegExp = /^(data\-)?z[\-_](\w+)([:\$](.+))?$/;
var Zri = (function () {
......@@ -20920,7 +20798,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Zri;
}());
//# sourceMappingURL=Zri.js.map
var commands$1 = {
prop: function (context) {
......@@ -21104,7 +20981,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return context.target;
}
};
//# sourceMappingURL=ZriCommands.js.map
var interruptCmds = ['for', 'if'];
var ZriCompiler = (function () {
......@@ -21174,7 +21050,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ZriCompiler;
}());
//# sourceMappingURL=ZriCompiler.js.map
function bind(store, view, options) {
var compiler = new ZriCompiler(view);
......@@ -21195,7 +21070,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return store;
}
//# sourceMappingURL=index.js.map
var customMap = {};
function registerCustomModules(customs) {
......@@ -21258,7 +21132,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getProps(id) {
return customMap[id].props || {};
}
//# sourceMappingURL=custom-module.js.map
function dealPxEnv() {
if (queryParams.appID) {
......@@ -21327,7 +21200,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
injectProp(p, params);
return httpRequest('buriedPoint', 'get', p);
}
//# sourceMappingURL=px-logics.js.map
var GameStage = (function (_super) {
tslib_1.__extends(GameStage, _super);
......@@ -21724,7 +21596,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GameStage;
}(Node$1));
//# sourceMappingURL=GameStage.js.map
var template = "\n<div class=\"zeroing-loading-wrapper\">\n\t<div class=\"zeroing-loading-content\">\n\t</div>\n</div>\n";
var style = "\n.zeroing-loading-wrapper{\n\tposition: absolute;\n\ttop:0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\tjustify-content: center;\n\t-webkit-justify-content: center;\n\talign-items: center;\n\t-webkit-align-items: center;\n}\n@keyframes part-body\n{\n\t0%,40% {transform: scale(1);}\n\t20% {transform: scale(1.5);}\n}\n.zeroing-loading-part {\n\ttransform-origin: 2px 12px;\n\tposition: absolute;\n}\n.zeroing-loading-part-body{\n\tbackground-color: dimgray;\n\twidth: 4px;\n\theight: 6px;\n\tborder-radius: 2px;\n\ttransform-origin: 2px 6px;\n\tanimation: part-body 1500ms linear infinite;\n}\n";
......@@ -21764,7 +21635,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=LoadingView.js.map
var _stage;
function initAutoLayout(stage) {
......@@ -21810,7 +21680,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=auto-layout.js.map
var alignManager = alignMgr;
function launch(url, loadingDelegate, onStart) {
......@@ -21872,7 +21741,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
});
}
//# sourceMappingURL=launcher.js.map
var emojiRegex = function () {
// https://mths.be/emoji
......@@ -21971,10 +21839,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return value;
}
//# sourceMappingURL=index.es.js.map
var emojiRegexp = emojiRegex();
//# sourceMappingURL=index.js.map
exports.BaseTexture = BaseTexture;
exports.BaseTextureCache = BaseTextureCache;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{"id":"engine","url":"engine.cba09e24bd26909e1a67685a889d4799f4c2597a.js"}
\ No newline at end of file
......@@ -25,10 +25,13 @@
"declare": "node scripts/declare.js src/index.ts",
"dev": "rollup -c -m -w",
"build": "rollup -c -o dist/engine.js",
"build:prod": "rollup -c -o dist/engine.js --environment BUILD:production",
"preprocess": "node scripts/pre-process.js engine dist/engine.js",
"build:upload": "rm -rf dist&&yarn build:prod && yarn preprocess && ali-oss-publish -c oss.config.js -e dist",
"build:debug": "rm -rf dist&&yarn build && yarn preprocess && ali-oss-publish -c oss.config.js -e dist",
"build:prod": "rollup -c -o dist/engine.min.js --environment BUILD:production",
"preprocess:prod": "node scripts/pre-process.js engine dist/engine.min.js prod",
"preprocess:debug": "node scripts/pre-process.js engine dist/engine.js",
"pack:prod": "yarn build:prod && yarn preprocess:prod",
"pack:debug": "yarn build && yarn preprocess:debug",
"upload": "ali-oss-publish -c oss.config.js -e dist",
"publish": "rm -rf dist && yarn pack:debug && yarn pack:prod && yarn upload",
"ts": "dts-bundle --name engine --main types/src/index.d.ts --out ../../dist/index.d.ts",
"token": "uglifyjs -m -c -o px-token.min.js px-token.js",
"dts": "dts-bundle-generator -o types.d.ts src/index.ts"
......
......@@ -6,7 +6,7 @@ const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const [_, __, id, fileName] = process.argv;
const [_, __, id, fileName, isProd] = process.argv;
const stream = fs.createReadStream(fileName);
const fsHash = crypto.createHash('sha1');
......@@ -26,10 +26,16 @@ function loadComplete(md5) {
const newFileName = fileName.substr(0, extIndex + 1) + md5 + fileName.substr(extIndex);
fs.renameSync(fileName, newFileName);
let manifest = {
let manifest;
if (fs.existsSync('manifest.json')) {
manifest = JSON.parse(fs.readFileSync('manifest.json', 'utf-8'));
} else {
manifest = {
id,
url: path.basename(newFileName),
};
}
manifest[isProd ? 'url' : 'url_dbg'] = path.basename(newFileName);
fs.writeFileSync('manifest.json', JSON.stringify(manifest));
}
import { ObservablePoint, Point, Rectangle } from '../math';
import { sign, TextureCache } from '../utils';
import {ObservablePoint, Point, Rectangle} from '../math';
import {sign, TextureCache} from '../utils';
// import { BLEND_MODES } from '../const';
import Texture from '../texture/Texture';
import { Event } from '../events/Event';
import {Event} from '../events/Event';
import Container from './Container';
import { DisplayObject } from "./DisplayObject";
import {DisplayObject} from "./DisplayObject";
import CanvasRenderer from '../renderers/CanvasRenderer';
import { SCALE_MODES } from '../const';
import { WebglRenderer } from '../renderers/WebglRenderer';
import { abs } from "../utils/twiddle";
import {SCALE_MODES} from '../const';
import {WebglRenderer} from '../renderers/WebglRenderer';
import {abs} from "../utils/twiddle";
const indices = new Uint16Array([0, 1, 2, 0, 2, 3]);
/**
......@@ -475,6 +475,12 @@ export default class Sprite extends Container {
}
this._texture = value || Texture.EMPTY;
if (this._texture != Texture.EMPTY &&
this._texture != null &&
!this._texture.baseTexture.hasLoaded) {
this._texture.removeEventListener('update', this._onTextureUpdate, this);
}
this._textureID = -1;
this._textureTrimmedID = -1;
this._cachedTint = 0xFFFFFF;
......
......@@ -136,7 +136,8 @@ export class StackContainer extends Node {
let len = this.childNum;
if (len <= 0) {
return false;
resolve(true);
return;
}
let lastView = this.getChildAt(this.children.length - 1);
let view;
......@@ -166,7 +167,8 @@ export class StackContainer extends Node {
let len = this.childNum;
if (len <= 0) {
return false;
resolve(true);
return;
}
let lastView = this.getChildAt(len - 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment