UNPKG

awayjs-display

Version:
36 lines 1.21 kB
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var EventBase_1 = require("awayjs-core/lib/events/EventBase"); /** * @class away.events.CameraEvent */ var CameraEvent = (function (_super) { __extends(CameraEvent, _super); function CameraEvent(type, camera) { _super.call(this, type); this._camera = camera; } Object.defineProperty(CameraEvent.prototype, "camera", { get: function () { return this._camera; }, enumerable: true, configurable: true }); /** * Clones the event. * @return An exact duplicate of the current object. */ CameraEvent.prototype.clone = function () { return new CameraEvent(this.type, this._camera); }; CameraEvent.PROJECTION_CHANGED = "projectionChanged"; return CameraEvent; }(EventBase_1.default)); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = CameraEvent; //# sourceMappingURL=CameraEvent.js.map