ComfyUI-3D-Pack icon indicating copy to clipboard operation
ComfyUI-3D-Pack copied to clipboard

Fix visualizer with the new comfy menu

Open fazeaction opened this issue 4 months ago • 0 comments

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)

358500854-1909f00f-1522-479c-a593-c79fb6700222

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:

Screenshot 2024-10-03 at 23 54 22

After fix: Screenshot 2024-10-03 at 23 28 29

fazeaction avatar Oct 03 '24 22:10 fazeaction