AutoMovie API
    Preparing search index...

    Function mountAutoMovieInspectorPage

    • Mount the inspector as a whole page in one call: render AutoMovieInspector into root under StrictMode, opening on the request location's query names and keeping that query equal to the request through history.

      location and history are the host's, passed in rather than read from window, so the page's address is the only global state the inspector writes and a host decides which. The returned unmount disposes the scene and its renderer through the component's effect cleanup.

      mountAutoMovieInspectorPage({ root: document.getElementById("root")!, subjects, location, history });
      

      Parameters

      • props: {
            history: Pick<History, "replaceState" | "state">;
            location: Pick<Location, "pathname" | "search" | "hash">;
            root: Element;
            subjects: Readonly<Record<string, IAutoMovieDrawSubject>>;
        }
        • history: Pick<History, "replaceState" | "state">

          The page's history, whose current entry follows the request.

        • location: Pick<Location, "pathname" | "search" | "hash">

          The page's location: its query is the first request, and its path and fragment are kept.

        • root: Element

          The element the page renders into.

        • subjects: Readonly<Record<string, IAutoMovieDrawSubject>>

          The subjects offered by name; create the record once, since each subject's identity keys the canvas mount.

      Returns { unmount: () => void }

      • unmount: () => void

        Unmount the page and release everything it holds.