From 843788f99fb398dbcf3953573c68b2942de97abd Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Thu, 21 Mar 2024 13:27:10 +0100 Subject: [PATCH] refactor(geom-resample): minor internal updates --- packages/geom-resample/src/axis.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/geom-resample/src/axis.ts b/packages/geom-resample/src/axis.ts index 5f37531c87..369e29a448 100644 --- a/packages/geom-resample/src/axis.ts +++ b/packages/geom-resample/src/axis.ts @@ -44,7 +44,7 @@ export const sampleUniformX = ( for (let x = x1; x <= x2; x += step) { res.push( ( - intersectRayPolyline([x, startY], [0, 1], pts, false).isec! + intersectRayPolyline([x, startY], [0, 1], pts, false).isec![0] ) ); } @@ -73,7 +73,7 @@ export const sampleUniformY = ( for (let y = y1; y <= y2; y += step) { res.push( ( - intersectRayPolyline([startX, y], [1, 0], pts, false).isec! + intersectRayPolyline([startX, y], [1, 0], pts, false).isec![0] ) ); }