@awayjs/scene
Version:
AwayJS scene classes
92 lines • 2.96 kB
TypeScript
import { ContainerNode, IContainer } from '@awayjs/view';
import { MouseButtons } from '../base/MouseButtons';
import { PointerEvent } from './PointerEvent';
/**
* A MouseEvent is dispatched when a mouse event occurs over a mouseEnabled object in View.
* TODO: we don't have screenZ data, tho this should be easy to implement
*/
export declare class MouseEvent extends PointerEvent {
/**
* Defines the value of the type property of a mouseOver3d event object.
*/
static MOUSE_OVER: string;
/**
* Defines the value of the type property of a mouseOut3d event object.
*/
static MOUSE_OUT: string;
/**
* Defines the value of the type property of a rollOver3d event object.
*/
static ROLL_OVER: string;
/**
* Defines the value of the type property of a rollOut3d event object.
*/
static ROLL_OUT: string;
/**
* Defines the value of the type property of a mouseUp3d event object.
*/
static MOUSE_UP: string;
/**
* Defines the value of the type property of a mouseUp3d event object.
*/
static MOUSE_UP_OUTSIDE: string;
/**
* Defines the value of the type property of a mouseDown3d event object.
*/
static MOUSE_DOWN: string;
/**
* Defines the value of the type property of a mouseMove3d event object.
*/
static MOUSE_MOVE: string;
/**
* Defines the value of the type property of a dragMove3d event object.
*/
static DRAG_MOVE: string;
/**
* Defines the value of the type property of a dragOut3d event object.
*/
static DRAG_OUT: string;
/**
* Defines the value of the type property of a dragOver3d event object.
*/
static DRAG_OVER: string;
/**
* Defines the value of the type property of a dragStart3d event object.
*/
static DRAG_START: string;
/**
* Defines the value of the type property of a dragStop3d event object.
*/
static DRAG_STOP: string;
/**
* Defines the value of the type property of a click3d event object.
*/
static CLICK: string;
/**
* Defines the value of the type property of a doubleClick3d event object.
*/
static DOUBLE_CLICK: string;
/**
* Defines the value of the type property of a mouseWheel3d event object.
*/
static MOUSE_WHEEL: string;
/**
* Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel.
*/
delta: number;
/**
* Current buttons status
*/
buttons: MouseButtons;
/**
* Create a new MouseEvent object.
* @param type The type of the MouseEvent.
*/
constructor(type: string);
/**
* Creates a copy of the MouseEvent object and sets the value of each property to match that of the original.
*/
clone(): MouseEvent;
_dispatchEvent(dispatcher: ContainerNode, target: IContainer): void;
}
//# sourceMappingURL=MouseEvent.d.ts.map