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

Function getConfigFromDOM

js/script.js:471–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

469
470//根据dom状态获取配置
471function getConfigFromDOM() {
472 return {
473 quality: appNodes.quality.value,
474 shell: appNodes.shellType.value,
475 size: appNodes.shellSize.value,
476 wordShell: appNodes.wordShell.checked,
477 autoLaunch: appNodes.autoLaunch.checked,
478 finale: appNodes.finaleMode.checked,
479 skyLighting: appNodes.skyLighting.value,
480 longExposure: appNodes.longExposure.checked,
481 hideControls: appNodes.hideControls.checked,
482 // Store value as number.
483 scaleFactor: parseFloat(appNodes.scaleFactor.value),
484 };
485}
486
487const updateConfigNoEvent = () => updateConfig();
488appNodes.quality.addEventListener("input", updateConfigNoEvent);

Callers 1

updateConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected