-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
922 additions
and
929 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
export type Listener = (event?: DispatcherEvent) => void; | ||
export interface DispatcherEvent { | ||
type: string; | ||
[key: string]: any; | ||
} | ||
export declare class EventDispatcher { | ||
private _listeners; | ||
/** | ||
* Adds the specified event listener. | ||
* @param type event name | ||
* @param listener handler function | ||
* @category Methods | ||
*/ | ||
addEventListener(type: string, listener: Listener): void; | ||
/** | ||
* Presence of the specified event listener. | ||
* @param type event name | ||
* @param listener handler function | ||
* @category Methods | ||
*/ | ||
hasEventListener(type: string, listener: Listener): boolean; | ||
/** | ||
* Removes the specified event listener | ||
* @param type event name | ||
* @param listener handler function | ||
* @category Methods | ||
*/ | ||
removeEventListener(type: string, listener: Listener): void; | ||
/** | ||
* Removes all event listeners | ||
* @param type event name | ||
* @category Methods | ||
*/ | ||
removeAllEventListeners(type?: string): void; | ||
/** | ||
* Fire an event type. | ||
* @param event DispatcherEvent | ||
* @category Methods | ||
*/ | ||
dispatchEvent(event: DispatcherEvent): void; | ||
} | ||
export type Listener = (event?: DispatcherEvent) => void; | ||
export interface DispatcherEvent { | ||
type: string; | ||
[key: string]: any; | ||
} | ||
export declare class EventDispatcher { | ||
private _listeners; | ||
/** | ||
* Adds the specified event listener. | ||
* @param type event name | ||
* @param listener handler function | ||
* @category Methods | ||
*/ | ||
addEventListener(type: string, listener: Listener): void; | ||
/** | ||
* Presence of the specified event listener. | ||
* @param type event name | ||
* @param listener handler function | ||
* @category Methods | ||
*/ | ||
hasEventListener(type: string, listener: Listener): boolean; | ||
/** | ||
* Removes the specified event listener | ||
* @param type event name | ||
* @param listener handler function | ||
* @category Methods | ||
*/ | ||
removeEventListener(type: string, listener: Listener): void; | ||
/** | ||
* Removes all event listeners | ||
* @param type event name | ||
* @category Methods | ||
*/ | ||
removeAllEventListeners(type?: string): void; | ||
/** | ||
* Fire an event type. | ||
* @param event DispatcherEvent | ||
* @category Methods | ||
*/ | ||
dispatchEvent(event: DispatcherEvent): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export declare const PI_2: number; | ||
export declare const PI_HALF: number; | ||
export declare const PI_2: number; | ||
export declare const PI_HALF: number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { CameraControls } from './CameraControls'; | ||
export default CameraControls; | ||
import { CameraControls } from './CameraControls'; | ||
export default CameraControls; |
Oops, something went wrong.