feat(hex-background): pass animationDuration through HexGridBackground

This commit is contained in:
michael
2026-04-13 16:26:17 -07:00
parent 5112e5c057
commit 1f67ebf48a

View File

@@ -22,6 +22,8 @@ export interface HexGridBackgroundProps {
maxHeight?: number; maxHeight?: number;
/** Height target refresh interval in ms @default 1500 */ /** Height target refresh interval in ms @default 1500 */
animationInterval?: number; animationInterval?: number;
/** Duration (ms) for each hex to ease to target @default 1200 */
animationDuration?: number;
/** Camera orbital speed @default 0.02 */ /** Camera orbital speed @default 0.02 */
cameraSpeed?: number; cameraSpeed?: number;
/** Camera orbital radius @default 8 */ /** Camera orbital radius @default 8 */
@@ -62,6 +64,7 @@ export function HexGridBackground({
margin = 0.05, margin = 0.05,
maxHeight = 3, maxHeight = 3,
animationInterval = 1500, animationInterval = 1500,
animationDuration = 1200,
cameraSpeed = 0.02, cameraSpeed = 0.02,
cameraRadius = 8, cameraRadius = 8,
fov = 40, fov = 40,
@@ -134,6 +137,7 @@ export function HexGridBackground({
margin={margin} margin={margin}
maxHeight={maxHeight} maxHeight={maxHeight}
animationInterval={animationInterval} animationInterval={animationInterval}
animationDuration={animationDuration}
/> />
</Suspense> </Suspense>
</Canvas> </Canvas>