()
| 268 | |
| 269 | // Map config to various properties & apply side effects |
| 270 | function 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 | // ----------- |
no test coverage detected