require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/pages/christmasHat/combine/combine"],{571:function(t,n,e){"use strict";(function(t,n){var a=e(4);e(26);a(e(25));var r=a(e(572));t.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e(1)["default"],e(2)["createPage"])},572:function(t,n,e){"use strict";e.r(n);var a=e(573),r=e(575);for(var c in r)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(c);e(577);var o,i=e(34),u=Object(i["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,null,null,!1,a["components"],o);u.options.__file="pages_tool/pages/christmasHat/combine/combine.vue",n["default"]=u.exports},573:function(t,n,e){"use strict";e.r(n);var a=e(574);e.d(n,"render",(function(){return a["render"]})),e.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),e.d(n,"components",(function(){return a["components"]}))},574:function(t,n,e){"use strict";var a;e.r(n),e.d(n,"render",(function(){return r})),e.d(n,"staticRenderFns",(function(){return o})),e.d(n,"recyclableRender",(function(){return c})),e.d(n,"components",(function(){return a}));var r=function(){var t=this,n=t.$createElement;t._self._c},c=!1,o=[];r._withStripped=!0},575:function(t,n,e){"use strict";e.r(n);var a=e(576),r=e.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(c);n["default"]=r.a},576:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=getApp(),a={data:function(){return{}},onLoad:function(n){var a=this;t.getImageInfo({src:e.globalData.bgPic,success:function(t){a.bgPic=t.path,a.draw()}})},onReady:function(){},methods:{draw:function(){var n=e.globalData.scale,a=e.globalData.rotate,r=e.globalData.hat_center_x,c=e.globalData.hat_center_y,o=e.globalData.currentHatSrc,i=t.createCanvasContext("myCanvas"),u=t.getSystemInfoSync().windowWidth,s=100*n;i.clearRect(0,0,u,300),i.drawImage(this.bgPic,u/2-150,0,300,300),i.translate(r,c),i.rotate(a*Math.PI/180),i.drawImage(o,-s/2,-s/2,s,s),i.draw()},savePic:function(){var n=t.getSystemInfoSync().windowWidth;t.canvasToTempFilePath({x:n/2-150,y:0,height:300,width:300,canvasId:"myCanvas",success:function(n){t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(n){t.navigateBack({delta:2})},fail:function(t){}})}})}}};n.default=a}).call(this,e(2)["default"])},577:function(t,n,e){"use strict";e.r(n);var a=e(578),r=e.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(c);n["default"]=r.a},578:function(t,n,e){}},[[571,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages_tool/pages/christmasHat/combine/combine.js.map