()
| 822 | const HEADER_HEIGHT = 32; |
| 823 | |
| 824 | function updateBlueprintCheckboxVisibility() { |
| 825 | const toggle = document.getElementById('blueprintToggle'); |
| 826 | if (!toggle) return; |
| 827 | |
| 828 | const hasCodeMap = selectedPalette && selectedPalette.meta && selectedPalette.meta.codeMap && Object.keys(selectedPalette.meta.codeMap).length > 0; |
| 829 | const show = hasCodeMap && processedImage !== null; |
| 830 | |
| 831 | toggle.style.display = show ? 'inline-flex' : 'none'; |
| 832 | if (!hasCodeMap) { |
| 833 | const cb = document.getElementById('blueprintCheckbox'); |
| 834 | if (cb) cb.checked = false; |
| 835 | isBlueprintMode = false; |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | document.getElementById('blueprintCheckbox')?.addEventListener('change', function() { |
| 840 | isBlueprintMode = this.checked; |
no outgoing calls
no test coverage detected