- Add dual-stream calibration: phone sends both raw and cropped preview frames during calibration so users can see what practice will look like - Add "Adjust" button to modify existing manual calibration without resetting to auto-detection first - Hide calibration quad editor overlay when not in calibration mode - Fix rotation buttons to update cropped preview immediately - Add rate limiting (10fps) for cropped preview frames during calibration - Fix multiple bugs preventing dual-stream mode from working: - Don't mark calibration as complete during preview mode - Don't stop detection loop when receiving preview calibration - Sync refs properly in frame mode change effects Also includes accumulated formatting and cleanup changes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
600 B
TypeScript
24 lines
600 B
TypeScript
/// <reference types="vitest" />
|
|
|
|
import path from 'path'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
jsxInject: `import React from 'react'`,
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@styled/css': path.resolve(__dirname, './styled-system/css'),
|
|
'@styled/jsx': path.resolve(__dirname, './styled-system/jsx'),
|
|
'@styled/patterns': path.resolve(__dirname, './styled-system/patterns'),
|
|
},
|
|
},
|
|
})
|