{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/fixedScatterV2/1.0.0',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/fixedScatterV2/1.0.0/src/com.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/17.0.2'),f=c('pandav:/npm/react-dom/17.0.2'),g=c('pandav:/com/fixedScatterV2/1.0.0/src/com.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),config:c.options,data:a,id:this.__id})),this.container)},destroy:function(){return!!this.container&&void(f.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/src/com.jsx" ], "buildLevel": 1, "outputDir": "/com/fixedScatterV2/1.0.0", "outputPath": "/com/fixedScatterV2/1.0.0/index.js", "fileName": "/index.js" }, "pandav:/src/com.jsx": { "cubeCode": "Cube('pandav:/com/fixedScatterV2/1.0.0/src/com.jsx',['pandav:/npm/react/17.0.2','pandav:/npm/d3/5.16.0/dist/d3','pandav:/npm/lodash/4.6.1','pandav:/npm/animejs/3.2.2/lib/anime','pandav:/com/cube-chart/0.0.2'],function(a,b,c){function d(a,b){return j(a)||h(a,b)||f(a,b)||e()}function e(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function f(a,b){if(a){if('string'==typeof a)return g(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?g(a,b):void 0}}function g(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cc?0:a+1}),A(function(){return e[D]})},U)}'float'==R&&(A(function(){return-1}),ia(),ha()),'blink'==R&&(A(function(){return-1}),ha(),ia())}else A(function(){return-1}),ha(),ia();return function(){clearInterval(a),r.remove('.circle'.concat(o))}},[Q,z,R,U,V,Y,S,O]);var ja={position:'absolute'},ka={overflow:'visible'},la={position:'relative',width:'100%',height:'100%',whiteSpace:'nowrap'};return k.createElement('div',{style:{position:'absolute',width:f,height:g,textAlign:'center'},id:o,className:'__pandav-component'},k.createElement('svg',{style:{width:f,height:g}},k.createElement('g',null,O.map(function(a,b){var c=Math.sin,d=Math.cos,f=Math.PI,g=a.value,h=a.grad,i=a.bubbleSelf,j='linearGradient'==W.color.type,l='linearGradient'==h.bubble.color.type;e.push(b);var m=ba(i.offset.offsetX),n=ca(i.offset.offsetY),p=j?W.color.value.angle*f/180:0,q=l?h.bubble.color.value.angle*f/180:0,r=j?W.color.value.angle%360:0,s=l?h.bubble.color.value.angle%360:0,u=fa(g),v=2*fa(g),w=z==b,x=k.createElement('defs',null,k.createElement('linearGradient',{x1:180<=r&&360>r?100*-d(p)+'%':'0%',y1:180<=r&&360>r?100*-c(p)+'%':'0%',x2:180<=r&&360>r?'0%':100*d(p)+'%',y2:180<=r&&360>r?'0%':100*c(p)+'%',id:'focusFill'.concat(o).concat(b)},j&&W.color.value.stops.map(function(a,b){return k.createElement('stop',{offset:a.offset+'%',stopColor:a.color,key:'focusFill'+b})})),k.createElement('filter',{id:'focusShadow'.concat(o).concat(b),x:'-50%',y:'-50%',height:'250%',width:'250%'},k.createElement('feDropShadow',{dx:W.borderShadow.hShadow,dy:W.borderShadow.vShadow,stdDeviation:W.borderShadow.blur,floodColor:W.borderShadow.color})),k.createElement('pattern',{id:'focusImg'.concat(o).concat(b),width:'100%',height:'100%'}),k.createElement('linearGradient',{x1:180<=s&&360>s?100*-d(q)+'%':'0%',y1:180<=s&&360>s?100*-c(q)+'%':'0%',x2:180<=s&&360>s?'0%':100*d(q)+'%',y2:180<=s&&360>s?'0%':100*c(q)+'%',id:'seriesFill'.concat(o).concat(b)},l&&h.bubble.color.value.stops.map(function(a,b){return k.createElement('stop',{offset:a.offset+'%',stopColor:a.color,key:'seriesFill'+b})})),k.createElement('filter',{id:'seriesShadow'.concat(o).concat(b),x:'-50%',y:'-50%',height:'250%',width:'250%'},k.createElement('feDropShadow',{dx:h.bubble.borderShadow.hShadow,dy:h.bubble.borderShadow.vShadow,stdDeviation:h.bubble.borderShadow.blur,floodColor:h.bubble.borderShadow.color})));if(!i.styleBySelf&&h){var y;return y=w?'designBySelf'===W.style?'url(#focusImg'.concat(o).concat(b,')'):'linearGradient'==W.color.type?'url(#focusFill'.concat(o).concat(b,')'):W.color:'default'==h.bubble.bubbleStyle?'linearGradient'==h.bubble.color.type?'url(#seriesFill'.concat(o).concat(b,')'):h.bubble.color:'transparent',k.createElement('g',{key:'circle'+b+o,className:'circle'.concat(o),onClick:function(){return $(a,b)}},x,k.createElement('foreignObject',{x:m-u,y:n-u,width:v,height:v,style:Object.assign({mixBlendMode:h.bubble.pattern},ka)},k.createElement('div',{style:Object.assign(Object.assign({},la),{},{borderRadius:'designBySelf'==h.bubble.bubbleStyle?'0':'50%',background:a.url?'url('.concat(a.url,') 0 0/100% 100%'):z===b&&'designBySelf'==W.style?'url('.concat(W.image,') 0 0/100% 100%'):'designBySelf'==h.bubble.bubbleStyle&&h.bubble.image?'url('.concat(h.bubble.image,') 0 0/100% 100%'):'transparent'})},k.createElement('div',{style:Object.assign(Object.assign(Object.assign(Object.assign({},ja),t(w?X.textStyle:h.title.textStyle)),{},{left:'50%'},ga(w?X.TextOffset:h.title.offset,w?X.vertical:h.title.vertical)),{},{fontSize:da(a.value)+'px',lineHeight:'1.5em',opacity:Q?'blink'==R?T[1]:1:1})},a.name),k.createElement('div',{style:Object.assign(Object.assign(Object.assign(Object.assign({},ja),t(w?Z.textStyle:h.numValue.textStyle)),ga(w?Z.TextOffset:h.numValue.offset,w?Z.vertical:h.numValue.vertical)),{},{fontSize:ea(a.value)+'px',lineHeight:'1.5em',opacity:Q?'blink'==R?T[1]:1:1})},('percentValue'==K?(100*(a.value/P)).toFixed(L)+'%':(+a.value).toFixed(L))+h.numValue.content))),z===b&&'designBySelf'===W.style?k.createElement('rect',{x:m-u,y:n-u,width:v,height:v,style:{mixBlendMode:z==b?'normal':h.bubble.pattern},opacity:Q?'blink'==R?T[1]:1:1,fill:y,filter:w?W.borderShadow.show?'url(#focusShadow'.concat(o).concat(b,')'):'':h.bubble.borderShadow.show?'url(#seriesShadow'.concat(o).concat(b,')'):'',stroke:w?W.border.show?W.border.borderFill:'':h.bubble.border.show?h.bubble.border.color:'',strokeWidth:w?W.border.show?W.border.borderStroke:'':h.bubble.border.show?h.bubble.border.borderStroke:''}):'default'==h.bubble.bubbleStyle?k.createElement('circle',{preserveAspectRatio:'none meet',cx:m,cy:n,opacity:Q?'blink'==R?T[1]:1:1,r:u,fill:y,filter:w?W.borderShadow.show?'url(#focusShadow'.concat(o).concat(b,')'):'':h.bubble.borderShadow.show?'url(#seriesShadow'.concat(o).concat(b,')'):'',stroke:w?W.border.show?W.border.borderFill:'':h.bubble.border.show?h.bubble.border.color:'',strokeWidth:w?W.border.show?W.border.borderStroke:'':h.bubble.border.show?h.bubble.border.borderStroke:''}):k.createElement('rect',{x:m-u,y:n-u,width:v,height:v,style:{mixBlendMode:z==b?'normal':h.bubble.pattern},opacity:Q?'blink'==R?T[1]:1:1,fill:y,filter:w?W.borderShadow.show?'url(#focusShadow'.concat(o).concat(b,')'):'':h.bubble.borderShadow.show?'url(#seriesShadow'.concat(o).concat(b,')'):'',stroke:w?W.border.show?W.border.borderFill:'':h.bubble.border.show?h.bubble.border.color:'',strokeWidth:w?W.border.show?W.border.borderStroke:'':h.bubble.border.show?h.bubble.border.borderStroke:''}))}var A;return A=w?'linearGradient'==W.color.type?'url(#focusFill'.concat(o).concat(b,')'):W.color:''==i.image?'default'==h.bubble.bubbleStyle?'linearGradient'==h.bubble.color.type?'url(#seriesFill'.concat(o).concat(b,')'):h.bubble.color:'transparent':'transparent',k.createElement('g',{key:'circle'+b+o,className:'circle'.concat(o),onClick:function(){return $(a,b)}},x,k.createElement('foreignObject',{x:m-u,y:n-u,width:v,height:v,style:Object.assign({mixBlendMode:i.pattern},ka)},k.createElement('div',{style:Object.assign(Object.assign({},la),{},{borderRadius:'designBySelf'==h.bubble.bubbleStyle?'0':'50%',background:a.url?'url('.concat(a.url,') 0 0/100% 100%'):'designBySelf'==h.bubble.bubbleStyle&&i.image?'url('.concat(i.image,') 0 0/100% 100%'):'transparent'})},k.createElement('div',{style:Object.assign(Object.assign(Object.assign({},ja),t(w?X.textStyle:i.title.textStyle)),{},{fontSize:da(a.value)+'px',lineHeight:'1.5em',opacity:Q?'blink'==R?T[1]:1:1,transform:'translate('.concat(w?X.TextOffset.offsetX:i.title.offset.offsetX,'px,').concat(w?X.TextOffset.offsetY:i.title.offset.offsetY,'px)')})},a.name),k.createElement('div',{style:Object.assign(Object.assign(Object.assign({},ja),t(w?Z.textStyle:i.numValue.textStyle)),{},{fontSize:ea(a.value)+'px',lineHeight:'1.5em',opacity:Q?'blink'==R?T[1]:1:1,transform:'translate('.concat(w?Z.TextOffset.offsetX:i.numValue.offset.offsetX,'px,').concat(w?Z.TextOffset.offsetY:i.numValue.offset.offsetY,'px)')})},('percentValue'==K?(100*(a.value/P)).toFixed(L)+'%':(+a.value).toFixed(L))+i.numValue.content))),''==i.image?k.createElement('circle',{preserveAspectRatio:'none meet',cx:m,cy:n,opacity:Q?'blink'==R?T[1]:1:1,r:u,fill:A,filter:w?W.borderShadow.show?'url(#focusShadow'.concat(o).concat(b,')'):'':h.bubble.borderShadow.show?'url(#seriesShadow'.concat(b,')'):'',stroke:w?W.border.show?W.border.borderFill:'':h.bubble.border.show?h.bubble.border.color:'',strokeWidth:w?W.border.show?W.border.borderStroke:'':h.bubble.border.show?h.bubble.border.borderStroke:''}):k.createElement('rect',{x:m-u,y:n-u,width:v,height:v,style:{mixBlendMode:z==b?'normal':i.pattern},opacity:Q?'blink'==R?T[1]:1:1,fill:A}))}))))},a.exports});", "requires": [], "buildLevel": 2, "outputDir": "/com/fixedScatterV2/1.0.0/src", "outputPath": "/com/fixedScatterV2/1.0.0/src/com.jsx", "fileName": "/src/com.jsx" } }