OpenFairyGUI API
    Preparing search index...

    Class Document

    Wraps a FairyGUI project and its resources for easier modification.

    Documents manage FairyGUI assets and the relationships among dependencies using an internal property graph. A new resource is created by calling 'create' methods on the document. Resources are destroyed by calling Property.dispose().

    Usage:

    const document = new Document();
    const pkg = document.createPackage('MyPackage');
    const component = document.createComponent('Button');
    const image = document.createGImage('bg');
    component.addChild(image);
    pkg.addResource(component);
    Index