- frustumGeometry.ts: pure math module with haversine projection for 4 corner points of the camera view pyramid - FrustumRenderer.ts: Cesium Entity polyline management (4 side edges) - useFrustumRendering.ts: React hook bridging renderer with viewer - GlobeView.tsx: wire frustum hook into rendering pipeline - cameraMapper.ts: default camera altitude to 8m above ground - vitest.config.ts: include plugin tests in vitest glob - 12 unit tests passing for geometry + cardinal direction parsing - Architecture supports future ground-surface projection
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
include: ['src/lib/**/*.{test,spec}.{js,ts,jsx,tsx}', 'src/core/**/*.{test,spec}.{js,ts,jsx,tsx}', 'src/plugins/**/*.{test,spec}.{js,ts,jsx,tsx}'],
|
|
},
|
|
});
|