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

Function ViewManager1

docs/app/js/sanddance-app.js:88974–88995  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88972}
88973var ViewManager = function() {
88974 function ViewManager1() {
88975 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
88976 (0, _classCallCheckDefault.default)(this, ViewManager1);
88977 this.views = [];
88978 this.width = 100;
88979 this.height = 100;
88980 this.viewState = {};
88981 this.controllers = {};
88982 this.timeline = props.timeline;
88983 this._viewports = [];
88984 this._viewportMap = {};
88985 this._isUpdating = false;
88986 this._needsRedraw = "Initial render";
88987 this._needsUpdate = true;
88988 this._eventManager = props.eventManager;
88989 this._eventCallbacks = {
88990 onViewStateChange: props.onViewStateChange,
88991 onInteractiveStateChange: props.onInteractiveStateChange
88992 };
88993 Object.seal(this);
88994 this.setProps(props);
88995 }
88996 (0, _createClassDefault.default)(ViewManager1, [
88997 {
88998 key: "finalize",

Callers

nothing calls this directly

Calls 1

setPropsMethod · 0.45

Tested by

no test coverage detected