MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / configDidUpdate

Function configDidUpdate

js/script.js:270–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268
269// Map config to various properties & apply side effects
270function configDidUpdate() {
271 const config = store.state.config;
272
273 quality = qualitySelector();
274 isLowQuality = quality === QUALITY_LOW;
275 isNormalQuality = quality === QUALITY_NORMAL;
276 isHighQuality = quality === QUALITY_HIGH;
277
278 if (skyLightingSelector() === SKY_LIGHT_NONE) {
279 appNodes.canvasContainer.style.backgroundColor = "#000";
280 }
281
282 Spark.drawWidth = quality === QUALITY_HIGH ? 0.75 : 1;
283}
284
285// Selectors
286// -----------

Callers 2

updateConfigFunction · 0.85
initFunction · 0.85

Calls 2

qualitySelectorFunction · 0.85
skyLightingSelectorFunction · 0.85

Tested by

no test coverage detected