cloneDocument

  • 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);
    
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.