mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 15:54:09 +00:00
Replace reactive DragAndScale proxy with callback (#3915)
This commit is contained in:
@@ -57,9 +57,7 @@ whenever(
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
whenever(() => canvasStore.getCanvas().ds.state, positionSelectionOverlay, {
|
||||
deep: true
|
||||
})
|
||||
canvasStore.getCanvas().ds.onChanged = positionSelectionOverlay
|
||||
|
||||
watch(
|
||||
() => canvasStore.canvas?.state?.draggingItems,
|
||||
|
||||
@@ -769,7 +769,6 @@ export class ComfyApp {
|
||||
this.canvas = new LGraphCanvas(canvasEl, this.graph)
|
||||
// Make canvas states reactive so we can observe changes on them.
|
||||
this.canvas.state = reactive(this.canvas.state)
|
||||
this.canvas.ds.state = reactive(this.canvas.ds.state)
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
this.ctx = canvasEl.getContext('2d')
|
||||
|
||||
Reference in New Issue
Block a user