{ "pandav:/Bar.jsx": { "cubeCode": "Cube('pandav:/com/rasterProgressBar/1.0.1/Bar.jsx',['pandav:/npm/react/16.13.1','pandav:/com/submodule-three-3d/1.0.0','pandav:/com/common-utils/1.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d=b.dataRange.min&&c<=b.dataRange.max)return b;return null}},{key:'renderContent',value:function a(){var b=this.props,c=b.width,d=b.height;return s.createElement(s.Fragment,null,s.createElement('svg',{width:c,height:d},this.renderProgress()),s.createElement(B,{context:this,ratio:this.state.ratio}),s.createElement(C,{context:this}))}},{key:'renderClipPath',value:function b(a){var c=this.props,d=c.width,e=c.height,f=this.config.raster,g=f.segment,h=f.interval,j=f.borderRadius,k=d/g;k=(d+k*h)/g;for(var l=[],m=1;m<=g;m++){var n=(m-1)*k,o=(1-h)*k;l.push(s.createElement('rect',{key:n,x:n,y:'0',rx:j,ry:j,width:o,height:e}))}return s.createElement('clipPath',{id:a},l)}},{key:'reduceData',value:function b(a){var c,d,e,f,g,h=this.config,i=h.chart,j=i.valueType,k=i.extremum,l=h.indicator.decimals;try{var m=a.data[0],n=+m.value;'\\u771F\\u5B9E\\u503C'==j?(d=null==m.max?+k.max:+m.max,c=null==m.min?+k.min:+m.min,e=x((n-c)/(d-c),0,1),f=n.toFixed(l)+'%',g=n):(d='100%',c='0%',e=x(n,0,1),f=(100*n).toFixed(l)+'%')}catch(a){d='100%',c='0%',e=0,f=0 .toFixed(l)+'%',g=0}return{min:c,max:d,ratio:e,cur:f,value:g}}},{key:'renderProgress',value:function a(){var b=Math.max,c=this.props,d=c.width,e=c.height,f=this.config.raster,g=f.foreColor,h=f.bgColor,i='clipPath'+this.props.id,j=this.valueStatus?this.valueStatus.foreColor:g,k=v('svg',j,'foreGradient'+this.props.id);return s.createElement(s.Fragment,null,s.createElement('defs',null,this.renderClipPath(i),k.def),s.createElement('rect',{width:d,height:e,fill:h,clipPath:'url(#'.concat(i,')')}),s.createElement('rect',{width:b(d*this.state.ratio,0),height:e,fill:k.fill,clipPath:'url(#'.concat(i,')')}))}},{key:'update',value:function a(){this.aniRatio.update()}}]),b}(u);return a.exports=D,a.exports});", "requires": [], "buildLevel": 2, "outputDir": "/com/rasterProgressBar/1.0.1", "outputPath": "/com/rasterProgressBar/1.0.1/Bar.jsx", "fileName": "/Bar.jsx" }, "pandav:/initFilterScript/JArray.js": { "cubeCode": "Cube('pandav:/com/rasterProgressBar/1.0.1/initFilterScript/JArray',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/rasterProgressBar/1.0.1/initFilterScript", "outputPath": "/com/rasterProgressBar/1.0.1/initFilterScript/JArray.js", "fileName": "/initFilterScript/JArray.js" }, "pandav:/initFilterScript/Normal.js": { "cubeCode": "Cube('pandav:/com/rasterProgressBar/1.0.1/initFilterScript/Normal',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/rasterProgressBar/1.0.1/initFilterScript", "outputPath": "/com/rasterProgressBar/1.0.1/initFilterScript/Normal.js", "fileName": "/initFilterScript/Normal.js" }, "pandav:/initFilterScript/JObject.js": { "cubeCode": "Cube('pandav:/com/rasterProgressBar/1.0.1/initFilterScript/JObject',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/rasterProgressBar/1.0.1/initFilterScript", "outputPath": "/com/rasterProgressBar/1.0.1/initFilterScript/JObject.js", "fileName": "/initFilterScript/JObject.js" }, "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/rasterProgressBar/1.0.1',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/16.13.1','pandav:/npm/react-dom/16.13.1','pandav:/com/rasterProgressBar/1.0.1/Bar.jsx','pandav:/npm/jquery/2.1.4'],function(a,b,c){var d=c('pandav:/npm/bcore/0.0.18/event'),e=c('pandav:/npm/react/16.13.1'),f=c('pandav:/npm/react-dom/16.13.1'),g=c('pandav:/com/rasterProgressBar/1.0.1/Bar.jsx'),h=c('pandav:/npm/jquery/2.1.4');return a.exports=d.extend(function(a,b){this.config={theme:{}},this.container=a,this.apis=b.apis,this.containSize={boxWidth:h(a)&&h(a).width(),boxHeight:h(a)&&h(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},mergeConfig:function(a){var b;return a?(b=a,this.config=a):b=this.config,b},updateOptions:function(a){this.render(this._data,a)},data:function(a){return a&&(this._data=a),this._data},setColors:function(){},resize:function(a,b){this.containSize={boxWidth:a,boxHeight:b},this.render(this._data,this.config)},render:function(a,b){a=this.data(a);var c=this.mergeConfig(b);f.render(e.createElement(g,Object.assign({width:this.containSize.boxWidth,height:this.containSize.boxHeight,emit:this.emit.bind(this),id:this.__id,childrenConfig:[],configuration:c?.options,data:a})),this.container)},destroy:function(){return!!this.container&&void(f.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/Bar.jsx" ], "buildLevel": 1, "outputDir": "/com/rasterProgressBar/1.0.1", "outputPath": "/com/rasterProgressBar/1.0.1/index.js", "fileName": "/index.js" } }