{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/icon/0.0.10',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/jquery/2.1.4','pandav:/npm/lodash/4.17.11','pandav:/com/icon/0.0.10/index.less','pandav:/com/icon/0.0.10/utils'],function(a,b,c){var d=c('pandav:/npm/bcore/0.0.18/event'),e=c('pandav:/npm/jquery/2.1.4'),f=c('pandav:/npm/lodash/4.17.11');c('pandav:/com/icon/0.0.10/index.less','');var g=c('pandav:/com/icon/0.0.10/utils');return a.exports=d.extend(function(a,b){this.config={theme:{}},this.container=a,this.$container=e(a),this.apis=b.apis,this._data=null,this.chart=null,this._resize={width:this.$container.width(),height:this.$container.height()},this.init(b)},{init:function(a){this.mergeConfig(a),this.updateLayout(),this.updateStyle(),this.$container.html('\\n
\\n \\n
\\n '),this.render(null,a)},getUUID:function(){return~~(1e4*Math.random())+ +new Date},render:function(a,b){var c=Math.min,d=this;a=this.data(a);var h=this.mergeConfig(b),i=this.$container.find('.icon-font-wrap'),j='font-face'+this.getUUID(),k=this._resize,l=k.width,m=k.height,n=this.$container.find('.icon'),o=h.iconType,p=h.basicIconType,q=h.customIconType,r=h.industryIconType,s=h.trafficIcon,t=h.medicalIcon,u=h.industryIcon,v={basic:p,custom:q,industry:r},w={traffic:s,medical:t,industry:u},x='industry'===o?f.get(w[r],'url'):f.get(v[o],'url'),y='industry'===o?f.get(w[r],'type'):f.get(v[o],'type'),z=e('.datav-icon-font'),A=[],B=[];z&&0\\n @font-face {\\n font-family: \"'+a+'\";\\n src: url(\"'+b+'\");\\n font-style: normal;\\n font-weight: normal;\\n }\\n .'+a+' {\\n font-family: \"'+a+'\" !important;\\n font-size: 16px;\\n font-style: normal;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n }\\n \\n ')},resize:function(a,b){this.updateLayout(a,b),this._resize=Object.assign({},this.resize,{width:a,height:b}),this.render(this._data,this.config)},setColors:function(){},data:function(a){return a&&(this._data=a),this._data},getThemableConfig:function(a){if(!a)return null;var b=f.get(a,'palette'),c=b[f.floor(b.length/2)];return{iconStyle:{color:c}}},mergeConfig:function(a){return a?(this.config.theme=f.defaultsDeep(a.theme||{},this.config.theme),this.setColors(),this.config=f.defaultsDeep(a||{},this.config),a):a},handleClick:function(a){this.emit('handleClick',a)},handleMouseOver:function(a){this.emit('handleMouseOver',a)},handleMouseOut:function(){this.emit('handleMouseOut',event)},updateLayout:function(){},updateStyle:function(){this.deleteRedundancy()},deleteRedundancy:function(){var a=[],b=e('.icon-font-wrap').find('span');b&&0