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

Function getPresenterStyle

packages/sanddance/src/defaults.ts:78–91  ·  view source on GitHub ↗
(options: ViewerOptions)

Source from the content-addressed store, hash-verified

76};
77
78export function getPresenterStyle(options: ViewerOptions) {
79 const style: VegaDeckGl.types.PresenterStyle = {
80 cssPrefix,
81 fontFamily: options.fontFamily,
82 defaultCubeColor: VegaDeckGl.util.colorFromString(options.colors.defaultCube),
83 };
84 if (options.colors.hoveredCube) {
85 style.highlightColor = VegaDeckGl.util.colorFromString(options.colors.hoveredCube);
86 }
87 //if (options.lightSettings) {
88 // style.lightSettings = options.lightSettings;
89 //}
90 return style;
91}
92
93export const cssPrefix = 'sanddance-';
94

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected