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

Function OrbitState1

docs/app/js/sanddance-app.js:97085–97112  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

97083 (0, _inheritsDefault.default)(OrbitState1, _ViewState);
97084 var _super = _createSuper(OrbitState1);
97085 function OrbitState1(_ref) {
97086 var _this;
97087 var makeViewport = _ref.makeViewport, width = _ref.width, height = _ref.height, _ref$orbitAxis = _ref.orbitAxis, orbitAxis = _ref$orbitAxis === void 0 ? DEFAULT_STATE.orbitAxis : _ref$orbitAxis, _ref$rotationX = _ref.rotationX, rotationX = _ref$rotationX === void 0 ? DEFAULT_STATE.rotationX : _ref$rotationX, _ref$rotationOrbit = _ref.rotationOrbit, rotationOrbit = _ref$rotationOrbit === void 0 ? DEFAULT_STATE.rotationOrbit : _ref$rotationOrbit, _ref$target = _ref.target, target = _ref$target === void 0 ? DEFAULT_STATE.target : _ref$target, _ref$zoom = _ref.zoom, zoom = _ref$zoom === void 0 ? DEFAULT_STATE.zoom : _ref$zoom, _ref$minRotationX = _ref.minRotationX, minRotationX = _ref$minRotationX === void 0 ? DEFAULT_STATE.minRotationX : _ref$minRotationX, _ref$maxRotationX = _ref.maxRotationX, maxRotationX = _ref$maxRotationX === void 0 ? DEFAULT_STATE.maxRotationX : _ref$maxRotationX, _ref$minZoom = _ref.minZoom, minZoom = _ref$minZoom === void 0 ? DEFAULT_STATE.minZoom : _ref$minZoom, _ref$maxZoom = _ref.maxZoom, maxZoom = _ref$maxZoom === void 0 ? DEFAULT_STATE.maxZoom : _ref$maxZoom, startPanPosition = _ref.startPanPosition, startTarget = _ref.startTarget, startRotationX = _ref.startRotationX, startRotationOrbit = _ref.startRotationOrbit, startZoomPosition = _ref.startZoomPosition, startZoom = _ref.startZoom;
97088 (0, _classCallCheckDefault.default)(this, OrbitState1);
97089 _this = _super.call(this, {
97090 width: width,
97091 height: height,
97092 orbitAxis: orbitAxis,
97093 rotationX: rotationX,
97094 rotationOrbit: rotationOrbit,
97095 target: target,
97096 zoom: zoom,
97097 minRotationX: minRotationX,
97098 maxRotationX: maxRotationX,
97099 minZoom: minZoom,
97100 maxZoom: maxZoom
97101 });
97102 _this._interactiveState = {
97103 startPanPosition: startPanPosition,
97104 startTarget: startTarget,
97105 startRotationX: startRotationX,
97106 startRotationOrbit: startRotationOrbit,
97107 startZoomPosition: startZoomPosition,
97108 startZoom: startZoom
97109 };
97110 _this.makeViewport = makeViewport;
97111 return _this;
97112 }
97113 (0, _createClassDefault.default)(OrbitState1, [
97114 {
97115 key: "getViewportProps",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected