chore: checkpoint web Blender migration source, tools and docs
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-10 11:18:01 +08:00
parent 122142c26c
commit f3e21c6b98
6887 changed files with 257154 additions and 12294 deletions

View File

@@ -9,6 +9,29 @@ export interface ViewportCameraState extends ViewportOrbitState {
position: [number, number, number];
}
export type ViewportView = 'USER' | 'FRONT' | 'BACK' | 'RIGHT' | 'LEFT' | 'TOP' | 'BOTTOM';
export type ViewportNavigationCommand = ViewportView | 'PROJECTION' | 'FRAME_ALL' | 'FRAME_SELECTED' | 'ZOOM_IN' | 'ZOOM_OUT';
export interface ViewportNavigationCamera {
position: [number,number,number];
quaternion: [number,number,number,number];
target: [number,number,number];
projection:'PERSPECTIVE'|'ORTHOGRAPHIC';
fov:number;aspect:number;near:number;far:number;zoom:number;orthoHeight:number;
}
export interface NativeViewportState {
offset: [number,number,number];
rotation: [number,number,number,number];
distance: number; lens: number; near: number; far: number;
projection: 'PERSPECTIVE'|'ORTHOGRAPHIC'|'CAMERA';
locked?: boolean;
}
export interface BlenderViewportCamera {
position: [number,number,number]; target: [number,number,number];
orientation: [number,number,number,number];
projection: 'PERSPECTIVE'|'ORTHOGRAPHIC';
fov:number; near:number; far:number; zoom:number; orthoHeight:number;
}
export const VIEWPORT_DEFAULT_ORBIT: Readonly<ViewportOrbitState> = Object.freeze({
yaw: -Math.PI / 4,
pitch: 0.55,