| 76 | }; |
| 77 | |
| 78 | export 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 | |
| 93 | export const cssPrefix = 'sanddance-'; |
| 94 | |