UNPKG

1.16 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = function (d, b) {
4 extendStatics = Object.setPrototypeOf ||
5 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7 return extendStatics(d, b);
8 };
9 return function (d, b) {
10 extendStatics(d, b);
11 function __() { this.constructor = d; }
12 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13 };
14})();
15exports.__esModule = true;
16/**
17 * Sigma.js Captor Class
18 * ======================
19 *
20 * Abstract class representing a captor like the user's mouse or touch controls.
21 */
22var events_1 = require("events");
23var Captor = /** @class */ (function (_super) {
24 __extends(Captor, _super);
25 function Captor(container, camera) {
26 var _this = _super.call(this) || this;
27 // Properties
28 _this.container = container;
29 _this.camera = camera;
30 return _this;
31 }
32 return Captor;
33}(events_1.EventEmitter));
34exports["default"] = Captor;