fix resize (#5921)

* fix resize

* assert stream dimensions
This commit is contained in:
Kurt Hutten
2025-03-21 13:13:26 +11:00
committed by GitHub
parent 66b9b501ac
commit 89d1f7f3d3
6 changed files with 124 additions and 32 deletions

View File

@ -31,11 +31,13 @@ const toNormalizedCode = (text: string) => {
return text.replace(/\s+/g, '')
}
type TestColor = [number, number, number]
export const TEST_COLORS = {
WHITE: [249, 249, 249] as TestColor,
YELLOW: [255, 255, 0] as TestColor,
BLUE: [0, 0, 255] as TestColor,
export type TestColor = [number, number, number]
export const TEST_COLORS: { [key: string]: TestColor } = {
WHITE: [249, 249, 249],
YELLOW: [255, 255, 0],
BLUE: [0, 0, 255],
DARK_MODE_BKGD: [27, 27, 27],
DARK_MODE_PLANE_XZ: [50, 50, 99],
} as const
export const PERSIST_MODELING_CONTEXT = 'persistModelingContext'
@ -50,14 +52,6 @@ export const commonPoints = {
num3: -2.44,
} as const
/** A semi-reliable color to check the default XZ plane on
* in dark mode in the default camera position
*/
export const darkModePlaneColorXZ: [number, number, number] = [50, 50, 99]
/** A semi-reliable color to check the default dark mode bg color against */
export const darkModeBgColor: [number, number, number] = [27, 27, 27]
export const editorSelector = '[role="textbox"][data-language="kcl"]'
type PaneId = 'variables' | 'code' | 'files' | 'logs'