|
@@ -162,8 +162,8 @@ export function moveSmoothAnimation(progress: number, activeIndex: number, isMov
|
|
|
// 移动
|
|
|
smoothAnimationMove(
|
|
|
{
|
|
|
- x: nowPointsPos.x - 20,
|
|
|
- y: nowPointsPos.y - 25
|
|
|
+ x: nowPointsPos.x - 18,
|
|
|
+ y: nowPointsPos.y - 23
|
|
|
},
|
|
|
smoothAnimationState.pointsPos,
|
|
|
smoothAnimationState.pointsPos.slice(0, nowIndex)
|
|
@@ -468,7 +468,7 @@ function createSmoothCurvePoints(pointsPos: pointsPosType, tension?: number, clo
|
|
|
* 根据坐标划线
|
|
|
*/
|
|
|
function drawSmoothCurve(context: CanvasRenderingContext2D, pointsPos: pointsPosType, progresspointsPos?: pointsPosType) {
|
|
|
- context.lineWidth = 4
|
|
|
+ context.lineWidth = 2
|
|
|
context.lineJoin = 'round';// 优化锯齿
|
|
|
context.lineCap = 'round'; // 优化锯齿
|
|
|
context.strokeStyle = "rgba(255,255,255,0.6)"
|