fix: prevent double updateUI, move imports to top, label for attributes

This commit is contained in:
Ferdinand
2026-04-01 16:22:37 +02:00
parent cf9cdb2f6e
commit 36d0253668
3 changed files with 13 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
import { initEingabe } from './eingabe.js';
// Globaler State — aktive Farbe als { h, s, l } (HSL, 0-360, 0-100, 0-100)
// state.color is read-only from outside — always use setColor() to update,
// so that the colorChanged event is dispatched to all listening modules.
@@ -22,8 +24,6 @@ document.querySelectorAll('.tab-btn').forEach(btn => {
});
});
import { initEingabe } from './eingabe.js';
function addFavorit(hsl) { console.log('addFavorit', hsl); }
function addColorToSchema(hsl) { console.log('addColorToSchema', hsl); }