{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/bulletTextV2/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/bulletTextV2/1.0.0/com.jsx'],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/bulletTextV2/1.0.0/com.jsx');return a.exports=d.extend(function(a,b){this.config={theme:{}},this.container=a,this.apis=b.apis,this.containSize={boxWidth:$(a)&&$(a).width(),boxHeight:$(a)&&$(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},mergeConfig:function(a){return a?(this.config.theme=_.defaultsDeep(a.theme||{},this.config.theme),this.setColors(),this.config=_.defaultsDeep(a||{},this.config),this.config):this.config},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,emitEvent:this.emit.bind(this)},{config:c,container:this.container},{data:a})),this.container)},destroy:function(){return!!this.container&&void(f.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/com.jsx" ], "buildLevel": 1, "outputDir": "/com/bulletTextV2/1.0.0", "outputPath": "/com/bulletTextV2/1.0.0/index.js", "fileName": "/index.js" }, "pandav:/com.jsx": { "cubeCode": "Cube('pandav:/com/bulletTextV2/1.0.0/com.jsx',['pandav:/npm/react/17.0.2','pandav:/npm/react-spring/8.0.27'],function(a,b,c){function d(a,b){var c=null==a?null:'undefined'!=typeof Symbol&&a[Symbol.iterator]||a['@@iterator'];if(null!=c){var d,e=[],f=!1,g=void 0,h=!0;try{for(c=c.call(a);!(h=(d=c.next()).done)&&(e.push(d.value),!b||e.length!==b);h=!0);}catch(a){f=!0,g=a}finally{try{h||null==c.return||c.return()}finally{if(f)throw g}}return e}}var e=c('pandav:/npm/react/17.0.2'),f=c('pandav:/npm/react-spring/8.0.27'),g=f.animated,h=f.useSpring,i=f.useSprings,j=function(a){return'function'==typeof a},k=e.memo(function(a){var b=a.chart,c=b.textStyle,d=b.textAlign,f=b.textVertical,g=b.shadow,h=b.paragraphSpace,i=c.color,j=c.lineHeight,k=Object.assign({},c,{lineHeight:j+'px',textAlign:d,width:'100%',fontStyle:'',fontWeight:'normal'});if(f&&(k.position='absolute',k.top='top'==f?0:'center'==f?'50%':null,k.bottom='bottom'==f?0:null,k.transform='center'==f?'translateY(-50%)':null),!i.type)k.color=i;else if('pure'===i.type)k.color=i.pure;else{var l=i.linear;k.WebkitBackgroundClip='text',k.WebkitTextFillColor='transparent',k.backgroundImage='-webkit-linear-gradient('.concat(90-l.angle,'deg, ').concat(l.stops.slice(0).sort(function(a,b){return a.offset-b.offset}).map(function(a){return a.color+' '+a.offset+'%'}),')'),k.opacity=l.opacity}return g&&g.show&&(k.textShadow=g),h&&(k.marginBottom=h+'px'),e.createElement('div',{style:Object.assign({},k),dangerouslySetInnerHTML:{__html:a.text||''}})});return a.exports=function(a){var b=a.data,c=void 0===b?[]:b,f=a.config,h=f.animation,l=f.chart,m=l.textStyle,n=h.speed,o=h.interval,p=d(function(a){var b=j(a),c=i(1,b?a:[a]);return b?[c[0][0],c[1],c[2]]:c[0]}(function(){return{x:a.width}}),2),q=c[0]?c[0].text:'',r=p[0],s=p[1],t=function(a){var b=document.querySelector('div'),c=document.createElement('div');c.innerText=a,c.style.display='inline-block',c.style.whiteSpace='nowrap',c.style.fontSize=''.concat(m.fontSize,'px'),b.appendChild(c);var d=c.offsetWidth;return b.removeChild(c),d}(q),u=(a.width+t)/n;return e.useEffect(function(){var b=function(){s({to:{x:a.width},config:{duration:0},onRest:function(){s({to:{x:-t},config:{duration:1e3*u}})}})};b();var c=setInterval(function(){return b()},1e3*(u+o));return function(){clearInterval(c)}},[a.width,a.height,o,c]),e.createElement('div',{style:{width:'100%',height:'100%',cursor:'pointer'},onClick:function(){a.emitEvent('click',a.data)},onMouseEnter:function(){a.emitEvent('mouseEnter',a.data)},onMouseLeave:function(){a.emitEvent('mouseLeave',a.data)}},e.createElement('div',{style:{position:'absolute',width:'100%',height:'100%',whiteSpace:'nowrap',overflow:'hidden'}},e.createElement(g.div,{style:{width:'100%',height:'100%',transform:r.x.interpolate(function(a){return'translatex('.concat(a,'px)')})}},e.createElement(k,{chart:l,text:q}))))},a.exports});", "requires": [], "buildLevel": 2, "outputDir": "/com/bulletTextV2/1.0.0", "outputPath": "/com/bulletTextV2/1.0.0/com.jsx", "fileName": "/com.jsx" }, "pandav:/initFilterScript/JArray.js": { "cubeCode": "Cube('pandav:/com/bulletTextV2/1.0.0/initFilterScript/JArray',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/bulletTextV2/1.0.0/initFilterScript", "outputPath": "/com/bulletTextV2/1.0.0/initFilterScript/JArray.js", "fileName": "/initFilterScript/JArray.js" }, "pandav:/initFilterScript/JObject.js": { "cubeCode": "Cube('pandav:/com/bulletTextV2/1.0.0/initFilterScript/JObject',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/bulletTextV2/1.0.0/initFilterScript", "outputPath": "/com/bulletTextV2/1.0.0/initFilterScript/JObject.js", "fileName": "/initFilterScript/JObject.js" }, "pandav:/initFilterScript/Normal.js": { "cubeCode": "Cube('pandav:/com/bulletTextV2/1.0.0/initFilterScript/Normal',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/bulletTextV2/1.0.0/initFilterScript", "outputPath": "/com/bulletTextV2/1.0.0/initFilterScript/Normal.js", "fileName": "/initFilterScript/Normal.js" } }