3D-City Model
    Preparing search index...

    GUIManager – Central manager for registering, showing/hiding, and managing sets of GUI HTML elements in the application.

    Allows for collective show/hide toggling, batch registration from a document/parent node, and easy clearing and query of managed elements.

    const gui = new GUIManager();
    gui.register(document.getElementById('sidebar'));
    gui.show = false; // hides all registered elements
    gui.clear(); // unregisters all elements
    Index

    Constructors

    Accessors

    • get show(): boolean

      Returns the current show/hide state.

      Returns boolean

    • set show(value: boolean): void

      Sets the show/hide state for all registered elements. Passing true will show all elements (restores their original display), passing false will hide (display: none) all.

      Parameters

      • value: boolean

      Returns void

    Methods

    • Returns an array of all currently registered elements.

      Returns HTMLElement[]

    • Scans the given document or DOM parent for all elements with data-gui-element attribute and registers them automatically.

      Parameters

      • doc: Document | ParentNode

        The source document or parent node for the scan.

      Returns void

    • Registers a single HTML element to this manager. After registration, the element will respond to GUIManager's collective show/hide state.

      Parameters

      • element: HTMLElement

        The element to register.

      Returns void

    • Unregisters (removes) a given element from the manager.

      Parameters

      • element: HTMLElement

        The element to remove.

      Returns void