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

@@ -0,0 +1,9 @@
export interface NativeUVPackTarget { tile:number; tiled:boolean; cursor:[number,number]; grid:[number,number] }
export function parseNativeUVPackTarget(value:unknown):NativeUVPackTarget {
if(!value||typeof value!=='object'||Array.isArray(value))throw new Error('UV 活动目标无效');
const target=value as Record<string,unknown>;
if(!Number.isSafeInteger(target.tile)||Number(target.tile)<1001||Number(target.tile)>2147483647||typeof target.tiled!=='boolean')throw new Error('UV 目标瓦片无效');
if(!Array.isArray(target.cursor)||target.cursor.length!==2||target.cursor.some(n=>typeof n!=='number'||!Number.isFinite(n)))throw new Error('UV 游标无效');
if(!Array.isArray(target.grid)||target.grid.length!==2||target.grid.some((n,i)=>!Number.isInteger(n)||n<1||n>(i===0?10:100)))throw new Error('UV 网格无效');
return {tile:Number(target.tile),tiled:target.tiled,cursor:[...target.cursor] as [number,number],grid:[...target.grid] as [number,number]};
}