()
| 48085 | /*#__PURE__*/ |
| 48086 | function () { |
| 48087 | function ViewManager() { |
| 48088 | var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 48089 | |
| 48090 | _classCallCheck(this, ViewManager); // List of view descriptors, gets re-evaluated when width/height changes |
| 48091 | |
| 48092 | |
| 48093 | this.views = []; |
| 48094 | this.width = 100; |
| 48095 | this.height = 100; |
| 48096 | this.viewState = {}; |
| 48097 | this.controllers = {}; |
| 48098 | this._viewports = []; // Generated viewports |
| 48099 | |
| 48100 | this._viewportMap = {}; |
| 48101 | this._isUpdating = false; |
| 48102 | this._needsRedraw = 'Initial render'; |
| 48103 | this._needsUpdate = true; |
| 48104 | this._eventManager = props.eventManager; |
| 48105 | this._eventCallbacks = { |
| 48106 | onViewStateChange: props.onViewStateChange, |
| 48107 | onInteractiveStateChange: props.onInteractiveStateChange |
| 48108 | }; |
| 48109 | Object.seal(this); // Init with default map viewport |
| 48110 | |
| 48111 | this.setProps(props); |
| 48112 | } |
| 48113 | |
| 48114 | _createClass(ViewManager, [{ |
| 48115 | key: "finalize", |
nothing calls this directly
no test coverage detected