mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-25 14:25:44 -03:00
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:
@@ -764,21 +764,6 @@ export class CanvasLayers {
|
||||
menu.parentNode.removeChild(menu);
|
||||
}
|
||||
}
|
||||
showOpacitySlider(mode) {
|
||||
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.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
|
||||
|
||||
Reference in New Issue
Block a user