Threepipe Tweakpane Editor Plugin
    Preparing search index...

    Interface EditorFrameOptions

    interface EditorFrameOptions {
        colorMode?: { get(): string; set(mode: string): void };
        layout?: EditorFrameLayout;
        onPickLayout?: (layout: EditorPageLayout) => void;
        onRename?: (name: string) => void;
        panel?: () => HTMLElement | null;
        themePairs?: [string, string][];
        title?: string;
        viewer?: ThreeViewer;
    }
    Index
    colorMode?: { get(): string; set(mode: string): void }

    Reads and sets the Tweakpane color mode, for the light or dark toggle (TweakpaneUiPlugin.colorMode)

    The first layout. Default: titlebar.

    onPickLayout?: (layout: EditorPageLayout) => void

    Called with the layout picked in the layout menu. When it is set, the menu also has classic (no frame), and the caller changes the layout (TweakpaneEditorPlugin.layout does this). Else the menu has the frame layouts, and a pick calls EditorFrame.setLayout.

    onRename?: (name: string) => void

    Called with a new name typed in the bars. When it is set, a click on the name edits it: Enter or a click outside keeps it, Escape goes back. The caller sets EditorFrame.documentName (TweakpaneEditorPlugin does this, and sends documentNameChange).

    panel?: () => HTMLElement | null

    Returns the panel: the mode bar hides and shows it, and the frame opens its root folder when it is folded. TweakpaneEditorPlugin passes the container of the Tweakpane UI. Without it, the mode bar hides no panel.

    themePairs?: [string, string][]

    Theme pairs for EditorFrame.toggleTheme (light, dark)

    title?: string

    The app name in the title bar

    viewer?: ThreeViewer

    The viewer: the keys of the frame are registered in its viewer.actions (EditorFrame.actions). Without a viewer, the frame has its own ViewerActions for them. TweakpaneEditorPlugin passes its viewer.