Commit da6983b2 authored by wildfirecode's avatar wildfirecode

1

parent 6775f6d8
File added
{"map":"{\"version\":3,\"file\":\"FrameAnimationRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/renderer/FrameAnimationRenderer.ts\"],\"names\":[],\"mappings\":\";AAQA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAiB,WAAW,EAAC,MAAM,QAAQ,CAAC;AAKnD;IAAoD,kDAAQ;IAA5D;QAAA,qEAyJC;QAjJO,cAAQ,GAAY,KAAK,CAAC;QAK1B,SAAG,GAAW,GAAG,CAAC;QAElB,gBAAU,GAAgB,IAAI,WAAW,EAAE,CAAC;QAC5C,oBAAc,GAAgB,IAAI,WAAW,EAAE,CAAC;;IAyIxD,CAAC;IAxHA,wCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAG,IAAI,CAAC,QAAQ,EAAC;YAChB,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SACjB;IACF,CAAC;IAKD,yCAAQ,GAAR,UAAS,CAAC;QACT,IAAI,IAAI,CAAC,QAAQ,EAAE;YACZ,IAAA,SAAoD,EAAnD,kCAAc,EAAE,4BAAW,EAAE,wBAAS,EAAE,YAAW,CAAC;YAE3D,IAAI,IAAI,CAAC,UAAU,EAAE;gBACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBACxB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;gBACpB,IAAI,CAAC,aAAa,EAAG,CAAC;aACtB;YAED,IAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YAEnD,IAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;YACrC,IAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,GAAG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IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;SACvG;IACF,CAAC;IACF,6BAAC;AAAD,CAAC,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\":\"InteractComponent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../node_modules/scilla-components/src/base/InteractComponent.ts\"],\"names\":[],\"mappings\":\";A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AAE,CAAC;QACtB,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAErD,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;;YACtD,KAAqB,IAAA,cAAA,iBAAA,SAAS,CAAA,oCAAA,2DAAE;gBAA3B,IAAI,QAAQ,sBAAA;gBAChB,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBACvD,IAAI,QAAQ,CAAC,YAAY,EAAE;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\":\"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;;IAoHd,CAAC;IAlHA,sBAAY,uCAAU;aAAtB;YACC,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QAChD,CAAC;;;OAAA;IAKD,8BAAI,G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AAE,QAAQ,CAAC,CAAC;gBAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;gBAClC,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC;gBAC5B,OAAO,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM;SACP;IACF,CAAC;IAKD,uCAAa,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,OAAO;SACP;QAEK,IAAA,SAA4E,EAA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAEnF,IAAI,IAAI,CAAC,OAAO,EAAE;YACX,IAAA,iBAA2D,EAA1D,uBAAmB,EAAE,yBAAqC,CAAC;YAElE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;YACrD,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;SACzD;aAAM;YACN,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC1C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;SAC7C;QAED,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IA/HD;QADC,kBAAkB;oDACF;IAMjB;QADC,kBAAkB;qDACkB;IAMrC;QADC,kBAAkB;oDACN;IAoHd,sBAAC;CAAA,AArID,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\":\"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\":\"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,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,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\"}","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/renderer/RectRenderer';\r\nregisterDef('components/renderer/RectRenderer', component3);\r\nimport component4 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component4);\r\nimport component5 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component5);\r\nimport component6 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component6);\r\n//# sourceMappingURL=MustCompile.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,GAA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kBAAkB;oDACI;IAMvB;QADC,kBAAkB;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\":\"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\":\"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\":\"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\":\"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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SAA4E,EAA3E,kBAAM,EAAE,iBAA2D,EAA/C,yBAAqB,EAAE,2BAAgC,CAAC;QAC7E,IAAA,yBAAuD,EAAtD,iBAAa,EAAE,mBAAuC,CAAC;QAE9D,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QAEnD,iBAAM,aAAa,WAAE,CAAC;IACvB,CAAC;IACF,sBAAC;AAAD,CAAC,AAtGD,CAA6C,QAAQ,GAsGpD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport Renderer from \"./Renderer\";\r\nvar 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\":\"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,CA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AAU,GAAV,UAAW,CAAC;QACX,iBAAM,UAAU,YAAC,CAAC,CAAC,CAAC;QAEpB,IAAI,IAAI,CAAC,kBAAkB,EAAE;YAC5B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC/B;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,iCAAgB,GAAhB,UAAiB,CAAC;QACjB,iBAAM,gBAAgB,YAAC,CAAC,CAAC,CAAC;QAE1B,IAAI,IAAI,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC9C,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SACtB;QAED,IAAI,CAAC,kBAAkB,GAAG,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\":\"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,mBAAe,EAAE,cAAuB,EAAd,gBAAK,EAAE,kBAAM,EAAG,oBAAO,EAAE,gCAAqB,CAAC;QAEzF,IAAI,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAEzC,IAAI,CAAC,EAAE;YACN,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;YAC5C,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;YAC5D,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;YACvC,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,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-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"}
{"ver":"1.0.1","uuid":"c7f2b35a-c2e8-4607-a3c1-16c5a2ec2993","subMetas":{},"isGroup":true}
{"ver":"1.0.1","uuid":"69227bac-6549-4561-87ba-cc9ca243882d","subMetas":{"bg":{"ver":"1.0.1","uuid":"1a215aff-a60e-4a1d-9514-0d136637e289","rawTextureUuid":"69227bac-6549-4561-87ba-cc9ca243882d","type":"texture"}},"type":"texture","imagePath":"/Users/wanghongyuan/kuwo/assets/bg/bg.jpg"}
{"ver":"1.0.1","uuid":"8bc8fb9b-8c9c-41ad-87bc-32830df0dcd3","subMetas":{},"isGroup":true}
...@@ -24,13 +24,83 @@ ...@@ -24,13 +24,83 @@
"script": "components/base/Transform", "script": "components/base/Transform",
"properties": {} "properties": {}
}, },
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|69227bac-6549-4561-87ba-cc9ca243882d"
}
}
],
"children": [
{
"name": "Button",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/RectRenderer",
"properties": {
"fillColor": "rgba(0, 192, 255, 1)",
"width": 150,
"height": 60,
"cornerRadius": 10
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {}
}
],
"children": [
{
"name": "label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "button",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
], ],
"children": [] "uuid": "b902e1d9-c1a1-4008-8d3a-5696ceee59a7"
}
],
"uuid": "f5f271ae-4af2-4e4d-9398-00f366bec620"
},
{
"name": "helloPanel",
"components": [
{
"script": "components/base/Transform",
"properties": {}
}
],
"uuid": "702054c6-f4db-4b72-9b71-d2016408e511"
}
]
} }
] ]
}, },
"entity-cache": [], "entity-cache": [],
"resource-groups": { "resource-groups": {
"preload": [] "preload": [
{
"uuid": "69227bac-6549-4561-87ba-cc9ca243882d",
"url": "bg/bg.jpg"
}
]
} }
} }
\ No newline at end of file
{"ver":"1.0.1","uuid":"2efbaf44-f7d2-4b20-96fa-4e3615196502","subMetas":{},"isGroup":true}
{"ver":"1.0.1","uuid":"af65f7d6-42fa-4f5a-ac46-b3cc399e2c05","subMetas":{"withdrawBtn":{"ver":"1.0.1","uuid":"aa12612c-8589-4300-b63c-f1d75a00f2c0","rawTextureUuid":"af65f7d6-42fa-4f5a-ac46-b3cc399e2c05","type":"texture"}},"type":"sheet"}
{"ver":"1.0.1","uuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","subMetas":{"addTimesBtn":{"ver":"1.0.1","uuid":"1029947c-ac65-49c5-a2f0-0cccba73cc9f","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"addTimesBtnTips":{"ver":"1.0.1","uuid":"ee82006d-123d-4463-8cd4-4c9904aaa65c","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"bottom":{"ver":"1.0.1","uuid":"e7fb8664-3d0e-46aa-978b-08d5a53f377a","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"countTxtBg":{"ver":"1.0.1","uuid":"33e58a7f-3ce4-4307-9642-cec604c74cb8","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"eggListBtn":{"ver":"1.0.1","uuid":"19cc0f39-3a5d-4e06-a4a3-9a722b69b52c","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"glass":{"ver":"1.0.1","uuid":"c6af92fe-15a7-4d1c-b864-70bde2cfd7c5","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"main_bottom_bg":{"ver":"1.0.1","uuid":"53b2bf73-1ee6-43ba-af3f-2af10b432ffa","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"middle":{"ver":"1.0.1","uuid":"663c6d8e-a2f6-4022-a19f-00be63f9debc","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"progressbar_inner":{"ver":"1.0.1","uuid":"8534d43e-c1b0-42da-83af-027b43a88447","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"progressbar":{"ver":"1.0.1","uuid":"561d9875-a3c1-47c9-90a2-017b1f40c76b","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"recordBtn":{"ver":"1.0.1","uuid":"bec9f772-1392-4b9c-83dc-456a97885f9f","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"ruleBtn":{"ver":"1.0.1","uuid":"2257099a-016f-4fb8-9049-47ee93da4e0f","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"shadow":{"ver":"1.0.1","uuid":"b0d5515e-187b-4a5b-ad7a-97c1343bb205","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"sliderbg":{"ver":"1.0.1","uuid":"9e6302b3-cde4-4a25-96b9-6b74baab93b5","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"title":{"ver":"1.0.1","uuid":"86fe7352-2826-4219-9d52-11b5162a2a6e","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"title2":{"ver":"1.0.1","uuid":"5188c337-79fa-4b48-930e-7bdc81f4fe90","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"},"withdrawBtn":{"ver":"1.0.1","uuid":"36a7e2ae-8426-46d3-8d63-64045ad7527a","rawTextureUuid":"6fe5aa11-4868-46e0-9619-6c515ec538f7","type":"texture"}},"type":"sheet"}
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