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

Function ViewState1

docs/app/js/sanddance-app.js:90882–90887  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

90880var _assertDefault = parcelHelpers.interopDefault(_assert);
90881var ViewState = function() {
90882 function ViewState1(opts) {
90883 (0, _classCallCheckDefault.default)(this, ViewState1);
90884 (0, _assertDefault.default)(Number.isFinite(opts.width), "`width` must be supplied");
90885 (0, _assertDefault.default)(Number.isFinite(opts.height), "`height` must be supplied");
90886 this._viewportProps = this._applyConstraints(opts);
90887 }
90888 (0, _createClassDefault.default)(ViewState1, [
90889 {
90890 key: "getViewportProps",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected