MCPcopy Create free account
hub / github.com/microsoft/SandDance / ViewManager

Function ViewManager

docs/tests/v2/es6/js/sanddance.js:48087–48112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48085/*#__PURE__*/
48086function () {
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",

Callers

nothing calls this directly

Calls 2

_classCallCheckFunction · 0.70
setPropsMethod · 0.45

Tested by

no test coverage detected