ComfyUI-3D-Pack
ComfyUI-3D-Pack copied to clipboard
Fix visualizer with the new comfy menu
Activating the new menu in comfyUI there is an incompatibility with the coloris.min.js script that is loaded in the main frame and not only inside the iframe of the 3d pack visualizer node. Looks like comfyUI preloads all the js files found in the extensions (http://localhost:8188/api/extensions) and coloris lib is auto instantiating, so it creates an ugly (un-styled) instance in the main view (left-bottom)
This PR loads the coloris lib via cdn to avoid that problem.
Also, I've included a better alignment and resize for the visualizer when the canvas is zoomed:
Before fix:
After fix: