jagenjo / litegraph.js

A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently.
MIT License
6.89k stars 726 forks source link

Litegraph in fullscreen mode #352

Open fre391 opened 1 year ago

fre391 commented 1 year ago

I would like to use litegraph in full screen mode, but, the node handles are no more working. The positions seem to be shifted.

function FullScreen() { var elem = document.getElementById("mycanvas"); if (elem.requestFullscreen) { elem.requestFullscreen(); } else if (elem.mozRequestFullScreen) { / Firefox / elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullscreen) { / Chrome, Safari & Opera / elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { / IE/Edge / elem.msRequestFullscreen(); } }

    document.addEventListener("click", () => {
        FullScreen();
    });

Thx for any help on this...

jagenjo commented 1 year ago

there were some changes some months ago for the mouse events, I think it is related to that.