mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 17:41:24 -07:00
Re-land bbiggs changes to reduce margin on narrow screens with fixes + full width setting (#10522)
This commit is contained in:
15
packages/cli/src/utils/math.ts
Normal file
15
packages/cli/src/utils/math.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Linearly interpolates between two values.
|
||||
*
|
||||
* @param start The start value.
|
||||
* @param end The end value.
|
||||
* @param t The interpolation amount (typically between 0 and 1).
|
||||
*/
|
||||
export const lerp = (start: number, end: number, t: number): number =>
|
||||
start + (end - start) * t;
|
||||
Reference in New Issue
Block a user