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

Function targetViewState

docs/app/js/sanddance-app.js:9096–9114  ·  view source on GitHub ↗
(height, width, view)

Source from the content-addressed store, hash-verified

9094 "zoom"
9095];
9096function targetViewState(height, width, view) {
9097 const target = [
9098 width / 2,
9099 -height / 2,
9100 0
9101 ];
9102 if (view === "2d") return {
9103 target,
9104 rotationOrbit: 0,
9105 rotationX: 90,
9106 zoom: -0.2
9107 };
9108 else return {
9109 target,
9110 rotationOrbit: 25,
9111 rotationX: 30,
9112 zoom: -0.4
9113 };
9114}
9115
9116},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"jBiDI":[function(require,module,exports) {
9117var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected