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

Function View1

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

Source from the content-addressed store, hash-verified

89353}
89354var View = function() {
89355 function View1() {
89356 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
89357 (0, _classCallCheckDefault.default)(this, View1);
89358 var _props$id = props.id, id = _props$id === void 0 ? null : _props$id, _props$x = props.x, x = _props$x === void 0 ? 0 : _props$x, _props$y = props.y, y = _props$y === void 0 ? 0 : _props$y, _props$width = props.width, width = _props$width === void 0 ? "100%" : _props$width, _props$height = props.height, height = _props$height === void 0 ? "100%" : _props$height, _props$projectionMatr = props.projectionMatrix, projectionMatrix = _props$projectionMatr === void 0 ? null : _props$projectionMatr, _props$fovy = props.fovy, fovy = _props$fovy === void 0 ? 50 : _props$fovy, _props$near = props.near, near = _props$near === void 0 ? 0.1 : _props$near, _props$far = props.far, far = _props$far === void 0 ? 1000 : _props$far, _props$modelMatrix = props.modelMatrix, modelMatrix = _props$modelMatrix === void 0 ? null : _props$modelMatrix, _props$viewportInstan = props.viewportInstance, viewportInstance = _props$viewportInstan === void 0 ? null : _props$viewportInstan, _props$type = props.type, type = _props$type === void 0 ? (0, _viewportDefault.default) : _props$type;
89359 (0, _assertDefault.default)(!viewportInstance || viewportInstance instanceof (0, _viewportDefault.default));
89360 this.viewportInstance = viewportInstance;
89361 this.id = id || this.constructor.displayName || "view";
89362 this.type = type;
89363 this.props = Object.assign({}, props, {
89364 id: this.id,
89365 projectionMatrix: projectionMatrix,
89366 fovy: fovy,
89367 near: near,
89368 far: far,
89369 modelMatrix: modelMatrix
89370 });
89371 this._parseDimensions({
89372 x: x,
89373 y: y,
89374 width: width,
89375 height: height
89376 });
89377 this.equals = this.equals.bind(this);
89378 Object.seal(this);
89379 }
89380 (0, _createClassDefault.default)(View1, [
89381 {
89382 key: "equals",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected