FlyLine icon indicating copy to clipboard operation
FlyLine copied to clipboard

基于canvas的飞线图

Results 1 FlyLine issues
Sort by recently updated
recently updated
newest added

请问您这个飞线效果加个箭头,要怎么加呢?谢谢! function drawQ(f){ var p1,p2; if(f.t1=f.l){ f.t2 += f.step; f.t2 = Math.min(1,f.t2); } p1 = getPointQuadRaticBeizer({x:0,y:0},f.ctl,{x:f.dis,y:0},f.t1); p2 = getPointQuadRaticBeizer({x:0,y:0},f.ctl,{x:f.dis,y:0},f.t2); context.save(); context.translate(f.s.x,f.s.y); context.rotate(f.r); var grd = context.createLinearGradient(p2.x, p2.y,p1.x, p1.y); grd.addColorStop(0,"rgba(255,255,255,0)"); grd.addColorStop(1,f.c);...