whychw
2021-05-24 8e85954e958bcb1bba811884dbc9cde65e94aa04
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-824eb7ea"],{"7abf":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"main"},[e("canvas",{ref:"can1",attrs:{id:"can1"}})])},r=[],i=(e("cb29"),e("fbf4")),o=40,c=0,s=20,d=0,l={components:{},data:function(){return{txt:"这是几个占位字符",timer:new i["a"]}},methods:{init:function(){var t=this,n=this.$refs["can1"];n.getContext("2d");n.width=400,n.height=300,this.timer.start((function(){t.update(n),0==d&&c++,c!=o&&0!=c||d++,c%=o,d%=s,t.timer.open()}),1e3/30)},update:function(t){if(0==c)return!1;var n=t.getContext("2d"),e=t.width,a=t.height;n.clearRect(0,0,e,a);var r=50+1*c;n.save(),n.translate(200,150);var i=n.createRadialGradient(0,0,0,0,0,r);i.addColorStop(0,"transparent"),i.addColorStop(.6,"transparent"),i.addColorStop(1,"rgba(255,255,0,"+(1-c/(o-1))+")"),n.fillStyle=i,n.beginPath(),n.arc(0,0,r,0,2*Math.PI),n.closePath(),n.fill(),n.restore()}},mounted:function(){this.init()}},u=l,f=(e("8774"),e("2877")),h=Object(f["a"])(u,a,r,!1,null,"ff5bd440",null);n["default"]=h.exports},"81d5":function(t,n,e){"use strict";var a=e("7b0b"),r=e("23cb"),i=e("50c4");t.exports=function(t){var n=a(this),e=i(n.length),o=arguments.length,c=r(o>1?arguments[1]:void 0,e),s=o>2?arguments[2]:void 0,d=void 0===s?e:r(s,e);while(d>c)n[c++]=t;return n}},8774:function(t,n,e){"use strict";var a=e("9c97"),r=e.n(a);r.a},"9c97":function(t,n,e){},cb29:function(t,n,e){var a=e("23e7"),r=e("81d5"),i=e("44d2");a({target:"Array",proto:!0},{fill:r}),i("fill")}}]);