MCPcopy Index your code
hub / github.com/microsoft/SandDance / getViewerOptions

Function getViewerOptions

docs/app/js/sanddance-app.js:51351–51357  ·  view source on GitHub ↗
(darkTheme, themeColors)

Source from the content-addressed store, hash-verified

51349var _sanddanceExplorer = require("@msrvida/sanddance-explorer");
51350var _react = require("react");
51351function getViewerOptions(darkTheme, themeColors) {
51352 const colors = themeColors && themeColors[darkTheme ? "dark" : "light"];
51353 const viewerOptions = {
51354 colors: Object.assign(Object.assign({}, (0, _sanddanceExplorer.getColorSettingsFromThemePalette)((0, _sanddanceExplorer.themePalettes)[darkTheme ? "dark-theme" : ""])), colors)
51355 };
51356 return viewerOptions;
51357}
51358function getSnapshotFromHash() {
51359 const hash = document.location.hash && document.location.hash.substring(1);
51360 if (hash) try {

Callers 2

constructorMethod · 0.70
changeColorSchemeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected