ToolPointer beta
Interface of @v12-engine/editor
ts
export interface ToolPointerWhere the pointer is: on the canvas, and on the ground under it when it is over the map
Members
alt
ts
alt?: boolean;Alt held: a part of a prefab's instance picked alone, not the instance
ctrl
ts
ctrl?: boolean;Ctrl (or ⌘) held: what is put down snaps the other way round from the handles' setting
ground
ts
ground: Vec2 | null;The point of the ground under the pointer; none when it is not over the map
lasso
ts
lasso?: boolean;The lasso's button pressed (select.lasso, Alt+Shift and the left one): the select tool draws a lasso, not a box
shift
ts
shift: boolean;Shift held
x
ts
x: number;The pointer's x on the canvas, in pixels
y
ts
y: number;The pointer's y on the canvas, in pixels