MCPcopy Create free account
hub / github.com/adobe/leonardo / themeUpdate

Function themeUpdate

docs/ui/src/js/themeUpdate.js:26–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24hljs.registerLanguage('javascript', javascript);
25
26function themeUpdate() {
27 createOutputColors();
28 createOutputParameters();
29
30 let chartRatios = Promise.resolve(getThemeContrastRatios());
31 chartRatios.then(function (resolve) {
32 createRatioChart(resolve);
33 });
34
35 // Create dots for color wheel
36 let colorWheelModeDropdown = document.getElementById('chartsMode');
37 let colorWheelMode = colorWheelModeDropdown.value;
38
39 createPaletteCharts(colorWheelMode);
40 updateColorDots(null, 'theme');
41 create3dModel('paletteModelWrapper', _theme.colors, colorWheelMode);
42
43 let chartLuminosities = Promise.resolve(getLuminosities());
44 chartLuminosities.then(function (resolve) {
45 createLuminosityChart(resolve);
46 });
47}
48
49function themeUpdateParams() {
50 themeUpdate();

Callers 4

exitPreviewFunction · 0.90
sortColorScalesFunction · 0.90
paramSetupFunction · 0.85
themeUpdateParamsFunction · 0.85

Calls 9

createOutputColorsFunction · 0.90
createOutputParametersFunction · 0.90
getThemeContrastRatiosFunction · 0.90
createRatioChartFunction · 0.90
createPaletteChartsFunction · 0.90
updateColorDotsFunction · 0.90
create3dModelFunction · 0.90
getLuminositiesFunction · 0.90
createLuminosityChartFunction · 0.90

Tested by

no test coverage detected