From 4b739e3bc5d341bbd3bb8f49fc1c947c871ee24f Mon Sep 17 00:00:00 2001 From: hanjunjun Date: Mon, 23 Mar 2026 15:10:56 +0800 Subject: [PATCH] bug fix --- packages/turf-bezier-spline/lib/spline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/turf-bezier-spline/lib/spline.ts b/packages/turf-bezier-spline/lib/spline.ts index 67f1595f29..77bf0c0f01 100644 --- a/packages/turf-bezier-spline/lib/spline.ts +++ b/packages/turf-bezier-spline/lib/spline.ts @@ -71,7 +71,7 @@ class Spline { const dy = this.points[i + 1].y - (this.centers[i].y + this.centers[i + 1].y) / 2; const dz = - this.points[i + 1].z - (this.centers[i].y + this.centers[i + 1].z) / 2; + this.points[i + 1].z - (this.centers[i].z + this.centers[i + 1].z) / 2; this.controls.push([ { x: