Skip to content

@modoki/engine / index / EditorPanelDef

Interface: EditorPanelDef

A dockable editor panel contributed by a game (see GameDefinition.editorPanels). component is only ever rendered inside the editor, so its module — and anything it imports from @modoki/engine/editor — stays out of the production game bundle as long as it is reached solely through the lazy editorPanels() loader.

Game Definition & Services

component

component: ComponentType


dockLocation?

optional dockLocation?: "center" | "bottom" | "left" | "right"

Where an auto-docked / Window-opened panel lands. Default: 'center' (next to the Scene tabset).


id

id: string

Stable id — also the FlexLayout tab component key + Window-menu entry.


name

name: string

Human-readable tab title.


openByDefault?

optional openByDefault?: boolean

Dock into the default layout on first load (else it opens only via the Window menu or a saved layout).

Built with Modoki.