Skip to content

EditorFraming beta ​

Class of @v12-engine/editor

ts
export declare class EditorFraming

Where the view looks: at what is selected, straight down, closely, through a camera of the map.

A part of the editor, as it gives it (editor.look)

Members ​

constructor ​

ts
constructor(host: FramingHost);

Constructs a new instance of the EditorFraming class

closeLook ​

ts
closeLook(): void;

Looks closely at what is in the middle of the view, from near and low, or goes back to the view before. The view comes closer than the game lets it while it does

focusOn ​

ts
focusOn(point: Vec2): void;

Moves the view to a point

forgetViews ​

ts
forgetViews(key?: number): void;

Forgets the view kept on a number, or every one kept with the map

frameSelection ​

ts
frameSelection(): boolean;

Frames what is selected, of every kind (each as far as it reaches; a path by every point of it); the whole map with nothing selected

goToView ​

ts
goToView(key: number): boolean;

Goes back to the view kept on a number. False when none is

isOrtho ​

ts
isOrtho(): boolean;

Whether the view is drawn without perspective (orthoView)

keepView ​

ts
keepView(key: number): void;

Keeps the view as it is on a number, to go back to (goToView): with the map, in the editor's own of it (GameMap.editor)

keptViews ​

ts
keptViews(): number[];

The numbers views are kept on, with the map, in order (View › Views kept on keys)

lookFrom ​

ts
lookFrom(face: ViewFace): void;

Looks from a face of the view cube: from above, or from a side of the map (turned to it, at the slant it has, or the usual one when it was straight down)

lookThrough ​

ts
lookThrough(id: number): void;

Looks through a view of the map saved under a name

orthoView ​

ts
orthoView(on?: boolean): void;

Draws the view without perspective, looking straight down (campaign plan EQ14: an orthographic top view, Numpad 5), or (false) with it again, as steep as it was left. Turned the other way when nothing is said

resetView ​

ts
resetView(): void;

Back to the view the editor starts with: as steep, as far, not turned. It still looks where it looks

saveView ​

ts
saveView(): void;

Saves where the editor's camera is as a view of the map, under a name (MapCamera)

topView ​

ts
topView(on?: boolean): void;

Looks straight down at the map, or back at the usual slant