quoslibero
Version:
FusionCharts JavaScript charting framework
1 lines • 2.41 kB
JavaScript
import{getDep}from'../../../../../fc-core/src/dependency-manager';let symbolList,Raphael=getDep('redraphael','plugin'),mathCos=Math.cos,mathSin=Math.sin,PI=Math.PI;symbolList={pinModeIcon:function(a,b,c){var d=a,e=b,f=c,g=.5*f,h=d-f,i=d+f,j=d-g,k=d+g,l=d+.5,m=l+1,n=l+1.5,o=e-f,p=e+g,q=e-g,r=e+(f-g);return['M',h,o,'L',j,q,j,r,h,p,d-.5,p,d,e+f+.5,l,p,i,p,k,r,k,q,i,o,n,o,n,q,n,r,m,r,m,q,n,q,n,o,'Z']},zoomOutIcon:function(a,b,c){var d=a-.2*c,e=b-.2*c,f=.8*c,g=Raphael.rad(43),h=Raphael.rad(48),i=d+f*mathCos(g),j=e+f*mathSin(g),k=d+f*mathCos(h),l=e+f*mathSin(h),m=c,n=Raphael.rad(45),o=i+m*mathCos(n),p=j+m*mathSin(n),q=k+m*mathCos(n),r=l+m*mathSin(n);return['M',i,j,'A',f,f,0,1,0,k,l,'Z','M',i+1,j+1,'L',o,p,q,r,k+1,l+1,'Z','M',d-2,e,'L',d+2,e,'Z']},resetIcon:function(a,b,c){var d=c,e=(PI/2+PI)/2,f=a+d*mathCos(e),g=b+d*mathSin(e),h=2*d/3;return['M',a-d,b,'A',d,d,0,1,1,f,g,'L',f+h,g-1,f+2,g+h-.5,f,g]},zoomInIcon:function(a,b,c){var d=a-.2*c,e=b-.2*c,f=.8*c,g=Raphael.rad(43),h=Raphael.rad(48),i=d+f*mathCos(g),j=e+f*mathSin(g),k=d+f*mathCos(h),l=e+f*mathSin(h),m=c,n=Raphael.rad(45),o=i+m*mathCos(n),p=j+m*mathSin(n),q=k+m*mathCos(n)-1,r=l+m*mathSin(n)-1;return['M',i,j,'A',f,f,0,1,0,k,l,'Z','M',i+1,j+1,'L',o,p,q,r,k+1,l+1,'Z','M',d-2,e,'L',d+2,e,'Z','M',d,e-2,'L',d,e+2,'Z']},zoomModeIcon:function(a,b,c){var d=[],e=a-.2*c,f=b-.2*c,g=.8*c,h=Raphael.rad(43),i=Raphael.rad(48),j=e+g*mathCos(h),k=f+g*mathSin(h),l=e+g*mathCos(i),m=f+g*mathSin(i),n=c,o=Raphael.rad(45),p=j+n*mathCos(o),q=k+n*mathSin(o),r=l+n*mathCos(o)-1,s=m+n*mathSin(o)-1;return d=d.concat(['M',j,k,'A',g,g,0,1,0,l,m,'Z','M',j+1,k+1,'L',p,q,r,s,r+1,s-1,r+1.5,s+1.5,r-1,s+1,r,s,l+1,m+1,'Z','M',e-2,f,'L',e+2,f,'Z','M',e,f-2,'L',e,f+2,'Z']),d},panModeIcon:function(a,b,c){var d=a-45/4,e=b;return d=a,c*=2.5,[].concat(['M',d-c/16,e-c/8,'L',d+c/16,e-c/8,'L',d+c/16,e-c/3.2,'L',d+6*c/32,e-10*c/32,'L',d,e-c/2,'L',d-6*c/32,e-10*c/32,'L',d-c/16,e-c/3.2,'Z','M',d+4*c/32,e-2*c/32,'L',d+10*c/32,e-2*c/32,'L',d+10*c/32,e-6*c/32,'L',d+16*c/32,e,'L',d+10*c/32,e+6*c/32,'L',d+10*c/32,e+2*c/32,'L',d+4*c/32,e+2*c/32,'Z','M',d+2*c/32,e+5*c/32,'L',d+2*c/32,e+10*c/32,'L',d+6*c/32,e+10*c/32,'L',d,e+16*c/32,'L',d-6*c/32,e+10*c/32,'L',d-2*c/32,e+10*c/32,'L',d-2*c/32,e+5*c/32,'Z','M',d-4*c/32,e-2*c/32,'L',d-10*c/32,e-2*c/32,'L',d-10*c/32,e-6*c/32,'L',d-16*c/32,e,'L',d-10*c/32,e+6*c/32,'L',d-10*c/32,e+2*c/32,'L',d-4*c/32,e+2*c/32,'Z'])}};export{symbolList};