Skip to content

feat: define typescript interfaces for gltf accessor sparse property …#5174

Open
rajkandula wants to merge 1 commit into
google:masterfrom
charanrajkandula-opensource:feat/accessor-sparse-types
Open

feat: define typescript interfaces for gltf accessor sparse property …#5174
rajkandula wants to merge 1 commit into
google:masterfrom
charanrajkandula-opensource:feat/accessor-sparse-types

Conversation

@rajkandula
Copy link
Copy Markdown

Description

This PR replaces the any type on the sparse property of the Accessor interface in gltf-2.0.ts with structured, type-safe interfaces based on the official glTF 2.0 specification.

It defines:

  • AccessorSparse
  • AccessorSparseIndices
  • AccessorSparseValues

This resolves the pending TODO: What is this? comment in the codebase.

Reference Issue

None (resolves a pending inline TODO comment).

Testing

  • Verified successful workspace builds using npm run build.
  • Ran the test suite via npm run test:ci with all tests passing:
    • @google/model-viewer: 393 passed, 0 failed
    • @google/model-viewer-effects: 13 passed, 0 failed
    • @google/model-viewer-space-opera: 99 passed, 0 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant