Skip to content

EditorLayouts beta ​

Class of @v12-engine/editor

ts
export declare class EditorLayouts

The layouts a game or an extension adds to the editor's (editor.layouts): in Window › Layouts after the editor's own, used by id (editor.dock.layouts.use(id), EditorOptions.layout)

Members ​

constructor ​

ts
constructor(changed?: () => void);

Constructs a new instance of the EditorLayouts class

add ​

ts
add(preset: EditorLayoutPreset): () => void;

Adds a layout, or one in the place of the layout of its id. Gives back what takes it away

get ​

ts
get(id: string): EditorLayoutPreset | undefined;

The preset of that id, or undefined when there is none

list ​

ts
list(): readonly EditorLayoutPreset[];

Every preset there is, in the order they were added

remove ​

ts
remove(id: string): void;

Takes the preset of that id away; does nothing for an id not there