UNPKG

@awayjs/scene

Version:
30 lines (23 loc) 588 B
import { EventBase } from '@awayjs/core'; import { Camera } from '../display/Camera'; /** * @class away.events.CameraEvent */ export class CameraEvent extends EventBase { public static PROJECTION_CHANGED: string = 'projectionChanged'; private _camera: Camera; constructor(type: string, camera: Camera) { super(type); this._camera = camera; } public get camera(): Camera { return this._camera; } /** * Clones the event. * @return An exact duplicate of the current object. */ public clone(): CameraEvent { return new CameraEvent(this.type, this._camera); } }