mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 21:50:05 +00:00
Replace canvas "action" magic strings (#271)
This commit is contained in:
@@ -2255,10 +2255,7 @@ export class LGraphNode implements Positionable {
|
||||
|
||||
/* Forces to redraw or the main canvas (LGraphNode) or the bg canvas (links) */
|
||||
setDirtyCanvas(dirty_foreground: boolean, dirty_background?: boolean): void {
|
||||
this.graph?.sendActionToCanvas("setDirty", [
|
||||
dirty_foreground,
|
||||
dirty_background
|
||||
])
|
||||
this.graph?.canvasAction(c => c.setDirty(dirty_foreground, dirty_background))
|
||||
}
|
||||
|
||||
loadImage(url: string): HTMLImageElement {
|
||||
|
||||
Reference in New Issue
Block a user