Commit 1db39c8e authored by rockyl's avatar rockyl

。。。

parent 362fb7d9
......@@ -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);
......@@ -91,7 +90,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Event.UPDATE_DATA = "UPDATE_DATA";
return Event;
}(HashObject));
//# sourceMappingURL=Event.js.map
var EventDispatcher = (function (_super) {
tslib_1.__extends(EventDispatcher, _super);
......@@ -295,7 +293,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);
......@@ -359,7 +356,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);
......@@ -396,7 +392,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;
......@@ -559,7 +554,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);
......@@ -830,7 +824,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);
......@@ -938,7 +931,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);
......@@ -1140,7 +1132,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);
......@@ -1607,7 +1598,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);
......@@ -1640,7 +1630,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
MouseEvent.MOUSE_OUT = "onMouseOut";
return MouseEvent;
}(Event));
//# sourceMappingURL=MouseEvent.js.map
function applyAutoAdjust(ctor) {
ctor.prototype.applyAutoAdjust = function () {
......@@ -1770,7 +1759,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function t(v) {
return !isNaN(v) && v !== null && v !== undefined;
}
//# sourceMappingURL=auto-adjust.js.map
var ESCAPE_REG_EXP = /\$\{[\u4e00-\u9fa5_a-zA-Z0-9\|]+\}/g;
var linkedFlag = '$_linked_$';
......@@ -2025,7 +2013,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=utils.js.map
function transPoint(str, sep) {
if (sep === void 0) { sep = ','; }
......@@ -2037,7 +2024,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));
......@@ -2229,7 +2215,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() {
......@@ -2293,7 +2278,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
ObjectPool.pools = {};
return ObjectPool;
}());
//# sourceMappingURL=ObjectPool.js.map
var scriptDefs = {};
function applyScript(ctor) {
......@@ -2436,7 +2420,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);
......@@ -2565,7 +2548,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) {
......@@ -2576,7 +2558,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=enviroment.js.map
var storeKey = 'zlog-switch';
(function (Logs) {
......@@ -2594,7 +2575,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) {
......@@ -2891,7 +2871,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 () {
......@@ -2954,7 +2933,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return VM;
}());
//# sourceMappingURL=VM.js.map
var log = getLogSwitch(exports.Logs.PROCESS);
var processMetaLibs = [];
......@@ -2999,7 +2977,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
});
}
//# sourceMappingURL=index.js.map
var _a;
var eventsMapping = (_a = {},
......@@ -3098,7 +3075,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return EventsProxy;
}(HashObject));
//# sourceMappingURL=events.js.map
function afterConstructor(ctor) {
ctor.prototype.afterConstructor = function () {
......@@ -3107,7 +3083,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);
......@@ -3630,7 +3605,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;
......@@ -3798,7 +3772,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];
......@@ -3897,7 +3870,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;
......@@ -4053,7 +4025,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) {
......@@ -4109,7 +4080,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return SystemRenderer;
}(EventDispatcher));
//# sourceMappingURL=SystemRenderer.js.map
var CanvasGraphicsRenderer = (function () {
function CanvasGraphicsRenderer(renderer) {
......@@ -4343,7 +4313,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);
......@@ -4442,7 +4411,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return CanvasMaskManager;
}(HashObject));
//# sourceMappingURL=CanvasMaskManager.js.map
var CanvasRenderTarget = (function () {
function CanvasRenderTarget(width, height) {
......@@ -4484,7 +4452,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return CanvasRenderTarget;
}());
//# sourceMappingURL=CanvasRenderTarget.js.map
var canvasRenderWorldTransform = new Matrix();
var CanvasSpriteRenderer = (function () {
......@@ -4540,7 +4507,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);
......@@ -4658,7 +4624,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();
......@@ -4699,7 +4664,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; }
......@@ -4708,7 +4672,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);
......@@ -4929,7 +4892,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BaseTexture;
}(EventDispatcher));
//# sourceMappingURL=BaseTexture.js.map
var TextureUvs = (function () {
function TextureUvs() {
......@@ -4990,7 +4952,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);
......@@ -5234,7 +5195,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Texture.WHITE = createWhiteTexture();
removeAllHandlers(Texture.WHITE);
removeAllHandlers(Texture.WHITE.baseTexture);
//# sourceMappingURL=Texture.js.map
var padding = 2;
function DrawAllToCanvas(images, callback) {
......@@ -5375,7 +5335,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return imageInfo;
}());
//# sourceMappingURL=DrawAllToCanvas.js.map
var nextUid = 0;
function uid() {
......@@ -5591,7 +5550,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) {
......@@ -5861,7 +5819,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Sprite;
}(Container));
//# sourceMappingURL=Sprite.js.map
var BatchDrawCall = (function () {
function BatchDrawCall() {
......@@ -5873,7 +5830,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return BatchDrawCall;
}());
//# sourceMappingURL=BatchDrawCall.js.map
var ObjectRenderer = (function () {
function ObjectRenderer(renderer) {
......@@ -5898,7 +5854,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) ||
......@@ -5908,7 +5863,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return gl;
}
//# sourceMappingURL=createContext.js.map
var fragTemplate = [
'precision mediump float;',
......@@ -5960,7 +5914,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return src;
}
//# sourceMappingURL=checkMaxIfStatementsInShader.js.map
var BatchBuffer = (function () {
function BatchBuffer(size) {
......@@ -5976,7 +5929,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) {
......@@ -6108,7 +6060,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 () {
......@@ -6155,7 +6106,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GLBuffer;
}());
//# sourceMappingURL=GLBuffer.js.map
function setVertexAttribArrays(gl, attribs, state) {
var i;
......@@ -6186,7 +6136,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=setVertexAttribArrays.js.map
var VertexArrayObject = (function () {
function VertexArrayObject(gl, state) {
......@@ -6304,7 +6253,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) {
......@@ -6387,7 +6335,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);
......@@ -6425,7 +6372,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return shader;
};
//# sourceMappingURL=compileProgram.js.map
function mapType(gl, type) {
if (!GL_TABLE) {
......@@ -6457,7 +6403,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];
......@@ -6480,7 +6425,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
'mat4': 16,
'sampler2D': 1
};
//# sourceMappingURL=mapSize.js.map
function extractAttributes(gl, program) {
var attributes = {};
......@@ -6503,7 +6447,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return attributes;
}
//# sourceMappingURL=extractAttributes.js.map
function defaultValue(type, size) {
switch (type) {
......@@ -6553,7 +6496,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return array;
};
//# sourceMappingURL=defaultValue.js.map
function extractUniforms(gl, program) {
var uniforms = {};
......@@ -6571,7 +6513,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') {
......@@ -6579,7 +6520,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return src;
}
//# sourceMappingURL=setPrecision.js.map
function generateUniformAccessObject(gl, uniformData) {
var uniforms = { data: {} };
......@@ -6717,7 +6657,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) {
......@@ -6744,7 +6683,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;" +
......@@ -6806,7 +6744,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) {
......@@ -7030,7 +6967,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) {
......@@ -7137,7 +7073,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RenderTarget;
}());
//# sourceMappingURL=RenderTarget.js.map
var TextureManager = (function () {
function TextureManager(renderer) {
......@@ -7339,7 +7274,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureManager;
}());
//# sourceMappingURL=TextureManager.js.map
var TextureGarbageCollector = (function () {
function TextureGarbageCollector(renderer) {
......@@ -7394,7 +7328,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureGarbageCollector;
}());
//# sourceMappingURL=TextureGarbageCollector.js.map
var BLEND = 0;
var DEPTH_TEST = 1;
......@@ -7497,7 +7430,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return WebGLState;
}());
//# sourceMappingURL=WebGLState.js.map
var BatchManager = (function () {
function BatchManager(renderer) {
......@@ -7521,7 +7453,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BatchManager;
}());
//# sourceMappingURL=BatchManager.js.map
var MaskManager = (function () {
function MaskManager(renderer) {
......@@ -7570,7 +7501,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return MaskManager;
}());
//# sourceMappingURL=MaskManager.js.map
var StencilManager = (function () {
function StencilManager(renderer) {
......@@ -7643,7 +7573,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return StencilManager;
}());
//# sourceMappingURL=StencilManager.js.map
var CONTEXT_UID = 0;
var WebglRenderer = (function (_super) {
......@@ -7856,7 +7785,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;
......@@ -8491,7 +8419,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);
......@@ -8528,7 +8455,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);
......@@ -8556,7 +8482,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) {
......@@ -8587,7 +8512,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) {
......@@ -8619,7 +8543,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Ellipse;
}());
//# sourceMappingURL=Ellipse.js.map
var Polygon = (function () {
function Polygon() {
......@@ -8669,7 +8592,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) {
......@@ -8727,7 +8649,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RoundedRectangle;
}());
//# sourceMappingURL=RoundedRectangle.js.map
function earcut(data, holeIndices, dim) {
dim = dim || 2;
......@@ -9189,7 +9110,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return result;
};
//# sourceMappingURL=earcut.js.map
var buildPoly = {
build: function (graphicsData) {
......@@ -9223,7 +9143,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=buildPoly.js.map
var buildCircle = {
build: function (graphicsData) {
......@@ -9267,7 +9186,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=buildCircle.js.map
var buildRectangle = {
build: function (graphicsData) {
......@@ -9288,7 +9206,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) {
......@@ -9348,7 +9265,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return points;
}
//# sourceMappingURL=buildRoundedRectangle.js.map
function buildLine (graphicsData, graphicsGeometry) {
buildLine$1(graphicsData, graphicsGeometry);
......@@ -9477,7 +9393,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
indexStart++;
}
}
//# sourceMappingURL=buildLine.js.map
var FillStyle = (function () {
function FillStyle() {
......@@ -9507,7 +9422,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);
......@@ -9535,7 +9449,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 = []; }
......@@ -9556,7 +9469,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return path;
}
//# sourceMappingURL=bezierCurveTo.js.map
var GRAPHICS_CURVES = {
adaptive: false,
......@@ -9628,7 +9540,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return result;
}
//# sourceMappingURL=index.js.map
var canvasRenderer;
var tempMatrix$2 = new Matrix();
......@@ -10516,7 +10427,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);
......@@ -10990,7 +10900,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Shape;
}(Sprite));
//# sourceMappingURL=Shape.js.map
var TextureSheet = (function () {
function TextureSheet(baseTexture, data) {
......@@ -11066,12 +10975,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;
......@@ -11085,7 +10992,28 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var arr = item.split('=');
queryParams[arr[0]] = arr.length === 1 ? true : arr[1];
}
//# sourceMappingURL=web.js.map
if (queryParams.appID) {
env.appID = queryParams.appID;
}
if (queryParams.channelType) {
env.channelType = queryParams.channelType;
}
if (queryParams.projectID) {
env.projectID = queryParams.projectID;
}
else if (window.location.pathname.match(new RegExp("/projectx/(\\S+)/index(\\S+)", "g"))) {
env.projectID = window.location.pathname.replace(new RegExp("/projectx/(\\S+)/index(\\S+)", "g"), "$1");
}
exports.newUser = true;
var key = 'nu_' + env.appID + '_' + env.projectID;
var v = localStorage.getItem(key);
if (v) {
exports.newUser = false;
}
else {
localStorage.setItem(key, '1');
}
console.log(exports.newUser);
function httpRequest(url, method, params, type, headers) {
if (method === void 0) { method = 'get'; }
......@@ -11254,7 +11182,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}, false);
}
//# sourceMappingURL=net.js.map
function createTextureSheet(baseTexture, altaData) {
var frames = altaData;
......@@ -11280,7 +11207,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
frameIndex++;
}
}
//# sourceMappingURL=texture-sheet.js.map
var prefix = 'font-';
var fonts = {};
......@@ -11316,7 +11242,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 = {
......@@ -11408,7 +11333,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 : {};
......@@ -14624,7 +14548,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);
......@@ -14711,7 +14634,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return Loader;
}(EventDispatcher));
var globalLoader = new Loader();
//# sourceMappingURL=Loader.js.map
var padding$1 = 10;
var TextField = (function (_super) {
......@@ -15259,7 +15181,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);
......@@ -15457,7 +15378,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);
......@@ -15559,7 +15479,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);
......@@ -15816,7 +15735,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ScrollViewBase;
}(Container));
//# sourceMappingURL=ScrollViewBase.js.map
function fieldChanged(onModify) {
return function (target, key) {
......@@ -15859,7 +15777,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
});
//# sourceMappingURL=decorators.js.map
var ScrollListItemBase = (function (_super) {
tslib_1.__extends(ScrollListItemBase, _super);
......@@ -16058,7 +15975,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) {
......@@ -16464,7 +16380,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Tween._lastTime = 0;
return Tween;
}());
//# sourceMappingURL=Tween.js.map
var Ease = (function () {
function Ease() {
......@@ -16611,7 +16526,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);
......@@ -16622,7 +16536,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return Node;
}(Container));
//# sourceMappingURL=Node.js.map
var StackContainer = (function (_super) {
tslib_1.__extends(StackContainer, _super);
......@@ -16655,7 +16568,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
StackContainer.prototype.pop = function (dispatch) {
if (dispatch === void 0) { dispatch = true; }
var len = this.children.length;
if (len <= 0) {
if (len <= 1) {
return false;
}
this.removeChildAt(len - 1);
......@@ -16679,7 +16592,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return StackContainer;
}(Node$1));
//# sourceMappingURL=StackContainer.js.map
var colorName = {
"aliceblue": [240, 248, 255],
......@@ -18874,7 +18786,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) {
......@@ -18963,7 +18874,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);
......@@ -19040,7 +18950,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Label;
}(TextField));
//# sourceMappingURL=Label.js.map
var timer;
function delayScrollTop() {
......@@ -19277,7 +19186,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',
......@@ -19305,7 +19213,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);
......@@ -19348,7 +19255,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);
......@@ -19445,7 +19351,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);
......@@ -19465,12 +19370,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,
......@@ -19523,7 +19426,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);
......@@ -19617,7 +19519,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Toast;
}(Node$1));
//# sourceMappingURL=Toast.js.map
function createEvalFunc(exp) {
var func;
......@@ -19648,7 +19549,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) {
......@@ -19737,7 +19637,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Watcher._uid = 0;
return Watcher;
}());
//# sourceMappingURL=Watcher.js.map
var Dep = (function () {
function Dep() {
......@@ -19756,7 +19655,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Dep;
}());
//# sourceMappingURL=Dep.js.map
var Mutator = (function () {
function Mutator() {
......@@ -19870,7 +19768,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
];
return Mutator;
}());
//# sourceMappingURL=Mutator.js.map
var commands = {
set: function (context) {
......@@ -19885,7 +19782,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 () {
......@@ -19952,7 +19848,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Zri;
}());
//# sourceMappingURL=Zri.js.map
var commands$1 = {
prop: function (context) {
......@@ -20136,7 +20031,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return context.target;
}
};
//# sourceMappingURL=ZriCommands.js.map
var interruptCmds = ['for', 'if'];
var ZriCompiler = (function () {
......@@ -20206,7 +20100,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);
......@@ -20227,7 +20120,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return store;
}
//# sourceMappingURL=index.js.map
var customMap = {};
function registerCustomModules(customs) {
......@@ -20290,7 +20182,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getProps(id) {
return customMap[id].props || {};
}
//# sourceMappingURL=custom-module.js.map
var GameStage = (function (_super) {
tslib_1.__extends(GameStage, _super);
......@@ -20472,7 +20363,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";
......@@ -20512,7 +20402,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=LoadingView.js.map
var _stage;
function initAutoLayout(stage) {
......@@ -20558,7 +20447,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=auto-layout.js.map
function launch(url, loadingDelegate, onStart) {
if (queryParams.__proxy_mode__) {
......@@ -20619,7 +20507,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
});
}
//# sourceMappingURL=launcher.js.map
var emojiRegex = function () {
// https://mths.be/emoji
......@@ -20718,10 +20605,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.
......@@ -2,7 +2,7 @@
* Created by rockyl on 2019-11-21.
*/
export let env = {};
export let env:any = {};
export function injectEnv(data){
if(data){
......
/**
* Created by rockyl on 2019-12-10.
*/
import {env} from "./game-warpper/enviroment";
export let queryParams: any = {};
......@@ -15,3 +16,31 @@ for (let item of search.replace('?', '').split('&')) {
queryParams[arr[0]] = arr.length === 1 ? true : arr[1];
}
//appID提取
if (queryParams.appID) {
env.appID = queryParams.appID;
}
//渠道类型提取
if (queryParams.channelType) {
env.channelType = queryParams.channelType;
}
//projectID提取
if (queryParams.projectID) {
env.projectID = queryParams.projectID;
} else if (window.location.pathname.match(new RegExp("/projectx/(\\S+)/index(\\S+)", "g"))) {
env.projectID = window.location.pathname.replace(new RegExp("/projectx/(\\S+)/index(\\S+)", "g"), "$1");
}
//新用户标记
export let newUser = true;
let key = 'nu_' + env.appID + '_' + env.projectID;
let v = localStorage.getItem(key);
if (v) {
newUser = false;
} else {
localStorage.setItem(key, '1');
}
console.log(newUser);
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