report-ui/dist/static/js/chunk-4e41.4b65fd6b.js

8 lines
512 KiB
JavaScript
Raw Normal View History

2023-04-14 15:55:36 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4e41","chunk-e4a7"],{"+3Gg":function(e,t,a){"use strict";var i={name:"widgetPiePercentageChart",components:{},props:{value:Object,ispreview:Boolean},data:function(){var e=this;return{angle:0,options:{title:{text:"{nums|60}{percent|%}",x:"center",y:"center",textStyle:{rich:{nums:{fontSize:60,color:"#29EEF3"},percent:{fontSize:30,color:"#29EEF3"}}}},legend:{type:"plain",orient:"vertical",right:0,top:"10%",align:"auto",data:[{name:"1",icon:"circle"},{name:"2",icon:"circle"},{name:"3",icon:"circle"},{name:"4",icon:"circle"}],textStyle:{color:"white",fontSize:16,padding:[10,1,10,0]},selectedMode:!1},series:[{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.6,startAngle:(0+e.angle)*Math.PI/180,endAngle:(90+e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.6,startAngle:(180+e.angle)*Math.PI/180,endAngle:(270+e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.65,startAngle:(270-e.angle)*Math.PI/180,endAngle:(40-e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.65,startAngle:(90-e.angle)*Math.PI/180,endAngle:(220-e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){var i=a.getWidth()/2,l=a.getHeight()/2,o=Math.min(a.getWidth(),a.getHeight())/2*.65,n=e.getCirlPoint(i,l,o,90-e.angle);return{type:"circle",shape:{cx:n.x,cy:n.y,r:4},style:{stroke:"#0CD3DB",fill:"#0CD3DB"},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){var i=a.getWidth()/2,l=a.getHeight()/2,o=Math.min(a.getWidth(),a.getHeight())/2*.65,n=e.getCirlPoint(i,l,o,270-e.angle);return{type:"circle",shape:{cx:n.x,cy:n.y,r:4},style:{stroke:"#0CD3DB",fill:"#0CD3DB"},silent:!0}},data:[0]},{type:"pie",radius:["58%","45%"],silent:!0,clockwise:!0,startAngle:90,z:0,zlevel:0,label:{normal:{position:"center"}},data:[{value:60,name:"",itemStyle:{normal:{color:{colorStops:[{offset:0,color:"#4FADFD"},{offset:1,color:"#28E8FA"}]}}}},{value:40,name:"",label:{normal:{show:!1}},itemStyle:{normal:{color:"#173164"}}}]},{name:"percent",type:"gauge",radius:"58%",center:["50%","50%"],startAngle:0,endAngle:359.9,splitNumber:8,hoverAnimation:!0,axisTick:{show:!1},splitLine:{length:15,lineStyle:{width:5,color:"#061740"}},axisLabel:{show:!1},pointer:{show:!1},axisLine:{lineStyle:{opacity:0}},detail:{show:!1},data:[{value:0,name:""}]}]},optionsStyle:{},optionsData:{},optionsCollapse:{},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsCollapse=e.collapse,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},created:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.collapse,this.optionsSetup=this.value.setup,this.editorOptions()},mounted:function(){},methods:{getCirlPoint:function(e,t,a,i){return{x:e+a*Math.cos(i*Math.PI/180),y:t+a*Math.sin(i*Math.PI/180)}},editorOptions:function(){this.setOptionsTitle(),this.setOptionsColor(),this.setOptionsData
/*!
* wordcloud2.js
* http://timdream.org/wordcloud2.js/
*
* Copyright 2011 - 2013 Tim Chien
* Released under the MIT license
2023-04-21 15:50:49 +08:00
*/window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(a){if("string"==typeof a.data&&a.data.substr(0,t.length)===t){a.stopImmediatePropagation();var i=parseInt(a.data.substr(t.length),36);e[i]&&(e[i](),e[i]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(a){var i=e.length;return e.push(a),window.postMessage(t+i.toString(36),"*"),i}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)}),function(a){var l=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!(t.getImageData&&t.fillText&&Array.prototype.some&&Array.prototype.push)}(),o=function(){if(l){for(var e,t,a=document.createElement("canvas").getContext("2d"),i=20;i;){if(a.font=i.toString(10)+"px sans-serif",a.measureText("").width===e&&a.measureText("m").width===t)return i+1;e=a.measureText("").width,t=a.measureText("m").width,i--}return 0}}(),n=function(e){for(var t,a,i=e.length;i;t=Math.floor(Math.random()*i),a=e[--i],e[i]=e[t],e[t]=a);return e},r=function(e,t){function a(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}if(l){Array.isArray(e)||(e=[e]),e.forEach(function(t,a){if("string"==typeof t){if(e[a]=document.getElementById(t),!e[a])throw"The element id specified is not found."}else if(!t.tagName&&!t.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var i={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var r in t)r in i&&(i[r]=t[r]);if("function"!=typeof i.weightFactor){var s=i.weightFactor;i.weightFactor=function(e){return e*s}}if("function"!=typeof i.shape)switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(e){return 1-Math.sin(e)};break;case"diamond":case"square":i.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"triangle-forward":i.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":i.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":i.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":i.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var u,c,p,h,d,m,f,v=i.gridSize,y=v-i.maskGapWidth,b=Math.abs(i.maxRotation-i.minRotation),g=Math.min(i.maxRotation,i.minRotation),x=i.rotationStep;switch(i.color){case"random-dark":f=function(){return a(10,50)};break;case"random-light":f=function(){return a(50,90)};break;default:"function"==typeof i.color&&(f=i.color)}var S=null;"function"==typeof i.classes&&(S=i.classes);var w,q=!1,D=[],C=function(e){var t,a,i=e.currentTarget,l=i.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,a=e.touches[0].clientY):(t=e.clientX,a=e.clientY);var o=t-l.left,n=a-l.top,r=Math.floor(o*(i.width/l.width||1)/v),s=Math.floor(n*(i.height/l.height||1)/v);return D[r][s]},T=function(e)