Commit 6775f6d8 authored by wildfirecode's avatar wildfirecode

1

parent 551db692
{"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,CAAC,UAA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I,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,CAAC,IAAI,CA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;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\":\"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\":\"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,CAAC;AAC7F,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAK1C;IAA8C,4CAAe;IAA7D;QAAA,qEAyDC;QAvDA,oBAAc,GAAa,cAAc,EAAE,CAAC;QAE5C,cAAQ,GAAG,GAAG,CAAC;;IAqDhB,CAAC;IA/CA,mCAAQ,GAAR;QACC,iBAAM,QAAQ,WAAE,CAAC;IAClB,CAAC;IAED,kCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEV,IAAA,SAA+B,EAA9B,kBAAM,EAAE,kCAAsB,CAAC;QAEtC,IAAI,CAAC,SAAS,GAAG,YAAY,EAAE,CAAC;QAEhC,IAAI,MAAM,EAAE;YACX,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;SAC9D;QACD,IAAI,CAAC,cAAc,GAAG,cAAc,EAAE,CAAC;QAEvC,IAAI,cAAc,EAAE;YACb,IAAA,mBAAgC,EAA/B,gBAAK,EAAE,kBAAwB,CAAC;YACjC,IAAA,wBAA4B,EAA3B,UAAC,EAAE,QAAwB,CAAC;YACnC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,GAAG,GAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;SACrD;IACF,CAAC;IAED,mCAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;QAElB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACzB,OAAO;SACP;QAEK,IAAA,SAA2G,EAA1G,iBAA4B,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;IAED,kCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAED,oCAAS,GAAT;QACC,iBAAM,SAAS,WAAE,CAAC;IACnB,CAAC;IACF,uBAAC;AAAD,CAAC,AAzDD,CAA8C,eAAe,GAyD5D\"}","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();\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 _a = this, target = _a.target, viewportAnchor = _a.viewportAnchor;\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 if (viewportAnchor) {\r\n var _b = this.stageSize, width = _b.width, height = _b.height;\r\n var _c = this.viewportAnchor, x_1 = _c.x, y = _c.y;\r\n this.transform.position.setXY(width * x_1, height * y);\r\n }\r\n };\r\n CameraController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\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 CameraController.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n CameraController.prototype.onDestroy = function () {\r\n _super.prototype.onDestroy.call(this);\r\n };\r\n return CameraController;\r\n}(ScillaComponent));\r\nexport default CameraController;\r\n//# sourceMappingURL=CameraController.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,IA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C,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\":\"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\":\"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\":\"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,CAA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AAC;AAC7B,CAAC\"}","code":"export function injectProp(target, data, callback, ignoreMethod, ignoreNull) {\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;Q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,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;IACF,mBAAC;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\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/editor/index.ts\"],\"names\":[],\"mappings\":\";AAIA,OAAO,EAAC,YAAY,EAAE,UAAU,GAAG,MAAM,eAAe,CAAC;AACzD,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,eAA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AO;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 { destroyScene, 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 destroyScene(scene);\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\":\"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\":\"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\":\"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\"}","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\n//# sourceMappingURL=MustCompile.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\":\"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;gBACF,MAAM;aACN;SACD;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IASD,iCAAW,GAAX,UAAY,QAAQ,EAAE,OAAQ,EAAE,QAAY;QAAZ,yBAAA,EAAA,YAAY;QAAE,gBAAS;aAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;YAAT,+BAAS;;QACtD,IAAI,CAAC,QAAQ,EAAE;YACd,OAAO;SACP;QAEM,IAAA,gCAAY,CAAS;QAE5B,IAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE;YACd,YAAY,CAAC,IAAI,CAAC;gBACjB,QAAQ,UAAA;gBACR,OAAO,SAAA;gBACP,QAAQ,UAAA;gBACR,MAAM,QAAA;aACN,CAAC,CAAC;SACH;IACF,CAAC;IASD,0BAAI,GAAJ,UA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AAC;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\":\"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,CAAC;;IAC5B,CAAC;IAMD,0BAAQ,GAAR,UAAS,KAAK;QACR,IAAA,WAAC,EAAE,WAAC,EAAE,WAAC,EAAE,WAAC,CAAU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AE,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\":\"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,OA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;IACzB,IAAI,EAAE,GAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;IAC1C,IAAI,EAAE,GAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC5C,IAAI,EAAE,GAAO,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,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\":\"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,CA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AAG,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\":\"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,yBAAyB,CAAC;AAMjC,IAAI,OAAO,GAAQ;IAClB,GAAG,EAAE,EAAE;IACP,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,SAAS,CAAC,WAAW;CAChC,CAAC;AAEF,IAAI,IAAY,CAAC;AAEjB,IAAI,M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AAE,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\":\"Bounds.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-core/src/support/Bounds.ts\"],\"names\":[],\"mappings\":\"AAQA;IAMC,gBAAY,CAAK,EAAE,CAAK,EAAE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I,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;eACnD,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,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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C;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\":\"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"}
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