Commit da8c8990 authored by wildfirecode's avatar wildfirecode

1

parent 8ac1b930
No preview for this file type
{"map":"{\"version\":3,\"file\":\"InteractContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../node_modules/scilla-core/src/core/context/InteractContext.ts\"],\"names\":[],\"mappings\":\"AAMA,IAAI,OAAO,CAAC;AACZ,IAAI,aAAa,CAAC;AAClB,IAAI,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;AAEhC,IAAM,EAAE,GAAG,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AAC7C,IAAM,QAAQ,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAM/E,MAAM,UAAU,YAAY,CAAC,OAAgB;IAAhB,wBAAA,EAAA,YAAgB;IACrC,IAAA,uBAAM,EAAE,mCAAY,CAAY;IAEvC,aAAa,GAAG,YAAY,CAAC;IAE7B,OAAO,GAAG,MAAM,CAAC;IAEjB,YAAY,EAAE,CAAC;AAChB,CAAC;AAQD,MAAM,UAAU,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ;IACvD,OAAO,GAAG,MAAM,CAAC;IACjB,OAAO,GAAG,MAAM,CAAC;IACjB,SAAS,GAAG,QAAQ,CAAC;AACtB,CAAC;AAKD,SAAS,YAAY;IACpB,IAAI,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE;QACtC,OAAO,CAAC,gBAAgB,CAAC,eAAe,EAAE,UAAC,KAAK;YAC/C,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC;YACnC,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,EAAE,KAAK,CAAC,CAAC;QACV,OAAO,CAAC,gBAAgB,CAAC,eAAe,EAAE,UAAC,KAAK;YAC/C,KAAK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T;IACD,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC;IACtB,OAAO;QACN,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC;KACjC,CAAC;AACH,CAAC\"}","code":"var _canvas;\r\nvar _touchHandler;\r\nvar _scaleX, _scaleY, _rotation;\r\nvar ua = navigator.userAgent.toLowerCase();\r\nvar isMobile = (ua.indexOf('mobile') !== -1 || ua.indexOf('android') !== -1);\r\nexport function setupContext(options) {\r\n if (options === void 0) { options = {}; }\r\n var canvas = options.canvas, touchHandler = options.touchHandler;\r\n _touchHandler = touchHandler;\r\n _canvas = canvas;\r\n addListeners();\r\n}\r\nexport function updateScaleMode(scaleX, scaleY, rotation) {\r\n _scaleX = scaleX;\r\n _scaleY = scaleY;\r\n _rotation = rotation;\r\n}\r\nfunction addListeners() {\r\n if (window.navigator.msPointerEnabled) {\r\n _canvas.addEventListener(\"MSPointerDown\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchBegin(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerMove\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchMove(event);\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"MSPointerUp\", function (event) {\r\n event.identifier = event.pointerId;\r\n onTouchEnd(event);\r\n prevent(event);\r\n }, false);\r\n }\r\n else {\r\n if (!isMobile) {\r\n addMouseListener();\r\n }\r\n addTouchListener();\r\n }\r\n}\r\nfunction prevent(event) {\r\n event.stopPropagation();\r\n if (event[\"isScroll\"] != true && !_canvas['userTyping']) {\r\n event.preventDefault();\r\n }\r\n}\r\nfunction addMouseListener() {\r\n _canvas.addEventListener(\"mousedown\", onTouchBegin);\r\n _canvas.addEventListener(\"mousemove\", onMouseMove);\r\n _canvas.addEventListener(\"mouseup\", onTouchEnd);\r\n}\r\nfunction addTouchListener() {\r\n _canvas.addEventListener(\"touchstart\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchBegin(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchmove\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchMove(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchend\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n _canvas.addEventListener(\"touchcancel\", function (event) {\r\n var l = event.changedTouches.length;\r\n for (var i = 0; i < l; i++) {\r\n onTouchEnd(event.changedTouches[i]);\r\n }\r\n prevent(event);\r\n }, false);\r\n}\r\nfunction onTouchBegin(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchBegin(location);\r\n}\r\nfunction onMouseMove(event) {\r\n if (event.buttons === 0) {\r\n onTouchEnd(event);\r\n }\r\n else {\r\n onTouchMove(event);\r\n }\r\n}\r\nfunction onTouchMove(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchMove(location);\r\n}\r\nfunction onTouchEnd(event) {\r\n var location = getLocation(event);\r\n _touchHandler.onTouchEnd(location);\r\n}\r\nfunction getLocation(event) {\r\n var doc = document.documentElement;\r\n var box = _canvas.getBoundingClientRect();\r\n var left = box.left + window.pageXOffset - doc.clientLeft;\r\n var top = box.top + window.pageYOffset - doc.clientTop;\r\n var x = event.pageX - left, newX = x;\r\n var y = event.pageY - top, newY = y;\r\n if (_rotation === 90) {\r\n newX = y;\r\n newY = box.width - x;\r\n }\r\n else if (_rotation === -90) {\r\n newX = box.height - y;\r\n newY = x;\r\n }\r\n newX = newX / _scaleX;\r\n newY = newY / _scaleY;\r\n return {\r\n x: Math.round(newX),\r\n y: Math.round(newY),\r\n identifier: event.identifier || 0,\r\n };\r\n}\r\n//# sourceMappingURL=InteractContext.js.map"}
{"map":"{\"version\":3,\"file\":\"TextStyle.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/TextStyle.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAIpB,8BAAkB,CAAA;IAIlB,8BAAkB,CAAA;IAIlB,gCAAoB,CAAA;AACrB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IAItB,gCAAkB,CAAA;IAIlB,wCAA0B,CAAA;AAC3B,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IAIrB,+BAAiB,CAAA;IAIjB,2BAAa,CAAA;IAIb,+BAAiB,CAAA;IAIjB,iCAAmB,CAAA;AACpB,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB;AAKD;IAAA;QAQC,cAAS,GAAc,SAAS,CAAC,MAAM,CAAC;QAMxC,gBAAW,GAAgB,WAAW,CAAC,MAAM,CAAC;QAM9C,eAAU,GAAe,UAAU,CAAC,MAAM,CAAC;QAM3C,aAAQ,GAAW,EAAE,CAAC;QAMtB,eAAU,GAAW,OAAO,CAAC;IAK9B,CAAC;IAHA,4BAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;IA5BD;QADC,iBAAiB;gDACsB;IAMxC;QADC,iBAAiB;kDAC4B;IAM9C;QADC,iBAAiB;iDACyB;IAM3C;QADC,iBAAiB;+CACI;IAMtB;QADC,iBAAiB;iDACW;IAK9B,gBAAC;CAAA,AArCD,IAqCC;SArCY,SAAS\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nexport var FontStyle;\r\n(function (FontStyle) {\r\n FontStyle[\"NORMAL\"] = \"normal\";\r\n FontStyle[\"ITALIC\"] = \"italic\";\r\n FontStyle[\"OBLIQUE\"] = \"oblique\";\r\n})(FontStyle || (FontStyle = {}));\r\nexport var FontVariant;\r\n(function (FontVariant) {\r\n FontVariant[\"NORMAL\"] = \"normal\";\r\n FontVariant[\"SMALL_CAPS\"] = \"small-caps\";\r\n})(FontVariant || (FontVariant = {}));\r\nexport var FontWeight;\r\n(function (FontWeight) {\r\n FontWeight[\"NORMAL\"] = \"normal\";\r\n FontWeight[\"BOLD\"] = \"bold\";\r\n FontWeight[\"BOLDER\"] = \"bolder\";\r\n FontWeight[\"LIGHTER\"] = \"lighter\";\r\n})(FontWeight || (FontWeight = {}));\r\nvar TextStyle = (function () {\r\n function TextStyle() {\r\n this.fontStyle = FontStyle.NORMAL;\r\n this.fontVariant = FontVariant.NORMAL;\r\n this.fontWeight = FontWeight.NORMAL;\r\n this.fontSize = 25;\r\n this.fontFamily = 'Arial';\r\n }\r\n TextStyle.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue, 'textStyle');\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontStyle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontVariant\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontWeight\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontSize\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], TextStyle.prototype, \"fontFamily\", void 0);\r\n return TextStyle;\r\n}());\r\nexport { TextStyle };\r\n//# sourceMappingURL=TextStyle.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimation.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/FrameAnimation.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB,IAAM,WAAW,GAAG,EAAE,CAAC;AACvB,IAAM,UAAU,GAAG,EAAE,CAAC;AAMtB,MAAM,UAAU,iBAAiB,CAAC,IAAI;IACrC,IAAI,SAAS,GAAmB,YAAY,CAAC,IAAI,CAAC,CAAC;IACnD,IAAI,CAAC,SAAS,EAAE;QACf,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC9D,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3B;IAED,OAAO,SAAS,CAAC;AAClB,CAAC;AAOD,MAAM,UAAU,YAAY,CAAC,GAAG,EAAE,IAAI;IAC9B,IAAA,YAAE,EAAE,cAAG,CAAS;IAEvB,IAAI,KAAK,GAAU,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAEvC,KAAK,IAAI,GAAG,IAAI,EAAE,EAAE;QACnB,IAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QAC5C,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;KACvB;AACF,CAAC;AA+CD;IAIC,4BAAY,IAAI;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,sBAAI,oCAAI;aAAR;YACC,OAAO,IAAI,CAAC,KAAK,CAAC;QACnB,CAAC;;;OAAA;IAED,uCAAU,GAAV,UAAW,IAAI;QACd,IAAM,QAAQ,GAAG,WAAW,CAA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BAC5D;aACD;SACD;QACD,OAAO;YACN,OAAO,SAAA;YACP,IAAI,EAAE,SAAS;SACf,CAAC;IACH,CAAC;IAED,oCAAO,GAAP;QACC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IACF,yBAAC;AAAD,CAAC,AArED,IAqEC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Sheet } from \"./Sheet\";\r\nvar animationMap = {};\r\nvar animDataMap = {};\r\nvar textureMap = {};\r\nexport function getFrameAnimation(name) {\r\n var animation = animationMap[name];\r\n if (!animation) {\r\n animation = animationMap[name] = new FrameAnimationImpl(name);\r\n animation.fillMcData(name);\r\n }\r\n return animation;\r\n}\r\nexport function putFrameAnim(img, data) {\r\n var mc = data.mc, res = data.res;\r\n var sheet = new Sheet(img, res);\r\n for (var key in mc) {\r\n var animData = animDataMap[key] = mc[key];\r\n animData.sheet = sheet;\r\n }\r\n}\r\nvar FrameAnimationImpl = (function () {\r\n function FrameAnimationImpl(name) {\r\n this._name = name;\r\n }\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"name\", {\r\n get: function () {\r\n return this._name;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.fillMcData = function (name) {\r\n var animData = animDataMap[name];\r\n if (animData) {\r\n this._animData = animData;\r\n }\r\n else {\r\n console.warn(\"anim data [\" + name + \"] is not exist\");\r\n }\r\n };\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"fps\", {\r\n get: function () {\r\n return this._animData.frameRate;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"labels\", {\r\n get: function () {\r\n return this._animData.labels;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(FrameAnimationImpl.prototype, \"frameCount\", {\r\n get: function () {\r\n return this._animData.frames.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n FrameAnimationImpl.prototype.getLabel = function (name) {\r\n var e_1, _a;\r\n var result;\r\n try {\r\n for (var _b = tslib_1.__values(this._animData.labels), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var label = _c.value;\r\n if (label.name == name) {\r\n result = label;\r\n break;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n FrameAnimationImpl.prototype.getFrame = function (frameIndex) {\r\n var _animData = this._animData;\r\n var texture, frameData;\r\n if (_animData) {\r\n var frames_1 = _animData.frames;\r\n frameData = frames_1[frameIndex];\r\n if (frameData) {\r\n var res = frameData.res;\r\n texture = textureMap[res];\r\n if (!texture) {\r\n texture = textureMap[res] = _animData.sheet.getTexture(res);\r\n }\r\n }\r\n }\r\n return {\r\n texture: texture,\r\n data: frameData,\r\n };\r\n };\r\n FrameAnimationImpl.prototype.destroy = function () {\r\n this._animData = null;\r\n };\r\n return FrameAnimationImpl;\r\n}());\r\nexport { FrameAnimationImpl };\r\n//# sourceMappingURL=FrameAnimation.js.map"}
{"map":"{\"version\":3,\"file\":\"ContentSizeFitter.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/other/ContentSizeFitter.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,eAAe,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC7C,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C;IAA+C,6CAAe;IAA9D;QAAA,qEAoBC;QAnBQ,kBAAY,GAAS,IAAI,IAAI,EAAE,CAAC;;IAmBzC,CAAC;IAjBA,uCAAW,GAAX;;QACC,iBAAM,WAAW,WAAE,CAAC;QAEpB,IAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;;YACtB,KAAiB,IAAA,KAAA,iBAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAA,gBAAA,4BAAC;gBAAlC,IAAI,KAAK,WAAA;gBACZ,IAAM,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;gBAChD,IAAG,SAAS,EAAC;oBACL,IAAA,uBAAK,EAAE,yBAAM,EAAE,uBAAK,CAAc;oBACzC,WAAW,CAAC,KAAK,IAAI,KAAK,CAAC;oBAC3B,WAAW,CAAC,MAAM,IAAI,MAAM,CAAC;iBAC7B;aACD;;;;;;;;;QAED,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QACzC,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAC5C,CAAC;IACF,wBAAC;AAAD,CAAC,AApBD,CAA+C,eAAe,GAoB7D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, Size } from \"scilla\";\r\nimport Transform from \"../base/Transform\";\r\nvar ContentSizeFitter = (function (_super) {\r\n tslib_1.__extends(ContentSizeFitter, _super);\r\n function ContentSizeFitter() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this._measureSize = new Size();\r\n return _this;\r\n }\r\n ContentSizeFitter.prototype.afterUpdate = function () {\r\n var e_1, _a;\r\n _super.prototype.afterUpdate.call(this);\r\n var measureSize = this._measureSize;\r\n measureSize.set(0, 0);\r\n try {\r\n for (var _b = tslib_1.__values(this.entity.children), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var child = _c.value;\r\n var transform = child.getComponent(Transform);\r\n if (transform) {\r\n var width = transform.width, height = transform.height, pivot = transform.pivot;\r\n measureSize.width += width;\r\n measureSize.height += height;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n this.transform.width = measureSize.width;\r\n this.transform.height = measureSize.height;\r\n };\r\n return ContentSizeFitter;\r\n}(ScillaComponent));\r\nexport default ContentSizeFitter;\r\n//# sourceMappingURL=ContentSizeFitter.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/ui/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAA\"}","code":"export { default as Button } from './Button';\r\nexport { default as ProgressBar } from './ProgressBar';\r\nexport { default as ScrollView } from './ScrollView';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACN,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,GACT,CAAA\"}","code":"import * as decorators from './decorators';\r\nimport * as ease from './ease';\r\nimport * as math from './math';\r\nimport * as utils from './utils';\r\nimport * as timeUtils from './time';\r\nimport { Ease } from \"./ease\";\r\nexport { decorators, ease, Ease, math, utils, timeUtils, };\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"FrameAnimationRenderer.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AC,AAzJD,CAAoD,QAAQ,GAyJ3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { ScillaEvent } from \"scilla\";\r\nvar FrameAnimationRenderer = (function (_super) {\r\n tslib_1.__extends(FrameAnimationRenderer, _super);\r\n function FrameAnimationRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.autoPlay = false;\r\n _this.fps = NaN;\r\n _this.onComplete = new ScillaEvent();\r\n _this.onLoopComplete = new ScillaEvent();\r\n return _this;\r\n }\r\n FrameAnimationRenderer.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (this.autoPlay) {\r\n this.play(0, -1);\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.onUpdate = function (t) {\r\n if (this._playing) {\r\n var _a = this, frameAnimation = _a.frameAnimation, _startFrame = _a._startFrame, _endFrame = _a._endFrame, fps = _a.fps;\r\n if (this._startFlag) {\r\n this._startFlag = false;\r\n this._startTime = t;\r\n this._loopCounting++;\r\n }\r\n var mFPS = isNaN(fps) ? frameAnimation.fps : fps;\r\n var passTime = t - this._startTime;\r\n var passFrameCount = Math.floor(passTime / (1000 / mFPS));\r\n var passFrameInRegion = passFrameCount % (_endFrame - _startFrame + 1);\r\n this._currentFrameIndex = _startFrame + passFrameInRegion;\r\n if (passFrameInRegion == 0 && passFrameCount > 0) {\r\n this._currentFrameIndex = _endFrame;\r\n this.onLoopEnd();\r\n }\r\n }\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n FrameAnimationRenderer.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n FrameAnimationRenderer.prototype.onLoopEnd = function () {\r\n if (this._loop < 0) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else if (this._loopCounting < this._loop) {\r\n this._startFlag = true;\r\n this.onLoopComplete.invoke();\r\n }\r\n else {\r\n this._playing = false;\r\n this.onComplete.invoke();\r\n }\r\n };\r\n FrameAnimationRenderer.prototype.play = function (frame, loop, force) {\r\n if (frame === void 0) { frame = 0; }\r\n if (loop === void 0) { loop = 0; }\r\n if (force === void 0) { force = true; }\r\n this._loop = loop;\r\n this._loopCounting = 0;\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var startFrame = 0, endFrame = this.frameAnimation.frameCount - 1;\r\n if (typeof frame == 'string') {\r\n var label = this.frameAnimation.getLabel(frame);\r\n if (label) {\r\n startFrame = label.frame - 1;\r\n endFrame = label.end;\r\n }\r\n }\r\n else {\r\n startFrame = frame;\r\n }\r\n this._startFrame = startFrame;\r\n this._endFrame = endFrame;\r\n this._currentFrameIndex = this._startFrame;\r\n this._startFlag = true;\r\n this._playing = true;\r\n };\r\n FrameAnimationRenderer.prototype.stop = function () {\r\n this._playing = false;\r\n };\r\n FrameAnimationRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (!this.frameAnimation) {\r\n return;\r\n }\r\n var _a = this, context = _a.context, frameAnimation = _a.frameAnimation, _currentFrameIndex = _a._currentFrameIndex, bounds = _a.bounds;\r\n var _b = frameAnimation.getFrame(_currentFrameIndex), texture = _b.texture, data = _b.data;\r\n if (texture) {\r\n var img = texture.img, _c = texture.bounds, x_1 = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.setTo(data.x, data.y, textureWidth, textureHeight);\r\n context.drawImage(img, x_1, y, textureWidth, textureHeight, data.x, data.y, textureWidth, textureHeight);\r\n }\r\n };\r\n return FrameAnimationRenderer;\r\n}(Renderer));\r\nexport default FrameAnimationRenderer;\r\n//# sourceMappingURL=FrameAnimationRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"Swing.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/Swing.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AAEvC;IAAmC,iCAAe;IAAlD;QAAA,qEAQC;QAPA,cAAQ,GAAW,KAAK,CAAC;;IAO1B,CAAC;IALA,wBAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;QAElB,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACjD,CAAC;IACF,YAAC;AAAD,CAAC,AARD,CAAmC,eAAe,GAQjD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent } from \"scilla\";\r\nvar Swing = (function (_super) {\r\n tslib_1.__extends(Swing, _super);\r\n function Swing() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.duration = 10000;\r\n return _this;\r\n }\r\n Swing.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n this.transform.rotation = Math.sin(t / 100) * 5;\r\n };\r\n return Swing;\r\n}(ScillaComponent));\r\nexport default Swing;\r\n//# sourceMappingURL=Swing.js.map"}
{"map":"{\"version\":3,\"file\":\"InteractComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/InteractComponent.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AAC3D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAErC,IAAA,gDAAiB,CAAe;AAKvC;IAA+C,6CAAe;IAkB7D;QAAA,YACC,iBAAO,SAEP;QAhBD,kBAAY,GAAG,IAAI,CAAC;QAKpB,oBAAc,GAAY,KAAK,CAAC;QAEtB,kBAAY,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QAC/B,cAAQ,GAAQ,EAAE,CAAC;QACnB,WAAK,GAAG,IAAI,CAAC;;IAOvB,CAAC;IAED,iDAAqB,GAArB,UAAsB,CAAC;QACtB,IAAI,SAAS,GAAG,iBAAM,qBAAqB,YAAC,CAAC,CAAC,C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AE;wBAC1B,SAAQ;qBACR;yBAAM;wBACN,MAAM,GAAG,IAAI,CAAC;wBACd,MAAK;qBACL;iBACD;qBAAM,IAAI,QAAQ,CAAC,YAAY,EAAE;oBACjC,OAAO,KAAK,CAAA;iBACZ;aACD;;;;;;;;;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IA/HD;QADC,iBAAiB;2DACE;IAgIrB,wBAAC;CAAA,AArID,CAA+C,eAAe,GAqI7D;eArIoB,iBAAiB\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Matrix, ScillaComponent, decorators } from \"scilla\";\r\nimport Renderer from \"../renderer/Renderer\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nvar InteractComponent = (function (_super) {\r\n tslib_1.__extends(InteractComponent, _super);\r\n function InteractComponent() {\r\n var _this = _super.call(this) || this;\r\n _this.interactable = true;\r\n _this.touchInterrupt = false;\r\n _this.invertMatrix = Matrix.create();\r\n _this.localPos = {};\r\n _this.isOut = true;\r\n return _this;\r\n }\r\n InteractComponent.prototype._dealGlobalTouchBegin = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchBegin.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._touchBeginFlag = true;\r\n this.onTouchBegin(e);\r\n this._dealTouchOver(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchMove = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchMove.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this._dealTouchOver(e);\r\n this.onTouchMove(e);\r\n }\r\n else {\r\n this._dealTouchOut(e);\r\n }\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealGlobalTouchEnd = function (e) {\r\n var interrupt = _super.prototype._dealGlobalTouchEnd.call(this, e);\r\n var hitOn = this.hitTest(e);\r\n if (hitOn) {\r\n this.onTouchEnd(e);\r\n if (this._touchBeginFlag) {\r\n this.onTouchTap(e);\r\n this._touchBeginFlag = false;\r\n }\r\n }\r\n this.isOut = true;\r\n return hitOn && interrupt;\r\n };\r\n InteractComponent.prototype._dealTouchOver = function (e) {\r\n if (this.isOut) {\r\n this.isOut = false;\r\n this.onTouchOver(e);\r\n }\r\n };\r\n InteractComponent.prototype._dealTouchOut = function (e) {\r\n if (!this.isOut) {\r\n this.isOut = true;\r\n this.onTouchOut(e);\r\n }\r\n };\r\n InteractComponent.prototype.onTouchBegin = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchMove = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOver = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchOut = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchEnd = function (e) {\r\n };\r\n InteractComponent.prototype.onTouchTap = function (e) {\r\n };\r\n InteractComponent.prototype.hitTest = function (e) {\r\n var e_1, _a;\r\n var matrix = this.transform.getMatrix();\r\n var invertMatrix = this.invertMatrix;\r\n invertMatrix.copyFrom(matrix);\r\n invertMatrix.invert();\r\n invertMatrix.transformPoint(e.x, e.y, this.localPos);\r\n var result = false;\r\n var renderers = this.entity.getComponents(Renderer);\r\n try {\r\n for (var renderers_1 = tslib_1.__values(renderers), renderers_1_1 = renderers_1.next(); !renderers_1_1.done; renderers_1_1 = renderers_1.next()) {\r\n var renderer = renderers_1_1.value;\r\n if (renderer.hitTest(this.localPos.x, this.localPos.y)) {\r\n if (renderer.isUsedToMask) {\r\n continue;\r\n }\r\n else {\r\n result = true;\r\n break;\r\n }\r\n }\r\n else if (renderer.isUsedToMask) {\r\n return false;\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (renderers_1_1 && !renderers_1_1.done && (_a = renderers_1.return)) _a.call(renderers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return result;\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], InteractComponent.prototype, \"interactable\", void 0);\r\n return InteractComponent;\r\n}(ScillaComponent));\r\nexport default InteractComponent;\r\n//# sourceMappingURL=InteractComponent.js.map"}
{"map":"{\"version\":3,\"file\":\"Sheet.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Sheet.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAKxC;IAA2B,iCAAU;IAYpC,eAAY,GAAI,EAAE,MAAO;QAAzB,YACC,iBAAO,SAQP;QAXO,mBAAa,GAAQ,EAAE,CAAC;QAK/B,IAAG,GAAG,EAAC;YACN,KAAI,CAAC,GAAG,GAAG,GAAG,CAAC;SACf;QACD,IAAG,MAAM,EAAC;YACT,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;;IACF,CAAC;IAKD,2BAAW,GAAX;QACC,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC1B;IACF,CAAC;IAOD,+BAAe,GAAf,UAAgB,IAAI,EAAE,KAAa;QAAb,sBAAA,EAAA,aAAa;QAC5B,IAAA,SAAmC,EAAlC,YAAG,EAAE,kBAAM,EAAE,gCAAqB,CAAC;QAE1C,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE;YAClC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;SAC3B;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,KAAK,EAAE;YACV,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACvD;IACF,CAAC;IAMD,0BAAU,GAAV,UAAW,IAAI;QACd,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAMD,0BAAU,GAAV,UAAW,IAAI;QACd,IAAI,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,OAAO,EAAE;YACZ,OAAO,OAAO,CAAC;SACf;aAAM;YACN,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAClC;IACF,CAAC;IAKD,8BAAc,GAAd;QACC,OAAO,IAAI,CAAC,aAAa,CAAC;IAC3B,CAAC;IAKD,uBAAO,GAAP;QACC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAEhB,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE;YACnC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;SAC/B;IACF,CAAC;IACF,YAAC;AAAD,CAAC,AAzFD,CAA2B,UAAU,GAyFpC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createTexture } from \"./Texture\";\r\nvar Sheet = (function (_super) {\r\n tslib_1.__extends(Sheet, _super);\r\n function Sheet(img, frames) {\r\n var _this = _super.call(this) || this;\r\n _this._textureCache = {};\r\n if (img) {\r\n _this.img = img;\r\n }\r\n if (frames) {\r\n _this.frames = frames;\r\n }\r\n return _this;\r\n }\r\n Sheet.prototype.generateAll = function () {\r\n for (var key in this.frames) {\r\n this.generateTexture(key);\r\n }\r\n };\r\n Sheet.prototype.generateTexture = function (name, force) {\r\n if (force === void 0) { force = false; }\r\n var _a = this, img = _a.img, frames = _a.frames, _textureCache = _a._textureCache;\r\n if (!force && _textureCache[name]) {\r\n return _textureCache[name];\r\n }\r\n var frame = frames[name];\r\n if (frame) {\r\n return _textureCache[name] = createTexture(img, frame);\r\n }\r\n };\r\n Sheet.prototype.hasTexture = function (name) {\r\n return !!frames[name];\r\n };\r\n Sheet.prototype.getTexture = function (name) {\r\n var texture = this._textureCache[name];\r\n if (texture) {\r\n return texture;\r\n }\r\n else {\r\n return this.generateTexture(name);\r\n }\r\n };\r\n Sheet.prototype.getAllTextures = function () {\r\n return this._textureCache;\r\n };\r\n Sheet.prototype.destroy = function () {\r\n this.img = null;\r\n for (var key in this._textureCache) {\r\n this._textureCache[key].destroy();\r\n delete this._textureCache[key];\r\n }\r\n };\r\n return Sheet;\r\n}(HashObject));\r\nexport { Sheet };\r\n//# sourceMappingURL=Sheet.js.map"}
{"map":"{\"version\":3,\"file\":\"registerAllComponents.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-components/src/registerAllComponents.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,QAAQ,MAAM,q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8BAA8B,EAAE,QAAQ,CAAC,CAAC;IACtD,WAAW,CAAC,kCAAkC,EAAE,YAAY,CAAC,CAAC;IAC9D,WAAW,CAAC,qCAAqC,EAAE,eAAe,CAAC,CAAC;IACpE,WAAW,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;IAC5C,WAAW,CAAC,2BAA2B,EAAE,WAAW,CAAC,CAAC;IACtD,WAAW,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC\"}","code":"import { registerDef } from \"scilla\";\r\nimport BounceZoom from './animation/BounceZoom';\r\nimport Fade from './animation/Fade';\r\nimport Rotation from './animation/Rotation';\r\nimport RoundLoop from './animation/RoundLoop';\r\nimport Swing from './animation/Swing';\r\nimport TouchZoom from './animation/TouchZoom';\r\nimport Wave from './animation/Wave';\r\nimport ZoomLoop from './animation/ZoomLoop';\r\nimport InteractComponent from './base/InteractComponent';\r\nimport TouchInterrupt from './base/TouchInterrupt';\r\nimport Transform from './base/Transform';\r\nimport CameraController from './other/CameraController';\r\nimport ContentSizeFitter from './other/ContentSizeFitter';\r\nimport RelativeLayout from './other/RelativeLayout';\r\nimport CircleRenderer from './renderer/CircleRenderer';\r\nimport FrameAnimationRenderer from './renderer/FrameAnimationRenderer';\r\nimport GraphicRenderer from './renderer/GraphicRenderer';\r\nimport LineRenderer from './renderer/LineRenderer';\r\nimport RectRenderer from './renderer/RectRenderer';\r\nimport Renderer from './renderer/Renderer';\r\nimport TextRenderer from './renderer/TextRenderer';\r\nimport TextureRenderer from './renderer/TextureRenderer';\r\nimport Button from './ui/Button';\r\nimport ProgressBar from './ui/ProgressBar';\r\nimport ScrollView from './ui/ScrollView';\r\nexport function registerAllComponents() {\r\n registerDef('components/animation/BounceZoom', BounceZoom);\r\n registerDef('components/animation/Fade', Fade);\r\n registerDef('components/animation/Rotation', Rotation);\r\n registerDef('components/animation/RoundLoop', RoundLoop);\r\n registerDef('components/animation/Swing', Swing);\r\n registerDef('components/animation/TouchZoom', TouchZoom);\r\n registerDef('components/animation/Wave', Wave);\r\n registerDef('components/animation/ZoomLoop', ZoomLoop);\r\n registerDef('components/base/InteractComponent', InteractComponent);\r\n registerDef('components/base/TouchInterrupt', TouchInterrupt);\r\n registerDef('components/base/Transform', Transform);\r\n registerDef('components/other/CameraController', CameraController);\r\n registerDef('components/other/ContentSizeFitter', ContentSizeFitter);\r\n registerDef('components/other/RelativeLayout', RelativeLayout);\r\n registerDef('components/renderer/CircleRenderer', CircleRenderer);\r\n registerDef('components/renderer/FrameAnimationRenderer', FrameAnimationRenderer);\r\n registerDef('components/renderer/GraphicRenderer', GraphicRenderer);\r\n registerDef('components/renderer/LineRenderer', LineRenderer);\r\n registerDef('components/renderer/RectRenderer', RectRenderer);\r\n registerDef('components/renderer/Renderer', Renderer);\r\n registerDef('components/renderer/TextRenderer', TextRenderer);\r\n registerDef('components/renderer/TextureRenderer', TextureRenderer);\r\n registerDef('components/ui/Button', Button);\r\n registerDef('components/ui/ProgressBar', ProgressBar);\r\n registerDef('components/ui/ScrollView', ScrollView);\r\n}\r\n//# sourceMappingURL=registerAllComponents.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EACN,KAAK,EACL,WAAW,EAAE,kBAAkB,EAC/B,QAAQ,EACR,UAAU,EACV,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,OAAO,yBAAyB,CAAA;AAEhC,OAAO,aAAa,EAAE,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAEpD,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU;;;;;wBACjD,WAAM,QAAQ,CAAC,eAAe,CAAC,EAAA;;oBAA1C,QAAQ,GAAG,SAA+B;oBAEhD,MAAM,CAAC,QAAQ,CAAC,CAAC;oBACjB,MAAM,CAAC,OAAO,CAAC,CAAC;oBAEhB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;oBAElD,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBAC9C,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;oBAEjC,MAAM,GAAG;wBACZ,MAAM,QAAA;qBACN,CAAC;oBACF,IAAI,OAAO,CAAC,MAAM,EAAE;wBACnB,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;qBACzC;oBACD,KAAK,CAAC,MAAM,CAAC,CAAC;oBAEd,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;wBACtC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;oBAChB,CAAC,CAAC,CAAC;;;;;CACH\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { setup, launchScene, modifyEngineConfig, loadJson, setResPath, utils, } from 'scilla';\r\nimport './generated/MustCompile';\r\nimport launchOptions, { inject } from \"launchOptions\";\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var manifest, canvas, config;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson('manifest.json')];\r\n case 1:\r\n manifest = _a.sent();\r\n inject(manifest);\r\n inject(options);\r\n setResPath(DEBUG ? 'assets/' : launchOptions.resPath);\r\n canvas = document.createElement('canvas');\r\n containerElement.appendChild(canvas);\r\n config = {\r\n canvas: canvas,\r\n };\r\n if (options.config) {\r\n utils.injectProp(config, options.config);\r\n }\r\n setup(config);\r\n launchScene('main', onProgress).catch(function (e) {\r\n console.log(e);\r\n });\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
{"map":"{\"version\":3,\"file\":\"Scene.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Scene.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C;IAAA;QAGC,mBAAc,GAAQ;YACrB,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACT,CAAC;IAiBH,CAAC;IAbA,4BAAY,GAAZ,UAAa,MAAM;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QAExB,IAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QACjD,KAAI,IAAI,GAAG,IAAI,cAAc,EAAC;YAC7B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;SAC/C;IACF,CAAC;IAEK,4BAAY,GAAlB,UAAmB,IAAI,EAAE,QAAS;;;;4BACjC,WAAM,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAA;;wBAAvD,SAAuD,CAAC;;;;;KACxD;IACF,YAAC;AAAD,CAAC,AAvBD,IAuBC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { loadResItems } from \"../assets-manager\";\r\nvar Scene = (function () {\r\n function Scene() {\r\n this.resourceGroups = {\r\n preload: [],\r\n delay: [],\r\n };\r\n }\r\n Scene.prototype.initByConfig = function (config) {\r\n this.config = config;\r\n this.name = config.name;\r\n var resourceGroups = config['resource-groups'];\r\n for (var key in resourceGroups) {\r\n this.resourceGroups[key] = resourceGroups[key];\r\n }\r\n };\r\n Scene.prototype.loadResGroup = function (name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadResItems(this.resourceGroups[name], progress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n };\r\n return Scene;\r\n}());\r\nexport { Scene };\r\n//# sourceMappingURL=Scene.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/index.ts\"],\"names\":[],\"mappings\":\"AAIA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA\"}","code":"export * from './core';\r\nexport * from './editor';\r\nexport * from './assets-manager';\r\nexport * from './support';\r\nexport * from './tools';\r\nexport * from './filter';\r\nexport * from './engine-config';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"engine-config.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-core/src/engine-config.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,CAAC,IAAM,YAAY,GAAG;IAC3B,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,IAAI;IACnB,gBAAgB,EAAE,IAAI;IACtB,uBAAuB,EAAE,IAAI;IAC7B,yBAAyB,EAAE,IAAI;IAC/B,cAAc,EAAE,KAAK;IACrB,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,QAAQ;IAC1C,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACpC,CAAC\"}","code":"import { injectProp } from \"./tools/utils\";\r\nexport var EngineConfig = {\r\n lineHeightRatio: 1.2,\r\n entityEnabled: true,\r\n componentEnabled: true,\r\n awakeComponentWhenAdded: true,\r\n sleepComponentWhenRemoved: true,\r\n drawRenderRect: false,\r\n imgCrossOrigin: true,\r\n};\r\nexport function modifyEngineConfig(_options) {\r\n injectProp(EngineConfig, _options);\r\n}\r\n//# sourceMappingURL=engine-config.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/filter/index.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC\"}","code":"export { ShadowFilter } from './Filters';\r\nexport { ColorFilter } from './Filters';\r\nexport { ColorMatrixFilter } from './Filters';\r\nexport { BlurFilter } from './Filters';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"TextureRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/TextureRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAU,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEpC,IAAA,kDAAkB,CAAe;AAExC,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAInB,2CAAM,CAAA;IAIN,2CAAM,CAAA;IAIN,yCAAK,CAAA;AACN,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AAKD;IAA6C,2CAAQ;IAArD;QAAA,qEAqIC;QA1HA,cAAQ,GAAa,QAAQ,CAAC,MAAM,CAAC;QAMrC,aAAO,GAAG,EAAE,CAAC;;I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,CAA6C,QAAQ,GAqIpD;eArIoB,eAAe\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nexport var FillMode;\r\n(function (FillMode) {\r\n FillMode[FillMode[\"NORMAL\"] = 0] = \"NORMAL\";\r\n FillMode[FillMode[\"SLICED\"] = 1] = \"SLICED\";\r\n FillMode[FillMode[\"TILED\"] = 2] = \"TILED\";\r\n})(FillMode || (FillMode = {}));\r\nvar TextureRenderer = (function (_super) {\r\n tslib_1.__extends(TextureRenderer, _super);\r\n function TextureRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillMode = FillMode.NORMAL;\r\n _this.filters = [];\r\n return _this;\r\n }\r\n Object.defineProperty(TextureRenderer.prototype, \"hasFilters\", {\r\n get: function () {\r\n return this.filters && this.filters.length > 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n TextureRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n this.drawImage();\r\n this.applyFilters();\r\n };\r\n TextureRenderer.prototype.applyFilters = function () {\r\n var e_1, _a;\r\n if (!this.hasFilters)\r\n return;\r\n var _b = this, texture = _b.texture, filters = _b.filters, context = _b.context;\r\n var _c = texture.bounds, textureWidth = _c.width, textureHeight = _c.height;\r\n var imageData = context.getImageData(0, 0, textureWidth, textureHeight);\r\n try {\r\n for (var filters_1 = tslib_1.__values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {\r\n var filter = filters_1_1.value;\r\n filter.drawFilter(imageData);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n context.putImageData(imageData, 0, 0);\r\n };\r\n TextureRenderer.prototype.drawImage = function () {\r\n if (!this.texture) {\r\n return;\r\n }\r\n var _a = this, texture = _a.texture, fillMode = _a.fillMode, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height;\r\n var _c = texture.bounds, x = _c.x, y = _c.y, textureWidth = _c.width, textureHeight = _c.height;\r\n switch (fillMode) {\r\n case FillMode.NORMAL:\r\n texture.drawToCanvas(context);\r\n break;\r\n case FillMode.SLICED:\r\n break;\r\n case FillMode.TILED:\r\n var textureCanvas = texture.getCacheCanvas();\r\n var pattern = context.createPattern(textureCanvas, 'repeat');\r\n context.rect(0, 0, width, height);\r\n context.fillStyle = pattern;\r\n context.fill();\r\n break;\r\n }\r\n };\r\n TextureRenderer.prototype.measureBounds = function () {\r\n if (!this.dirty) {\r\n return;\r\n }\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n if (this.texture) {\r\n var _c = this.texture, textureWidth = _c.width, textureHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? textureWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? textureHeight : tHeight;\r\n }\r\n else {\r\n bounds.width = isNaN(tWidth) ? 0 : tWidth;\r\n bounds.height = isNaN(tHeight) ? 0 : tHeight;\r\n }\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"texture\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"fillMode\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], TextureRenderer.prototype, \"filters\", void 0);\r\n return TextureRenderer;\r\n}(Renderer));\r\nexport default TextureRenderer;\r\n//# sourceMappingURL=TextureRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"RoundLoop.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/RoundLoop.ts\"],\"names\":[],\"mappings\":\";AAGA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AAEvC;IAAuC,qCAAe;IAAtD;QAAA,qEAcC;QAXA,cAAQ,GAAW,KAAK,CAAC;;IAW1B,CAAC;IATA,4BAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;QAEX,IAAA,kCAAQ,CAAmB;QAClC,QAAQ,CAAC,KAAK,CACb,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,EACzB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,CACzB,CAAA;IACF,CAAC;IACF,gBAAC;AAAD,CAAC,AAdD,CAAuC,eAAe,GAcrD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent } from \"scilla\";\r\nvar RoundLoop = (function (_super) {\r\n tslib_1.__extends(RoundLoop, _super);\r\n function RoundLoop() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.duration = 10000;\r\n return _this;\r\n }\r\n RoundLoop.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n var position = this.transform.position;\r\n position.setXY(Math.cos(t * 0.001) * 100, Math.sin(t * 0.001) * 100);\r\n };\r\n return RoundLoop;\r\n}(ScillaComponent));\r\nexport default RoundLoop;\r\n//# sourceMappingURL=RoundLoop.js.map"}
{"map":"{\"version\":3,\"file\":\"ScrollView.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/ui/ScrollView.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAS,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,QAAQ,CAAC;AACjF,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C,IAAK,WAIJ;AAJD,WAAK,WAAW;IACf,+CAAK,CAAA;IACL,mDAA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AG,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QAEvD,IAAM,SAAS,GAAG,cAAc,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACzC,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QAC5E,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAC,CAAC;aAC9E,EAAE,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtD,CAAC;IACF,iBAAC;AAAD,CAAC,AAzHD,CAAwC,iBAAiB,GAyHxD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { Size, createTween, createVector2D, Vector2D, ease } from \"scilla\";\r\nimport InteractComponent from \"../base/InteractComponent\";\r\nimport Transform from \"../base/Transform\";\r\nvar LockingType;\r\n(function (LockingType) {\r\n LockingType[LockingType[\"NOSET\"] = 0] = \"NOSET\";\r\n LockingType[LockingType[\"HORIZON\"] = 1] = \"HORIZON\";\r\n LockingType[LockingType[\"VERTICAL\"] = 2] = \"VERTICAL\";\r\n})(LockingType || (LockingType = {}));\r\nvar ScrollView = (function (_super) {\r\n tslib_1.__extends(ScrollView, _super);\r\n function ScrollView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.lockingType = LockingType.NOSET;\r\n _this._lastPos = createVector2D();\r\n _this._speed = createVector2D();\r\n _this.updatePosOffset = function () {\r\n var _a = _this._contentTransform.position, x = _a.x, y = _a.y;\r\n _this._posOffset = { x: x, y: y };\r\n };\r\n _this.updatePosRange = function () {\r\n var _a = _this._viewportTransform, pWidth = _a.width, pHeight = _a.height;\r\n var _b = _this._contentTransform, width = _b.width, height = _b.height;\r\n _this._posRange = new Size(pWidth - width, pHeight - height);\r\n };\r\n return _this;\r\n }\r\n ScrollView.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this._contentTransform = this.content.getComponent(Transform);\r\n this._viewportTransform = this.viewport.getComponent(Transform);\r\n this.callOnNextTick(this.updatePosOffset);\r\n };\r\n ScrollView.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchBegin.call(this, e);\r\n this.updatePosRange();\r\n var tx = e.x, ty = e.y;\r\n var _a = this._contentTransform.position, cx = _a.x, cy = _a.y;\r\n this._beginPos = {\r\n tx: tx,\r\n ty: ty,\r\n cx: cx,\r\n cy: cy,\r\n };\r\n this._lastPos.setXY(tx, ty);\r\n };\r\n ScrollView.prototype.onGlobalTouchMove = function (e) {\r\n _super.prototype.onGlobalTouchMove.call(this, e);\r\n if (!this._beginPos) {\r\n return;\r\n }\r\n var _a = this, _b = _a._beginPos, tx = _b.tx, ty = _b.ty, cx = _b.cx, cy = _b.cy, _c = _a._posOffset, offX = _c.x, offY = _c.y, position = _a._contentTransform.position, lockingType = _a.lockingType;\r\n var x = e.x, y = e.y;\r\n var px = x - tx + cx;\r\n var py = y - ty + cy;\r\n var _d = this._posRange, rWidth = _d.width, rHeight = _d.height;\r\n var halfWidth = Math.abs(rWidth / 2);\r\n var paddingX = halfWidth - Math.abs(offX - halfWidth - px);\r\n if (paddingX < 0) {\r\n px += paddingX * 0.8 * (x - tx > 0 ? 1 : -1);\r\n }\r\n var halfHeight = Math.abs(rHeight / 2);\r\n var paddingY = halfHeight - Math.abs(offY - halfHeight - py);\r\n if (paddingY < 0) {\r\n py += paddingY * 0.8 * (y - ty > 0 ? 1 : -1);\r\n }\r\n switch (lockingType) {\r\n case LockingType.HORIZON:\r\n position.y = py;\r\n break;\r\n case LockingType.VERTICAL:\r\n position.x = px;\r\n break;\r\n default:\r\n position.setXY(px, py);\r\n }\r\n this._speed.copyFrom(this._lastPos.subtract({ x: x, y: y }));\r\n this._lastPos.setXY(x, y);\r\n };\r\n ScrollView.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (!this._beginPos) {\r\n return;\r\n }\r\n this._beginPos = null;\r\n var _a = this._posOffset, offX = _a.x, offY = _a.y;\r\n var _b = this._posRange, rWidth = _b.width, rHeight = _b.height;\r\n var _c = this._contentTransform, position = _c.position, _d = _c.position, x = _d.x, y = _d.y;\r\n var tx = Math.min(Math.max(offX + rWidth, x), offX);\r\n var ty = Math.min(Math.max(offY + rHeight, y), offY);\r\n var targetPos = createVector2D(tx, ty);\r\n var duration = Math.min(500, Math.max(targetPos.distance(position), 200));\r\n createTween(this._contentTransform, true, { clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ position: targetPos }, duration, ease.cubicOut);\r\n };\r\n return ScrollView;\r\n}(InteractComponent));\r\nexport default ScrollView;\r\n//# sourceMappingURL=ScrollView.js.map"}
{"map":"{\"version\":3,\"file\":\"LineRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/LineRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAKhD;IAA0C,wCAAe;IAAzD;QAAA,qEA4BC;QA3BA,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;QACf,QAAE,GAAW,CAAC,CAAC;;IAwBhB,CAAC;IAnBA,2BAAI,GAAJ;QACC,iBAAM,IAAI,WAAE,CAAC;QAEP,IAAA,SAAgC,EAA/B,oBAAO,EAAE,UAAE,EAAE,UAAE,EAAE,UAAE,EAAE,UAAU,CAAC;QAEvC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IAKD,oCAAa,GAAb;QACQ,IAAA,oBAAM,CAAS;QACtB,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAElB,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,mBAAC;AAAD,CAAC,AA5BD,CAA0C,eAAe,GA4BxD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nvar LineRenderer = (function (_super) {\r\n tslib_1.__extends(LineRenderer, _super);\r\n function LineRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.x0 = 0;\r\n _this.y0 = 0;\r\n _this.x1 = 0;\r\n _this.y1 = 0;\r\n return _this;\r\n }\r\n LineRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n var _a = this, context = _a.context, x0 = _a.x0, y0 = _a.y0, x1 = _a.x1, y1 = _a.y1;\r\n context.moveTo(x0, y0);\r\n context.lineTo(x1, y1);\r\n };\r\n LineRenderer.prototype.measureBounds = function () {\r\n var bounds = this.bounds;\r\n bounds.width = 0;\r\n bounds.height = 0;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return LineRenderer;\r\n}(GraphicRenderer));\r\nexport default LineRenderer;\r\n//# sourceMappingURL=LineRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mBAAmB,CAAA\"}","code":"export { default as CircleRenderer } from './CircleRenderer';\r\nexport { default as FrameAnimationRenderer } from './FrameAnimationRenderer';\r\nexport { default as GraphicRenderer } from './GraphicRenderer';\r\nexport { default as LineRenderer } from './LineRenderer';\r\nexport { default as RectRenderer } from './RectRenderer';\r\nexport { default as Renderer } from './Renderer';\r\nexport { default as TextRenderer } from './TextRenderer';\r\nexport { default as TextureRenderer } from './TextureRenderer';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"decorators.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/decorators.ts\"],\"names\":[],\"mappings\":\"AAUA,MAAM,UAAU,YAAY,CAAC,QAAQ;IACpC,OAAO,UAAU,MAAW,EAAE,GAAW;QACxC,IAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAClC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;YACD,GAAG,EAAE,UAAU,CAAC;gBACf,IAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;gBAClC,IAAI,QAAQ,KAAK,CAAC,EAAE;oBACnB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBACrB,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;iBACzC;YACF,CAAC;SACD,CAAC,CAAA;IACH,CAAC,CAAA;AACF,CAAC;AAKD,MAAM,CAAC,IAAM,kBAAkB,GAAG,YAAY,CAC7C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACtB,CAAC,CACD,CAAC;AAKF,MAAM,CAAC,IAAM,iBAAiB,GAAG,YAAY,CAC5C,UAAU,KAAK,EAAE,GAAG,EAAE,QAAQ;IAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC5D,CAAC,CACD,CAAC\"}","code":"export function fieldChanged(onChange) {\r\n return function (target, key) {\r\n var privateKey = '_' + key;\r\n Object.defineProperty(target, key, {\r\n enumerable: true,\r\n get: function () {\r\n return this[privateKey];\r\n },\r\n set: function (v) {\r\n var oldValue = this[privateKey];\r\n if (oldValue !== v) {\r\n this[privateKey] = v;\r\n onChange.apply(this, [v, key, oldValue]);\r\n }\r\n }\r\n });\r\n };\r\n}\r\nexport var dirtyFieldDetector = fieldChanged(function (value, key, oldValue) {\r\n this['dirty'] = true;\r\n});\r\nexport var dirtyFieldTrigger = fieldChanged(function (value, key, oldValue) {\r\n this['onModify'] && this['onModify'](value, key, oldValue);\r\n});\r\n//# sourceMappingURL=decorators.js.map"}
{"map":"{\"version\":3,\"file\":\"CircleRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/CircleRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAE3B,IAAA,kDAAkB,CAAe;AAKxC;IAA4C,0CAAe;IAA3D;QAAA,qEAsDC;QAjDA,YAAM,GAAG,EAAE,CAAC;QAMZ,gBAAU,GAAW,CAAC,CAAC;QAMvB,cAAQ,GAAW,GAAG,CAAC;QAMvB,kBAAY,GAAY,IAAI,CAAC;;IA+B9B,CAA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BAAkB;wDACU;IA+B9B,qBAAC;CAAA,AAtDD,CAA4C,eAAe,GAsD1D;eAtDoB,cAAc\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar CircleRenderer = (function (_super) {\r\n tslib_1.__extends(CircleRenderer, _super);\r\n function CircleRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.radius = 50;\r\n _this.startAngle = 0;\r\n _this.endAngle = 360;\r\n _this.backToCenter = true;\r\n return _this;\r\n }\r\n CircleRenderer.prototype.getRenderSize = function () {\r\n var radius = this.radius;\r\n return { width: radius * 2, height: radius * 2 };\r\n };\r\n CircleRenderer.prototype.draw = function () {\r\n var _a = this, context = _a.context, _b = _a.bounds, width = _b.width, height = _b.height, startAngle = _a.startAngle, endAngle = _a.endAngle, backToCenter = _a.backToCenter, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n var radius = Math.min(width, height) / 2;\r\n var pos = offset + radius;\r\n if (startAngle == 0 && endAngle == 360) {\r\n context.arc(pos, pos, radius, 0, 2 * Math.PI);\r\n }\r\n else {\r\n if (backToCenter) {\r\n context.moveTo(pos, pos);\r\n }\r\n context.arc(pos, pos, radius, startAngle * Math.PI / 180, endAngle * Math.PI / 180);\r\n if (backToCenter) {\r\n context.lineTo(pos, pos);\r\n }\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"radius\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"startAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"endAngle\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], CircleRenderer.prototype, \"backToCenter\", void 0);\r\n return CircleRenderer;\r\n}(GraphicRenderer));\r\nexport default CircleRenderer;\r\n//# sourceMappingURL=CircleRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"utils.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/utils.ts\"],\"names\":[],\"mappings\":\"AAMA,MAAM,UAAU,UAAU,CAAC,MAAW,EAAE,IAAU,EAAE,QAAmB,EAAE,YAA4B,EAAE,UAA0B;IAAxD,6BAAA,EAAA,mBAA4B;IAAE,2BAAA,EAAA,iBAA0B;IAChI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAC;KACb;IAED,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACrB,IAAI,KAAK,GAAQ,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,CAAC,YAAY,IAAI,OAAO,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,IAAI,IAAI,CAAC,EAAE;YACpF,IAAI,QAAQ,EAAE;gBACb,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;aAC7B;iBAAM;gBACN,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;aACpB;SACD;KACD;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAG;IAClC,IAAI,CAAC,GAAG,EAAE;QACT,OAAO,EAAE,CAAC;KACV;IACD,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;QACpB,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/B;IACD,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtB,CAAC;AAED,MAAM,UA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ull) {\r\n if (ignoreMethod === void 0) { ignoreMethod = true; }\r\n if (ignoreNull === void 0) { ignoreNull = true; }\r\n if (!target || !data) {\r\n return false;\r\n }\r\n var result = true;\r\n for (var key in data) {\r\n var value = data[key];\r\n if ((!ignoreMethod || typeof value != 'function') && (!ignoreNull || value != null)) {\r\n if (callback) {\r\n callback(target, key, value);\r\n }\r\n else {\r\n target[key] = value;\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\nexport function objectStringify(obj) {\r\n if (!obj) {\r\n return '';\r\n }\r\n var arr = [];\r\n for (var key in obj) {\r\n arr.push(key + '=' + obj[key]);\r\n }\r\n return arr.join('&');\r\n}\r\nexport function waitPromise(duration) {\r\n return new Promise(function (resolve) {\r\n setTimeout(resolve, duration);\r\n });\r\n}\r\nexport function format(formatStr) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n return formatApply(formatStr, params);\r\n}\r\nexport function formatApply(formatStr, params) {\r\n var result = formatStr;\r\n for (var i = 0, len = params.length; i < len; i++) {\r\n var reg = new RegExp(\"\\\\{\" + i + \"\\\\}\", 'g');\r\n result = result.replace(reg, params[i]);\r\n }\r\n return result;\r\n}\r\nvar zeros = [\r\n \"0\",\r\n \"00\",\r\n \"000\",\r\n \"0000\",\r\n \"00000\",\r\n \"000000\",\r\n \"0000000\",\r\n \"00000000\",\r\n \"000000000\",\r\n \"0000000000\"\r\n];\r\nexport function supplement(value, count) {\r\n var index = count - value.toString().length - 1;\r\n if (index < 0) {\r\n return value.toString();\r\n }\r\n return zeros[index] + value;\r\n}\r\n//# sourceMappingURL=utils.js.map"}
{"map":"{\"version\":3,\"file\":\"LocalStorage.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/LocalStorage.ts\"],\"names\":[],\"mappings\":\"AAIA;IAGC,sBAAY,EAAU;QACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,CAAC;IAED,8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AC;AAAD,CAAC,AAnCD,IAmCC\"}","code":"var LocalStorage = (function () {\r\n function LocalStorage(ID) {\r\n this.ID = ID;\r\n }\r\n LocalStorage.prototype.getName = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return (prefix || !this.ID || this.ID == '' ? prefix : this.ID) + '_' + key;\r\n };\r\n LocalStorage.prototype.getItem = function (key, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n return localStorage.getItem(this.getName(key, prefix));\r\n };\r\n LocalStorage.prototype.setItem = function (key, value, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n localStorage.setItem(this.getName(key, prefix), value);\r\n };\r\n LocalStorage.prototype.getItemObj = function (key, defaultObj, prefix) {\r\n if (defaultObj === void 0) { defaultObj = null; }\r\n if (prefix === void 0) { prefix = null; }\r\n var result;\r\n try {\r\n result = JSON.parse(this.getItem(key, prefix));\r\n }\r\n catch (e) {\r\n }\r\n if (!result) {\r\n result = defaultObj;\r\n }\r\n return result;\r\n };\r\n LocalStorage.prototype.setItemObj = function (key, itemObj, prefix) {\r\n if (prefix === void 0) { prefix = null; }\r\n this.setItem(key, JSON.stringify(itemObj), prefix);\r\n };\r\n return LocalStorage;\r\n}());\r\nexport default LocalStorage;\r\n//# sourceMappingURL=LocalStorage.js.map"}
{"map":"{\"version\":3,\"file\":\"setXY.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/setXY.ts\"],\"names\":[],\"mappings\":\"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,IAAM,IAAI,GAAG,UAAC,CAAQ,EAAE,CAAQ;IAClC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAe,CAAC,QAAQ,CAAC,CAAC,GAAE,CAAC,CAAC;AAC3D,CAAC,CAAA;AACD,MAAM,CAAC,IAAM,IAAI,GAAI,UAAC,CAAQ,EAAE,CAAQ;IACnC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAe,CAAC,QAAQ,CAAC,CAAC,GAAE,CAAC,CAAC;AAC3D,CAAC,CAAA\"}","code":"import { Transform } from 'scilla-components/src';\r\nexport var setX = function (e, x) {\r\n e.getComponent(Transform).position.x = x;\r\n};\r\nexport var setY = function (e, y) {\r\n e.getComponent(Transform).position.y = y;\r\n};\r\n//# sourceMappingURL=setXY.js.map"}
{"map":"{\"version\":3,\"file\":\"Slider.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/Slider.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAU,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAQ,IAAI,EAAE,MAAM,SAAS,CAAC;AAErC;IAAoC,kCAAe;IAAnD;;IA4EA,CAAC;IAjEG,yBAAQ,GAAR;QACI,iBAAM,QAAQ,WAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG;YACZ,UAAU;YACV,WAAW;YACX,UAAU;YACV,SAAS;YACT,UAAU;SACb,CAAC;IACN,CAAC;IAED,6BAAY,GAAZ;QAAA,iBA0CC;QAxCG,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC;QAEvC,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAC5B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAE7B,WAAW,CAAC,YAAY,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C,CAAC,CAAC,CAAC,CAAC;QAClD,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC;YACtB,KAAI,CAAC,YAAY,EAAE,CAAC;QACxB,CAAC,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IACL,aAAC;AAAD,CAAC,AA5ED,CAAoC,eAAe,GA4ElD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, createTween, Vector2D, createVector2D } from 'scilla-core/src';\r\nimport { getTransForm } from './utils';\r\nimport { setLabelText } from './labelUtils';\r\nimport { setY } from './setXY';\r\nvar Slider = (function (_super) {\r\n tslib_1.__extends(Slider, _super);\r\n function Slider() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n Slider.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this.dataList = [\r\n '11111111',\r\n '222222222',\r\n '33333333',\r\n '4444444',\r\n '55555555',\r\n ];\r\n };\r\n Slider.prototype.updateSlider = function () {\r\n var _this = this;\r\n this.currentLabel1 = this.sliderLabel1;\r\n this.currentLabel2 = this.sliderLabel2;\r\n setLabelText(this.sliderLabel1, this.dataList[0]);\r\n setLabelText(this.sliderLabel2, this.dataList[1]);\r\n setY(this.currentLabel1, 0);\r\n setY(this.currentLabel2, 41);\r\n createTween(getTransForm(this.currentLabel1), false, {\r\n clazz: Vector2D,\r\n fields: ['y'],\r\n autoPlay: true,\r\n initFields: ['_position']\r\n })\r\n .to({\r\n position: createVector2D(0, -41)\r\n }, 1000);\r\n createTween(getTransForm(this.currentLabel2), false, {\r\n clazz: Vector2D,\r\n fields: ['y'],\r\n autoPlay: true,\r\n initFields: ['_position']\r\n })\r\n .to({\r\n position: createVector2D(0, 0)\r\n }, 1000).call(function () {\r\n setY(_this.currentLabel1, 41);\r\n var tmp1 = _this.currentLabel1;\r\n var tmp2 = _this.currentLabel2;\r\n _this.currentLabel1 = tmp2;\r\n _this.currentLabel2 = tmp1;\r\n var first = _this.dataList.shift();\r\n _this.dataList.push(first);\r\n setLabelText(_this.currentLabel2, _this.dataList[1]);\r\n });\r\n };\r\n Slider.prototype.onAwake = function () {\r\n var _this = this;\r\n _super.prototype.onAwake.call(this);\r\n setLabelText(this.sliderLabel1, this.dataList[0]);\r\n setLabelText(this.sliderLabel2, this.dataList[1]);\r\n this._timer = setInterval(function () {\r\n _this.updateSlider();\r\n }, 4000);\r\n };\r\n return Slider;\r\n}(ScillaComponent));\r\nexport default Slider;\r\n//# sourceMappingURL=Slider.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchZoom.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/TouchZoom.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAS,QAAQ,GAAE,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAE1C;IAAuC,qCAAiB;IAAxD;QAAA,qEA+CC;QA9CA,iBAAW,GAAa,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACjD,cAAQ,GAAW,GAAG,CAAC;QACvB,cAAQ,GAAS,IAAI,CAAC,OAAO,CAAC;;IA4C/B,CAAC;IAtCA,2BAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACZ,IAAA,SAAyC,EAAxC,4BAAW,EAAE,sBAAQ,EAAE,wBAAiB,CAAC;YAEhD,IAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAErC,IAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC1C,IAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAEzD,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAC,CAAC;iBAClG,EAAE,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE3C,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAC,CAAC;iBACnG,EAAE,CAAC,EAAC,KAAK,EAAE,SAAS,EAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC7C;IACF,CAAC;IAED,gCAAY,GAAZ,UAAa,CAAC;QACb,iBAAM,WAAW,YAAC,CAAC,CAAC,CAAC;QAErB,IAAI,IAAI,CAAC,YAAY,EAAE;YACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;IACF,CAAC;IAED,oCAAgB,GAAhB,UAAiB,CAAC;QACjB,iBAAM,gBAAgB,YAAC,CAAC,CAAC,CAAC;QAE1B,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,KAAK,CAAC;IACd,CAAC;IACF,gBAAC;AAAD,CAAC,AA/CD,CAAuC,iBAAiB,GA+CvD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTween, createVector2D, ease, Ease, Vector2D, } from \"scilla\";\r\nimport { InteractComponent } from \"../base\";\r\nvar TouchZoom = (function (_super) {\r\n tslib_1.__extends(TouchZoom, _super);\r\n function TouchZoom() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.scaleOffset = createVector2D(0.1, 0.1);\r\n _this.duration = 200;\r\n _this.easeName = Ease.backOut;\r\n return _this;\r\n }\r\n TouchZoom.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n if (!this._zoomIn) {\r\n var _a = this, scaleOffset = _a.scaleOffset, duration = _a.duration, transform = _a.transform;\r\n var easeFunc = ease[this.easeName];\r\n var scaleFrom = transform.scale.clone();\r\n var scaleTo = transform.scale.clone().add(scaleOffset);\r\n this._zoomIn = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleTo }, duration, easeFunc);\r\n this._zoomOut = createTween(transform, false, { autoPlay: false, clazz: Vector2D, fields: ['x', 'y'] })\r\n .to({ scale: scaleFrom }, duration, easeFunc);\r\n }\r\n };\r\n TouchZoom.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.interactable) {\r\n this._touchBegin = true;\r\n this._zoomIn.play(true);\r\n }\r\n };\r\n TouchZoom.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this._touchBegin) {\r\n this._touchBegin = false;\r\n this._zoomOut.play(true);\r\n }\r\n return false;\r\n };\r\n return TouchZoom;\r\n}(InteractComponent));\r\nexport default TouchZoom;\r\n//# sourceMappingURL=TouchZoom.js.map"}
{"map":"{\"version\":3,\"file\":\"ObjectPool.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/ObjectPool.ts\"],\"names\":[],\"mappings\":\";AAMA,IAAI,GAAG,GAAG,EAAE,CAAC;AAEb,SAAS,QAAQ,CAAC,IAAI;IACrB,IAAI,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,IAAG,CAAC,KAAK,EAAC;QACT,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,kBAAkB,CAAC,CAAC;KACtD;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ;IAC/C,GAAG,CAAC,IAAI,CAAC,GAAG,EAAC,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,QAAQ,UAAA,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,IAAI;IAAE,gBAAS;SAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;QAAT,+BAAS;;IAClC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEtB,IAAA,uBAAO,EAAE,yBAAQ,EAAE,iBAAI,CAAU;IAEtC,IAAI,QAAQ,CAAC;IACb,IAAG,IAAI,CAAC,MAAM,IAAI,CAAC,EAAC;QACnB,QAAQ,GAAG,OAAO,EAAE,CAAC;KACrB;SAAI;QACJ,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;KACtB;IAED,QAAQ,iCAAC,QAAQ,GAAK,MAAM,GAAE;IAE9B,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAI,EAAE,QAAQ;IACrC,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar all = {};\r\nfunction getGroup(name) {\r\n var group = all[name];\r\n if (!group) {\r\n throw new Error('group ' + name + ' not registered.');\r\n }\r\n return group;\r\n}\r\nexport function register(name, newFunc, initFunc) {\r\n all[name] = { name: name, newFunc: newFunc, initFunc: initFunc, pool: [] };\r\n}\r\nexport function get(name) {\r\n var params = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n params[_i - 1] = arguments[_i];\r\n }\r\n var group = getGroup(name);\r\n var newFunc = group.newFunc, initFunc = group.initFunc, pool = group.pool;\r\n var instance;\r\n if (pool.length == 0) {\r\n instance = newFunc();\r\n }\r\n else {\r\n instance = pool.pop();\r\n }\r\n initFunc.apply(void 0, tslib_1.__spread([instance], params));\r\n return instance;\r\n}\r\nexport function recycle(name, instance) {\r\n var group = getGroup(name);\r\n group.pool.push(instance);\r\n}\r\n//# sourceMappingURL=ObjectPool.js.map"}
{"map":"{\"version\":3,\"file\":\"TouchInterrupt.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/TouchInterrupt.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD;IAA4C,0CAAiB;IAA7D;QAAA,qEAEC;QADA,oBAAc,GAAY,IAAI,CAAC;;IAChC,CAAC;IAAD,qBAAC;AAAD,CAAC,AAFD,CAA4C,iBAAiB,GAE5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport InteractComponent from \"./InteractComponent\";\r\nvar TouchInterrupt = (function (_super) {\r\n tslib_1.__extends(TouchInterrupt, _super);\r\n function TouchInterrupt() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n return TouchInterrupt;\r\n}(InteractComponent));\r\nexport default TouchInterrupt;\r\n//# sourceMappingURL=TouchInterrupt.js.map"}
{"map":"{\"version\":3,\"file\":\"HashObject.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/HashObject.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,aAAa,GAAG,CAAC,CAAC;AAEtB,SAAS,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;AACxB,CAAC;AAKD;IAGC;QACC,IAAI,CAAC,SAAS,GAAG,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,sBAAI,gCAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;;;OAAA;IACF,iBAAC;AAAD,CAAC,AAVD,IAUC\"}","code":"var HASH_CODE_INK = 0;\r\nfunction getHashCode() {\r\n return ++HASH_CODE_INK;\r\n}\r\nvar HashObject = (function () {\r\n function HashObject() {\r\n this._hashCode = getHashCode();\r\n }\r\n Object.defineProperty(HashObject.prototype, \"hashCode\", {\r\n get: function () {\r\n return this._hashCode;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return HashObject;\r\n}());\r\nexport default HashObject;\r\n//# sourceMappingURL=HashObject.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/index.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,WAAW,EAAE,UAAU,GAAG,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,SAAS,CAAC;AAErD,cAAc,eAAe,CAAA;AAE7B,IAAI,YAAmB,CAAC;AACxB,IAAI,QAAQ,CAAC;AAOb,MAAM,UAAgB,WAAW,CAAC,IAAI,EAAE,QAAS;;;;;wBAClC,WAAM,SAAS,CAAC,YAAU,IAAI,WAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC,EAAA;;oBAAhE,KAAK,GAAG,SAAwD;oBAEtE,QAAQ,GAAG,cAAc,EAAE,CAAC;oBAE5B,WAAM,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAA;;oBAA7C,SAA6C,CAAC;oBAE9C,IAAG,YAAY,EAAC;wBACf,YAAY,CAAC,YAAY,CAAC,CAAC;qBAC3B;oBAED,YAAY,GAAG,KAAK,CAAC;oBACrB,UAAU,CAAC,KAAK,CAAC,CAAC;oBAElB,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;;;;;CACtC;AAMD,MAAM,UAAU,UAAU,CAAC,KAAK;IAC/B,KAAK,EAAE,CAAC;IACR,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7B,KAAK,EAAE,CAAC;AACT,CAAC;AAMD,MAAM,UAAU,YAAY,CAAC,KAAK;IACjC,KAAK,EAAE,CAAC;IACR,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxB,UAAU,CAAC,QAAQ,CAAC,CAAC;AACtB,CAAC;AAUD,SAAe,SAAS,CAAC,GAAG,EAAE,IAAK,EAAE,KAAa,EAAE,MAAO;IAAtB,sBAAA,EAAA,aAAa;;;;;wBAC7B,WAAM,SAAS,CAAC,GAAG,CAAC,EAAA;;oBAAlC,WAAW,GAAG,SAAoB;oBAElC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;oBAC1B,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;oBAChC,WAAO,KAAK,EAAC;;;;CACb;AAUD,MAAM,UAAgB,UAAU,CAAC,GAAG,EAAE,IAAK,EAAE,KAAY,EAAE,MAAO;IAArB,sBAAA,EAAA,YAAY;;;;;wBAC7C,WAAM,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,EAAA;;oBAAxC,IAAI,GAAG,SAAiC;oBAC5C,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;oBAC1B,WAAO,IAAI,EAAC;;;;CACZ;AAED,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { cleanEntity, setupScene, } from \"./interpreter\";\r\nimport { addLoader, cacheRes, destroyRes, getAllResUuids, loadJson5 } from \"../assets-manager\";\r\nimport { getRoot, pause, Scene, start } from \"../core\";\r\nexport * from './interpreter';\r\nvar currentScene;\r\nvar resUUIDs;\r\nexport function launchScene(name, progress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadScene(\"scenes/\" + name + \".scene\", 'scene_' + name)];\r\n case 1:\r\n scene = _a.sent();\r\n resUUIDs = getAllResUuids();\r\n return [4, scene.loadResGroup('preload', progress)];\r\n case 2:\r\n _a.sent();\r\n if (currentScene) {\r\n unmountScene(currentScene);\r\n }\r\n currentScene = scene;\r\n mountScene(scene);\r\n scene.loadResGroup('delay', progress);\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\nexport function mountScene(scene) {\r\n pause();\r\n setupScene(scene, getRoot());\r\n start();\r\n}\r\nexport function unmountScene(scene) {\r\n pause();\r\n cleanEntity(scene.root);\r\n destroyRes(resUUIDs);\r\n}\r\nfunction loadScene(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = false; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sceneConfig, scene;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url)];\r\n case 1:\r\n sceneConfig = _a.sent();\r\n scene = new Scene();\r\n scene.initByConfig(sceneConfig);\r\n return [2, scene];\r\n }\r\n });\r\n });\r\n}\r\nexport function loadPrefab(url, uuid, cache, config) {\r\n if (cache === void 0) { cache = true; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4, loadJson5(url, uuid, false)];\r\n case 1:\r\n data = _a.sent();\r\n cacheRes(data, url, uuid);\r\n return [2, data];\r\n }\r\n });\r\n });\r\n}\r\naddLoader('.pfb', loadPrefab);\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Rotation.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/Rotation.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,WAAW,EAAQ,MAAM,QAAQ,CAAC;AAExE;IAAsC,oCAAe;IAArD;QAAA,qEAgCC;QA/BA,cAAQ,GAAW,KAAK,CAAC;QACzB,cAAQ,GAAY,KAAK,CAAC;QAC1B,UAAI,GAAW,CAAC,CAAC,CAAC;QAClB,gBAAU,GAAgB,IAAI,WAAW,EAAE,CAAC;;IA4B7C,CAAC;IAxBA,2BAAQ,GAAR;QACC,iBAAM,QAAQ,WAAE,CAAC;IAElB,CAAC;IAED,0BAAO,GAAP;QAAA,iBAUC;QATA,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAG,CAAC,IAAI,CAAC,MAAM,EAAC;YACf,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,WAAW,CAAC,EAAC,CAAC;iBACrH,EAAE,CAAC,EAAC,QAAQ,EAAE,GAAG,EAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;iBAClC,IAAI,CAAC;gBACL,KAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;YAC1B,CAAC,CAAC,CAAC;SACJ;IACF,CAAC;IAED,uBAAI,GAAJ;QACC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,uBAAI,GAAJ;QACC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IACF,eAAC;AAAD,CAAC,AAhCD,CAAsC,eAAe,GAgCpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { createTween, ScillaComponent, ScillaEvent } from \"scilla\";\r\nvar Rotation = (function (_super) {\r\n tslib_1.__extends(Rotation, _super);\r\n function Rotation() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.duration = 10000;\r\n _this.autoPlay = false;\r\n _this.loop = -1;\r\n _this.onComplete = new ScillaEvent();\r\n return _this;\r\n }\r\n Rotation.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n };\r\n Rotation.prototype.onAwake = function () {\r\n var _this = this;\r\n _super.prototype.onAwake.call(this);\r\n if (!this._tween) {\r\n this._tween = createTween(this.transform, false, { autoPlay: this.autoPlay, loop: this.loop, initFields: ['_rotation'] })\r\n .to({ rotation: 360 }, this.duration)\r\n .call(function () {\r\n _this.onComplete.invoke();\r\n });\r\n }\r\n };\r\n Rotation.prototype.play = function () {\r\n this._tween.play(true);\r\n };\r\n Rotation.prototype.stop = function () {\r\n this._tween.stop();\r\n };\r\n return Rotation;\r\n}(ScillaComponent));\r\nexport default Rotation;\r\n//# sourceMappingURL=Rotation.js.map"}
{"map":"{\"version\":3,\"file\":\"Fade.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/Fade.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,IAAI,EAAE,eAAe,EAAC,MAAM,QAAQ,CAAC;AAE7C;IAAkC,gCAAe;IAAjD;QAAA,qEAkCC;QAjCA,eAAS,GAAW,CAAC,CAAC;QACtB,aAAO,GAAW,CAAC,CAAC;QACpB,cAAQ,GAAW,IAAI,CAAC;;IA+BzB,CAAC;IA1BA,uBAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;QAElB,IAAG,IAAI,CAAC,QAAQ,EAAC;YAChB,IAAG,CAAC,IAAI,CAAC,UAAU,EAAC;gBACnB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;aACpB;YAED,IAAI,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;YAElD,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAEtE,IAAG,KAAK,IAAI,CAAC,EAAC;gBACb,IAAI,CAAC,IAAI,EAAE,CAAC;aACZ;SACD;IACF,CAAC;IAED,mBAAI,GAAJ;QACC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,mBAAI,GAAJ;QACC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACvB,CAAC;IACF,WAAC;AAAD,CAAC,AAlCD,CAAkC,eAAe,GAkChD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { math, ScillaComponent } from \"scilla\";\r\nvar Fade = (function (_super) {\r\n tslib_1.__extends(Fade, _super);\r\n function Fade() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fromAlpha = 0;\r\n _this.toAlpha = 1;\r\n _this.duration = 1000;\r\n return _this;\r\n }\r\n Fade.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n if (this._playing) {\r\n if (!this._startTime) {\r\n this._startTime = t;\r\n }\r\n var ratio = (t - this._startTime) / this.duration;\r\n this.transform.alpha = math.lerp(this.fromAlpha, this.toAlpha, ratio);\r\n if (ratio >= 1) {\r\n this.stop();\r\n }\r\n }\r\n };\r\n Fade.prototype.play = function () {\r\n this._startTime = 0;\r\n this._playing = true;\r\n };\r\n Fade.prototype.stop = function () {\r\n this._playing = false;\r\n };\r\n return Fade;\r\n}(ScillaComponent));\r\nexport default Fade;\r\n//# sourceMappingURL=Fade.js.map"}
{"map":"{\"version\":3,\"file\":\"CameraController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/other/CameraController.ts\"],\"names\":[],\"mappings\":\";AAKA,OAAO,EAAS,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,QAAQ,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EAAhB,gBAAK,EAAE,sBAAQ,EAAG,iBAA0B,EAAd,gBAAK,EAAE,kBAAM,EAAG,sBAA8B,EAAb,QAAC,EAAE,QAAC,EAAE,kBAAM,EAAG,sBAAgB,CAAC;QAElH,IAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;QACrD,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAEhC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAE/E,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3F,CAAC;IACF,uBAAC;AAAD,CAAC,AA1DD,CAA8C,eAAe,GA0D5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { getStageSize, ScillaComponent, createVector2D, Vector2D, math } from \"scilla\";\r\nimport Transform from \"../base/Transform\";\r\nvar CameraController = (function (_super) {\r\n tslib_1.__extends(CameraController, _super);\r\n function CameraController() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.viewportAnchor = createVector2D(0.5, 0.5);\r\n _this.maxScale = 1.2;\r\n return _this;\r\n }\r\n CameraController.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n };\r\n CameraController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n var target = this.target;\r\n this.stageSize = getStageSize();\r\n if (target) {\r\n this.targetPosition = target.getComponent(Transform).position;\r\n }\r\n this.followPosition = createVector2D();\r\n this.updateViewport();\r\n };\r\n CameraController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n this.followTarget();\r\n };\r\n CameraController.prototype.updateViewport = function () {\r\n if (this.viewportAnchor) {\r\n var _a = this.stageSize, width = _a.width, height = _a.height;\r\n var _b = this.viewportAnchor, x_1 = _b.x, y = _b.y;\r\n this.transform.position.setXY(width * x_1, height * y);\r\n this.transform.width = width;\r\n this.transform.height = height;\r\n }\r\n };\r\n CameraController.prototype.followTarget = function () {\r\n if (!this.targetPosition) {\r\n return;\r\n }\r\n var _a = this, _b = _a.transform, scale = _b.scale, position = _b.position, _c = _a.stageSize, width = _c.width, height = _c.height, _d = _a.targetPosition, x = _d.x, y = _d.y, length = _d.length, maxScale = _a.maxScale;\r\n var newScale = maxScale - length * maxScale / 2048;\r\n scale.setXY(newScale, newScale);\r\n this.followPosition.setXY(width / 2, height / 2).subtract(this.targetPosition);\r\n position.copyFrom(math.lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));\r\n };\r\n return CameraController;\r\n}(ScillaComponent));\r\nexport default CameraController;\r\n//# sourceMappingURL=CameraController.js.map"}
{"map":"{\"version\":3,\"file\":\"BounceZoom.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/BounceZoom.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,eAAe,EAAE,WAAW,EAAS,QAAQ,EAAE,cAAc,EAAC,MAAM,QAAQ,CAAC;AAErF,IAAM,WAAW,GAAa,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEnD;IAAwC,sCAAe;IAAvD;QAAA,qEAmBC;QAlBA,iBAAW,GAAa,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACjD,cAAQ,GAAU,GAAG,CAAC;;IAiBvB,CAAC;IAbA,4BAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAC9C,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CACrD;aACA,EAAE,CAAC,EAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,EAAC,EAAE,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;aAC1D,EAAE,CAAC,EAAC,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,EAAC,EAAE,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAA;IACxD,CAAC;IAED,yBAAI,GAAJ;QACC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IACF,iBAAC;AAAD,CAAC,AAnBD,CAAwC,eAAe,GAmBtD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, createTween, Vector2D, createVector2D } from \"scilla\";\r\nvar originScale = createVector2D(1, 1);\r\nvar BounceZoom = (function (_super) {\r\n tslib_1.__extends(BounceZoom, _super);\r\n function BounceZoom() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.targetScale = createVector2D(1.5, 1.5);\r\n _this.duration = 100;\r\n return _this;\r\n }\r\n BounceZoom.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this._tween = createTween(this.transform, false, { clazz: Vector2D, fields: ['x', 'y'], autoPlay: false })\r\n .to({ scale: this.targetScale.clone() }, this.duration * 0.5)\r\n .to({ scale: originScale.clone() }, this.duration * 0.5);\r\n };\r\n BounceZoom.prototype.play = function () {\r\n this._tween.play(true);\r\n };\r\n return BounceZoom;\r\n}(ScillaComponent));\r\nexport default BounceZoom;\r\n//# sourceMappingURL=BounceZoom.js.map"}
{"map":"{\"version\":3,\"file\":\"LaunchOptions.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/LaunchOptions.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EACN,KAAK,GACL,MAAM,QAAQ,CAAA;AAEf,IAAM,OAAO,GAAQ,EAAE,CAAC;AAExB,MAAM,UAAU,MAAM,CAAC,IAAI;IAC1B,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,eAAe,OAAO,CAAC\"}","code":"import { utils, } from 'scilla';\r\nvar options = {};\r\nexport function inject(data) {\r\n utils.injectProp(options, data);\r\n}\r\nexport default options;\r\n//# sourceMappingURL=LaunchOptions.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/other/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA\"}","code":"export { default as CameraController } from './CameraController';\r\nexport { default as ContentSizeFitter } from './ContentSizeFitter';\r\nexport { default as RelativeLayout } from './RelativeLayout';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAA;AAClD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA;AAChD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA;AAChD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAA\"}","code":"export { default as BounceZoom } from './BounceZoom';\r\nexport { default as Fade } from './Fade';\r\nexport { default as Rotation } from './Rotation';\r\nexport { default as RoundLoop } from './RoundLoop';\r\nexport { default as Swing } from './Swing';\r\nexport { default as TouchZoom } from './TouchZoom';\r\nexport { default as Wave } from './Wave';\r\nexport { default as ZoomLoop } from './ZoomLoop';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Button.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/ui/Button.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,WAAW,GAAW,MAAM,QAAQ,CAAC;AAC7C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C;IAAoC,kCAAiB;IAWpD;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,cAAc,GAAG,IAAI,CAAC;;IAC5B,CAAC;IAED,sBAAI,6BAAS;aAAb;YACC,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;;;OAAA;IAED,yBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,iBAAM,QAAQ,YAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;QAErC,IAAI,GAAG,KAAK,cAAc,EAAE;YAC3B,IAAG,IAAI,CAAC,SAAS,EAAC;gBACjB,IAAI,CAAC,SAAS,CAAC,YAAY,GAAG,KAAK,CAAC;aACpC;YACD,IAAI;gBACH,IAAI,CAAC,aAAa,EAAE,CAAC;aACrB;YAAA,OAAO,CAAC,EAAE,GAAE;SACb;IACF,CAAC;IAED,yBAAQ,GAAR;QACC,iBAAM,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AAG,KAAK,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,8BAAa,GAAb,UAAc,GAAI;QACjB,IAAG,CAAC,IAAI,CAAC,UAAU,EAAC;YACnB,OAAO;SACP;QAED,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC;QACpC,IAAG,IAAI,CAAC,YAAY,EAAC;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;SAC1C;aAAI;YACJ,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC;SAC3C;IACF,CAAC;IACF,aAAC;AAAD,CAAC,AAlGD,CAAoC,iBAAiB,GAkGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaEvent, } from \"scilla\";\r\nimport TouchZoom from \"../animation/TouchZoom\";\r\nimport { InteractComponent } from \"../base\";\r\nimport { TextureRenderer } from \"../renderer\";\r\nvar Button = (function (_super) {\r\n tslib_1.__extends(Button, _super);\r\n function Button() {\r\n var _this = _super.call(this) || this;\r\n _this.touchInterrupt = true;\r\n return _this;\r\n }\r\n Object.defineProperty(Button.prototype, \"touchZoom\", {\r\n get: function () {\r\n return this.entity && this.entity.getComponent(TouchZoom);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Button.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n if (key === 'interactable') {\r\n if (this.touchZoom) {\r\n this.touchZoom.interactable = value;\r\n }\r\n try {\r\n this.changeTexture();\r\n }\r\n catch (e) { }\r\n }\r\n };\r\n Button.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this.onClick = new ScillaEvent();\r\n };\r\n Button.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.bgRenderer = this.entity.getComponent(TextureRenderer);\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.onTouchBegin = function (e) {\r\n _super.prototype.onTouchBegin.call(this, e);\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n };\r\n Button.prototype.onTouchOver = function (e) {\r\n _super.prototype.onTouchOver.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.touchBeginWithSelf = true;\r\n this.changeTexture(this.downRes);\r\n }\r\n this.touchOut = false;\r\n };\r\n Button.prototype.onTouchOut = function (e) {\r\n _super.prototype.onTouchOut.call(this, e);\r\n if (this.touchBeginWithSelf) {\r\n this.changeTexture(this.upRes);\r\n }\r\n this.touchOut = true;\r\n };\r\n Button.prototype.onGlobalTouchEnd = function (e) {\r\n _super.prototype.onGlobalTouchEnd.call(this, e);\r\n if (this.touchBeginWithSelf && !this.touchOut) {\r\n this.onClick.invoke();\r\n }\r\n this.touchBeginWithSelf = false;\r\n this.changeTexture(this.upRes);\r\n };\r\n Button.prototype.changeTexture = function (res) {\r\n if (!this.bgRenderer) {\r\n return;\r\n }\r\n this.currentRes = res || this.upRes;\r\n if (this.interactable) {\r\n this.bgRenderer.texture = this.currentRes;\r\n }\r\n else {\r\n this.bgRenderer.texture = this.disabledRes;\r\n }\r\n };\r\n return Button;\r\n}(InteractComponent));\r\nexport default Button;\r\n//# sourceMappingURL=Button.js.map"}
{"map":"{\"version\":3,\"file\":\"manager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/manager.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,YAAY,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,YAAY,IAAI,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC7F,OAAO,y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Z;IACF,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,OAAO;QAC7B,OAAO,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;AAEJ,CAAC;AAMD,SAAS,YAAY,CAAC,KAAK;IAC1B,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,WAAW,CAAC,KAAK;IACzB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC;AAMD,SAAS,UAAU,CAAC,KAAK;IACxB,iBAAiB,CAAC,IAAI,EAAE,UAAU,KAAK;QACtC,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAA;AACH,CAAC\"}","code":"import { Entity, traverse, traversePostorder } from \"./Entity\";\r\nimport { injectProp } from \"../tools/utils\";\r\nimport { setupContext as setupInteractContext } from \"./context/InteractContext\";\r\nimport { clear, ScaleMode, setupContext as setupRenderContext } from \"./context/RenderContext\";\r\nimport './requestAnimationFrame';\r\nvar options = {\r\n fps: 60,\r\n designWidth: 750,\r\n designHeight: 1334,\r\n scaleMode: ScaleMode.FIXED_WIDTH,\r\n};\r\nvar root;\r\nvar _flush = 0, _currentFlush = 0;\r\nvar tsStart, tsLast;\r\nvar lastFPS = 0;\r\nexport function setup(_options) {\r\n injectProp(options, _options);\r\n var canvas = options.canvas, designWidth = options.designWidth, designHeight = options.designHeight, scaleMode = options.scaleMode, modifyCanvasSize = options.modifyCanvasSize;\r\n var canvasElement = typeof canvas == 'object' ? canvas : document.getElementById(canvas);\r\n setupInteractContext({\r\n canvas: canvasElement,\r\n touchHandler: {\r\n onTouchBegin: onTouchBegin,\r\n onTouchMove: onTouchMove,\r\n onTouchEnd: onTouchEnd,\r\n }\r\n });\r\n setupRenderContext({\r\n canvas: canvasElement,\r\n designWidth: designWidth,\r\n designHeight: designHeight,\r\n scaleMode: scaleMode,\r\n modifyCanvasSize: modifyCanvasSize,\r\n });\r\n root = new Entity('root');\r\n root._restrict();\r\n}\r\nexport function start() {\r\n root.enabled = true;\r\n tsStart = Date.now();\r\n startTick();\r\n}\r\nexport function pause() {\r\n root.enabled = false;\r\n stopTick();\r\n}\r\nexport function getRoot() {\r\n return root;\r\n}\r\nexport function getFPS() {\r\n return lastFPS;\r\n}\r\nfunction startTick() {\r\n _flush = 60 / options.fps - 1 >> 0;\r\n if (_flush < 0) {\r\n _flush = 0;\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction stopTick() {\r\n}\r\nvar tsLast2;\r\nfunction flush(tsNow) {\r\n if (_flush == 0) {\r\n onFrameTick(tsNow);\r\n }\r\n else {\r\n if (_currentFlush == 0) {\r\n onFrameTick(tsNow);\r\n _currentFlush = _flush;\r\n }\r\n else {\r\n _currentFlush--;\r\n }\r\n }\r\n requestAnimationFrame(flush);\r\n}\r\nfunction onFrameTick(tsNow) {\r\n clear();\r\n var tsNow2 = Date.now();\r\n lastFPS = Math.floor(1000 / (tsNow - tsLast));\r\n tsLast = tsNow;\r\n tsLast2 = tsNow2;\r\n var ts = tsNow - tsStart;\r\n traverse(root, function (child) {\r\n if (!child.isFree && child.enabled) {\r\n child.onUpdate(ts);\r\n }\r\n else {\r\n return true;\r\n }\r\n }, -1, true, function (current) {\r\n current.afterUpdate();\r\n });\r\n}\r\nfunction onTouchBegin(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(0, event);\r\n });\r\n}\r\nfunction onTouchMove(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(1, event);\r\n });\r\n}\r\nfunction onTouchEnd(event) {\r\n traversePostorder(root, function (child) {\r\n return child.onInteract(2, event);\r\n });\r\n}\r\n//# sourceMappingURL=manager.js.map"}
{"map":"{\"version\":3,\"file\":\"GraphicRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/GraphicRenderer.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAMlC;IAA6C,2CAAQ;IAArD;QAAA,qEAsGC;QArGA,eAAS,GAAU,SAAS,CAAC;QAC7B,iBAAW,GAAU,SAAS,CAAC;QAC/B,iBAAW,GAAG,CAAC,CAAC;QAGhB,kBAAY,GAAG,KAAK,CAAC;QAErB,iBAAW,GAAG,KAAK,CAAC;;IA8FrB,CAAC;IA5FU,yCAAe,GAAzB;QACC,OAAO,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;IACjD,CAAC;IAKS,uCAAa,GAAvB;QACC,OAAO,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC;IAC9B,CAAC;IAKS,oCAAU,GAApB;QACC,iBAAM,UAAU,WAAE,CAAC;QACnB,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;IAKS,8BAAI,GAAd;QACC,iBAAM,IAAI,WAAE,CAAC;QAEb,IAAI,IAAI,CAAC,YAAY,EAAE;YACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,YAAY,EAAE,CAAA;SACvC;aAAM;YACN,IAAI,CAAC,YAAY,EAAE,CAAA;SACnB;IACF,CAAC;IAKS,oCAAU,GAApB;QACO,IAAA,SAAqD,EAApD,oBAAO,EAAE,wBAAS,EAAE,4BAAW,EAAE,4BAAmB,CAAC;QAE5D,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;QAC9B,IAAI,WAAW,GAAG,CAAC,EAAE;YACpB,OAAO,CAAC,WAAW,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GraphicRenderer = (function (_super) {\r\n tslib_1.__extends(GraphicRenderer, _super);\r\n function GraphicRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.fillColor = '#42bce4';\r\n _this.borderColor = '#0899d0';\r\n _this.borderWidth = 0;\r\n _this.isUsedToMask = false;\r\n _this.maskVisible = false;\r\n return _this;\r\n }\r\n GraphicRenderer.prototype.getUseCacheMode = function () {\r\n return this._useCacheMode && !this.isUsedToMask;\r\n };\r\n GraphicRenderer.prototype.getRenderSize = function () {\r\n return { width: 0, height: 0 };\r\n };\r\n GraphicRenderer.prototype.beforeDraw = function () {\r\n _super.prototype.beforeDraw.call(this);\r\n this.applyStyle();\r\n this.context.beginPath();\r\n };\r\n GraphicRenderer.prototype.draw = function () {\r\n _super.prototype.draw.call(this);\r\n if (this.isUsedToMask) {\r\n this._context.clip();\r\n this.maskVisible && this.fillAndStoke();\r\n }\r\n else {\r\n this.fillAndStoke();\r\n }\r\n };\r\n GraphicRenderer.prototype.applyStyle = function () {\r\n var _a = this, context = _a.context, fillColor = _a.fillColor, borderColor = _a.borderColor, borderWidth = _a.borderWidth;\r\n context.fillStyle = fillColor;\r\n if (borderWidth > 0) {\r\n context.strokeStyle = borderColor;\r\n context.lineWidth = borderWidth;\r\n }\r\n };\r\n GraphicRenderer.prototype.fillAndStoke = function () {\r\n var _a = this, context = _a.context, borderWidth = _a.borderWidth;\r\n context.fill();\r\n if (borderWidth > 0) {\r\n context.stroke();\r\n }\r\n };\r\n GraphicRenderer.prototype.drawClip = function () {\r\n this.isUsedToMask && this.context.save();\r\n };\r\n GraphicRenderer.prototype.afterUpdate = function () {\r\n this.isUsedToMask && this.context.restore();\r\n };\r\n GraphicRenderer.prototype.measureBounds = function () {\r\n if (this.entity.name == 'content') {\r\n console.log();\r\n }\r\n if (!this.dirty) {\r\n return;\r\n }\r\n this._margin = this.borderWidth;\r\n var _a = this, bounds = _a.bounds, _b = _a.transform, tWidth = _b.explicitWidth, tHeight = _b.explicitHeight;\r\n var _c = this.getRenderSize(), sWidth = _c.width, sHeight = _c.height;\r\n bounds.width = isNaN(tWidth) ? sWidth : tWidth;\r\n bounds.height = isNaN(tHeight) ? sHeight : tHeight;\r\n _super.prototype.measureBounds.call(this);\r\n };\r\n return GraphicRenderer;\r\n}(Renderer));\r\nexport default GraphicRenderer;\r\n//# sourceMappingURL=GraphicRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"utils.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/utils.ts\"],\"names\":[],\"mappings\":\"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,CAAC,IAAM,YAAY,GAAC,UAAC,CAAQ,IAAI,OAAA,CAAC,CAAC,YAAY,CAAC,SAAS,CAAc,EAAtC,CAAsC,CAAC;AAC9E,MAAM,CAAC,IAAM,eAAe,GAAC,UAAC,CAAQ,IAAG,OAAA,CAAC,CAAC,YAAY,CAAC,YAAY,CAAiB,EAA5C,CAA4C,CAAC;AACtF,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,CAAQ,IAAG,OAAA,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,EAAtB,CAAsB,CAAC\"}","code":"import { Transform, TextRenderer } from 'scilla-components/src';\r\nexport var getTransForm = function (e) { return e.getComponent(Transform); };\r\nexport var getTextRenderer = function (e) { return e.getComponent(TextRenderer); };\r\nexport var getHeight = function (e) { return getTransForm(e).height; };\r\n//# sourceMappingURL=utils.js.map"}
{"map":"{\"version\":3,\"file\":\"ZoomLoop.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/ZoomLoop.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AAEvC;IAAsC,oCAAe;IAArD;;IAOA,CAAC;IALA,2BAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;QAElB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAC5F,CAAC;IACF,eAAC;AAAD,CAAC,AAPD,CAAsC,eAAe,GAOpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent } from \"scilla\";\r\nvar ZoomLoop = (function (_super) {\r\n tslib_1.__extends(ZoomLoop, _super);\r\n function ZoomLoop() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n ZoomLoop.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n this.transform.scale.x = this.transform.scale.y = Math.abs(Math.sin(t * 0.001)) * 0.15 + 1;\r\n };\r\n return ZoomLoop;\r\n}(ScillaComponent));\r\nexport default ZoomLoop;\r\n//# sourceMappingURL=ZoomLoop.js.map"}
{"map":"{\"version\":3,\"file\":\"ScillaEvent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/ScillaEvent.ts\"],\"names\":[],\"mappings\":\";AAQA;IAGC;QACC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACxB,CAAC;IAEO,kCAAY,GAApB,UAAqB,QAAQ;QACrB,IAAA,gCAAY,CAAS;QAE5B,IAAI,MAAM,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACtD,IAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAEnC,IAAI,UAAU,CAAC,QAAQ,IAAI,QAAQ,EAAE;gBACpC,MAAM,GAAG;oBACR,UAAU,YAAA;oBACV,KAAK,EAAE,CAAC;iBACR,CAAC;g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AQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SACvC;IACF,CAAC;IAMD,iCAAW,GAAX,UAAY,QAAQ;QACnB,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAMD,4BAAM,GAAN;QAAO,mBAAY;aAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;YAAZ,8BAAY;;;QACX,IAAA,gCAAY,CAAS;QAG5B,YAAY,CAAC,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;QAChC,CAAC,CAAC,CAAC;;YAEH,KAAyB,IAAA,iBAAA,iBAAA,YAAY,CAAA,0CAAA,oEAAE;gBAAlC,IAAM,UAAU,yBAAA;gBACpB,IAAG,UAAU,EAAC;oBACN,IAAA,8BAAQ,EAAE,4BAAO,EAAE,sBAAI,EAAE,0BAAM,CAAc;oBACpD,IAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAE3C,IAAI;wBACH,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;qBACnC;oBAAA,OAAO,CAAC,EAAE;wBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;qBACf;oBAED,IAAG,IAAI,EAAC;wBACP,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;qBAC9B;iBACD;aACD;;;;;;;;;IACF,CAAC;IACF,kBAAC;AAAD,CAAC,AAnID,IAmIC\"}","code":"import * as tslib_1 from \"tslib\";\r\nvar ScillaEvent = (function () {\r\n function ScillaEvent() {\r\n this._subscribers = [];\r\n }\r\n ScillaEvent.prototype.findListener = function (callback) {\r\n var _subscribers = this._subscribers;\r\n var result;\r\n for (var i = 0, li = _subscribers.length; i < li; i++) {\r\n var subscriber = _subscribers[i];\r\n if (subscriber.callback == callback) {\r\n result = {\r\n subscriber: subscriber,\r\n index: i,\r\n };\r\n break;\r\n }\r\n }\r\n return result;\r\n };\r\n ScillaEvent.prototype.addListener = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.once = function (callback, thisObj, priority) {\r\n if (priority === void 0) { priority = 0; }\r\n var params = [];\r\n for (var _i = 3; _i < arguments.length; _i++) {\r\n params[_i - 3] = arguments[_i];\r\n }\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (!listener) {\r\n _subscribers.push({\r\n callback: callback,\r\n thisObj: thisObj,\r\n priority: priority,\r\n params: params,\r\n once: true,\r\n });\r\n }\r\n };\r\n ScillaEvent.prototype.removeListener = function (callback) {\r\n if (!callback) {\r\n return;\r\n }\r\n var _subscribers = this._subscribers;\r\n var listener = this.findListener(callback);\r\n if (listener) {\r\n _subscribers.splice(listener.index, 1);\r\n }\r\n };\r\n ScillaEvent.prototype.hasListener = function (callback) {\r\n return !!this.findListener(callback);\r\n };\r\n ScillaEvent.prototype.invoke = function () {\r\n var paramsNew = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n paramsNew[_i] = arguments[_i];\r\n }\r\n var e_1, _a;\r\n var _subscribers = this._subscribers;\r\n _subscribers.sort(function (a, b) {\r\n return a.priority - b.priority;\r\n });\r\n try {\r\n for (var _subscribers_1 = tslib_1.__values(_subscribers), _subscribers_1_1 = _subscribers_1.next(); !_subscribers_1_1.done; _subscribers_1_1 = _subscribers_1.next()) {\r\n var subscriber = _subscribers_1_1.value;\r\n if (subscriber) {\r\n var callback = subscriber.callback, thisObj = subscriber.thisObj, once = subscriber.once, params = subscriber.params;\r\n var allParams = params.concat(paramsNew);\r\n try {\r\n callback.apply(thisObj, allParams);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n if (once) {\r\n this.removeListener(callback);\r\n }\r\n }\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_subscribers_1_1 && !_subscribers_1_1.done && (_a = _subscribers_1.return)) _a.call(_subscribers_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n };\r\n return ScillaEvent;\r\n}());\r\nexport { ScillaEvent };\r\n//# sourceMappingURL=ScillaEvent.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/index.ts\"],\"names\":[],\"mappings\":\"AAMA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,YAAY,CAAA;AAC/E,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAA;AAEtC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AAErC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC\"}","code":"export { default as Bounds } from './Bounds';\r\nexport { default as Vector2D, createVector2D, releaseVector2D } from './Vector2D';\r\nexport { createTween, Tween } from './Tween';\r\nexport { default as Matrix } from './Matrix';\r\nexport { default as Size } from './Size';\r\nexport { default as LocalStorage } from './LocalStorage';\r\nexport { TextStyle } from './TextStyle';\r\nexport { default as EventEmitter } from './EventEmitter';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"labelUtils.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/labelUtils.ts\"],\"names\":[],\"mappings\":\"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,KAAa,EAAE,KAAa;IACtD,eAAe,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,KAAK,CAAA;AAC5C,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa,EAAE,IAAY,EAAE,QAAgB;IAAhB,yBAAA,EAAA,gBAAgB;IACtE,IAAI,QAAQ;QACR,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;;QAEvC,eAAe,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAA\"}","code":"import { getTextRenderer } from './utils';\r\nexport var setLabelColor = function (label, color) {\r\n getTextRenderer(label).fillColor = color;\r\n};\r\nexport var setLabelText = function (label, text, textFlow) {\r\n if (textFlow === void 0) { textFlow = false; }\r\n if (textFlow)\r\n getTextRenderer(label).textFlow = text;\r\n else\r\n getTextRenderer(label).text = text;\r\n};\r\n//# sourceMappingURL=labelUtils.js.map"}
{"map":"{\"version\":3,\"file\":\"Texture.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/Texture.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAKrD;IAAqC,mCAAU;IAM9C;QAAA,YACC,iBAAO,SAGP;QADA,KAAI,CAAC,MAAM,GAAG,IAAI,MAAM,EAAE,CAA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G,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,KAAK,EAAE,EAAE,IAAI,MAAM,CAAC,CAAC;IACjG,CAAC;IAKD,yBAAO,GAAP;QACC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC3B,CAAC;IAKD,oCAAkB,GAAlB;QACC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1B,CAAC;IACF,cAAC;AAAD,CAAC,AA7FD,CAAqC,UAAU,GA6F9C;;AAOD,MAAM,UAAU,aAAa,CAAC,GAAG,EAAE,KAAM;IACxC,IAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,MAAM,EAAC,CAAC,CAAC;IAErE,OAAO,OAAO,CAAC;AAChB,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Bounds from \"../support/Bounds\";\r\nimport HashObject from \"../core/HashObject\";\r\nimport { createCanvas } from \"./context/RenderContext\";\r\nvar Texture = (function (_super) {\r\n tslib_1.__extends(Texture, _super);\r\n function Texture() {\r\n var _this = _super.call(this) || this;\r\n _this.bounds = new Bounds();\r\n return _this;\r\n }\r\n Texture.prototype.setFrame = function (frame) {\r\n var x = frame.x, y = frame.y, w = frame.w, h = frame.h;\r\n this.bounds.setTo(x, y, w, h);\r\n };\r\n Texture.prototype.setImg = function (img) {\r\n this.img = img;\r\n };\r\n Object.defineProperty(Texture.prototype, \"width\", {\r\n get: function () {\r\n return this.bounds.width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Texture.prototype, \"height\", {\r\n get: function () {\r\n return this.bounds.height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Texture.prototype.getCacheCanvas = function () {\r\n var _a = this.bounds, width = _a.width, height = _a.height;\r\n var canvas = this._cacheCanvas;\r\n if (!canvas) {\r\n canvas = this._cacheCanvas = createCanvas();\r\n }\r\n canvas.width = width;\r\n canvas.height = height;\r\n var context = canvas.getContext('2d');\r\n this.drawToCanvas(context);\r\n return canvas;\r\n };\r\n Texture.prototype.drawToCanvas = function (context, dx, dy, sx, sy, dw, dh) {\r\n if (dx === void 0) { dx = 0; }\r\n if (dy === void 0) { dy = 0; }\r\n var _a = this.bounds, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n context.drawImage(this.img, sx || x, sy || y, width, height, dx, dy, dw || width, dh || height);\r\n };\r\n Texture.prototype.destroy = function () {\r\n this.img = null;\r\n this.bounds = null;\r\n this.destroyCacheCanvas();\r\n };\r\n Texture.prototype.destroyCacheCanvas = function () {\r\n this._cacheCanvas = null;\r\n };\r\n return Texture;\r\n}(HashObject));\r\nexport default Texture;\r\nexport function createTexture(img, frame) {\r\n var texture = new Texture();\r\n texture.setImg(img);\r\n texture.setFrame(frame || { x: 0, y: 0, w: img.width, h: img.height });\r\n return texture;\r\n}\r\n//# sourceMappingURL=Texture.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAAC,CAAC;AAE/D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,WAAW,CAAC,iCAAiC,EAAE,UAAU,CAAC,CAAC;AAE3D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;AAEpD,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,WAAW,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component0);\r\nimport component1 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component1);\r\nimport component2 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component2);\r\nimport component3 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component3);\r\nimport component4 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component4);\r\nimport component5 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component5);\r\nimport component6 from 'components/other/RelativeLayout';\r\nregisterDef('components/other/RelativeLayout', component6);\r\nimport component7 from 'components/renderer/RectRenderer';\r\nregisterDef('components/renderer/RectRenderer', component7);\r\nimport component8 from '../../assets/scripts/MainController';\r\nregisterDef('./scripts/MainController', component8);\r\nimport component9 from '../../assets/scripts/Slider';\r\nregisterDef('./scripts/Slider', component9);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAChE,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA\"}","code":"export { default as InteractComponent } from './InteractComponent';\r\nexport { default as TouchInterrupt } from './TouchInterrupt';\r\nexport { default as Transform } from './Transform';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"time.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/time.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,MAAM,IAAI,YAAY,EAAE,UAAU,EAAC,MAAM,SAAS,CAAA;AAM1D,MAAM,UAAU,OAAO,CAAC,EAAE;IACzB,IAAI,OAAO,GAAQ,IAAI,IAAI,EAAE,CAAC;IAC9B,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACpB,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS,EAAE,MAA6B;IAA7B,uBAAA,EAAA,sBAA6B;IACxE,OAAO,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AACnH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAS,EAAE,MAA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EAAE,CAAC,CAAC;IAE5C,IAAI,SAAS,EAAE;QACd,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACvB,EAAE,GAAG,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KACvB;IAED,OAAO,YAAY,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7C,CAAC\"}","code":"import { format as stringFormat, supplement } from './utils';\r\nexport function ts2Date(ts) {\r\n var newDate = new Date();\r\n newDate.setTime(ts);\r\n return newDate;\r\n}\r\nexport function dateToDateString(date, format) {\r\n if (format === void 0) { format = '{0}/{1}/{2}'; }\r\n return stringFormat(format, date.getFullYear(), supplement(date.getMonth() + 1, 2), supplement(date.getDate(), 2));\r\n}\r\nexport function dateToTimeString(date, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function dateToString(date, dayFormat, timeFormat) {\r\n return dateToDateString(date, dayFormat) + dateToTimeString(date, timeFormat);\r\n}\r\nexport function tsToTimeString(ts, format) {\r\n if (format === void 0) { format = '{0}:{1}:{2}'; }\r\n var date = ts2Date(ts);\r\n return stringFormat(format, supplement(date.getHours(), 2), supplement(date.getMinutes(), 2), supplement(date.getSeconds(), 2));\r\n}\r\nexport function secondFormat(second, format, placeZero) {\r\n if (format === void 0) { format = '{2}:{1}:{0}'; }\r\n if (placeZero === void 0) { placeZero = true; }\r\n var ss = second % 60;\r\n var mm = Math.floor(second / 60) % 60;\r\n var hh = Math.floor(second / 3600) % 24;\r\n var dd = Math.floor(second / 3600 / 24);\r\n if (placeZero) {\r\n ss = supplement(ss, 2);\r\n mm = supplement(mm, 2);\r\n hh = supplement(hh, 2);\r\n dd = supplement(dd, 2);\r\n }\r\n return stringFormat(format, ss, mm, hh, dd);\r\n}\r\n//# sourceMappingURL=time.js.map"}
{"map":"{\"version\":3,\"file\":\"MainController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/MainController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAAU,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;IAA4C,0CAAe;IAA3D;;IAiDA,CAAC;IA3CG,iCAAQ,GAAR;QACI,iBAAM,QAAQ,WAAE,CAAC;IAGrB,CAAC;IAED,gCAAO,GAAP;QAAA,iBAYC;QAXG,iBAAM,OAAO,WAAE,CAAC;QAChB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,WAAW,CAAC;YACR,GAAG,EAAE,CAAC;YACN,IAAI,GAAG,GAAG,GAAG;gBAAE,GAAG,GAAG,GAAG,CAAC;YACzB,IAAI,CAAC,KAAI,CAAC,kBAAkB,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;QAClE,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAC5B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,GAAC,CAAC,GAAG,YAAY,EAAE,CAAC,MAAM,GAAG,GAAG,GAAC,CAAC,CAAC,CAAC;IACnE,CAAC;IAED,oCAAW,GAAX,UAAY,GAAG;QACX,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;IAClE,CAAC;IAED,yCAAgB,GAAhB;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IAC7B,CAAC;IAED,uCAAc,GAAd;QACI,KAAK,CAAC,gBAAgB,CAAC,CAAA;IAC3B,CAAC;IAED,qCAAY,GAAZ;QACI,KAAK,CAAC,cAAc,CAAC,CAAA;IACzB,CAAC;IAED,sCAAa,GAAb;QACI,KAAK,CAAC,eAAe,CAAC,CAAA;IAC1B,CAAC;IAED,qCAAY,GAAZ;QACI,KAAK,CAAC,cAAc,CAAC,CAAA;IACzB,CAAC;IACL,qBAAC;AAAD,CAAC,AAjDD,CAA4C,eAAe,GAiD1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, getStageSize } from 'scilla-core/src';\r\nimport { setY } from './setXY';\r\nvar MainController = (function (_super) {\r\n tslib_1.__extends(MainController, _super);\r\n function MainController() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n MainController.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n };\r\n MainController.prototype.onAwake = function () {\r\n var _this = this;\r\n _super.prototype.onAwake.call(this);\r\n this.setProgress(0);\r\n var per = 0;\r\n setInterval(function () {\r\n per++;\r\n if (per > 100)\r\n per = 100;\r\n setY(_this.progressBarFrontBg, -148 + 295 * (100 - per) / 100);\r\n }, 50);\r\n console.log(this.mainbottom);\r\n setY(this.mainbottom, -1624 / 2 + getStageSize().height - 146 / 2);\r\n };\r\n MainController.prototype.setProgress = function (per) {\r\n setY(this.progressBarFrontBg, -148 + 295 * (100 - per) / 100);\r\n };\r\n MainController.prototype.onWithdrawBtnTap = function () {\r\n alert('onWithdrawBtnTap');\r\n };\r\n MainController.prototype.onRecordBtnTap = function () {\r\n alert('onRecordBtnTap');\r\n };\r\n MainController.prototype.onRuleBtnTap = function () {\r\n alert('onRuleBtnTap');\r\n };\r\n MainController.prototype.onTasksBtnTap = function () {\r\n alert('onTasksBtnTap');\r\n };\r\n MainController.prototype.onEggsBtnTap = function () {\r\n alert('onEggsBtnTap');\r\n };\r\n return MainController;\r\n}(ScillaComponent));\r\nexport default MainController;\r\n//# sourceMappingURL=MainController.js.map"}
{"map":"{\"version\":3,\"file\":\"math.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/tools/math.ts\"],\"names\":[],\"mappings\":\";AAcA,MAAM,UAAU,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAwB;IAAxB,iCAAA,EAAA,wBAAwB;IAC3D,IAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAC1B,IAAI,IAAI,KAAK,OAAO,GAAG,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;KAC7C;IAED,IAAI,CAAC,gBAAgB,EAAE;QACtB,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KAChC;IAED,IAAI,IAAI,GAAG,GAAG,GAAG,KAAK,CAAC;IACvB,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;IAEvC,OAAO,KAAK,GAAG,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC;AACpC,CAAC;AAYD,MAAM,UAAU,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAwB;IAAxB,iCAAA,EAAA,wBAAwB;;IAC7E,IAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAC1B,IAAI,IAAI,KAAK,OAAO,GAAG,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;KAC7C;IAED,IAAM,IAAI,GAAG,IAAI,KAAK,EAAE,CAAC;;QACzB,KAAkB,IAAA,WAAA,iBAAA,MAAM,CAAA,8BAAA,kDAAE;YAArB,IAAI,KAAK,mBAAA;YACb,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,CAAC;SAClE;;;;;;;;;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAOD,MAAM,UAAU,aAAa,CAAC,GAAW,EAAE,GAAe;IAAf,oBAAA,EAAA,OAAe;IACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AACtD,CAAC;AAOD,MAAM,UAAU,QAAQ,CAAC,GAAQ;IAChC,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,GAAG,GAAW,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAC/E,IAAI,CAAC,GAAW,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAW,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;KACd;IAED,OAAO,GAAG,CAAC;AACZ,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nexport function lerp(begin, end, t, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n if (!allowOutOfBounds) {\r\n t = Math.max(0, Math.min(1, t));\r\n }\r\n var sign = end - begin;\r\n sign = sign > 0 ? 1 : (sign < 0 ? -1 : 0);\r\n var distance = Math.abs(end - begin);\r\n return begin + distance * t * sign;\r\n}\r\nexport function lerpObj(begin, end, t, clazz, fields, allowOutOfBounds) {\r\n if (allowOutOfBounds === void 0) { allowOutOfBounds = false; }\r\n var e_1, _a;\r\n var type = typeof begin;\r\n if (type !== typeof end) {\r\n console.error('begin and end need same type');\r\n }\r\n var temp = new clazz();\r\n try {\r\n for (var fields_1 = tslib_1.__values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {\r\n var field = fields_1_1.value;\r\n temp[field] = lerp(begin[field], end[field], t, allowOutOfBounds);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n return temp;\r\n}\r\nexport function makeRandomInt(max, min) {\r\n if (min === void 0) { min = 0; }\r\n return Math.floor(Math.random() * (max - min)) + min;\r\n}\r\nexport function mixArray(arr) {\r\n for (var i = 0, len = Math.round(arr.length / 2); i < len; i++) {\r\n var a = makeRandomInt(arr.length);\r\n var b = makeRandomInt(arr.length);\r\n var temp = arr[a];\r\n arr[a] = arr[b];\r\n arr[b] = temp;\r\n }\r\n return arr;\r\n}\r\n//# sourceMappingURL=math.js.map"}
{"map":"{\"version\":3,\"file\":\"requestAnimationFrame.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/requestAnimationFrame.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,IAAI,OAAO,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAChC,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,EAAE,CAAC,EAAE;IACrE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC;IAC5E,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC;QACvE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,6BAA6B,CAAC,CAAC;CACxD;AAED,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;IAC/B,MAAM,CAAC,qBAAqB,GAAG,UAAS,QAAQ;QAC5C,IAAI,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;QACpC,IAAI,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC;QAC3D,IAAI,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;YACvB,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;QACpC,CAAC,EAAE,UAAU,CAAC,CAAC;QACf,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;QACjC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;CACL;AACD,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE;IAC9B,MAAM,CAAC,oBAAoB,GAAG,UAAS,EAAE;QACrC,YAAY,CAAC,EAAE,CAAC,CAAC;IACrB,CAAC,CAAC;CACL\"}","code":"var lastTime = 0;\r\nvar vendors = ['webkit', 'moz'];\r\nfor (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\r\n window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];\r\n window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] ||\r\n window[vendors[x] + 'CancelRequestAnimationFrame'];\r\n}\r\nif (!window.requestAnimationFrame) {\r\n window.requestAnimationFrame = function (callback) {\r\n var currTime = new Date().getTime();\r\n var timeToCall = Math.max(0, 16.7 - (currTime - lastTime));\r\n var id = window.setTimeout(function () {\r\n callback(currTime + timeToCall);\r\n }, timeToCall);\r\n lastTime = currTime + timeToCall;\r\n return id;\r\n };\r\n}\r\nif (!window.cancelAnimationFrame) {\r\n window.cancelAnimationFrame = function (id) {\r\n clearTimeout(id);\r\n };\r\n}\r\n//# sourceMappingURL=requestAnimationFrame.js.map"}
{"map":"{\"version\":3,\"file\":\"Wave.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/animation/Wave.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,eAAe,EAAO,WAAW,EAAC,MAAM,QAAQ,CAAC;AAEzD,IAAM,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;AAExB,MAAM,CAAN,IAAY,UAiCX;AAjCD,WAAY,UAAU;IAIrB,6BAAe,CAAA;IAIf,+BAAiB,CAAA;IAIjB,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,iCAAmB,CAAA;IAInB,iCAAmB,CAAA;IAInB,6BAAe,CAAA;IAIf,+BAAiB,CAAA;AAClB,CAAC,EAjCW,UAAU,KAAV,UAAU,QAiCrB;AAED;IAAkC,gCAAe;IAAjD;QAAA,qEA8FC;QA7FA,cAAQ,GAAW,IAAI,CAAC;QAGxB,UAAI,GAAW,CAAC,CAAC,CAAC;QAClB,cAAQ,GAAY,IAAI,CAAC;QAEzB,gBAAU,GAAgB,IAAI,WAAW,EAAE,CAAC;QAC5C,oBAAc,GAAgB,IAAI,WAAW,EAAE,CAAC;QAKxC,eAAS,GAAQ,EAAE,CAAC;;IAiF7B,CAAC;IA9EA,sBAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,C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AAG,CAAC,EAAC,CAAC;IACnE,CAAC;IAED,IAAI,EAAE,UAAU,KAAmB,EAAE,CAAS;QAA9B,sBAAA,EAAA,WAAmB;QAClC,OAAO,EAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,EAAC,CAAC;IACzD,CAAC;IAED,IAAI,EAAE,UAAU,IAAQ,EAAE,CAAS;QAAnB,qBAAA,EAAA,QAAQ;QACvB,OAAO,EAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,EAAC,CAAC;IAC3C,CAAC;CACD,CAAC\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, ScillaEvent } from \"scilla\";\r\nvar PI2 = Math.PI * 2;\r\nexport var WaveMethod;\r\n(function (WaveMethod) {\r\n WaveMethod[\"round\"] = \"round\";\r\n WaveMethod[\"rotate\"] = \"rotate\";\r\n WaveMethod[\"zoom\"] = \"zoom\";\r\n WaveMethod[\"fade\"] = \"fade\";\r\n WaveMethod[\"cosWave\"] = \"cosWave\";\r\n WaveMethod[\"sinWave\"] = \"sinWave\";\r\n WaveMethod[\"shake\"] = \"shake\";\r\n WaveMethod[\"breath\"] = \"breath\";\r\n})(WaveMethod || (WaveMethod = {}));\r\nvar Wave = (function (_super) {\r\n tslib_1.__extends(Wave, _super);\r\n function Wave() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.duration = 1000;\r\n _this.loop = -1;\r\n _this.autoPlay = true;\r\n _this.onComplete = new ScillaEvent();\r\n _this.onLoopComplete = new ScillaEvent();\r\n _this._oldProps = {};\r\n return _this;\r\n }\r\n Wave.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this._waveMethod = waveLibs[this.waveMethod];\r\n this._startTime = 0;\r\n var position = this.transform.position;\r\n this._oldProps.x = position.x;\r\n this._oldProps.y = position.y;\r\n if (this.autoPlay) {\r\n this.play();\r\n }\r\n };\r\n Wave.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n if (this._playing) {\r\n if (!this._startTime) {\r\n this._startTime = t;\r\n }\r\n var _a = this, duration = _a.duration, waveParams = _a.waveParams, _waveMethod = _a._waveMethod, transform = _a.transform, _b = _a.transform, position = _b.position, scale = _b.scale, _oldProps = _a._oldProps;\r\n var pass = (t - this._startTime) % duration;\r\n var r = pass / duration * PI2;\r\n var loopCounting = Math.floor((t - this._startTime) / duration);\r\n if (loopCounting != this._loopCounting) {\r\n this._loopCounting = loopCounting;\r\n if (this.onLoopEnd()) {\r\n r = PI2;\r\n }\r\n }\r\n var params = waveParams || [];\r\n var props = _waveMethod.apply(void 0, tslib_1.__spread(params, [r]));\r\n if (props.hasOwnProperty('x')) {\r\n position.x = (props.x || 0) + _oldProps.x;\r\n }\r\n if (props.hasOwnProperty('y')) {\r\n position.y = (props.y || 0) + _oldProps.y;\r\n }\r\n if (props.hasOwnProperty('sx')) {\r\n scale.x = props.sx;\r\n }\r\n if (props.hasOwnProperty('sy')) {\r\n scale.y = props.sy;\r\n }\r\n if (props.hasOwnProperty('r')) {\r\n transform.rotation = props.r;\r\n }\r\n }\r\n };\r\n Wave.prototype.onLoopEnd = function () {\r\n if (this.loop < 0) {\r\n this.onLoopComplete.invoke();\r\n }\r\n else if (this._loopCounting < this.loop) {\r\n this.onLoopComplete.invoke();\r\n }\r\n else {\r\n this._playing = false;\r\n this.onComplete.invoke();\r\n return true;\r\n }\r\n };\r\n Wave.prototype.play = function () {\r\n this._loopCounting = 0;\r\n this._playing = true;\r\n this._startTime = 0;\r\n };\r\n Wave.prototype.stop = function () {\r\n this._playing = false;\r\n };\r\n return Wave;\r\n}(ScillaComponent));\r\nexport default Wave;\r\nvar cos = Math.cos, sin = Math.sin, PI = Math.PI;\r\nvar waveLibs = {\r\n round: function (h, t) {\r\n return { x: cos(t) * h, y: sin(t) * h };\r\n },\r\n cosWave: function (h, t) {\r\n return { x: cos(t) * h, y: 0 };\r\n },\r\n sinWave: function (h, t) {\r\n h = h || 1;\r\n return { x: 0, y: sin(t) * h };\r\n },\r\n rotate: function (t) {\r\n return { r: 360 * t / PI / 2 };\r\n },\r\n shake: function (angle, count, t) {\r\n return { r: sin(t * count) * angle };\r\n },\r\n breath: function (scale, t) {\r\n if (scale === void 0) { scale = 0.1; }\r\n return { sx: sin(t) * scale + 1, sy: -sin(t + PI / 4) * scale + 1 };\r\n },\r\n zoom: function (scale, t) {\r\n if (scale === void 0) { scale = 0.1; }\r\n return { sx: sin(t) * scale + 1, sy: sin(t) * scale + 1 };\r\n },\r\n fade: function (base, t) {\r\n if (base === void 0) { base = 1; }\r\n return { alpha: (sin(t) + 1) * 0.5 + base };\r\n },\r\n};\r\n//# sourceMappingURL=Wave.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../node_modules/scilla-components/src/index.ts\"],\"names\":[],\"mappings\":\"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AAErB,cAAc,yBAAyB,CAAA\"}","code":"export * from './animation';\r\nexport * from './base';\r\nexport * from './other';\r\nexport * from './renderer';\r\nexport * from './ui';\r\nexport * from './registerAllComponents';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"Bounds.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Bounds.ts\"],\"names\":[],\"mappings\":\"AAQA;IAMC,gBAAY,CAAK,EAAE,CAAK,EAAE,KAAS,EAAE,MAAU;QAAnC,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAAE,sBAAA,EAAA,SAAS;QAAE,uBAAA,EAAA,UAAU;QAC9C,I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AAK,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM,CAAC;IACxE,CAAC;IAED,yBAAQ,GAAR;QACO,IAAA,SAA4B,EAA3B,QAAC,EAAE,QAAC,EAAE,gBAAK,EAAE,kBAAc,CAAC;QACnC,OAAO,KAAK,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,GAAG,CAAC;IACjF,CAAC;IACF,aAAC;AAAD,CAAC,AAjHD,IAiHC\"}","code":"var Bounds = (function () {\r\n function Bounds(x, y, width, height) {\r\n if (x === void 0) { x = 0; }\r\n if (y === void 0) { y = 0; }\r\n if (width === void 0) { width = 0; }\r\n if (height === void 0) { height = 0; }\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Object.defineProperty(Bounds.prototype, \"left\", {\r\n get: function () {\r\n return this.x;\r\n },\r\n set: function (v) {\r\n this.x = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"top\", {\r\n get: function () {\r\n return this.y;\r\n },\r\n set: function (v) {\r\n this.y = v;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"right\", {\r\n get: function () {\r\n return this.x + this.width;\r\n },\r\n set: function (v) {\r\n this.width = v - this.x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Bounds.prototype, \"bottom\", {\r\n get: function () {\r\n return this.y + this.height;\r\n },\r\n set: function (v) {\r\n this.height = v - this.y;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Bounds.prototype.contains = function (x, y) {\r\n return this.x <= x &&\r\n this.x + this.width >= x &&\r\n this.y <= y &&\r\n this.y + this.height >= y;\r\n };\r\n Bounds.prototype.setTo = function (x, y, width, height) {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n };\r\n Bounds.prototype.copyFrom = function (target) {\r\n this.x = target.x;\r\n this.y = target.y;\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Bounds.prototype.clone = function () {\r\n return new Bounds(this.x, this.y, this.width, this.height);\r\n };\r\n Bounds.prototype.inflate = function (dx, dy) {\r\n this.x -= dx;\r\n this.width += 2 * dx;\r\n this.y -= dy;\r\n this.height += 2 * dy;\r\n };\r\n Bounds.prototype.isEmpty = function () {\r\n return this.width <= 0 || this.height <= 0;\r\n };\r\n Bounds.prototype.setEmpty = function () {\r\n this.x = 0;\r\n this.y = 0;\r\n this.width = 0;\r\n this.height = 0;\r\n };\r\n Bounds.prototype.intersects = function (toIntersect) {\r\n return Math.max(this.x, toIntersect.x) <= Math.min(this.right, toIntersect.right)\r\n && Math.max(this.y, toIntersect.y) <= Math.min(this.bottom, toIntersect.bottom);\r\n };\r\n Bounds.prototype.containsBounds = function (bounds) {\r\n var r1 = bounds.x + bounds.width;\r\n var b1 = bounds.y + bounds.height;\r\n var r2 = this.x + this.width;\r\n var b2 = this.y + this.height;\r\n return (bounds.x >= this.x) && (bounds.x < r2) && (bounds.y >= this.y) && (bounds.y < b2) && (r1 > this.x) && (r1 <= r2) && (b1 > this.y) && (b1 <= b2);\r\n };\r\n Bounds.prototype.equals = function (toCompare) {\r\n if (this === toCompare) {\r\n return true;\r\n }\r\n return this.x === toCompare.x && this.y === toCompare.y\r\n && this.width === toCompare.width && this.height === toCompare.height;\r\n };\r\n Bounds.prototype.toString = function () {\r\n var _a = this, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n return \"(x=\" + x + \", y=\" + y + \", width=\" + width + \", height=\" + height + \")\";\r\n };\r\n return Bounds;\r\n}());\r\nexport default Bounds;\r\n//# sourceMappingURL=Bounds.js.map"}
{"map":"{\"version\":3,\"file\":\"Size.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Size.ts\"],\"names\":[],\"mappings\":\";AAGA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAKtD;IAQC,cAAY,KAAW,EAAE,MAAY;QAAzB,sBAAA,EAAA,WAAW;QAAE,uBAAA,EAAA,YAAY;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,qBAAM,GAAN;QACC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,sBAAO,GAAP;IAEA,CAAC;IAED,kBAAG,GAAH,UAAI,KAAM,EAAE,MAAO;QAClB,IAAI,KAAK,KAAK,SAAS,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,IAAI,MAAM,KAAK,SAAS,EAAE;YACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACrB;IACF,CAAC;IAED,oBAAK,GAAL;QACC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,uBAAQ,GAAR,UAAS,MAAM;QACd,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,uBAAQ,GAAR,UAAS,KAAK,EAAE,GAAG,EAAE,QAAQ;QAC5B,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAzCD;QADC,iBAAiB;uCACJ;IAEd;QADC,iBAAiB;wCACH;IAwChB,WAAC;CAAA,AA5CD,IA4CC;eA5CoB,IAAI\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { dirtyFieldTrigger } from \"../tools/decorators\";\r\nvar Size = (function () {\r\n function Size(width, height) {\r\n if (width === void 0) { width = NaN; }\r\n if (height === void 0) { height = NaN; }\r\n this.width = width;\r\n this.height = height;\r\n }\r\n Size.prototype.setNaN = function () {\r\n this.width = NaN;\r\n this.height = NaN;\r\n };\r\n Size.prototype.isEmpty = function () {\r\n };\r\n Size.prototype.set = function (width, height) {\r\n if (width !== undefined) {\r\n this.width = width;\r\n }\r\n if (height !== undefined) {\r\n this.height = height;\r\n }\r\n };\r\n Size.prototype.clone = function () {\r\n return new Size(this.width, this.height);\r\n };\r\n Size.prototype.copyFrom = function (target) {\r\n this.width = target.width;\r\n this.height = target.height;\r\n };\r\n Size.prototype.onModify = function (value, key, oldValue) {\r\n this.onChange && this.onChange(value, key, oldValue);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], Size.prototype, \"height\", void 0);\r\n return Size;\r\n}());\r\nexport default Size;\r\n//# sourceMappingURL=Size.js.map"}
{"map":"{\"version\":3,\"file\":\"RectRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/RectRenderer.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAA;AAE1B,IAAA,kDAAkB,CAAe;AAKxC;IAA0C,wCAAe;IAAzD;QAAA,qEAsCC;QApCA,WAAK,GAAG,GAAG,CAAC;QAEZ,YAAM,GAAG,GAAG,CAAC;QAEb,kBAAY,GAAG,CAAC,CAAC;;IAgClB,CAAC;IA9BU,oCAAa,GAAvB;QACO,IAAA,SAAsB,EAArB,gBAAK,EAAE,kBAAc,CAAC;QAC7B,OAAO,EAAC,KAAK,OAAA,EAAE,MAAM,QAAA,EAAC,CAAC;IACxB,CAAC;IAKS,2BAAI,GAAd;QACQ,IAAA,YAAE,CAAS;QACZ,IAAA,SAAkF,EAAjF,oBAAO,EAAE,mBA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AAC,CAAC,CAAC;SACvD;aAAM;YACN,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;SAC5C;QAED,iBAAM,IAAI,WAAE,CAAC;IACd,CAAC;IAnCD;QADC,kBAAkB;+CACP;IAEZ;QADC,kBAAkB;gDACN;IAEb;QADC,kBAAkB;sDACF;IAgClB,mBAAC;CAAA,AAtCD,CAA0C,eAAe,GAsCxD;eAtCoB,YAAY\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport GraphicRenderer from \"./GraphicRenderer\";\r\nimport { decorators } from \"scilla\";\r\nvar dirtyFieldDetector = decorators.dirtyFieldDetector;\r\nvar RectRenderer = (function (_super) {\r\n tslib_1.__extends(RectRenderer, _super);\r\n function RectRenderer() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.width = 100;\r\n _this.height = 100;\r\n _this.cornerRadius = 0;\r\n return _this;\r\n }\r\n RectRenderer.prototype.getRenderSize = function () {\r\n var _a = this, width = _a.width, height = _a.height;\r\n return { width: width, height: height };\r\n };\r\n RectRenderer.prototype.draw = function () {\r\n var PI = Math.PI;\r\n var _a = this, context = _a.context, r = _a.cornerRadius, _b = _a.bounds, width = _b.width, height = _b.height, _margin = _a._margin, _useCacheMode = _a._useCacheMode;\r\n var offset = _useCacheMode ? _margin : 0;\r\n if (r) {\r\n context.moveTo(offset + r, offset + 0);\r\n context.lineTo(offset + width - r, offset + 0);\r\n context.arc(offset + width - r, offset + r, r, PI * 3 / 2, PI * 2);\r\n context.lineTo(offset + width, offset + height - r);\r\n context.arc(offset + width - r, offset + height - r, r, 0, PI / 2);\r\n context.lineTo(offset + r, offset + height);\r\n context.arc(offset + r, offset + height - r, r, PI / 2, PI);\r\n context.lineTo(offset + 0, offset + r);\r\n context.arc(offset + r, offset + r, r, PI, PI * 3 / 2);\r\n }\r\n else {\r\n context.rect(offset, offset, width, height);\r\n }\r\n _super.prototype.draw.call(this);\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"width\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"height\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldDetector\r\n ], RectRenderer.prototype, \"cornerRadius\", void 0);\r\n return RectRenderer;\r\n}(GraphicRenderer));\r\nexport default RectRenderer;\r\n//# sourceMappingURL=RectRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/core/index.ts\"],\"names\":[],\"mappings\":\"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AACnI,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAC,OAAO,IAAI,OAAO,EAAE,aAAa,EAAC,MAAM,WAAW,CAAA;AAC3D,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA\"}","code":"export { ScillaComponent } from \"./ScillaComponent\";\r\nexport { Entity } from './Entity';\r\nexport { Scene } from './Scene';\r\nexport { ScillaEvent } from './ScillaEvent';\r\nexport { getContext, createCanvas, getStageSize, getStageScale, getStageCenter, shortcut, ScaleMode } from './context/RenderContext';\r\nexport * from './manager';\r\nexport { default as Texture, createTexture } from './Texture';\r\nexport * from './Sheet';\r\nexport * from './FrameAnimation';\r\n//# sourceMappingURL=index.js.map"}
{"map":"{\"version\":3,\"file\":\"ProgressBar.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src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AY,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QACpG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAG,IAAI,CAAC,MAAM,EAAC;YACd,IAAI,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YACzE,IAAG,OAAO,IAAI,IAAI,QAAQ,EAAC;gBAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;aAC5B;iBAAI;gBACJ,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;gBAC5B,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;aAC7B;SACD;IACF,CAAC;IAvFD;QADC,iBAAiB;8CACA;IAElB;QADC,iBAAiB;gDACE;IAEpB;QADC,iBAAiB;gDACE;IAEpB;QADC,iBAAiB;qDACO;IAEzB;QADC,iBAAiB;wDACQ;IAE1B;QADC,iBAAiB;qDACW;IA8E9B,kBAAC;CAAA,AA/FD,CAAyC,eAAe,GA+FvD;eA/FoB,WAAW\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { ScillaComponent, decorators, createTween, ease } from \"scilla\";\r\nimport RectRenderer from \"../renderer/RectRenderer\";\r\nimport Transform from \"../base/Transform\";\r\nimport TextRenderer from \"../renderer/TextRenderer\";\r\nvar dirtyFieldTrigger = decorators.dirtyFieldTrigger;\r\nfunction renderLabelFuncSample(value, maximum, minimum) {\r\n return Math.floor(value / (maximum - minimum) * 100) + '%';\r\n}\r\nvar ProgressBar = (function (_super) {\r\n tslib_1.__extends(ProgressBar, _super);\r\n function ProgressBar() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.value = 0;\r\n _this.minimum = 0;\r\n _this.maximum = 0;\r\n _this.snapInterval = 1;\r\n _this.fixWithRange = true;\r\n _this.updateThumbSize = function () {\r\n var _a = _this.thumb.getComponent(Transform), width = _a.width, height = _a.height;\r\n _this._thumbSize = { width: width, height: height };\r\n _this.update();\r\n };\r\n return _this;\r\n }\r\n ProgressBar.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this.renderLabelFunc = renderLabelFuncSample;\r\n };\r\n ProgressBar.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this._mask = this.viewport.getComponent(RectRenderer);\r\n this._mask.width = 0;\r\n if (this.widget) {\r\n this._widgetTransform = this.widget.getComponent(Transform);\r\n }\r\n this._label = this.label.getComponent(TextRenderer);\r\n this.callOnNextTick(this.updateThumbSize);\r\n };\r\n ProgressBar.prototype.onModify = function (value, key, oldValue) {\r\n _super.prototype.onModify.call(this, value, key, oldValue);\r\n if (oldValue === undefined) {\r\n return;\r\n }\r\n this.callOnNextTick(this.update);\r\n };\r\n ProgressBar.prototype.update = function () {\r\n var _a = this, minimum = _a.minimum, maximum = _a.maximum, _thumbSize = _a._thumbSize;\r\n if (!_thumbSize) {\r\n return;\r\n }\r\n var range = maximum - minimum;\r\n var value = Math.max(minimum, Math.min(maximum, this.value));\r\n var percentage = (value - minimum) / range;\r\n var width = percentage * _thumbSize.width;\r\n createTween(this._mask, true)\r\n .to({ width: width }, 300, ease.cubicOut);\r\n if (this._widgetTransform) {\r\n this._widgetTransform.position.x = width;\r\n }\r\n var renderValue = this.fixWithRange ? Math.max(minimum, Math.min(maximum, this.value)) : this.value;\r\n this.value = value;\r\n if (this._label) {\r\n var text = this.renderLabelFunc(renderValue, this.maximum, this.minimum);\r\n if (typeof text == 'string') {\r\n this._label.text = text;\r\n this._label.textFlow = null;\r\n }\r\n else {\r\n this._label.textFlow = text;\r\n this._label.updateTextFlow();\r\n }\r\n }\r\n };\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], ProgressBar.prototype, \"value\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], ProgressBar.prototype, \"minimum\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], ProgressBar.prototype, \"maximum\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], ProgressBar.prototype, \"snapInterval\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], ProgressBar.prototype, \"renderLabelFunc\", void 0);\r\n tslib_1.__decorate([\r\n dirtyFieldTrigger\r\n ], ProgressBar.prototype, \"fixWithRange\", void 0);\r\n return ProgressBar;\r\n}(ScillaComponent));\r\nexport default ProgressBar;\r\n//# sourceMappingURL=ProgressBar.js.map"}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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