EditorFraming beta
Class of @v12-engine/editor
export declare class EditorFramingWhere 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
constructor(host: FramingHost);Constructs a new instance of the EditorFraming class
closeLook
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
focusOn(point: Vec2): void;Moves the view to a point
forgetViews
forgetViews(key?: number): void;Forgets the view kept on a number, or every one kept with the map
frameSelection
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
goToView(key: number): boolean;Goes back to the view kept on a number. False when none is
isOrtho
isOrtho(): boolean;Whether the view is drawn without perspective (orthoView)
keepView
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
keptViews(): number[];The numbers views are kept on, with the map, in order (View › Views kept on keys)
lookFrom
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
lookThrough(id: number): void;Looks through a view of the map saved under a name
orthoView
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
resetView(): void;Back to the view the editor starts with: as steep, as far, not turned. It still looks where it looks
saveView
saveView(): void;Saves where the editor's camera is as a view of the map, under a name (MapCamera)
topView
topView(on?: boolean): void;Looks straight down at the map, or back at the usual slant