Remove unused and redundant methods from canvas modules

Cleaned up the codebase by removing unused or redundant methods from Canvas, CanvasIO, CanvasLayers, CanvasLayersPanel, CanvasRenderer, and MaskTool. This reduces code complexity and improves maintainability without affecting core functionality.
This commit is contained in:
Dariusz L
2025-07-26 23:39:29 +02:00
parent f28783348e
commit 796a65d251
10 changed files with 0 additions and 369 deletions

View File

@@ -879,24 +879,6 @@ export class CanvasLayers {
}
}
showOpacitySlider(mode: string): void {
const slider = document.createElement('input');
slider.type = 'range';
slider.min = '0';
slider.max = '100';
slider.value = String(this.blendOpacity);
slider.className = 'blend-opacity-slider';
slider.addEventListener('input', (e) => {
this.blendOpacity = parseInt((e.target as HTMLInputElement).value, 10);
});
const modeElement = document.querySelector(`[data-blend-mode="${mode}"]`);
if (modeElement) {
modeElement.appendChild(slider);
}
}
/**
* Zunifikowana funkcja do generowania blob z canvas
* @param options Opcje renderowania