@awayjs/scene
Version:
AwayJS scene classes
43 lines • 1.26 kB
TypeScript
import { EventBase } from '@awayjs/core';
import { IEntity, View, ITraversable, INode } from '@awayjs/view';
/**
* A FocusEvent is dispatched when a entity is focused
*/
export declare class FocusEvent extends EventBase {
/**
* Defines the value of the type property of a focusIn3d event object.
*/
static FOCUS_IN: string;
/**
* Defines the value of the type property of a focusOut3d event object.
*/
static FOCUS_OUT: string;
/**
* The view object inside which the event took place.
*/
view: View;
/**
* The entity inside which the event took place.
*/
entity: IEntity;
/**
* True if the focus was set by mouse-interaction
*/
invokedByMouse: IEntity;
/**
* The traversable owner inside which the event took place.
*/
traversable: ITraversable;
commonAncestor: INode;
/**
* 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(): FocusEvent;
_dispatchEvent(dispatcher: INode): void;
}
//# sourceMappingURL=FocusEvent.d.ts.map