From 1f67ebf48a94f4b87d864c2b504027dfdc1f3749 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 13 Apr 2026 16:26:17 -0700 Subject: [PATCH] feat(hex-background): pass animationDuration through HexGridBackground --- packages/hex-background/src/HexGridBackground.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/hex-background/src/HexGridBackground.tsx b/packages/hex-background/src/HexGridBackground.tsx index 779605f..e78bb0b 100644 --- a/packages/hex-background/src/HexGridBackground.tsx +++ b/packages/hex-background/src/HexGridBackground.tsx @@ -22,6 +22,8 @@ export interface HexGridBackgroundProps { maxHeight?: number; /** Height target refresh interval in ms @default 1500 */ animationInterval?: number; + /** Duration (ms) for each hex to ease to target @default 1200 */ + animationDuration?: number; /** Camera orbital speed @default 0.02 */ cameraSpeed?: number; /** Camera orbital radius @default 8 */ @@ -62,6 +64,7 @@ export function HexGridBackground({ margin = 0.05, maxHeight = 3, animationInterval = 1500, + animationDuration = 1200, cameraSpeed = 0.02, cameraRadius = 8, fov = 40, @@ -134,6 +137,7 @@ export function HexGridBackground({ margin={margin} maxHeight={maxHeight} animationInterval={animationInterval} + animationDuration={animationDuration} />