Clones source Document, copying all properties and extensions within it. Source document remains unchanged, and the two may be modified independently after cloning.
Example:
import { cloneDocument } from '@gltf-transform/functions'; const targetDocument = cloneDocument(sourceDocument);
Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
Clones source Document, copying all properties and extensions within it. Source document remains unchanged, and the two may be modified independently after cloning.
Example:
import { cloneDocument } from '@gltf-transform/functions'; const targetDocument = cloneDocument(sourceDocument);