1 | 'use strict';
|
2 |
|
3 | exports.__esModule = true;
|
4 |
|
5 | var _eventemitter = require('eventemitter3');
|
6 |
|
7 | var _eventemitter2 = _interopRequireDefault(_eventemitter);
|
8 |
|
9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10 |
|
11 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
12 |
|
13 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
14 |
|
15 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
16 |
|
17 | var MarkerDispatcher = function (_EventEmitter) {
|
18 | _inherits(MarkerDispatcher, _EventEmitter);
|
19 |
|
20 | function MarkerDispatcher(gmapInstance) {
|
21 | _classCallCheck(this, MarkerDispatcher);
|
22 |
|
23 | var _this = _possibleConstructorReturn(this, _EventEmitter.call(this));
|
24 |
|
25 | _this.gmapInstance = gmapInstance;
|
26 | return _this;
|
27 | }
|
28 |
|
29 | MarkerDispatcher.prototype.getChildren = function getChildren() {
|
30 | return this.gmapInstance.props.children;
|
31 | };
|
32 |
|
33 | MarkerDispatcher.prototype.getMousePosition = function getMousePosition() {
|
34 | return this.gmapInstance.mouse_;
|
35 | };
|
36 |
|
37 | MarkerDispatcher.prototype.getUpdateCounter = function getUpdateCounter() {
|
38 | return this.gmapInstance.updateCounter_;
|
39 | };
|
40 |
|
41 | MarkerDispatcher.prototype.dispose = function dispose() {
|
42 | this.gmapInstance = null;
|
43 | this.removeAllListeners();
|
44 | };
|
45 |
|
46 | return MarkerDispatcher;
|
47 | }(_eventemitter2.default);
|
48 |
|
49 | exports.default = MarkerDispatcher; |
\ | No newline at end of file |