Internal "Document" Format? #317
-
Does glTF-Transform have a 'format' for its "Document"? Internally, is the glTF object treated as JSON of all the deconstructed buffers or anything like that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The Document is a JS class instance with methods below: https://gltf-transform.donmccurdy.com/classes/core.document.html Its content is 1:1 analogous to the glTF JSON content, but is not stored internally as glTF JSON, but instead as a reference graph, to help manage references during editing.
|
Beta Was this translation helpful? Give feedback.
In the upcoming release (v2.0) I've refactored the internal graph into a separate package, which now provides a somewhat better answer to this question: https://github.com/donmccurdy/property-graph