Ok now done
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 30s

This commit is contained in:
2026-06-12 00:19:41 +02:00
parent 6a1a8dac2e
commit 8c49400b86

View File

@@ -85,7 +85,7 @@ onMounted(async () => {
cells.forEach(cell => {
let key = `${cell.x},${cell.y}`;
if(cell.color > 0 && cell.color <= palette.length)
colorMap.value[key] = palette[cell.color];
colorMap.value[key] = palette[cell.color - 1];
else
colorMap.value[key] = "#00000000"
; });
@@ -96,7 +96,7 @@ onMounted(async () => {
onGridCellPaint((data) => {
const key = `${data.x},${data.y}`;
if (data.color > 0 && data.color <= palette.length) {
colorMap.value[key] = palette[data.color];
colorMap.value[key] = palette[data.color - 1];
} else {
delete colorMap.value[key];
}
@@ -136,7 +136,7 @@ function onCellRightClick(r, c, e) {
function onSwatchClick(color) {
selectedColor.value = color;
selectedColorId.value = palette.indexOf(color);
selectedColorId.value = palette.indexOf(color) + 1;
}
const gridStyle = computed(() => ({