Debounce canvas output updates and optimize image handling

Added debouncing to the updateOutput function to prevent excessive updates during rapid changes. Large images are now handled using blob URLs for better performance, while small images use data URIs. Also added logic to skip output updates when preview is disabled and improved cleanup of temporary file trackers when nodes are removed.
This commit is contained in:
Dariusz L
2025-07-23 16:27:12 +02:00
parent 472f8768a5
commit ab4a8f7ca7
3 changed files with 137 additions and 49 deletions

View File

@@ -2,4 +2,4 @@ import { LogLevel } from "./logger";
// Log level for development.
// Possible values: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE'
export const LOG_LEVEL: keyof typeof LogLevel = 'DEBUG';
export const LOG_LEVEL: keyof typeof LogLevel = 'NONE';