shadowcz007 / comfyui-mixlab-nodes

Workflow-to-APP、ScreenShare&FloatingVideo、GPT & 3D、SpeechRecognition&TTS
https://mixlabnodes.com
MIT License
1.31k stars 82 forks source link

Compatability with ComfyUI_frontend v1.2.48 #318

Closed christian-byrne closed 2 months ago

christian-byrne commented 2 months ago

In ComfyUI_frontend v1.2.48, this line:

https://github.com/shadowcz007/comfyui-mixlab-nodes/blob/67b4ec3178918b3b9385768876a81e4d667f2e9a/web/javascript/td_background.js#L62

Was changed to:

ctx.setTransform(window.devicePixelRatio, 0, 0, window.devicePixelRatio, 0, 0) 

See: Comfy-Org/litegraph.js#116

Scale was also applied to drawFrontCanvas. So when comfyui-mixlab-nodes and ComfyUI_frontend v1.2.48^ are installed together, the front and back canvas receive different scale factors.

Issue:

christian-byrne commented 2 months ago

Fixed by https://github.com/shadowcz007/comfyui-mixlab-nodes/commit/d9edbd535eb6f5705583833e3133b11cc95b27c4