[bugfix] Fix TypeScript errors in Load3D components and GLTF test

- Fix type mismatches in Load3DScene eventConfig by casting string values to proper enum types (MaterialMode, CameraType, UpDirection)
- Fix Uint8Array vs ArrayBuffer type issues in GLTF test by using .buffer property
- Remove unused @ts-expect-error comment in Rectangle.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-08-12 05:36:20 +00:00
parent 2b86f41b01
commit 88baf87022
6 changed files with 25 additions and 132 deletions

View File

@@ -50,9 +50,9 @@ describe('GLTF binary metadata parser', () => {
const jsonData = jsonToBinary(jsonContent)
const { header, headerView } = createGLTFFileStructure()
setHeaders(headerView, jsonData)
setHeaders(headerView, jsonData.buffer)
const chunkHeader = createJSONChunk(jsonData)
const chunkHeader = createJSONChunk(jsonData.buffer)
const fileContent = new Uint8Array(
header.byteLength + chunkHeader.byteLength + jsonData.byteLength