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

Function ResizeGroupBase1

docs/app/js/sanddance-app.js:42157–42179  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

42155var ResizeGroupBase = /** @class */ function(_super) {
42156 (0, _tslib.__extends)(ResizeGroupBase1, _super);
42157 function ResizeGroupBase1(props) {
42158 var _this = _super.call(this, props) || this;
42159 _this._nextResizeGroupStateProvider = getNextResizeGroupStateProvider();
42160 // The root div which is the container inside of which we are trying to fit content.
42161 _this._root = _react.createRef();
42162 // A div that can be used for the initial measurement so that we can avoid mounting a second instance
42163 // of the component being measured for the initial render.
42164 _this._initialHiddenDiv = _react.createRef();
42165 // A hidden div that is used for mounting a new instance of the component for measurement in a hidden
42166 // div without unmounting the currently visible content.
42167 _this._updateHiddenDiv = _react.createRef();
42168 // Tracks if any content has been rendered to the user. This enables us to do some performance optimizations
42169 // for the initial render.
42170 _this._hasRenderedContent = false;
42171 _this.state = _this._nextResizeGroupStateProvider.getInitialResizeGroupState(_this.props.data);
42172 (0, _utilities1.initializeComponentRef)(_this);
42173 _this._async = new (0, _utilities.Async)(_this);
42174 _this._events = new (0, _utilities.EventGroup)(_this);
42175 (0, _utilities.warnDeprecations)(COMPONENT_NAME, props, {
42176 styles: "className"
42177 });
42178 return _this;
42179 }
42180 ResizeGroupBase1.prototype.render = function() {
42181 var _a = this.props, className = _a.className, onRenderData = _a.onRenderData;
42182 var _b = this.state, dataToMeasure = _b.dataToMeasure, renderedData = _b.renderedData;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected