Commit 93c3357a authored by rockyl's avatar rockyl

完善多人协作

parent a1fa8aeb
......@@ -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);
......@@ -1563,7 +1554,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() {
......@@ -1611,7 +1601,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);
......@@ -1644,7 +1633,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 () {
......@@ -1774,7 +1762,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_$';
......@@ -2029,7 +2016,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=utils.js.map
function transPoint(str, sep) {
if (sep === void 0) { sep = ','; }
......@@ -2041,7 +2027,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));
......@@ -2233,7 +2218,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() {
......@@ -2297,7 +2281,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
ObjectPool.pools = {};
return ObjectPool;
}());
//# sourceMappingURL=ObjectPool.js.map
var scriptDefs = {};
function applyScript(ctor) {
......@@ -2440,7 +2423,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);
......@@ -2569,7 +2551,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) {
......@@ -2580,7 +2561,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=enviroment.js.map
var storeKey = 'zlog-switch';
(function (Logs) {
......@@ -2598,7 +2578,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) {
......@@ -2896,7 +2875,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 () {
......@@ -2959,7 +2937,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return VM;
}());
//# sourceMappingURL=VM.js.map
var log = getLogSwitch(exports.Logs.PROCESS);
var processMetaLibs = [];
......@@ -3004,7 +2981,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
});
}
//# sourceMappingURL=index.js.map
var _a;
var eventsMapping = (_a = {},
......@@ -3103,7 +3079,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return EventsProxy;
}(HashObject));
//# sourceMappingURL=events.js.map
function afterConstructor(ctor) {
ctor.prototype.afterConstructor = function () {
......@@ -3112,7 +3087,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);
......@@ -3640,7 +3614,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;
......@@ -3808,7 +3781,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];
......@@ -3907,7 +3879,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;
......@@ -4063,7 +4034,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) {
......@@ -4119,7 +4089,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return SystemRenderer;
}(EventDispatcher));
//# sourceMappingURL=SystemRenderer.js.map
var CanvasGraphicsRenderer = (function () {
function CanvasGraphicsRenderer(renderer) {
......@@ -4353,7 +4322,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);
......@@ -4452,7 +4420,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return CanvasMaskManager;
}(HashObject));
//# sourceMappingURL=CanvasMaskManager.js.map
var CanvasRenderTarget = (function () {
function CanvasRenderTarget(width, height) {
......@@ -4494,7 +4461,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
return CanvasRenderTarget;
}());
//# sourceMappingURL=CanvasRenderTarget.js.map
var canvasRenderWorldTransform = new Matrix();
var CanvasSpriteRenderer = (function () {
......@@ -4550,7 +4516,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);
......@@ -4668,7 +4633,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();
......@@ -4709,7 +4673,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; }
......@@ -4718,7 +4681,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);
......@@ -4939,7 +4901,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BaseTexture;
}(EventDispatcher));
//# sourceMappingURL=BaseTexture.js.map
var TextureUvs = (function () {
function TextureUvs() {
......@@ -5000,7 +4961,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);
......@@ -5244,7 +5204,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) {
......@@ -5385,7 +5344,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return imageInfo;
}());
//# sourceMappingURL=DrawAllToCanvas.js.map
var nextUid = 0;
function uid() {
......@@ -5601,7 +5559,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) {
......@@ -5871,7 +5828,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Sprite;
}(Container));
//# sourceMappingURL=Sprite.js.map
var BatchDrawCall = (function () {
function BatchDrawCall() {
......@@ -5883,7 +5839,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return BatchDrawCall;
}());
//# sourceMappingURL=BatchDrawCall.js.map
var ObjectRenderer = (function () {
function ObjectRenderer(renderer) {
......@@ -5908,7 +5863,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) ||
......@@ -5918,7 +5872,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return gl;
}
//# sourceMappingURL=createContext.js.map
var fragTemplate = [
'precision mediump float;',
......@@ -5970,7 +5923,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return src;
}
//# sourceMappingURL=checkMaxIfStatementsInShader.js.map
var BatchBuffer = (function () {
function BatchBuffer(size) {
......@@ -5986,7 +5938,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) {
......@@ -6118,7 +6069,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 () {
......@@ -6165,7 +6115,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return GLBuffer;
}());
//# sourceMappingURL=GLBuffer.js.map
function setVertexAttribArrays(gl, attribs, state) {
var i;
......@@ -6196,7 +6145,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=setVertexAttribArrays.js.map
var VertexArrayObject = (function () {
function VertexArrayObject(gl, state) {
......@@ -6314,7 +6262,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) {
......@@ -6397,7 +6344,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);
......@@ -6435,7 +6381,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return shader;
};
//# sourceMappingURL=compileProgram.js.map
function mapType(gl, type) {
if (!GL_TABLE) {
......@@ -6467,7 +6412,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];
......@@ -6490,7 +6434,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
'mat4': 16,
'sampler2D': 1
};
//# sourceMappingURL=mapSize.js.map
function extractAttributes(gl, program) {
var attributes = {};
......@@ -6513,7 +6456,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return attributes;
}
//# sourceMappingURL=extractAttributes.js.map
function defaultValue(type, size) {
switch (type) {
......@@ -6563,7 +6505,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return array;
};
//# sourceMappingURL=defaultValue.js.map
function extractUniforms(gl, program) {
var uniforms = {};
......@@ -6581,7 +6522,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') {
......@@ -6589,7 +6529,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return src;
}
//# sourceMappingURL=setPrecision.js.map
function generateUniformAccessObject(gl, uniformData) {
var uniforms = { data: {} };
......@@ -6727,7 +6666,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) {
......@@ -6754,7 +6692,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;" +
......@@ -6816,7 +6753,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) {
......@@ -7040,7 +6976,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) {
......@@ -7147,7 +7082,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RenderTarget;
}());
//# sourceMappingURL=RenderTarget.js.map
var TextureManager = (function () {
function TextureManager(renderer) {
......@@ -7349,7 +7283,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureManager;
}());
//# sourceMappingURL=TextureManager.js.map
var TextureGarbageCollector = (function () {
function TextureGarbageCollector(renderer) {
......@@ -7404,7 +7337,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return TextureGarbageCollector;
}());
//# sourceMappingURL=TextureGarbageCollector.js.map
var BLEND = 0;
var DEPTH_TEST = 1;
......@@ -7507,7 +7439,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return WebGLState;
}());
//# sourceMappingURL=WebGLState.js.map
var BatchManager = (function () {
function BatchManager(renderer) {
......@@ -7531,7 +7462,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return BatchManager;
}());
//# sourceMappingURL=BatchManager.js.map
var MaskManager = (function () {
function MaskManager(renderer) {
......@@ -7580,7 +7510,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return MaskManager;
}());
//# sourceMappingURL=MaskManager.js.map
var StencilManager = (function () {
function StencilManager(renderer) {
......@@ -7653,7 +7582,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return StencilManager;
}());
//# sourceMappingURL=StencilManager.js.map
var CONTEXT_UID = 0;
var WebglRenderer = (function (_super) {
......@@ -7866,7 +7794,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;
......@@ -7899,7 +7826,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var skipTagNames = ['INPUT'];
var Stage = (function (_super) {
tslib_1.__extends(Stage, _super);
function Stage(rootDivId, desW, desH, frameRate, scaleMode, renderType, transparent, bgColor) {
function Stage(rootDivId, desW, desH, frameRate, scaleMode, renderType, transparent, bgColor, autoResize) {
if (rootDivId === void 0) { rootDivId = "cusEngine"; }
if (desW === void 0) { desW = 750; }
if (desH === void 0) { desH = 1206; }
......@@ -7908,6 +7835,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if (renderType === void 0) { renderType = exports.RENDERER_TYPE.WEBGL; }
if (transparent === void 0) { transparent = true; }
if (bgColor === void 0) { bgColor = 0x000000; }
if (autoResize === void 0) { autoResize = false; }
var _this = _super.call(this) || this;
_this.iosTouchendPreventDefault = true;
_this.isPreventDefaultEvent = true;
......@@ -7952,6 +7880,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
s.rootDiv = div;
s.setFrameRate(frameRate);
s._scaleMode = scaleMode;
s.autoResize = autoResize;
var canvas = document.createElement("canvas");
s.rootDiv.appendChild(canvas);
canvas.id = "cusCanvas";
......@@ -8101,29 +8030,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return 60 / (this._flush + 1);
};
Stage.prototype.getRootDivWH = function (div) {
var sw = div.style.width;
var sh = div.style.height;
var iw = document.body.clientWidth;
var ih = document.body.clientHeight;
var vW = parseInt(sw);
var vH = parseInt(sh);
if (vW.toString() == "NaN") {
vW = iw;
}
else {
if (sw.indexOf("%") > 0) {
vW *= iw / 100;
}
}
if (vH.toString() == "NaN") {
vH = ih;
}
else {
if (sh.indexOf("%") > 0) {
vH *= ih / 100;
}
}
return { w: vW, h: vH };
var divBound = div.getBoundingClientRect();
var w = divBound.width;
var h = divBound.height;
return { w: w, h: h };
};
Stage.prototype.kill = function () {
Stage.removeUpdateObj(this);
......@@ -8469,7 +8379,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);
......@@ -8502,7 +8411,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);
......@@ -8539,7 +8447,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);
......@@ -8567,7 +8474,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) {
......@@ -8598,7 +8504,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) {
......@@ -8630,7 +8535,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Ellipse;
}());
//# sourceMappingURL=Ellipse.js.map
var Polygon = (function () {
function Polygon() {
......@@ -8680,7 +8584,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) {
......@@ -8738,7 +8641,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return RoundedRectangle;
}());
//# sourceMappingURL=RoundedRectangle.js.map
function earcut(data, holeIndices, dim) {
dim = dim || 2;
......@@ -9200,7 +9102,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return result;
};
//# sourceMappingURL=earcut.js.map
var buildPoly = {
build: function (graphicsData) {
......@@ -9234,7 +9135,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=buildPoly.js.map
var buildCircle = {
build: function (graphicsData) {
......@@ -9278,7 +9178,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=buildCircle.js.map
var buildRectangle = {
build: function (graphicsData) {
......@@ -9299,7 +9198,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) {
......@@ -9359,7 +9257,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return points;
}
//# sourceMappingURL=buildRoundedRectangle.js.map
function buildLine (graphicsData, graphicsGeometry) {
buildLine$1(graphicsData, graphicsGeometry);
......@@ -9488,7 +9385,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
indexStart++;
}
}
//# sourceMappingURL=buildLine.js.map
var FillStyle = (function () {
function FillStyle() {
......@@ -9518,7 +9414,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);
......@@ -9546,7 +9441,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 = []; }
......@@ -9567,7 +9461,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return path;
}
//# sourceMappingURL=bezierCurveTo.js.map
var GRAPHICS_CURVES = {
adaptive: false,
......@@ -9639,7 +9532,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return result;
}
//# sourceMappingURL=index.js.map
var canvasRenderer;
var tempMatrix$2 = new Matrix();
......@@ -10528,7 +10420,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);
......@@ -11002,7 +10893,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Shape;
}(Sprite));
//# sourceMappingURL=Shape.js.map
var TextureSheet = (function () {
function TextureSheet(baseTexture, data) {
......@@ -11078,12 +10968,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;
......@@ -11115,7 +11003,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
scriptEl.innerHTML = scriptContent;
parent.appendChild(scriptEl);
}
//# sourceMappingURL=web.js.map
function httpRequest(url, method, params, type, headers) {
if (method === void 0) { method = 'get'; }
......@@ -11284,7 +11171,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}, false);
}
//# sourceMappingURL=net.js.map
function createTextureSheet(baseTexture, altaData) {
var frames = altaData;
......@@ -11310,7 +11196,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
frameIndex++;
}
}
//# sourceMappingURL=texture-sheet.js.map
var prefix = 'font-';
var fonts = {};
......@@ -11346,7 +11231,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 = {
......@@ -11540,7 +11424,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 : {};
......@@ -14756,7 +14639,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);
......@@ -14843,7 +14725,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 = {
......@@ -15534,7 +15415,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);
......@@ -15732,7 +15612,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);
......@@ -15834,7 +15713,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);
......@@ -16091,7 +15969,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return ScrollViewBase;
}(Container));
//# sourceMappingURL=ScrollViewBase.js.map
function fieldChanged(onModify) {
return function (target, key) {
......@@ -16134,7 +16011,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
});
//# sourceMappingURL=decorators.js.map
var ScrollListItemBase = (function (_super) {
tslib_1.__extends(ScrollListItemBase, _super);
......@@ -16333,7 +16209,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) {
......@@ -16739,7 +16614,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Tween._lastTime = 0;
return Tween;
}());
//# sourceMappingURL=Tween.js.map
var Ease = (function () {
function Ease() {
......@@ -16886,7 +16760,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);
......@@ -16897,7 +16770,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;
......@@ -16915,6 +16787,9 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
if (view) {
if (!view.parent) {
container.addChild(view);
}
view.visible = true;
}
callback();
......@@ -17137,7 +17012,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=view-effects.js.map
var StackContainer = (function (_super) {
tslib_1.__extends(StackContainer, _super);
......@@ -17298,7 +17172,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return StackContainer;
}(Node$1));
//# sourceMappingURL=StackContainer.js.map
var colorName = {
"aliceblue": [240, 248, 255],
......@@ -19499,7 +19372,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) {
......@@ -19589,7 +19461,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);
......@@ -19666,7 +19537,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Label;
}(TextField));
//# sourceMappingURL=Label.js.map
var timer;
function delayScrollTop() {
......@@ -19903,7 +19773,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',
......@@ -19931,7 +19800,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);
......@@ -19974,7 +19842,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);
......@@ -20071,7 +19938,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);
......@@ -20112,12 +19978,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,
......@@ -20170,7 +20034,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);
......@@ -20317,7 +20180,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) {
......@@ -20406,7 +20268,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Watcher._uid = 0;
return Watcher;
}());
//# sourceMappingURL=Watcher.js.map
var Dep = (function () {
function Dep() {
......@@ -20425,7 +20286,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Dep;
}());
//# sourceMappingURL=Dep.js.map
var Mutator = (function () {
function Mutator() {
......@@ -20539,7 +20399,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
];
return Mutator;
}());
//# sourceMappingURL=Mutator.js.map
var commands = {
set: function (context) {
......@@ -20554,7 +20413,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 () {
......@@ -20621,7 +20479,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
return Zri;
}());
//# sourceMappingURL=Zri.js.map
var commands$1 = {
prop: function (context) {
......@@ -20805,7 +20662,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return context.target;
}
};
//# sourceMappingURL=ZriCommands.js.map
var interruptCmds = ['for', 'if'];
var ZriCompiler = (function () {
......@@ -20875,7 +20731,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);
......@@ -20896,7 +20751,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
return store;
}
//# sourceMappingURL=index.js.map
var customMap = {};
function registerCustomModules(customs) {
......@@ -20959,7 +20813,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) {
......@@ -21039,7 +20892,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);
......@@ -21334,10 +21186,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var pParent = blackLayer.parent;
if (hasView) {
target.addChildAt(blackLayer, target.childNum - 1 - (view ? 0 : 1));
if (!pParent) {
var modalAlpha = 0.7;
if (options && options.hasOwnProperty('modalAlpha')) {
modalAlpha = options.modalAlpha;
}
if (!pParent || blackLayer['tween_count'] > 0) {
blackLayer.alpha = 0;
Tween.get(blackLayer, null, null, true)
.to({ alpha: 0.7 }, 300);
.to({ alpha: modalAlpha }, 300);
}
}
else if (pParent) {
......@@ -21352,7 +21208,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";
......@@ -21392,7 +21247,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
},
};
//# sourceMappingURL=LoadingView.js.map
var _stage;
function initAutoLayout(stage) {
......@@ -21438,7 +21292,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
//# sourceMappingURL=auto-layout.js.map
function launch(url, loadingDelegate, onStart) {
if (queryParams.__proxy_mode__) {
......@@ -21475,8 +21328,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
case 1:
_a.sent();
return [4, new Promise(function (resolve) {
var _a = config.options, containerId = _a.containerId, designWidth = _a.designWidth, designHeight = _a.designHeight, frameRate = _a.frameRate, scaleMode = _a.scaleMode, rendererType = _a.rendererType;
var stage = window['stage'] = new Stage(containerId || "game-container", designWidth || 750, designHeight || 1334, frameRate || 60, scaleMode || StageScaleMode.FIXED_WIDTH, rendererType || exports.RENDERER_TYPE.WEBGL);
var _a = config.options, containerId = _a.containerId, designWidth = _a.designWidth, designHeight = _a.designHeight, frameRate = _a.frameRate, scaleMode = _a.scaleMode, rendererType = _a.rendererType, bgColor = _a.bgColor, autoResize = _a.autoResize;
var stage = window['stage'] = new Stage(containerId || "game-container", designWidth || 750, designHeight || 1334, frameRate || 60, scaleMode || StageScaleMode.FIXED_WIDTH, rendererType || exports.RENDERER_TYPE.WEBGL, true, bgColor, autoResize);
initAutoLayout(stage);
Stage.flushAll();
stage.addEventListener(Event.ON_INIT_STAGE, function () {
......@@ -21499,7 +21352,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
});
}
//# sourceMappingURL=launcher.js.map
var emojiRegex = function () {
// https://mths.be/emoji
......@@ -21598,10 +21450,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.975525fbc3a88f2cd514e71fd127c72185bce273.js"}
\ No newline at end of file
{"id":"engine","url":"engine.dee8bb73f7c234c7fe2527549add0fab7ca3d3fc.js"}
\ No newline at end of file
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