Comfy-Org / 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
52 stars 12 forks source link

Use built-in `structuredClone` instead of `JSON.parse(JSON.stringify(obj))` #128

Open Trung0246 opened 1 month ago

Trung0246 commented 1 month ago

https://github.com/Comfy-Org/litegraph.js/blob/6f121fc245778c6cd726ed377b8c6ecdf3891f73/src/litegraph.js#L602

Most of browser should support structuredClone now.