Commit ce8909d2 authored by 任建锋's avatar 任建锋

--

parent f76f34d4
...@@ -2,10 +2,10 @@ var __extends;var __assign;var __rest;var __decorate;var __param;var __metadata; ...@@ -2,10 +2,10 @@ var __extends;var __assign;var __rest;var __decorate;var __param;var __metadata;
}};__exportStar=function(m,exports){for(var p in m){if(!exports.hasOwnProperty(p)){exports[p]=m[p]}}};__values=function(o){var m=typeof Symbol==="function"&&o[Symbol.iterator],i=0;if(m){return m.call(o)}return{next:function(){if(o&&i>=o.length){o=void 0}return{value:o&&o[i++],done:!o}}}};__read=function(o,n){var m=typeof Symbol==="function"&&o[Symbol.iterator];if(!m){return o}var i=m.call(o),r,ar=[],e;try{while((n===void 0||n-->0)&&!(r=i.next()).done){ar.push(r.value)}}catch(error){e={error:error}}finally{try{if(r&&!r.done&&(m=i["return"])){m.call(i)}}finally{if(e){throw e.error}}}return ar};__spread=function(){for(var ar=[],i=0;i<arguments.length;i++){ar=ar.concat(__read(arguments[i]))}return ar};__spreadArrays=function(){for(var s=0,i=0,il=arguments.length;i<il;i++){s+=arguments[i].length}for(var r=Array(s),k=0,i=0;i<il;i++){for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++){r[k]=a[j]}}return r};__await=function(v){return this instanceof __await?(this.v=v,this):new __await(v)};__asyncGenerator=function(thisArg,_arguments,generator){if(!Symbol.asyncIterator){throw new TypeError("Symbol.asyncIterator is not defined.")}var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n){if(g[n]){i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v)})}}}function resume(n,v){try{step(g[n](v))}catch(e){settle(q[0][3],e)}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r)}function fulfill(value){resume("next",value)}function reject(value){resume("throw",value)}function settle(f,v){if(f(v),q.shift(),q.length){resume(q[0][0],q[0][1])}}};__asyncDelegator=function(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return(p=!p)?{value:__await(o[n](v)),done:n==="return"}:f?f(v):v}:f}};__asyncValues=function(o){if(!Symbol.asyncIterator){throw new TypeError("Symbol.asyncIterator is not defined.")}var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o=typeof __values==="function"?__values(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value)})}}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v){resolve({value:v,done:d})},reject)}};__makeTemplateObject=function(cooked,raw){if(Object.defineProperty){Object.defineProperty(cooked,"raw",{value:raw})}else{cooked.raw=raw}return cooked};__importStar=function(mod){if(mod&&mod.__esModule){return mod}var result={};if(mod!=null){for(var k in mod){if(Object.hasOwnProperty.call(mod,k)){result[k]=mod[k]}}}result["default"]=mod;return result};__importDefault=function(mod){return(mod&&mod.__esModule)?mod:{"default":mod}};exporter("__extends",__extends);exporter("__assign",__assign);exporter("__rest",__rest);exporter("__decorate",__decorate);exporter("__param",__param);exporter("__metadata",__metadata);exporter("__awaiter",__awaiter);exporter("__generator",__generator);exporter("__exportStar",__exportStar);exporter("__values",__values);exporter("__read",__read);exporter("__spread",__spread);exporter("__spreadArrays",__spreadArrays);exporter("__await",__await);exporter("__asyncGenerator",__asyncGenerator);exporter("__asyncDelegator",__asyncDelegator);exporter("__asyncValues",__asyncValues);exporter("__makeTemplateObject",__makeTemplateObject);exporter("__importStar",__importStar);exporter("__importDefault",__importDefault)}); }};__exportStar=function(m,exports){for(var p in m){if(!exports.hasOwnProperty(p)){exports[p]=m[p]}}};__values=function(o){var m=typeof Symbol==="function"&&o[Symbol.iterator],i=0;if(m){return m.call(o)}return{next:function(){if(o&&i>=o.length){o=void 0}return{value:o&&o[i++],done:!o}}}};__read=function(o,n){var m=typeof Symbol==="function"&&o[Symbol.iterator];if(!m){return o}var i=m.call(o),r,ar=[],e;try{while((n===void 0||n-->0)&&!(r=i.next()).done){ar.push(r.value)}}catch(error){e={error:error}}finally{try{if(r&&!r.done&&(m=i["return"])){m.call(i)}}finally{if(e){throw e.error}}}return ar};__spread=function(){for(var ar=[],i=0;i<arguments.length;i++){ar=ar.concat(__read(arguments[i]))}return ar};__spreadArrays=function(){for(var s=0,i=0,il=arguments.length;i<il;i++){s+=arguments[i].length}for(var r=Array(s),k=0,i=0;i<il;i++){for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++){r[k]=a[j]}}return r};__await=function(v){return this instanceof __await?(this.v=v,this):new __await(v)};__asyncGenerator=function(thisArg,_arguments,generator){if(!Symbol.asyncIterator){throw new TypeError("Symbol.asyncIterator is not defined.")}var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(n){if(g[n]){i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v)})}}}function resume(n,v){try{step(g[n](v))}catch(e){settle(q[0][3],e)}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r)}function fulfill(value){resume("next",value)}function reject(value){resume("throw",value)}function settle(f,v){if(f(v),q.shift(),q.length){resume(q[0][0],q[0][1])}}};__asyncDelegator=function(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return(p=!p)?{value:__await(o[n](v)),done:n==="return"}:f?f(v):v}:f}};__asyncValues=function(o){if(!Symbol.asyncIterator){throw new TypeError("Symbol.asyncIterator is not defined.")}var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o=typeof __values==="function"?__values(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value)})}}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v){resolve({value:v,done:d})},reject)}};__makeTemplateObject=function(cooked,raw){if(Object.defineProperty){Object.defineProperty(cooked,"raw",{value:raw})}else{cooked.raw=raw}return cooked};__importStar=function(mod){if(mod&&mod.__esModule){return mod}var result={};if(mod!=null){for(var k in mod){if(Object.hasOwnProperty.call(mod,k)){result[k]=mod[k]}}}result["default"]=mod;return result};__importDefault=function(mod){return(mod&&mod.__esModule)?mod:{"default":mod}};exporter("__extends",__extends);exporter("__assign",__assign);exporter("__rest",__rest);exporter("__decorate",__decorate);exporter("__param",__param);exporter("__metadata",__metadata);exporter("__awaiter",__awaiter);exporter("__generator",__generator);exporter("__exportStar",__exportStar);exporter("__values",__values);exporter("__read",__read);exporter("__spread",__spread);exporter("__spreadArrays",__spreadArrays);exporter("__await",__await);exporter("__asyncGenerator",__asyncGenerator);exporter("__asyncDelegator",__asyncDelegator);exporter("__asyncValues",__asyncValues);exporter("__makeTemplateObject",__makeTemplateObject);exporter("__importStar",__importStar);exporter("__importDefault",__importDefault)});
var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: __decorate,__param: __param,__metadata: __metadata,__awaiter: __awaiter,__generator: __generator,__exportStar: __exportStar,__values: __values,__read: __read,__spread: __spread,__spreadArrays: __spreadArrays,__await: __await,__asyncGenerator: __asyncGenerator,__asyncDelegator: __asyncDelegator,__asyncValues: __asyncValues,__makeTemplateObject: __makeTemplateObject,__importStar: __importStar,__importDefault: __importDefault}; var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: __decorate,__param: __param,__metadata: __metadata,__awaiter: __awaiter,__generator: __generator,__exportStar: __exportStar,__values: __values,__read: __read,__spread: __spread,__spreadArrays: __spreadArrays,__await: __await,__asyncGenerator: __asyncGenerator,__asyncDelegator: __asyncDelegator,__asyncValues: __asyncValues,__makeTemplateObject: __makeTemplateObject,__importStar: __importStar,__importDefault: __importDefault};
(function (global, factory) { (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib')) : typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('props-compute')) :
typeof define === 'function' && define.amd ? define(['exports', 'tslib'], factory) : typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'props-compute'], factory) :
(global = global || self, factory(global.engine = {}, global.tslib)); (global = global || self, factory(global.engine = {}, global.tslib, global.propsCompute));
}(this, function (exports, tslib_1) { 'use strict'; }(this, (function (exports, tslib_1, propsCompute) { 'use strict';
var HashObject = (function () { var HashObject = (function () {
function HashObject() { function HashObject() {
...@@ -30,7 +30,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -30,7 +30,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
HashObject._object_id = 0; HashObject._object_id = 0;
return HashObject; return HashObject;
}()); }());
//# sourceMappingURL=HashObject.js.map
var Event = (function (_super) { var Event = (function (_super) {
tslib_1.__extends(Event, _super); tslib_1.__extends(Event, _super);
...@@ -91,7 +90,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -91,7 +90,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Event.UPDATE_DATA = "UPDATE_DATA"; Event.UPDATE_DATA = "UPDATE_DATA";
return Event; return Event;
}(HashObject)); }(HashObject));
//# sourceMappingURL=Event.js.map
var EventDispatcher = (function (_super) { var EventDispatcher = (function (_super) {
tslib_1.__extends(EventDispatcher, _super); tslib_1.__extends(EventDispatcher, _super);
...@@ -295,7 +293,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -295,7 +293,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return EE; return EE;
}()); }());
//# sourceMappingURL=EventDispatcher.js.map
var ObservablePoint = (function (_super) { var ObservablePoint = (function (_super) {
tslib_1.__extends(ObservablePoint, _super); tslib_1.__extends(ObservablePoint, _super);
...@@ -335,7 +332,12 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -335,7 +332,12 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}, },
set: function (value) { set: function (value) {
if (this._x !== value) { if (this._x !== value) {
this._x = value; if (value) {
this._x = value;
}
else {
this._x = 0;
}
this.cb.call(this.scope); this.cb.call(this.scope);
} }
}, },
...@@ -348,7 +350,12 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -348,7 +350,12 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}, },
set: function (value) { set: function (value) {
if (this._y !== value) { if (this._y !== value) {
this._y = value; if (value) {
this._y = value;
}
else {
this._y = 0;
}
this.cb.call(this.scope); this.cb.call(this.scope);
} }
}, },
...@@ -359,7 +366,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -359,7 +366,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return ObservablePoint; return ObservablePoint;
}(HashObject)); }(HashObject));
//# sourceMappingURL=ObservablePoint.js.map
var Point = (function (_super) { var Point = (function (_super) {
tslib_1.__extends(Point, _super); tslib_1.__extends(Point, _super);
...@@ -396,7 +402,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -396,7 +402,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Point; return Point;
}(HashObject)); }(HashObject));
//# sourceMappingURL=Point.js.map
var VERSION = "1.0"; var VERSION = "1.0";
var devicePixelRatio = window.devicePixelRatio ? window.devicePixelRatio : 1; var devicePixelRatio = window.devicePixelRatio ? window.devicePixelRatio : 1;
...@@ -559,7 +564,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -559,7 +564,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
SCROLL_DIRECTION["HORIZONTAL"] = "horizontal"; SCROLL_DIRECTION["HORIZONTAL"] = "horizontal";
SCROLL_DIRECTION["VERTICAL"] = "vertical"; SCROLL_DIRECTION["VERTICAL"] = "vertical";
})(exports.SCROLL_DIRECTION || (exports.SCROLL_DIRECTION = {})); })(exports.SCROLL_DIRECTION || (exports.SCROLL_DIRECTION = {}));
//# sourceMappingURL=const.js.map
var Matrix = (function (_super) { var Matrix = (function (_super) {
tslib_1.__extends(Matrix, _super); tslib_1.__extends(Matrix, _super);
...@@ -782,6 +786,32 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -782,6 +786,32 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Matrix.prototype.getRotation = function () { Matrix.prototype.getRotation = function () {
return Math.round(Math.atan2(this.b, this.a) * RAD_TO_DEG); return Math.round(Math.atan2(this.b, this.a) * RAD_TO_DEG);
}; };
Matrix.prototype.decompose = function (transform) {
var a = this.a;
var b = this.b;
var c = this.c;
var d = this.d;
var skewX = -Math.atan2(-c, d);
var skewY = Math.atan2(b, a);
var delta = Math.abs(skewX + skewY);
if (delta < 0.00001 || Math.abs(PI_2 - delta) < 0.00001) {
transform.rotation = skewY;
if (a < 0 && d >= 0) {
transform.rotation += (transform.rotation <= 0) ? Math.PI : -Math.PI;
}
transform.skew.x = transform.skew.y = 0;
}
else {
transform.rotation = 0;
transform.skew.x = skewX;
transform.skew.y = skewY;
}
transform.scale.x = Math.sqrt((a * a) + (b * b));
transform.scale.y = Math.sqrt((c * c) + (d * d));
transform.position.x = this.tx;
transform.position.y = this.ty;
return transform;
};
Matrix.prototype.toArray = function (transpose, out) { Matrix.prototype.toArray = function (transpose, out) {
if (transpose === void 0) { transpose = false; } if (transpose === void 0) { transpose = false; }
if (!this.array) { if (!this.array) {
...@@ -830,7 +860,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -830,7 +860,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Matrix; return Matrix;
}(HashObject)); }(HashObject));
//# sourceMappingURL=Matrix.js.map
var Transform = (function (_super) { var Transform = (function (_super) {
tslib_1.__extends(Transform, _super); tslib_1.__extends(Transform, _super);
...@@ -938,7 +967,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -938,7 +967,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Transform; return Transform;
}(HashObject)); }(HashObject));
//# sourceMappingURL=Transform.js.map
var Rectangle = (function (_super) { var Rectangle = (function (_super) {
tslib_1.__extends(Rectangle, _super); tslib_1.__extends(Rectangle, _super);
...@@ -1140,7 +1168,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -1140,7 +1168,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Rectangle; return Rectangle;
}(HashObject)); }(HashObject));
//# sourceMappingURL=Rectangle.js.map
var DisplayObject = (function (_super) { var DisplayObject = (function (_super) {
tslib_1.__extends(DisplayObject, _super); tslib_1.__extends(DisplayObject, _super);
...@@ -1563,7 +1590,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -1563,7 +1590,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}(EventDispatcher)); }(EventDispatcher));
DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform; DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
DisplayObject.prototype.displayObjectHitTestPoint = DisplayObject.prototype.hitTestPoint; DisplayObject.prototype.displayObjectHitTestPoint = DisplayObject.prototype.hitTestPoint;
//# sourceMappingURL=DisplayObject.js.map
var GDispatcher = (function () { var GDispatcher = (function () {
function GDispatcher() { function GDispatcher() {
...@@ -1611,7 +1637,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -1611,7 +1637,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
GDispatcher.thisObjPool = {}; GDispatcher.thisObjPool = {};
return GDispatcher; return GDispatcher;
}()); }());
//# sourceMappingURL=GDispatcher.js.map
var MouseEvent = (function (_super) { var MouseEvent = (function (_super) {
tslib_1.__extends(MouseEvent, _super); tslib_1.__extends(MouseEvent, _super);
...@@ -1644,7 +1669,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -1644,7 +1669,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
MouseEvent.MOUSE_OUT = "onMouseOut"; MouseEvent.MOUSE_OUT = "onMouseOut";
return MouseEvent; return MouseEvent;
}(Event)); }(Event));
//# sourceMappingURL=MouseEvent.js.map
function applyAutoAdjust(ctor) { function applyAutoAdjust(ctor) {
ctor.prototype.applyAutoAdjust = function () { ctor.prototype.applyAutoAdjust = function () {
...@@ -1774,7 +1798,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -1774,7 +1798,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function t(v) { function t(v) {
return !isNaN(v) && v !== null && v !== undefined; return !isNaN(v) && v !== null && v !== undefined;
} }
//# sourceMappingURL=auto-adjust.js.map
var ESCAPE_REG_EXP = /\$\{[\u4e00-\u9fa5_a-zA-Z0-9\|]+\}/g; var ESCAPE_REG_EXP = /\$\{[\u4e00-\u9fa5_a-zA-Z0-9\|]+\}/g;
var linkedFlag = '$_linked_$'; var linkedFlag = '$_linked_$';
...@@ -2029,7 +2052,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2029,7 +2052,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
} }
} }
//# sourceMappingURL=utils.js.map
function transPoint(str, sep) { function transPoint(str, sep) {
if (sep === void 0) { sep = ','; } if (sep === void 0) { sep = ','; }
...@@ -2041,7 +2063,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2041,7 +2063,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
} }
} }
//# sourceMappingURL=math.js.map
var rotateLeft = function (lValue, iShiftBits) { var rotateLeft = function (lValue, iShiftBits) {
return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
...@@ -2233,7 +2254,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2233,7 +2254,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d); var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
return tempValue.toLowerCase(); return tempValue.toLowerCase();
} }
//# sourceMappingURL=md5.js.map
var ObjectPool = (function () { var ObjectPool = (function () {
function ObjectPool() { function ObjectPool() {
...@@ -2297,7 +2317,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2297,7 +2317,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
ObjectPool.pools = {}; ObjectPool.pools = {};
return ObjectPool; return ObjectPool;
}()); }());
//# sourceMappingURL=ObjectPool.js.map
var scriptDefs = {}; var scriptDefs = {};
function applyScript(ctor) { function applyScript(ctor) {
...@@ -2440,7 +2459,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2440,7 +2459,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return ScriptsProxy; return ScriptsProxy;
}()); }());
//# sourceMappingURL=scripts.js.map
var DataCenter = (function (_super) { var DataCenter = (function (_super) {
tslib_1.__extends(DataCenter, _super); tslib_1.__extends(DataCenter, _super);
...@@ -2569,7 +2587,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2569,7 +2587,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return DataCenter; return DataCenter;
}(EventDispatcher)); }(EventDispatcher));
var dataCenter = new DataCenter(); var dataCenter = new DataCenter();
//# sourceMappingURL=data-center.js.map
var env = {}; var env = {};
function injectEnv(data) { function injectEnv(data) {
...@@ -2580,7 +2597,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2580,7 +2597,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
} }
} }
//# sourceMappingURL=enviroment.js.map
var storeKey = 'zlog-switch'; var storeKey = 'zlog-switch';
(function (Logs) { (function (Logs) {
...@@ -2598,7 +2614,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2598,7 +2614,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getLogSwitch(id) { function getLogSwitch(id) {
return typeof store === 'object' ? store[id] : !!store; return typeof store === 'object' ? store[id] : !!store;
} }
//# sourceMappingURL=log-switch.js.map
var logConfig = getLogSwitch(exports.Logs.PROCESS); var logConfig = getLogSwitch(exports.Logs.PROCESS);
function logProcess(meta, vm, process) { function logProcess(meta, vm, process) {
...@@ -2896,7 +2911,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2896,7 +2911,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function warpAsyncScript(source) { 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});"; 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 ID_INK = 0;
var VM = (function () { var VM = (function () {
...@@ -2959,7 +2973,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -2959,7 +2973,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
return VM; return VM;
}()); }());
//# sourceMappingURL=VM.js.map
var log = getLogSwitch(exports.Logs.PROCESS); var log = getLogSwitch(exports.Logs.PROCESS);
var processMetaLibs = []; var processMetaLibs = [];
...@@ -3002,7 +3015,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3002,7 +3015,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
console.log("[" + vm.id + "] terminate:", e); console.log("[" + vm.id + "] terminate:", e);
}); });
} }
//# sourceMappingURL=index.js.map
var _a; var _a;
var eventsMapping = (_a = {}, var eventsMapping = (_a = {},
...@@ -3101,7 +3113,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3101,7 +3113,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return EventsProxy; return EventsProxy;
}(HashObject)); }(HashObject));
//# sourceMappingURL=events.js.map
function afterConstructor(ctor) { function afterConstructor(ctor) {
ctor.prototype.afterConstructor = function () { ctor.prototype.afterConstructor = function () {
...@@ -3110,7 +3121,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3110,7 +3121,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
this.applyEvents(); this.applyEvents();
}; };
} }
//# sourceMappingURL=after-constructor.js.map
var Container = (function (_super) { var Container = (function (_super) {
tslib_1.__extends(Container, _super); tslib_1.__extends(Container, _super);
...@@ -3140,11 +3150,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3140,11 +3150,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
Container.prototype.attachVisibility = function () { Container.prototype.attachVisibility = function () {
return; return;
this.dispatchEvent(this.worldVisible ? Event.VISIBLE : Event.HIDDEN);
for (var i = 0, li = this.children.length; i < li; i++) {
var child = this.children[i];
child.attachVisibility();
}
}; };
Container.prototype.addChild = function (child) { Container.prototype.addChild = function (child) {
this.addChildAt(child, this.children.length); this.addChildAt(child, this.children.length);
...@@ -3552,12 +3557,18 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3552,12 +3557,18 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
Object.defineProperty(Container.prototype, "width", { Object.defineProperty(Container.prototype, "width", {
get: function () { get: function () {
return this._width || this.scale.x * this.getLocalBounds().width; var value = this._width;
return !value && value != 0 ? this.scale.x * this.getLocalBounds().width : value;
}, },
set: function (value) { set: function (value) {
if (this._width !== value) { if (this._width !== value) {
this._width = value; if (!value && value != 0) {
this._localBoundsSelf.width = value; this._width = undefined;
}
else {
this._width = value;
this._localBoundsSelf.width = value;
}
this.dispatchEvent(Event.RESIZE); this.dispatchEvent(Event.RESIZE);
} }
}, },
...@@ -3566,12 +3577,18 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3566,12 +3577,18 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
Object.defineProperty(Container.prototype, "height", { Object.defineProperty(Container.prototype, "height", {
get: function () { get: function () {
return this._height || this.scale.y * this.getLocalBounds().height; var value = this._height;
return !value && value != 0 ? this.scale.y * this.getLocalBounds().height : value;
}, },
set: function (value) { set: function (value) {
if (this._height !== value) { if (!value && value != 0) {
this._height = value; this._height = undefined;
this._localBoundsSelf.height = value; }
else {
if (this._height !== value) {
this._height = value;
this._localBoundsSelf.height = value;
}
this.dispatchEvent(Event.RESIZE); this.dispatchEvent(Event.RESIZE);
} }
}, },
...@@ -3657,7 +3674,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3657,7 +3674,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return Container; return Container;
}(DisplayObject)); }(DisplayObject));
Container.prototype.containerUpdateTransform = Container.prototype.updateTransform; Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
//# sourceMappingURL=Container.js.map
var container; var container;
var el$1; var el$1;
...@@ -3825,7 +3841,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3825,7 +3841,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return FloatDisplay; return FloatDisplay;
}(DisplayObject)); }(DisplayObject));
//# sourceMappingURL=FloatDisplay.js.map
var ux = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1]; 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]; var uy = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1];
...@@ -3924,7 +3939,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -3924,7 +3939,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
matrix.append(mat); matrix.append(mat);
}, },
}; };
//# sourceMappingURL=GroupD8.js.map
var INT_BITS = 32; var INT_BITS = 32;
var INT_BITS1 = 32; var INT_BITS1 = 32;
...@@ -4080,7 +4094,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4080,7 +4094,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var t = v | (v - 1); var t = v | (v - 1);
return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1)); return (t + 1) | (((~t & -~t) - 1) >>> (countTrailingZeros(v) + 1));
} }
//# sourceMappingURL=twiddle.js.map
var tempMatrix = new Matrix(); var tempMatrix = new Matrix();
var SystemRenderer = (function (_super) { var SystemRenderer = (function (_super) {
...@@ -4136,7 +4149,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4136,7 +4149,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
return SystemRenderer; return SystemRenderer;
}(EventDispatcher)); }(EventDispatcher));
//# sourceMappingURL=SystemRenderer.js.map
var CanvasGraphicsRenderer = (function () { var CanvasGraphicsRenderer = (function () {
function CanvasGraphicsRenderer(renderer) { function CanvasGraphicsRenderer(renderer) {
...@@ -4370,7 +4382,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4370,7 +4382,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
sum = sum + vector[vector.length - 2] * vector[1] - vector[vector.length - 1] * vector[0]; sum = sum + vector[vector.length - 2] * vector[1] - vector[vector.length - 1] * vector[0];
return !(sum > 0); return !(sum > 0);
} }
//# sourceMappingURL=CanvasGraphicsRenderer.js.map
var CanvasMaskManager = (function (_super) { var CanvasMaskManager = (function (_super) {
tslib_1.__extends(CanvasMaskManager, _super); tslib_1.__extends(CanvasMaskManager, _super);
...@@ -4469,7 +4480,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4469,7 +4480,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return CanvasMaskManager; return CanvasMaskManager;
}(HashObject)); }(HashObject));
//# sourceMappingURL=CanvasMaskManager.js.map
var CanvasRenderTarget = (function () { var CanvasRenderTarget = (function () {
function CanvasRenderTarget(width, height) { function CanvasRenderTarget(width, height) {
...@@ -4511,7 +4521,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4511,7 +4521,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
return CanvasRenderTarget; return CanvasRenderTarget;
}()); }());
//# sourceMappingURL=CanvasRenderTarget.js.map
var canvasRenderWorldTransform = new Matrix(); var canvasRenderWorldTransform = new Matrix();
var CanvasSpriteRenderer = (function () { var CanvasSpriteRenderer = (function () {
...@@ -4567,7 +4576,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4567,7 +4576,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return CanvasSpriteRenderer; return CanvasSpriteRenderer;
}()); }());
//# sourceMappingURL=CanvasSpriteRenderer.js.map
var CanvasRenderer = (function (_super) { var CanvasRenderer = (function (_super) {
tslib_1.__extends(CanvasRenderer, _super); tslib_1.__extends(CanvasRenderer, _super);
...@@ -4685,7 +4693,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4685,7 +4693,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return CanvasRenderer; return CanvasRenderer;
}(SystemRenderer)); }(SystemRenderer));
//# sourceMappingURL=CanvasRenderer.js.map
var _dRender = null; var _dRender = null;
var tempMatrix$1 = new Matrix(); var tempMatrix$1 = new Matrix();
...@@ -4726,16 +4733,13 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4726,16 +4733,13 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
_dRender.render(obj, null, tempMatrix$1); _dRender.render(obj, null, tempMatrix$1);
return _dRender.htmlElement.toDataURL("image/" + typeInfo.type, typeInfo.quality); return _dRender.htmlElement.toDataURL("image/" + typeInfo.type, typeInfo.quality);
} }
//# sourceMappingURL=toDisplayDataURL.js.map
function determineCrossOrigin(url, loc) { function determineCrossOrigin(url, loc) {
if (loc === void 0) { loc = window.location; }
if (url.indexOf('data:') === 0) { if (url.indexOf('data:') === 0) {
return ''; return '';
} }
return 'anonymous'; return 'anonymous';
} }
//# sourceMappingURL=determineCrossOrigin.js.map
var BaseTexture = (function (_super) { var BaseTexture = (function (_super) {
tslib_1.__extends(BaseTexture, _super); tslib_1.__extends(BaseTexture, _super);
...@@ -4956,7 +4960,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -4956,7 +4960,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return BaseTexture; return BaseTexture;
}(EventDispatcher)); }(EventDispatcher));
//# sourceMappingURL=BaseTexture.js.map
var TextureUvs = (function () { var TextureUvs = (function () {
function TextureUvs() { function TextureUvs() {
...@@ -5017,7 +5020,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5017,7 +5020,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return TextureUvs; return TextureUvs;
}()); }());
//# sourceMappingURL=TextureUvs.js.map
var Texture = (function (_super) { var Texture = (function (_super) {
tslib_1.__extends(Texture, _super); tslib_1.__extends(Texture, _super);
...@@ -5261,7 +5263,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5261,7 +5263,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Texture.WHITE = createWhiteTexture(); Texture.WHITE = createWhiteTexture();
removeAllHandlers(Texture.WHITE); removeAllHandlers(Texture.WHITE);
removeAllHandlers(Texture.WHITE.baseTexture); removeAllHandlers(Texture.WHITE.baseTexture);
//# sourceMappingURL=Texture.js.map
var padding = 2; var padding = 2;
function DrawAllToCanvas(images, callback) { function DrawAllToCanvas(images, callback) {
...@@ -5402,7 +5403,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5402,7 +5403,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return imageInfo; return imageInfo;
}()); }());
//# sourceMappingURL=DrawAllToCanvas.js.map
var nextUid = 0; var nextUid = 0;
function uid() { function uid() {
...@@ -5464,7 +5464,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5464,7 +5464,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return color; return color;
} }
function inputFeildIosEnable() { function inputFeildIosEnable() {
var u = navigator.userAgent, app = navigator.appVersion; var u = navigator.userAgent;
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isIOS) { if (isIOS) {
setTimeout(function () { setTimeout(function () {
...@@ -5618,7 +5618,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5618,7 +5618,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]; array[exports.BLEND_MODES.SCREEN_NPM] = [gl.SRC_ALPHA, gl.ONE_MINUS_SRC_COLOR, gl.ONE, gl.ONE_MINUS_SRC_COLOR];
return array; return array;
} }
//# sourceMappingURL=index.js.map
var indices = new Uint16Array([0, 1, 2, 0, 2, 3]); var indices = new Uint16Array([0, 1, 2, 0, 2, 3]);
var Sprite = (function (_super) { var Sprite = (function (_super) {
...@@ -5628,8 +5627,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5628,8 +5627,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
_this._instanceType = "Sprite"; _this._instanceType = "Sprite";
_this._anchorTexture = new ObservablePoint(_this._onAnchorUpdate, _this, (texture ? texture.defaultAnchor.x : 0), (texture ? texture.defaultAnchor.y : 0)); _this._anchorTexture = new ObservablePoint(_this._onAnchorUpdate, _this, (texture ? texture.defaultAnchor.x : 0), (texture ? texture.defaultAnchor.y : 0));
_this._texture = null; _this._texture = null;
_this._width = 0;
_this._height = 0;
_this._tint = null; _this._tint = null;
_this._tintRGB = null; _this._tintRGB = null;
_this.tint = 0xFFFFFF; _this.tint = 0xFFFFFF;
...@@ -5802,24 +5799,44 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5802,24 +5799,44 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
Object.defineProperty(Sprite.prototype, "width", { Object.defineProperty(Sprite.prototype, "width", {
get: function () { get: function () {
return Math.abs(this.scale.x) * this._texture.orig.width; var value = this._width;
return !value && value != 0 ? Math.abs(this.scale.x) * this._texture.orig.width : value;
}, },
set: function (value) { set: function (value) {
var s = sign(this.scale.x) || 1; if (this._width !== value) {
this.scale.x = s * value / this._texture.orig.width; if (!value && value != 0) {
this._width = value; this.scale.x = 1;
this._width = undefined;
}
else {
var s = sign(this.scale.y) || 1;
this.scale.x = s * value / this._texture.orig.width;
this._width = value;
}
this.dispatchEvent(Event.RESIZE);
}
}, },
enumerable: true, enumerable: true,
configurable: true configurable: true
}); });
Object.defineProperty(Sprite.prototype, "height", { Object.defineProperty(Sprite.prototype, "height", {
get: function () { get: function () {
return Math.abs(this.scale.y) * this._texture.orig.height; var value = this._height;
return !value && value != 0 ? Math.abs(this.scale.y) * this._texture.orig.height : value;
}, },
set: function (value) { set: function (value) {
var s = sign(this.scale.y) || 1; if (this._height !== value) {
this.scale.y = s * value / this._texture.orig.height; if (!value && value != 0) {
this._height = value; this.scale.y = 1;
this._height = undefined;
}
else {
var s = sign(this.scale.y) || 1;
this.scale.y = s * value / this._texture.orig.height;
this._height = value;
}
this.dispatchEvent(Event.RESIZE);
}
}, },
enumerable: true, enumerable: true,
configurable: true configurable: true
...@@ -5888,7 +5905,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5888,7 +5905,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Sprite; return Sprite;
}(Container)); }(Container));
//# sourceMappingURL=Sprite.js.map
var BatchDrawCall = (function () { var BatchDrawCall = (function () {
function BatchDrawCall() { function BatchDrawCall() {
...@@ -5900,7 +5916,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5900,7 +5916,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return BatchDrawCall; return BatchDrawCall;
}()); }());
//# sourceMappingURL=BatchDrawCall.js.map
var ObjectRenderer = (function () { var ObjectRenderer = (function () {
function ObjectRenderer(renderer) { function ObjectRenderer(renderer) {
...@@ -5925,7 +5940,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5925,7 +5940,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return ObjectRenderer; return ObjectRenderer;
}()); }());
//# sourceMappingURL=ObjectRenderer.js.map
function createContext(canvas, options) { function createContext(canvas, options) {
var gl = canvas.getContext('webgl', options) || var gl = canvas.getContext('webgl', options) ||
...@@ -5935,7 +5949,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5935,7 +5949,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return gl; return gl;
} }
//# sourceMappingURL=createContext.js.map
var fragTemplate = [ var fragTemplate = [
'precision mediump float;', 'precision mediump float;',
...@@ -5987,7 +6000,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -5987,7 +6000,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return src; return src;
} }
//# sourceMappingURL=checkMaxIfStatementsInShader.js.map
var BatchBuffer = (function () { var BatchBuffer = (function () {
function BatchBuffer(size) { function BatchBuffer(size) {
...@@ -6003,7 +6015,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6003,7 +6015,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return BatchBuffer; return BatchBuffer;
}()); }());
//# sourceMappingURL=BatchBuffer.js.map
var GLTexture = (function () { var GLTexture = (function () {
function GLTexture(gl, width, height, format, type) { function GLTexture(gl, width, height, format, type) {
...@@ -6135,7 +6146,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6135,7 +6146,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return GLTexture; return GLTexture;
}()); }());
var FLOATING_POINT_AVAILABLE = false; var FLOATING_POINT_AVAILABLE = false;
//# sourceMappingURL=GLTexture.js.map
var EMPTY_ARRAY_BUFFER = new ArrayBuffer(0); var EMPTY_ARRAY_BUFFER = new ArrayBuffer(0);
var GLBuffer = (function () { var GLBuffer = (function () {
...@@ -6182,7 +6192,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6182,7 +6192,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return GLBuffer; return GLBuffer;
}()); }());
//# sourceMappingURL=GLBuffer.js.map
function setVertexAttribArrays(gl, attribs, state) { function setVertexAttribArrays(gl, attribs, state) {
var i; var i;
...@@ -6213,7 +6222,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6213,7 +6222,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
} }
} }
//# sourceMappingURL=setVertexAttribArrays.js.map
var VertexArrayObject = (function () { var VertexArrayObject = (function () {
function VertexArrayObject(gl, state) { function VertexArrayObject(gl, state) {
...@@ -6331,7 +6339,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6331,7 +6339,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
VertexArrayObject.FORCE_NATIVE = false; VertexArrayObject.FORCE_NATIVE = false;
return VertexArrayObject; return VertexArrayObject;
}()); }());
//# sourceMappingURL=VertexArrayObject.js.map
var GLFramebuffer = (function () { var GLFramebuffer = (function () {
function GLFramebuffer(gl, width, height) { function GLFramebuffer(gl, width, height) {
...@@ -6414,7 +6421,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6414,7 +6421,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return GLFramebuffer; return GLFramebuffer;
}()); }());
//# sourceMappingURL=GLFramebuffer.js.map
function compileProgram(gl, vertexSrc, fragmentSrc, attributeLocations) { function compileProgram(gl, vertexSrc, fragmentSrc, attributeLocations) {
var glVertShader = compileShader(gl, gl.VERTEX_SHADER, vertexSrc); var glVertShader = compileShader(gl, gl.VERTEX_SHADER, vertexSrc);
...@@ -6452,7 +6458,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6452,7 +6458,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return shader; return shader;
}; };
//# sourceMappingURL=compileProgram.js.map
function mapType(gl, type) { function mapType(gl, type) {
if (!GL_TABLE) { if (!GL_TABLE) {
...@@ -6484,7 +6489,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6484,7 +6489,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
'FLOAT_MAT4': 'mat4', 'FLOAT_MAT4': 'mat4',
'SAMPLER_2D': 'sampler2D' 'SAMPLER_2D': 'sampler2D'
}; };
//# sourceMappingURL=mapType.js.map
function mapSize(type) { function mapSize(type) {
return GLSL_TO_SIZE[type]; return GLSL_TO_SIZE[type];
...@@ -6507,7 +6511,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6507,7 +6511,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
'mat4': 16, 'mat4': 16,
'sampler2D': 1 'sampler2D': 1
}; };
//# sourceMappingURL=mapSize.js.map
function extractAttributes(gl, program) { function extractAttributes(gl, program) {
var attributes = {}; var attributes = {};
...@@ -6530,7 +6533,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6530,7 +6533,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return attributes; return attributes;
} }
//# sourceMappingURL=extractAttributes.js.map
function defaultValue(type, size) { function defaultValue(type, size) {
switch (type) { switch (type) {
...@@ -6580,7 +6582,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6580,7 +6582,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return array; return array;
}; };
//# sourceMappingURL=defaultValue.js.map
function extractUniforms(gl, program) { function extractUniforms(gl, program) {
var uniforms = {}; var uniforms = {};
...@@ -6598,7 +6599,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6598,7 +6599,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return uniforms; return uniforms;
} }
//# sourceMappingURL=extractUniforms.js.map
function setPrecision(src, precision) { function setPrecision(src, precision) {
if (src.substring(0, 9) !== 'precision') { if (src.substring(0, 9) !== 'precision') {
...@@ -6606,7 +6606,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6606,7 +6606,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return src; return src;
} }
//# sourceMappingURL=setPrecision.js.map
function generateUniformAccessObject(gl, uniformData) { function generateUniformAccessObject(gl, uniformData) {
var uniforms = { data: {} }; var uniforms = { data: {} };
...@@ -6744,7 +6743,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6744,7 +6743,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return cur; return cur;
} }
//# sourceMappingURL=generateUniformAccessObject.js.map
var GLShader = (function () { var GLShader = (function () {
function GLShader(gl, vertexSrc, fragmentSrc, precision, attributeLocations) { function GLShader(gl, vertexSrc, fragmentSrc, precision, attributeLocations) {
...@@ -6771,7 +6769,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6771,7 +6769,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return GLShader; return GLShader;
}()); }());
//# sourceMappingURL=GLShader.js.map
var VSHADER_SOURCE = "precision highp float;" + var VSHADER_SOURCE = "precision highp float;" +
"attribute vec2 aVertexPosition;" + "attribute vec2 aVertexPosition;" +
...@@ -6833,7 +6830,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -6833,7 +6830,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
src += '\n'; src += '\n';
return src; return src;
} }
//# sourceMappingURL=generateMultiTextureShader.js.map
var TICK = 0; var TICK = 0;
var BatchRenderer = (function (_super) { var BatchRenderer = (function (_super) {
...@@ -7057,7 +7053,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7057,7 +7053,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return BatchRenderer; return BatchRenderer;
}(ObjectRenderer)); }(ObjectRenderer));
//# sourceMappingURL=BatchRenderer.js.map
var RenderTarget = (function () { var RenderTarget = (function () {
function RenderTarget(gl, width, height, scaleMode, root) { function RenderTarget(gl, width, height, scaleMode, root) {
...@@ -7164,7 +7159,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7164,7 +7159,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return RenderTarget; return RenderTarget;
}()); }());
//# sourceMappingURL=RenderTarget.js.map
var TextureManager = (function () { var TextureManager = (function () {
function TextureManager(renderer) { function TextureManager(renderer) {
...@@ -7366,7 +7360,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7366,7 +7360,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return TextureManager; return TextureManager;
}()); }());
//# sourceMappingURL=TextureManager.js.map
var TextureGarbageCollector = (function () { var TextureGarbageCollector = (function () {
function TextureGarbageCollector(renderer) { function TextureGarbageCollector(renderer) {
...@@ -7421,7 +7414,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7421,7 +7414,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return TextureGarbageCollector; return TextureGarbageCollector;
}()); }());
//# sourceMappingURL=TextureGarbageCollector.js.map
var BLEND = 0; var BLEND = 0;
var DEPTH_TEST = 1; var DEPTH_TEST = 1;
...@@ -7524,7 +7516,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7524,7 +7516,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return WebGLState; return WebGLState;
}()); }());
//# sourceMappingURL=WebGLState.js.map
var BatchManager = (function () { var BatchManager = (function () {
function BatchManager(renderer) { function BatchManager(renderer) {
...@@ -7548,7 +7539,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7548,7 +7539,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return BatchManager; return BatchManager;
}()); }());
//# sourceMappingURL=BatchManager.js.map
var MaskManager = (function () { var MaskManager = (function () {
function MaskManager(renderer) { function MaskManager(renderer) {
...@@ -7597,7 +7587,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7597,7 +7587,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return MaskManager; return MaskManager;
}()); }());
//# sourceMappingURL=MaskManager.js.map
var StencilManager = (function () { var StencilManager = (function () {
function StencilManager(renderer) { function StencilManager(renderer) {
...@@ -7670,7 +7659,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7670,7 +7659,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return StencilManager; return StencilManager;
}()); }());
//# sourceMappingURL=StencilManager.js.map
var CONTEXT_UID = 0; var CONTEXT_UID = 0;
var WebglRenderer = (function (_super) { var WebglRenderer = (function (_super) {
...@@ -7883,7 +7871,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -7883,7 +7871,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return WebglRenderer; return WebglRenderer;
}(SystemRenderer)); }(SystemRenderer));
WebglRenderer.registerPlugin('batch', BatchRenderer); WebglRenderer.registerPlugin('batch', BatchRenderer);
//# sourceMappingURL=WebglRenderer.js.map
var requestAnimationFrame = (function () { var requestAnimationFrame = (function () {
var lastTime = 0; var lastTime = 0;
...@@ -8469,7 +8456,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8469,7 +8456,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Stage.allUpdateObjList = []; Stage.allUpdateObjList = [];
return Stage; return Stage;
}(Container)); }(Container));
//# sourceMappingURL=Stage.js.map
var GraphicsData = (function (_super) { var GraphicsData = (function (_super) {
tslib_1.__extends(GraphicsData, _super); tslib_1.__extends(GraphicsData, _super);
...@@ -8502,7 +8488,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8502,7 +8488,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return GraphicsData; return GraphicsData;
}(HashObject)); }(HashObject));
//# sourceMappingURL=GraphicsData.js.map
var BaseRenderTexture = (function (_super) { var BaseRenderTexture = (function (_super) {
tslib_1.__extends(BaseRenderTexture, _super); tslib_1.__extends(BaseRenderTexture, _super);
...@@ -8539,7 +8524,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8539,7 +8524,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return BaseRenderTexture; return BaseRenderTexture;
}(BaseTexture)); }(BaseTexture));
//# sourceMappingURL=BaseRenderTexture.js.map
var RenderTexture = (function (_super) { var RenderTexture = (function (_super) {
tslib_1.__extends(RenderTexture, _super); tslib_1.__extends(RenderTexture, _super);
...@@ -8567,7 +8551,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8567,7 +8551,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return RenderTexture; return RenderTexture;
}(Texture)); }(Texture));
//# sourceMappingURL=RenderTexture.js.map
var Circle = (function () { var Circle = (function () {
function Circle(x, y, radius) { function Circle(x, y, radius) {
...@@ -8598,7 +8581,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8598,7 +8581,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Circle; return Circle;
}()); }());
//# sourceMappingURL=Circle.js.map
var Ellipse = (function () { var Ellipse = (function () {
function Ellipse(x, y, width, height) { function Ellipse(x, y, width, height) {
...@@ -8630,7 +8612,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8630,7 +8612,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Ellipse; return Ellipse;
}()); }());
//# sourceMappingURL=Ellipse.js.map
var Polygon = (function () { var Polygon = (function () {
function Polygon() { function Polygon() {
...@@ -8680,7 +8661,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8680,7 +8661,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Polygon; return Polygon;
}()); }());
//# sourceMappingURL=Polygon.js.map
var RoundedRectangle = (function () { var RoundedRectangle = (function () {
function RoundedRectangle(x, y, width, height, radius) { function RoundedRectangle(x, y, width, height, radius) {
...@@ -8738,7 +8718,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -8738,7 +8718,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return RoundedRectangle; return RoundedRectangle;
}()); }());
//# sourceMappingURL=RoundedRectangle.js.map
function earcut(data, holeIndices, dim) { function earcut(data, holeIndices, dim) {
dim = dim || 2; dim = dim || 2;
...@@ -9200,7 +9179,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9200,7 +9179,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return result; return result;
}; };
//# sourceMappingURL=earcut.js.map
var buildPoly = { var buildPoly = {
build: function (graphicsData) { build: function (graphicsData) {
...@@ -9234,7 +9212,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9234,7 +9212,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
}, },
}; };
//# sourceMappingURL=buildPoly.js.map
var buildCircle = { var buildCircle = {
build: function (graphicsData) { build: function (graphicsData) {
...@@ -9278,7 +9255,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9278,7 +9255,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
}, },
}; };
//# sourceMappingURL=buildCircle.js.map
var buildRectangle = { var buildRectangle = {
build: function (graphicsData) { build: function (graphicsData) {
...@@ -9299,7 +9275,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9299,7 +9275,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
graphics.indices.push(vertPos, vertPos + 1, vertPos + 2, vertPos + 1, vertPos + 2, vertPos + 3); graphics.indices.push(vertPos, vertPos + 1, vertPos + 2, vertPos + 1, vertPos + 2, vertPos + 3);
}, },
}; };
//# sourceMappingURL=buildRectangle.js.map
var buildRoundedRectangle = { var buildRoundedRectangle = {
build: function (graphicsData) { build: function (graphicsData) {
...@@ -9359,7 +9334,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9359,7 +9334,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return points; return points;
} }
//# sourceMappingURL=buildRoundedRectangle.js.map
function buildLine (graphicsData, graphicsGeometry) { function buildLine (graphicsData, graphicsGeometry) {
buildLine$1(graphicsData, graphicsGeometry); buildLine$1(graphicsData, graphicsGeometry);
...@@ -9488,7 +9462,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9488,7 +9462,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
indexStart++; indexStart++;
} }
} }
//# sourceMappingURL=buildLine.js.map
var FillStyle = (function () { var FillStyle = (function () {
function FillStyle() { function FillStyle() {
...@@ -9518,7 +9491,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9518,7 +9491,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return FillStyle; return FillStyle;
}()); }());
//# sourceMappingURL=FillStyle.js.map
var LineStyle = (function (_super) { var LineStyle = (function (_super) {
tslib_1.__extends(LineStyle, _super); tslib_1.__extends(LineStyle, _super);
...@@ -9546,7 +9518,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9546,7 +9518,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return LineStyle; return LineStyle;
}(FillStyle)); }(FillStyle));
//# sourceMappingURL=LineStyle.js.map
function bezierCurveTo(fromX, fromY, cpX, cpY, cpX2, cpY2, toX, toY, n, path) { function bezierCurveTo(fromX, fromY, cpX, cpY, cpX2, cpY2, toX, toY, n, path) {
if (path === void 0) { path = []; } if (path === void 0) { path = []; }
...@@ -9567,7 +9538,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9567,7 +9538,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return path; return path;
} }
//# sourceMappingURL=bezierCurveTo.js.map
var GRAPHICS_CURVES = { var GRAPHICS_CURVES = {
adaptive: false, adaptive: false,
...@@ -9639,7 +9609,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -9639,7 +9609,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return result; return result;
} }
//# sourceMappingURL=index.js.map
var canvasRenderer; var canvasRenderer;
var tempMatrix$2 = new Matrix(); var tempMatrix$2 = new Matrix();
...@@ -10527,7 +10496,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -10527,7 +10496,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return geoBatchPart; return geoBatchPart;
}()); }());
//# sourceMappingURL=Graphics.js.map
var Shape = (function (_super) { var Shape = (function (_super) {
tslib_1.__extends(Shape, _super); tslib_1.__extends(Shape, _super);
...@@ -11001,7 +10969,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11001,7 +10969,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Shape; return Shape;
}(Sprite)); }(Sprite));
//# sourceMappingURL=Shape.js.map
var TextureSheet = (function () { var TextureSheet = (function () {
function TextureSheet(baseTexture, data) { function TextureSheet(baseTexture, data) {
...@@ -11077,12 +11044,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11077,12 +11044,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return TextureSheet; return TextureSheet;
}()); }());
//# sourceMappingURL=TextureSheet.js.map
function getTexture(str) { function getTexture(str) {
return TextureCache[str] || null; return TextureCache[str] || null;
} }
//# sourceMappingURL=index.js.map
var queryParams = {}; var queryParams = {};
var search = window.location.search; var search = window.location.search;
...@@ -11114,7 +11079,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11114,7 +11079,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
scriptEl.innerHTML = scriptContent; scriptEl.innerHTML = scriptContent;
parent.appendChild(scriptEl); parent.appendChild(scriptEl);
} }
//# sourceMappingURL=web.js.map
function httpRequest(url, method, params, type, headers) { function httpRequest(url, method, params, type, headers) {
if (method === void 0) { method = 'get'; } if (method === void 0) { method = 'get'; }
...@@ -11283,7 +11247,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11283,7 +11247,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
}, false); }, false);
} }
//# sourceMappingURL=net.js.map
function createTextureSheet(baseTexture, altaData) { function createTextureSheet(baseTexture, altaData) {
var frames = altaData; var frames = altaData;
...@@ -11309,7 +11272,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11309,7 +11272,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
frameIndex++; frameIndex++;
} }
} }
//# sourceMappingURL=texture-sheet.js.map
var prefix = 'font-'; var prefix = 'font-';
var fonts = {}; var fonts = {};
...@@ -11345,7 +11307,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11345,7 +11307,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getFont(name) { function getFont(name) {
return fonts[name]; return fonts[name];
} }
//# sourceMappingURL=bmp-text-manager.js.map
var assetsConfig = []; var assetsConfig = [];
var loaderMapping = { var loaderMapping = {
...@@ -11437,7 +11398,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -11437,7 +11398,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 : {}; var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
...@@ -14653,7 +14613,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -14653,7 +14613,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
keep: true, keep: true,
}; };
} }
//# sourceMappingURL=sound.js.map
var Loader = (function (_super) { var Loader = (function (_super) {
tslib_1.__extends(Loader, _super); tslib_1.__extends(Loader, _super);
...@@ -14733,14 +14692,15 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -14733,14 +14692,15 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Loader.prototype.cache = function (name, data) { Loader.prototype.cache = function (name, data) {
if (this.caches[name]) ; if (this.caches[name]) ;
this.caches[name] = data; this.caches[name] = data;
console.log(this.caches);
}; };
Loader.prototype.get = function (name) { Loader.prototype.get = function (name) {
console.log(this.caches);
return this.caches[name]; return this.caches[name];
}; };
return Loader; return Loader;
}(EventDispatcher)); }(EventDispatcher));
var globalLoader = new Loader(); var globalLoader = new Loader();
//# sourceMappingURL=Loader.js.map
var padding$1 = 10; var padding$1 = 10;
var styleFields = { var styleFields = {
...@@ -14824,14 +14784,22 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -14824,14 +14784,22 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
Object.defineProperty(TextField.prototype, "width", { Object.defineProperty(TextField.prototype, "width", {
get: function () { get: function () {
if (this._width) if (!this._width && this._width != 0) {
this.updateText();
return this.scale.x * this.getLocalBounds().width;
}
else {
return this._width; return this._width;
this.updateText(); }
return this.scale.x * this.getLocalBounds().width;
}, },
set: function (value) { set: function (value) {
if (this._width !== value) { if (this._width !== value) {
this._width = value; if (!value && value != 0) {
this._width = undefined;
}
else {
this._width = value;
}
this.dirty = true; this.dirty = true;
this.dispatchEvent(Event.RESIZE); this.dispatchEvent(Event.RESIZE);
} }
...@@ -14841,14 +14809,22 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -14841,14 +14809,22 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
Object.defineProperty(TextField.prototype, "height", { Object.defineProperty(TextField.prototype, "height", {
get: function () { get: function () {
if (this._height) if (!this._height && this._height != 0) {
this.updateText();
return this.scale.y * this.getLocalBounds().height;
}
else {
return this._height; return this._height;
this.updateText(); }
return this.scale.y * this.getLocalBounds().height;
}, },
set: function (value) { set: function (value) {
if (this._height !== value) { if (this._height !== value) {
this._height = value; if (!value && value != 0) {
this._height = undefined;
}
else {
this._height = value;
}
this.dirty = true; this.dirty = true;
this.dispatchEvent(Event.RESIZE); this.dispatchEvent(Event.RESIZE);
} }
...@@ -15135,7 +15111,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15135,7 +15111,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var lineHeights = []; var lineHeights = [];
s.realLines = realLines; s.realLines = realLines;
s._prepContext(ctx); s._prepContext(ctx);
var textWidth = s._width; var textWidth = !s._width && s._width != 0 ? 0 : s._width;
if (isPureText && text.indexOf("\n") < 0 && s.lineType == exports.TEXT_lINETYPE.SINGLE) { if (isPureText && text.indexOf("\n") < 0 && s.lineType == exports.TEXT_lINETYPE.SINGLE) {
realLines[realLines.length] = hardLines[0]; realLines[realLines.length] = hardLines[0];
var str = hardLines[0]; var str = hardLines[0];
...@@ -15160,7 +15136,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15160,7 +15136,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
} }
else { else {
var shouldMeasureTextWidth = !textWidth; var shouldMeasureTextWidth = !s._width && s._width != 0 ? true : false;
var index_1 = 0; var index_1 = 0;
for (var i = 0, l = hardLines.length; i < l; i++) { for (var i = 0, l = hardLines.length; i < l; i++) {
var str = hardLines[i]; var str = hardLines[i];
...@@ -15360,7 +15336,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15360,7 +15336,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return TextField; return TextField;
}(Sprite)); }(Sprite));
//# sourceMappingURL=TextField.js.map
var InputText = (function (_super) { var InputText = (function (_super) {
tslib_1.__extends(InputText, _super); tslib_1.__extends(InputText, _super);
...@@ -15558,7 +15533,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15558,7 +15533,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
InputText._inputTypeList = ["input", "password", "textarea"]; InputText._inputTypeList = ["input", "password", "textarea"];
return InputText; return InputText;
}(FloatDisplay)); }(FloatDisplay));
//# sourceMappingURL=InputText.js.map
var EditableText = (function (_super) { var EditableText = (function (_super) {
tslib_1.__extends(EditableText, _super); tslib_1.__extends(EditableText, _super);
...@@ -15660,7 +15634,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15660,7 +15634,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
return EditableText; return EditableText;
}(TextField)); }(TextField));
//# sourceMappingURL=EditableText.js.map
var ScrollViewBase = (function (_super) { var ScrollViewBase = (function (_super) {
tslib_1.__extends(ScrollViewBase, _super); tslib_1.__extends(ScrollViewBase, _super);
...@@ -15917,7 +15890,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15917,7 +15890,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return ScrollViewBase; return ScrollViewBase;
}(Container)); }(Container));
//# sourceMappingURL=ScrollViewBase.js.map
function fieldChanged(onModify) { function fieldChanged(onModify) {
return function (target, key) { return function (target, key) {
...@@ -15960,7 +15932,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15960,7 +15932,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
} }
}); });
//# sourceMappingURL=decorators.js.map
var ScrollListItemBase = (function (_super) { var ScrollListItemBase = (function (_super) {
tslib_1.__extends(ScrollListItemBase, _super); tslib_1.__extends(ScrollListItemBase, _super);
...@@ -16159,7 +16130,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -16159,7 +16130,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], ScrollListBase.prototype, "itemClass", void 0); ], ScrollListBase.prototype, "itemClass", void 0);
return ScrollListBase; return ScrollListBase;
}(ScrollViewBase)); }(ScrollViewBase));
//# sourceMappingURL=ScrollListBase.js.map
var Tween = (function () { var Tween = (function () {
function Tween(target, props, pluginData) { function Tween(target, props, pluginData) {
...@@ -16565,7 +16535,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -16565,7 +16535,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Tween._lastTime = 0; Tween._lastTime = 0;
return Tween; return Tween;
}()); }());
//# sourceMappingURL=Tween.js.map
var Ease = (function () { var Ease = (function () {
function Ease() { function Ease() {
...@@ -16712,7 +16681,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -16712,7 +16681,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Ease.elasticInOut = Ease.getElasticInOut(1, 0.3 * 1.5); Ease.elasticInOut = Ease.getElasticInOut(1, 0.3 * 1.5);
return Ease; return Ease;
}()); }());
//# sourceMappingURL=Ease.js.map
var Node$1 = (function (_super) { var Node$1 = (function (_super) {
tslib_1.__extends(Node, _super); tslib_1.__extends(Node, _super);
...@@ -16723,7 +16691,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -16723,7 +16691,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return Node; return Node;
}(Container)); }(Container));
//# sourceMappingURL=Node.js.map
var StackContainer = (function (_super) { var StackContainer = (function (_super) {
tslib_1.__extends(StackContainer, _super); tslib_1.__extends(StackContainer, _super);
...@@ -16780,157 +16747,156 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -16780,157 +16747,156 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return StackContainer; return StackContainer;
}(Node$1)); }(Node$1));
//# sourceMappingURL=StackContainer.js.map
var colorName = {
var colorName = { "aliceblue": [240, 248, 255],
"aliceblue": [240, 248, 255], "antiquewhite": [250, 235, 215],
"antiquewhite": [250, 235, 215], "aqua": [0, 255, 255],
"aqua": [0, 255, 255], "aquamarine": [127, 255, 212],
"aquamarine": [127, 255, 212], "azure": [240, 255, 255],
"azure": [240, 255, 255], "beige": [245, 245, 220],
"beige": [245, 245, 220], "bisque": [255, 228, 196],
"bisque": [255, 228, 196], "black": [0, 0, 0],
"black": [0, 0, 0], "blanchedalmond": [255, 235, 205],
"blanchedalmond": [255, 235, 205], "blue": [0, 0, 255],
"blue": [0, 0, 255], "blueviolet": [138, 43, 226],
"blueviolet": [138, 43, 226], "brown": [165, 42, 42],
"brown": [165, 42, 42], "burlywood": [222, 184, 135],
"burlywood": [222, 184, 135], "cadetblue": [95, 158, 160],
"cadetblue": [95, 158, 160], "chartreuse": [127, 255, 0],
"chartreuse": [127, 255, 0], "chocolate": [210, 105, 30],
"chocolate": [210, 105, 30], "coral": [255, 127, 80],
"coral": [255, 127, 80], "cornflowerblue": [100, 149, 237],
"cornflowerblue": [100, 149, 237], "cornsilk": [255, 248, 220],
"cornsilk": [255, 248, 220], "crimson": [220, 20, 60],
"crimson": [220, 20, 60], "cyan": [0, 255, 255],
"cyan": [0, 255, 255], "darkblue": [0, 0, 139],
"darkblue": [0, 0, 139], "darkcyan": [0, 139, 139],
"darkcyan": [0, 139, 139], "darkgoldenrod": [184, 134, 11],
"darkgoldenrod": [184, 134, 11], "darkgray": [169, 169, 169],
"darkgray": [169, 169, 169], "darkgreen": [0, 100, 0],
"darkgreen": [0, 100, 0], "darkgrey": [169, 169, 169],
"darkgrey": [169, 169, 169], "darkkhaki": [189, 183, 107],
"darkkhaki": [189, 183, 107], "darkmagenta": [139, 0, 139],
"darkmagenta": [139, 0, 139], "darkolivegreen": [85, 107, 47],
"darkolivegreen": [85, 107, 47], "darkorange": [255, 140, 0],
"darkorange": [255, 140, 0], "darkorchid": [153, 50, 204],
"darkorchid": [153, 50, 204], "darkred": [139, 0, 0],
"darkred": [139, 0, 0], "darksalmon": [233, 150, 122],
"darksalmon": [233, 150, 122], "darkseagreen": [143, 188, 143],
"darkseagreen": [143, 188, 143], "darkslateblue": [72, 61, 139],
"darkslateblue": [72, 61, 139], "darkslategray": [47, 79, 79],
"darkslategray": [47, 79, 79], "darkslategrey": [47, 79, 79],
"darkslategrey": [47, 79, 79], "darkturquoise": [0, 206, 209],
"darkturquoise": [0, 206, 209], "darkviolet": [148, 0, 211],
"darkviolet": [148, 0, 211], "deeppink": [255, 20, 147],
"deeppink": [255, 20, 147], "deepskyblue": [0, 191, 255],
"deepskyblue": [0, 191, 255], "dimgray": [105, 105, 105],
"dimgray": [105, 105, 105], "dimgrey": [105, 105, 105],
"dimgrey": [105, 105, 105], "dodgerblue": [30, 144, 255],
"dodgerblue": [30, 144, 255], "firebrick": [178, 34, 34],
"firebrick": [178, 34, 34], "floralwhite": [255, 250, 240],
"floralwhite": [255, 250, 240], "forestgreen": [34, 139, 34],
"forestgreen": [34, 139, 34], "fuchsia": [255, 0, 255],
"fuchsia": [255, 0, 255], "gainsboro": [220, 220, 220],
"gainsboro": [220, 220, 220], "ghostwhite": [248, 248, 255],
"ghostwhite": [248, 248, 255], "gold": [255, 215, 0],
"gold": [255, 215, 0], "goldenrod": [218, 165, 32],
"goldenrod": [218, 165, 32], "gray": [128, 128, 128],
"gray": [128, 128, 128], "green": [0, 128, 0],
"green": [0, 128, 0], "greenyellow": [173, 255, 47],
"greenyellow": [173, 255, 47], "grey": [128, 128, 128],
"grey": [128, 128, 128], "honeydew": [240, 255, 240],
"honeydew": [240, 255, 240], "hotpink": [255, 105, 180],
"hotpink": [255, 105, 180], "indianred": [205, 92, 92],
"indianred": [205, 92, 92], "indigo": [75, 0, 130],
"indigo": [75, 0, 130], "ivory": [255, 255, 240],
"ivory": [255, 255, 240], "khaki": [240, 230, 140],
"khaki": [240, 230, 140], "lavender": [230, 230, 250],
"lavender": [230, 230, 250], "lavenderblush": [255, 240, 245],
"lavenderblush": [255, 240, 245], "lawngreen": [124, 252, 0],
"lawngreen": [124, 252, 0], "lemonchiffon": [255, 250, 205],
"lemonchiffon": [255, 250, 205], "lightblue": [173, 216, 230],
"lightblue": [173, 216, 230], "lightcoral": [240, 128, 128],
"lightcoral": [240, 128, 128], "lightcyan": [224, 255, 255],
"lightcyan": [224, 255, 255], "lightgoldenrodyellow": [250, 250, 210],
"lightgoldenrodyellow": [250, 250, 210], "lightgray": [211, 211, 211],
"lightgray": [211, 211, 211], "lightgreen": [144, 238, 144],
"lightgreen": [144, 238, 144], "lightgrey": [211, 211, 211],
"lightgrey": [211, 211, 211], "lightpink": [255, 182, 193],
"lightpink": [255, 182, 193], "lightsalmon": [255, 160, 122],
"lightsalmon": [255, 160, 122], "lightseagreen": [32, 178, 170],
"lightseagreen": [32, 178, 170], "lightskyblue": [135, 206, 250],
"lightskyblue": [135, 206, 250], "lightslategray": [119, 136, 153],
"lightslategray": [119, 136, 153], "lightslategrey": [119, 136, 153],
"lightslategrey": [119, 136, 153], "lightsteelblue": [176, 196, 222],
"lightsteelblue": [176, 196, 222], "lightyellow": [255, 255, 224],
"lightyellow": [255, 255, 224], "lime": [0, 255, 0],
"lime": [0, 255, 0], "limegreen": [50, 205, 50],
"limegreen": [50, 205, 50], "linen": [250, 240, 230],
"linen": [250, 240, 230], "magenta": [255, 0, 255],
"magenta": [255, 0, 255], "maroon": [128, 0, 0],
"maroon": [128, 0, 0], "mediumaquamarine": [102, 205, 170],
"mediumaquamarine": [102, 205, 170], "mediumblue": [0, 0, 205],
"mediumblue": [0, 0, 205], "mediumorchid": [186, 85, 211],
"mediumorchid": [186, 85, 211], "mediumpurple": [147, 112, 219],
"mediumpurple": [147, 112, 219], "mediumseagreen": [60, 179, 113],
"mediumseagreen": [60, 179, 113], "mediumslateblue": [123, 104, 238],
"mediumslateblue": [123, 104, 238], "mediumspringgreen": [0, 250, 154],
"mediumspringgreen": [0, 250, 154], "mediumturquoise": [72, 209, 204],
"mediumturquoise": [72, 209, 204], "mediumvioletred": [199, 21, 133],
"mediumvioletred": [199, 21, 133], "midnightblue": [25, 25, 112],
"midnightblue": [25, 25, 112], "mintcream": [245, 255, 250],
"mintcream": [245, 255, 250], "mistyrose": [255, 228, 225],
"mistyrose": [255, 228, 225], "moccasin": [255, 228, 181],
"moccasin": [255, 228, 181], "navajowhite": [255, 222, 173],
"navajowhite": [255, 222, 173], "navy": [0, 0, 128],
"navy": [0, 0, 128], "oldlace": [253, 245, 230],
"oldlace": [253, 245, 230], "olive": [128, 128, 0],
"olive": [128, 128, 0], "olivedrab": [107, 142, 35],
"olivedrab": [107, 142, 35], "orange": [255, 165, 0],
"orange": [255, 165, 0], "orangered": [255, 69, 0],
"orangered": [255, 69, 0], "orchid": [218, 112, 214],
"orchid": [218, 112, 214], "palegoldenrod": [238, 232, 170],
"palegoldenrod": [238, 232, 170], "palegreen": [152, 251, 152],
"palegreen": [152, 251, 152], "paleturquoise": [175, 238, 238],
"paleturquoise": [175, 238, 238], "palevioletred": [219, 112, 147],
"palevioletred": [219, 112, 147], "papayawhip": [255, 239, 213],
"papayawhip": [255, 239, 213], "peachpuff": [255, 218, 185],
"peachpuff": [255, 218, 185], "peru": [205, 133, 63],
"peru": [205, 133, 63], "pink": [255, 192, 203],
"pink": [255, 192, 203], "plum": [221, 160, 221],
"plum": [221, 160, 221], "powderblue": [176, 224, 230],
"powderblue": [176, 224, 230], "purple": [128, 0, 128],
"purple": [128, 0, 128], "rebeccapurple": [102, 51, 153],
"rebeccapurple": [102, 51, 153], "red": [255, 0, 0],
"red": [255, 0, 0], "rosybrown": [188, 143, 143],
"rosybrown": [188, 143, 143], "royalblue": [65, 105, 225],
"royalblue": [65, 105, 225], "saddlebrown": [139, 69, 19],
"saddlebrown": [139, 69, 19], "salmon": [250, 128, 114],
"salmon": [250, 128, 114], "sandybrown": [244, 164, 96],
"sandybrown": [244, 164, 96], "seagreen": [46, 139, 87],
"seagreen": [46, 139, 87], "seashell": [255, 245, 238],
"seashell": [255, 245, 238], "sienna": [160, 82, 45],
"sienna": [160, 82, 45], "silver": [192, 192, 192],
"silver": [192, 192, 192], "skyblue": [135, 206, 235],
"skyblue": [135, 206, 235], "slateblue": [106, 90, 205],
"slateblue": [106, 90, 205], "slategray": [112, 128, 144],
"slategray": [112, 128, 144], "slategrey": [112, 128, 144],
"slategrey": [112, 128, 144], "snow": [255, 250, 250],
"snow": [255, 250, 250], "springgreen": [0, 255, 127],
"springgreen": [0, 255, 127], "steelblue": [70, 130, 180],
"steelblue": [70, 130, 180], "tan": [210, 180, 140],
"tan": [210, 180, 140], "teal": [0, 128, 128],
"teal": [0, 128, 128], "thistle": [216, 191, 216],
"thistle": [216, 191, 216], "tomato": [255, 99, 71],
"tomato": [255, 99, 71], "turquoise": [64, 224, 208],
"turquoise": [64, 224, 208], "violet": [238, 130, 238],
"violet": [238, 130, 238], "wheat": [245, 222, 179],
"wheat": [245, 222, 179], "white": [255, 255, 255],
"white": [255, 255, 255], "whitesmoke": [245, 245, 245],
"whitesmoke": [245, 245, 245], "yellow": [255, 255, 0],
"yellow": [255, 255, 0], "yellowgreen": [154, 205, 50]
"yellowgreen": [154, 205, 50]
}; };
var isArrayish = function isArrayish(obj) { var isArrayish = function isArrayish(obj) {
...@@ -17213,155 +17179,155 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -17213,155 +17179,155 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var colorString_1 = colorString.to; var colorString_1 = colorString.to;
var colorString_2 = colorString.get; var colorString_2 = colorString.get;
var colorName$1 = { var colorName$1 = {
"aliceblue": [240, 248, 255], "aliceblue": [240, 248, 255],
"antiquewhite": [250, 235, 215], "antiquewhite": [250, 235, 215],
"aqua": [0, 255, 255], "aqua": [0, 255, 255],
"aquamarine": [127, 255, 212], "aquamarine": [127, 255, 212],
"azure": [240, 255, 255], "azure": [240, 255, 255],
"beige": [245, 245, 220], "beige": [245, 245, 220],
"bisque": [255, 228, 196], "bisque": [255, 228, 196],
"black": [0, 0, 0], "black": [0, 0, 0],
"blanchedalmond": [255, 235, 205], "blanchedalmond": [255, 235, 205],
"blue": [0, 0, 255], "blue": [0, 0, 255],
"blueviolet": [138, 43, 226], "blueviolet": [138, 43, 226],
"brown": [165, 42, 42], "brown": [165, 42, 42],
"burlywood": [222, 184, 135], "burlywood": [222, 184, 135],
"cadetblue": [95, 158, 160], "cadetblue": [95, 158, 160],
"chartreuse": [127, 255, 0], "chartreuse": [127, 255, 0],
"chocolate": [210, 105, 30], "chocolate": [210, 105, 30],
"coral": [255, 127, 80], "coral": [255, 127, 80],
"cornflowerblue": [100, 149, 237], "cornflowerblue": [100, 149, 237],
"cornsilk": [255, 248, 220], "cornsilk": [255, 248, 220],
"crimson": [220, 20, 60], "crimson": [220, 20, 60],
"cyan": [0, 255, 255], "cyan": [0, 255, 255],
"darkblue": [0, 0, 139], "darkblue": [0, 0, 139],
"darkcyan": [0, 139, 139], "darkcyan": [0, 139, 139],
"darkgoldenrod": [184, 134, 11], "darkgoldenrod": [184, 134, 11],
"darkgray": [169, 169, 169], "darkgray": [169, 169, 169],
"darkgreen": [0, 100, 0], "darkgreen": [0, 100, 0],
"darkgrey": [169, 169, 169], "darkgrey": [169, 169, 169],
"darkkhaki": [189, 183, 107], "darkkhaki": [189, 183, 107],
"darkmagenta": [139, 0, 139], "darkmagenta": [139, 0, 139],
"darkolivegreen": [85, 107, 47], "darkolivegreen": [85, 107, 47],
"darkorange": [255, 140, 0], "darkorange": [255, 140, 0],
"darkorchid": [153, 50, 204], "darkorchid": [153, 50, 204],
"darkred": [139, 0, 0], "darkred": [139, 0, 0],
"darksalmon": [233, 150, 122], "darksalmon": [233, 150, 122],
"darkseagreen": [143, 188, 143], "darkseagreen": [143, 188, 143],
"darkslateblue": [72, 61, 139], "darkslateblue": [72, 61, 139],
"darkslategray": [47, 79, 79], "darkslategray": [47, 79, 79],
"darkslategrey": [47, 79, 79], "darkslategrey": [47, 79, 79],
"darkturquoise": [0, 206, 209], "darkturquoise": [0, 206, 209],
"darkviolet": [148, 0, 211], "darkviolet": [148, 0, 211],
"deeppink": [255, 20, 147], "deeppink": [255, 20, 147],
"deepskyblue": [0, 191, 255], "deepskyblue": [0, 191, 255],
"dimgray": [105, 105, 105], "dimgray": [105, 105, 105],
"dimgrey": [105, 105, 105], "dimgrey": [105, 105, 105],
"dodgerblue": [30, 144, 255], "dodgerblue": [30, 144, 255],
"firebrick": [178, 34, 34], "firebrick": [178, 34, 34],
"floralwhite": [255, 250, 240], "floralwhite": [255, 250, 240],
"forestgreen": [34, 139, 34], "forestgreen": [34, 139, 34],
"fuchsia": [255, 0, 255], "fuchsia": [255, 0, 255],
"gainsboro": [220, 220, 220], "gainsboro": [220, 220, 220],
"ghostwhite": [248, 248, 255], "ghostwhite": [248, 248, 255],
"gold": [255, 215, 0], "gold": [255, 215, 0],
"goldenrod": [218, 165, 32], "goldenrod": [218, 165, 32],
"gray": [128, 128, 128], "gray": [128, 128, 128],
"green": [0, 128, 0], "green": [0, 128, 0],
"greenyellow": [173, 255, 47], "greenyellow": [173, 255, 47],
"grey": [128, 128, 128], "grey": [128, 128, 128],
"honeydew": [240, 255, 240], "honeydew": [240, 255, 240],
"hotpink": [255, 105, 180], "hotpink": [255, 105, 180],
"indianred": [205, 92, 92], "indianred": [205, 92, 92],
"indigo": [75, 0, 130], "indigo": [75, 0, 130],
"ivory": [255, 255, 240], "ivory": [255, 255, 240],
"khaki": [240, 230, 140], "khaki": [240, 230, 140],
"lavender": [230, 230, 250], "lavender": [230, 230, 250],
"lavenderblush": [255, 240, 245], "lavenderblush": [255, 240, 245],
"lawngreen": [124, 252, 0], "lawngreen": [124, 252, 0],
"lemonchiffon": [255, 250, 205], "lemonchiffon": [255, 250, 205],
"lightblue": [173, 216, 230], "lightblue": [173, 216, 230],
"lightcoral": [240, 128, 128], "lightcoral": [240, 128, 128],
"lightcyan": [224, 255, 255], "lightcyan": [224, 255, 255],
"lightgoldenrodyellow": [250, 250, 210], "lightgoldenrodyellow": [250, 250, 210],
"lightgray": [211, 211, 211], "lightgray": [211, 211, 211],
"lightgreen": [144, 238, 144], "lightgreen": [144, 238, 144],
"lightgrey": [211, 211, 211], "lightgrey": [211, 211, 211],
"lightpink": [255, 182, 193], "lightpink": [255, 182, 193],
"lightsalmon": [255, 160, 122], "lightsalmon": [255, 160, 122],
"lightseagreen": [32, 178, 170], "lightseagreen": [32, 178, 170],
"lightskyblue": [135, 206, 250], "lightskyblue": [135, 206, 250],
"lightslategray": [119, 136, 153], "lightslategray": [119, 136, 153],
"lightslategrey": [119, 136, 153], "lightslategrey": [119, 136, 153],
"lightsteelblue": [176, 196, 222], "lightsteelblue": [176, 196, 222],
"lightyellow": [255, 255, 224], "lightyellow": [255, 255, 224],
"lime": [0, 255, 0], "lime": [0, 255, 0],
"limegreen": [50, 205, 50], "limegreen": [50, 205, 50],
"linen": [250, 240, 230], "linen": [250, 240, 230],
"magenta": [255, 0, 255], "magenta": [255, 0, 255],
"maroon": [128, 0, 0], "maroon": [128, 0, 0],
"mediumaquamarine": [102, 205, 170], "mediumaquamarine": [102, 205, 170],
"mediumblue": [0, 0, 205], "mediumblue": [0, 0, 205],
"mediumorchid": [186, 85, 211], "mediumorchid": [186, 85, 211],
"mediumpurple": [147, 112, 219], "mediumpurple": [147, 112, 219],
"mediumseagreen": [60, 179, 113], "mediumseagreen": [60, 179, 113],
"mediumslateblue": [123, 104, 238], "mediumslateblue": [123, 104, 238],
"mediumspringgreen": [0, 250, 154], "mediumspringgreen": [0, 250, 154],
"mediumturquoise": [72, 209, 204], "mediumturquoise": [72, 209, 204],
"mediumvioletred": [199, 21, 133], "mediumvioletred": [199, 21, 133],
"midnightblue": [25, 25, 112], "midnightblue": [25, 25, 112],
"mintcream": [245, 255, 250], "mintcream": [245, 255, 250],
"mistyrose": [255, 228, 225], "mistyrose": [255, 228, 225],
"moccasin": [255, 228, 181], "moccasin": [255, 228, 181],
"navajowhite": [255, 222, 173], "navajowhite": [255, 222, 173],
"navy": [0, 0, 128], "navy": [0, 0, 128],
"oldlace": [253, 245, 230], "oldlace": [253, 245, 230],
"olive": [128, 128, 0], "olive": [128, 128, 0],
"olivedrab": [107, 142, 35], "olivedrab": [107, 142, 35],
"orange": [255, 165, 0], "orange": [255, 165, 0],
"orangered": [255, 69, 0], "orangered": [255, 69, 0],
"orchid": [218, 112, 214], "orchid": [218, 112, 214],
"palegoldenrod": [238, 232, 170], "palegoldenrod": [238, 232, 170],
"palegreen": [152, 251, 152], "palegreen": [152, 251, 152],
"paleturquoise": [175, 238, 238], "paleturquoise": [175, 238, 238],
"palevioletred": [219, 112, 147], "palevioletred": [219, 112, 147],
"papayawhip": [255, 239, 213], "papayawhip": [255, 239, 213],
"peachpuff": [255, 218, 185], "peachpuff": [255, 218, 185],
"peru": [205, 133, 63], "peru": [205, 133, 63],
"pink": [255, 192, 203], "pink": [255, 192, 203],
"plum": [221, 160, 221], "plum": [221, 160, 221],
"powderblue": [176, 224, 230], "powderblue": [176, 224, 230],
"purple": [128, 0, 128], "purple": [128, 0, 128],
"rebeccapurple": [102, 51, 153], "rebeccapurple": [102, 51, 153],
"red": [255, 0, 0], "red": [255, 0, 0],
"rosybrown": [188, 143, 143], "rosybrown": [188, 143, 143],
"royalblue": [65, 105, 225], "royalblue": [65, 105, 225],
"saddlebrown": [139, 69, 19], "saddlebrown": [139, 69, 19],
"salmon": [250, 128, 114], "salmon": [250, 128, 114],
"sandybrown": [244, 164, 96], "sandybrown": [244, 164, 96],
"seagreen": [46, 139, 87], "seagreen": [46, 139, 87],
"seashell": [255, 245, 238], "seashell": [255, 245, 238],
"sienna": [160, 82, 45], "sienna": [160, 82, 45],
"silver": [192, 192, 192], "silver": [192, 192, 192],
"skyblue": [135, 206, 235], "skyblue": [135, 206, 235],
"slateblue": [106, 90, 205], "slateblue": [106, 90, 205],
"slategray": [112, 128, 144], "slategray": [112, 128, 144],
"slategrey": [112, 128, 144], "slategrey": [112, 128, 144],
"snow": [255, 250, 250], "snow": [255, 250, 250],
"springgreen": [0, 255, 127], "springgreen": [0, 255, 127],
"steelblue": [70, 130, 180], "steelblue": [70, 130, 180],
"tan": [210, 180, 140], "tan": [210, 180, 140],
"teal": [0, 128, 128], "teal": [0, 128, 128],
"thistle": [216, 191, 216], "thistle": [216, 191, 216],
"tomato": [255, 99, 71], "tomato": [255, 99, 71],
"turquoise": [64, 224, 208], "turquoise": [64, 224, 208],
"violet": [238, 130, 238], "violet": [238, 130, 238],
"wheat": [245, 222, 179], "wheat": [245, 222, 179],
"white": [255, 255, 255], "white": [255, 255, 255],
"whitesmoke": [245, 245, 245], "whitesmoke": [245, 245, 245],
"yellow": [255, 255, 0], "yellow": [255, 255, 0],
"yellowgreen": [154, 205, 50] "yellowgreen": [154, 205, 50]
}; };
var conversions = createCommonjsModule(function (module) { var conversions = createCommonjsModule(function (module) {
...@@ -18975,7 +18941,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -18975,7 +18941,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Circle; return Circle;
}(ShapeBase)); }(ShapeBase));
//# sourceMappingURL=shapes.js.map
var assetScheme = 'asset://'; var assetScheme = 'asset://';
var Image$1 = (function (_super) { var Image$1 = (function (_super) {
...@@ -19007,6 +18972,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19007,6 +18972,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if (url.indexOf(assetScheme) === 0) { if (url.indexOf(assetScheme) === 0) {
url = url.replace(assetScheme, ''); url = url.replace(assetScheme, '');
if (exports.editorMode) { if (exports.editorMode) {
console.log("assetResolver(url)", exports.assetResolver(url));
url = exports.assetResolver(url); url = exports.assetResolver(url);
} }
} }
...@@ -19068,7 +19034,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19068,7 +19034,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Image; return Image;
}(Sprite)); }(Sprite));
//# sourceMappingURL=Image.js.map
var Label = (function (_super) { var Label = (function (_super) {
tslib_1.__extends(Label, _super); tslib_1.__extends(Label, _super);
...@@ -19145,7 +19110,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19145,7 +19110,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Label; return Label;
}(TextField)); }(TextField));
//# sourceMappingURL=Label.js.map
var timer; var timer;
function delayScrollTop() { function delayScrollTop() {
...@@ -19382,7 +19346,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19382,7 +19346,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], TextInput.prototype, "charRegStr", void 0); ], TextInput.prototype, "charRegStr", void 0);
return TextInput; return TextInput;
}(Label)); }(Label));
//# sourceMappingURL=TextInput.js.map
var proxyMethods = [ var proxyMethods = [
'onChildrenChange', 'onChildrenChange',
...@@ -19410,7 +19373,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19410,7 +19373,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return ScrollView; return ScrollView;
}(ScrollViewBase)); }(ScrollViewBase));
//# sourceMappingURL=ScrollView.js.map
var ScrollListItem = (function (_super) { var ScrollListItem = (function (_super) {
tslib_1.__extends(ScrollListItem, _super); tslib_1.__extends(ScrollListItem, _super);
...@@ -19453,7 +19415,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19453,7 +19415,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return ScrollList; return ScrollList;
}(ScrollListBase)); }(ScrollListBase));
//# sourceMappingURL=ScrollList.js.map
var BitmapText = (function (_super) { var BitmapText = (function (_super) {
tslib_1.__extends(BitmapText, _super); tslib_1.__extends(BitmapText, _super);
...@@ -19550,7 +19511,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19550,7 +19511,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], BitmapText.prototype, "letterSpacing", void 0); ], BitmapText.prototype, "letterSpacing", void 0);
return BitmapText; return BitmapText;
}(Container)); }(Container));
//# sourceMappingURL=BitmapText.js.map
var HtmlView = (function (_super) { var HtmlView = (function (_super) {
tslib_1.__extends(HtmlView, _super); tslib_1.__extends(HtmlView, _super);
...@@ -19591,12 +19551,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19591,12 +19551,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
], HtmlView); ], HtmlView);
return HtmlView; return HtmlView;
}(FloatDisplay)); }(FloatDisplay));
//# sourceMappingURL=HtmlView.js.map
function isUI(obj) { function isUI(obj) {
return obj.isUI; return obj.isUI;
} }
//# sourceMappingURL=IUIComponent.js.map
var nodeTypeMapping = { var nodeTypeMapping = {
node: Node$1, node: Node$1,
...@@ -19649,7 +19607,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19649,7 +19607,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return node; return node;
} }
//# sourceMappingURL=view-interpreter.js.map
var Toast = (function (_super) { var Toast = (function (_super) {
tslib_1.__extends(Toast, _super); tslib_1.__extends(Toast, _super);
...@@ -19743,7 +19700,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19743,7 +19700,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Toast; return Toast;
}(Node$1)); }(Node$1));
//# sourceMappingURL=Toast.js.map
function createEvalFunc(exp) { function createEvalFunc(exp) {
var func; var func;
...@@ -19774,7 +19730,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19774,7 +19730,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function runExp(exp, scope) { function runExp(exp, scope) {
createRunFunc(exp)(scope); createRunFunc(exp)(scope);
} }
//# sourceMappingURL=Utils.js.map
var Watcher = (function () { var Watcher = (function () {
function Watcher(entity, target, exp, scope, callback) { function Watcher(entity, target, exp, scope, callback) {
...@@ -19863,7 +19818,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19863,7 +19818,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Watcher._uid = 0; Watcher._uid = 0;
return Watcher; return Watcher;
}()); }());
//# sourceMappingURL=Watcher.js.map
var Dep = (function () { var Dep = (function () {
function Dep() { function Dep() {
...@@ -19882,7 +19836,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19882,7 +19836,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Dep; return Dep;
}()); }());
//# sourceMappingURL=Dep.js.map
var Mutator = (function () { var Mutator = (function () {
function Mutator() { function Mutator() {
...@@ -19996,7 +19949,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -19996,7 +19949,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
]; ];
return Mutator; return Mutator;
}()); }());
//# sourceMappingURL=Mutator.js.map
var commands = { var commands = {
set: function (context) { set: function (context) {
...@@ -20011,7 +19963,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20011,7 +19963,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return context.target; return context.target;
} }
}; };
//# sourceMappingURL=Commands.js.map
var defaultCmdRegExp = /^(data\-)?z[\-_](\w+)([:\$](.+))?$/; var defaultCmdRegExp = /^(data\-)?z[\-_](\w+)([:\$](.+))?$/;
var Zri = (function () { var Zri = (function () {
...@@ -20078,7 +20029,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20078,7 +20029,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return Zri; return Zri;
}()); }());
//# sourceMappingURL=Zri.js.map
var commands$1 = { var commands$1 = {
prop: function (context) { prop: function (context) {
...@@ -20262,7 +20212,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20262,7 +20212,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return context.target; return context.target;
} }
}; };
//# sourceMappingURL=ZriCommands.js.map
var interruptCmds = ['for', 'if']; var interruptCmds = ['for', 'if'];
var ZriCompiler = (function () { var ZriCompiler = (function () {
...@@ -20332,7 +20281,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20332,7 +20281,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return ZriCompiler; return ZriCompiler;
}()); }());
//# sourceMappingURL=ZriCompiler.js.map
function bind(store, view, options) { function bind(store, view, options) {
var compiler = new ZriCompiler(view); var compiler = new ZriCompiler(view);
...@@ -20353,7 +20301,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20353,7 +20301,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
return store; return store;
} }
//# sourceMappingURL=index.js.map
var customMap = {}; var customMap = {};
function registerCustomModules(customs) { function registerCustomModules(customs) {
...@@ -20416,7 +20363,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20416,7 +20363,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function getProps(id) { function getProps(id) {
return customMap[id].props || {}; return customMap[id].props || {};
} }
//# sourceMappingURL=custom-module.js.map
function dealPxEnv() { function dealPxEnv() {
if (queryParams.appID) { if (queryParams.appID) {
...@@ -20496,7 +20442,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20496,7 +20442,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
injectProp(p, params); injectProp(p, params);
return httpRequest('buriedPoint', 'get', p); return httpRequest('buriedPoint', 'get', p);
} }
//# sourceMappingURL=px-logics.js.map
var GameStage = (function (_super) { var GameStage = (function (_super) {
tslib_1.__extends(GameStage, _super); tslib_1.__extends(GameStage, _super);
...@@ -20680,7 +20625,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20680,7 +20625,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}; };
return GameStage; return GameStage;
}(Node$1)); }(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 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"; 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";
...@@ -20720,7 +20664,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20720,7 +20664,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
}, },
}; };
//# sourceMappingURL=LoadingView.js.map
var _stage; var _stage;
function initAutoLayout(stage) { function initAutoLayout(stage) {
...@@ -20766,10 +20709,24 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20766,10 +20709,24 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
} }
} }
} }
//# sourceMappingURL=auto-layout.js.map
var propPrefixFilter = ['_', '__', '$']; var propPrefixFilter = ['_', '__', '$'];
var propTypeFilter = ['object', 'function']; var includeProps = ['_width', '_height', 'worldMatrix'];
var excludeProps = ['eventTypes', 'eventTypes1', 'tempDisplayObjectParent', 'renderable', 'destroyed', 'children', 'start', 'pluginName', 'isUI', 'crossOrigin'];
var propTypeFilter = ['function', 'object'];
var offsetPrefix = 'offset_';
var absValueMapping = {
x: 'a',
y: 'd',
width: 'a',
height: 'd',
};
var absSelfValueMapping = {
x: 'X',
y: 'Y',
width: 'X',
height: 'Y',
};
var EditorStage = (function (_super) { var EditorStage = (function (_super) {
tslib_1.__extends(EditorStage, _super); tslib_1.__extends(EditorStage, _super);
function EditorStage(stage) { function EditorStage(stage) {
...@@ -20801,20 +20758,32 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20801,20 +20758,32 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var node2 = {}; var node2 = {};
for (var key in node) { for (var key in node) {
var pass = false; var pass = false;
for (var _i = 0, propPrefixFilter_1 = propPrefixFilter; _i < propPrefixFilter_1.length; _i++) { if (excludeProps.indexOf(key) >= 0) {
var prefix = propPrefixFilter_1[_i]; pass = true;
if (key.indexOf(prefix) >= 0) { }
pass = true; if (!pass) {
break; for (var _i = 0, propPrefixFilter_1 = propPrefixFilter; _i < propPrefixFilter_1.length; _i++) {
var prefix = propPrefixFilter_1[_i];
if (key.indexOf(prefix) >= 0) {
pass = true;
break;
}
} }
} }
var v = node[key];
if (propTypeFilter.indexOf(typeof v) >= 0) {
pass = true;
}
if (includeProps.indexOf(key) >= 0) {
pass = false;
}
if (pass) { if (pass) {
continue; continue;
} }
var v = node[key]; if (typeof v === 'object') {
if (propTypeFilter.indexOf(typeof v) < 0) { v = objClone(v);
node2[key] = v;
} }
node2[key] = v;
} }
return node2; return node2;
} }
...@@ -20826,7 +20795,17 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20826,7 +20795,17 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
EditorStage.prototype.modifyProps = function (nodePath, props) { EditorStage.prototype.modifyProps = function (nodePath, props) {
var node = this.getNode(nodePath, true); var node = this.getNode(nodePath, true);
if (node) { if (node) {
injectProperties(node, props); for (var key in props) {
var v = props[key];
if (key.indexOf(offsetPrefix) < 0) {
node[key] = v;
}
else {
key = key.replace(offsetPrefix, '');
var offsetV = v / node.worldMatrix[absValueMapping[key]] * node['scale' + absSelfValueMapping[key]];
node[key] += offsetV;
}
}
node.adjustProxy.adjustLayout(); node.adjustProxy.adjustLayout();
return true; return true;
} }
...@@ -20840,6 +20819,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20840,6 +20819,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
globalPos.x *= devicePixelRatio; globalPos.x *= devicePixelRatio;
globalPos.y *= devicePixelRatio; globalPos.y *= devicePixelRatio;
var node = this.hitTestPoint(globalPos, true); var node = this.hitTestPoint(globalPos, true);
console.log(globalPos.x, globalPos.y, node ? node.name : '');
return node; return node;
}; };
return EditorStage; return EditorStage;
...@@ -20914,110 +20894,20 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -20914,110 +20894,20 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}); });
}); });
} }
//# sourceMappingURL=launcher.js.map
var emojiRegex = function () { var emojiRegex = function () {
// https://mths.be/emoji // https://mths.be/emoji
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
}; };
/**
* Created by rockyl on 2020-01-27.
*/
var genericRegexp = /(\w+)(<(\w+)>)?/;
function compute(props, options) {
var result = props || {};
var _loop_1 = function (key) {
var sourceValue = getValue(result, options, key);
var value = sourceValue;
if (options) {
var option = options[key];
if (option && option.type) {
var _a = parseType(option.type), type = _a.type, generic_1 = _a.generic;
switch (type) {
case 'vector2':
value = parseVector2(sourceValue);
break;
case 'array':
var seps = sourceValue.split(',');
seps = seps.map(function (sep) {
var item;
if (generic_1) {
switch (generic_1) {
case 'number':
item = parseFloat(sep);
break;
case 'boolean':
item = sep === 'true';
break;
default:
item = sep;
break;
}
}
else {
item = sep;
}
return item;
});
value = seps;
break;
}
}
}
result[key] = value;
};
for (var key in options) {
_loop_1(key);
}
return result;
}
function parseType(typeStr) {
var type = typeStr, generic;
var regResult = typeStr.match(genericRegexp);
if (regResult) {
type = regResult[1];
generic = regResult[3];
}
return {
type: type, generic: generic,
};
}
function parseVector2(sourceValue) {
var value = sourceValue;
if (!sourceValue) {
value = { x: undefined, y: undefined };
}
if (typeof sourceValue === 'string') {
var arr = sourceValue.split(',');
value = {
x: arr[0] === '' ? undefined : parseFloat(arr[0]),
y: arr[1] === '' ? undefined : parseFloat(arr[1]),
};
}
else if (Array.isArray(sourceValue)) {
value = {
x: sourceValue[0] === '' ? undefined : parseFloat(sourceValue[0]),
y: sourceValue[1] === '' ? undefined : parseFloat(sourceValue[1]),
};
}
return value;
}
function getValue(props, options, key) {
var value;
if (props.hasOwnProperty(key)) {
value = props[key];
}
else if (options && options[key].hasOwnProperty('default')) {
value = options[key].default;
}
return value;
}
//# sourceMappingURL=index.es.js.map
var emojiRegexp = emojiRegex(); var emojiRegexp = emojiRegex();
//# sourceMappingURL=index.js.map
Object.defineProperty(exports, 'computeProps', {
enumerable: true,
get: function () {
return propsCompute.compute;
}
});
exports.BaseTexture = BaseTexture; exports.BaseTexture = BaseTexture;
exports.BaseTextureCache = BaseTextureCache; exports.BaseTextureCache = BaseTextureCache;
exports.BitmapText = BitmapText; exports.BitmapText = BitmapText;
...@@ -21091,7 +20981,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -21091,7 +20981,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
exports.clearTextureCache = clearTextureCache; exports.clearTextureCache = clearTextureCache;
exports.cmdOldPrefix = cmdOldPrefix; exports.cmdOldPrefix = cmdOldPrefix;
exports.cmdPrefix = cmdPrefix; exports.cmdPrefix = cmdPrefix;
exports.computeProps = compute;
exports.copyProp = copyProp; exports.copyProp = copyProp;
exports.cos = cos; exports.cos = cos;
exports.countTrailingZeros = countTrailingZeros; exports.countTrailingZeros = countTrailingZeros;
...@@ -21204,5 +21093,5 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -21204,5 +21093,5 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, '__esModule', { value: true });
})); })));
//# sourceMappingURL=engine.js.map //# sourceMappingURL=engine.js.map
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -117,9 +117,11 @@ export class Loader extends EventDispatcher { ...@@ -117,9 +117,11 @@ export class Loader extends EventDispatcher {
//console.log("覆盖原先数据:" + name); //console.log("覆盖原先数据:" + name);
} }
this.caches[name] = data; this.caches[name] = data;
console.log(this.caches)
} }
get(name: string) { get(name: string) {
console.log(this.caches)
return this.caches[name]; return this.caches[name];
} }
} }
......
...@@ -63,7 +63,12 @@ export class ObservablePoint extends HashObject { ...@@ -63,7 +63,12 @@ export class ObservablePoint extends HashObject {
set x(value) { set x(value) {
if (this._x !== value) { if (this._x !== value) {
this._x = value; if(value){
this._x = value;
}else{
this._x = 0;
}
this.cb.call(this.scope); this.cb.call(this.scope);
} }
} }
...@@ -74,7 +79,11 @@ export class ObservablePoint extends HashObject { ...@@ -74,7 +79,11 @@ export class ObservablePoint extends HashObject {
set y(value) { set y(value) {
if (this._y !== value) { if (this._y !== value) {
this._y = value; if(value){
this._y = value;
}else{
this._y = 0;
}
this.cb.call(this.scope); this.cb.call(this.scope);
} }
} }
......
...@@ -141,7 +141,7 @@ export class EditorStage extends Node { ...@@ -141,7 +141,7 @@ export class EditorStage extends Node {
let node = this.hitTestPoint(globalPos, true); let node = this.hitTestPoint(globalPos, true);
//console.log(globalPos.x, globalPos.y, node ? node.name : ''); console.log(globalPos.x, globalPos.y, node ? node.name : '');
return node; return node;
} }
......
...@@ -36,6 +36,7 @@ export class Image extends Sprite implements IUIComponent { ...@@ -36,6 +36,7 @@ export class Image extends Sprite implements IUIComponent {
private updateSource() { private updateSource() {
let url = this._source; let url = this._source;
if (url) { if (url) {
if (url.indexOf('://') >= 0) { //如果是有协议的地址 if (url.indexOf('://') >= 0) { //如果是有协议的地址
if (url.indexOf(assetScheme) === 0) { if (url.indexOf(assetScheme) === 0) {
...@@ -47,6 +48,7 @@ export class Image extends Sprite implements IUIComponent { ...@@ -47,6 +48,7 @@ export class Image extends Sprite implements IUIComponent {
}*/ }*/
if (editorMode) { if (editorMode) {
console.log("assetResolver(url)",assetResolver(url))
url = assetResolver(url); url = assetResolver(url);
} }
} }
...@@ -63,6 +65,7 @@ export class Image extends Sprite implements IUIComponent { ...@@ -63,6 +65,7 @@ export class Image extends Sprite implements IUIComponent {
} }
private _setSourceDirect(value) { private _setSourceDirect(value) {
this._source = value; this._source = value;
this.updateSource(); this.updateSource();
......
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