Commit Graph

786 Commits

Author SHA1 Message Date
filtered
c71b86da1f Split ContextMenu out to TS file 2024-09-27 09:56:19 +09:00
filtered
4a109deb8a Split LGraphCanvas out to TS file
Fixes circular dependency
2024-09-27 09:56:19 +09:00
filtered
86d232e939 Split DragAndScale out to TS file 2024-09-27 09:56:19 +09:00
filtered
d7c8a52351 Split LGraphGroup out to TS file 2024-09-27 09:56:19 +09:00
filtered
1c835b04dc Split LGraphNode out to TS file 2024-09-27 09:56:19 +09:00
filtered
f13b7c8818 Split LLink out to TS file 2024-09-27 09:56:19 +09:00
Chenlei Hu
1bb0dab67f Split LGraph out to TS file (#175)
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2024-09-27 09:45:43 +09:00
filtered
6ee95f1201 TypeScript conversion groundwork (#163)
* ContextMenu ES6 class conversion

* Fix compat with extensions

* CurveEditor ES6 class conversion

* Split most of the LiteGraph global out to a class

* Move remainder of LiteGraph global to class file

* Remove IIFE wrapper

* Fix jest tests throwing due to type narrowing
2024-09-27 08:20:30 +09:00
filtered
1404dd6ffe CurveEditor ES6 class conversion (#162) 2024-09-25 19:23:56 +09:00
filtered
6f5fcc0899 Context menu ES6 class conversion (#161)
* ContextMenu ES6 class conversion

* Fix compat with extensions
2024-09-25 19:23:12 +09:00
pythongosssss
bfe7c18e18 Add change events, to use instead of litegraph change methods. (#158)
* Add change events, to use instead of litegraph change methods.

* Move to wrapper function
2024-09-24 15:39:57 +09:00
pythongosssss
7ab8ad2cd3 Allow shift+click on input to create new link from origin (#153) 2024-09-24 12:11:28 +09:00
Chenlei Hu
dd0f0d2890 Restyle hollow circle node slot (#156) 2024-09-22 15:23:54 +09:00
Chenlei Hu
1ecf5e0a0f Support hollow circle slot shape (#154)
* Support hollow circle slot shape

* Fix stroke
2024-09-22 10:06:46 +09:00
pythongosssss
ba5cffb5b8 Allow link creation from another link by shift+clicking (#148) 2024-09-16 10:15:29 +09:00
Chenlei Hu
3a626f4596 Add getter of nodes on LGraphGroup (#145) 2024-09-15 11:00:32 +09:00
Chenlei Hu
574a4ee440 Fix configure trying to write to getter field (#143)
* Fix configure trying to write to getter field

* Only add getter for nodes and groups
2024-09-14 17:02:22 +09:00
Chenlei Hu
4c67692e62 Add getters to LGraph private fields (#141) 2024-09-14 16:13:56 +09:00
Chenlei Hu
0f1b72ce94 Version (#140)
* Proper node width/height calculation

* 0.7.71
2024-09-12 17:00:13 +09:00
Chenlei Hu
7dbe6400bb 0.7.70 (#139)
* setDirty

* 0.7.70
2024-09-12 14:27:04 +09:00
Chenlei Hu
56d3e084af Pin/Unpin all selected nodes on context menu (#136) 2024-09-12 14:09:24 +09:00
Chenlei Hu
b1367403b7 Fix badge width when invisble (#132) 2024-09-11 18:40:17 +09:00
Chenlei Hu
526ba6d8b3 Add LGraphBadge support on node (#130)
* Add badge

* Add badge support
2024-09-11 17:42:43 +09:00
bymyself
6f121fc245 Fix legacy searchbox focus on Firefox (#127) 2024-09-07 18:17:36 +09:00
filtered
009ef1c84b Fix collapsed regression in #114 (#126) 2024-09-06 08:02:10 -04:00
Cesaryuan
49944a0745 Fix blurry links on HiDPI screen (#116) 2024-09-05 11:09:29 -04:00
Chenlei Hu
99d0de239c Fix collapse and resize (#121) 2024-09-04 15:45:22 -04:00
Chenlei Hu
67f486fff7 Add pin icon to end of title (#120) 2024-09-04 15:13:10 -04:00
Chenlei Hu
05ce780cee Fix group title detect (#118) 2024-09-04 12:37:53 -04:00
Chenlei Hu
7897ffdaba Support group pinning and show pin icon on pinned node & group (#117)
* Add locking mechanism

* Add group locking

* Lock move/resize

* Move group menu options

* Rename locked to pinned

* Disable resize on pinned nodes

* nit
2024-09-04 12:33:59 -04:00
Chenlei Hu
74345f27f7 Add selected group bound highlight (#114)
* Add drawSelectionBounding function

* Add selected group highlight

* nit
2024-09-03 15:30:11 -04:00
Chenlei Hu
5338a147ee Refactor LGraphGroup.draw (#113) 2024-09-03 14:11:56 -04:00
Chenlei Hu
85076881c8 showConnectionMenu with searchbox options (#111)
* showConnectionMenu with searchbox options

* nit
2024-09-03 13:07:38 -04:00
Chenlei Hu
48c669626b Add litegraph:group-double-click event (#109) 2024-09-02 17:44:19 -04:00
Chenlei Hu
e25c21026c Fix LGraphNode.pos serialization (#107) 2024-09-02 14:31:05 -04:00
Chenlei Hu
626095b6e9 Fix prompt dialog dismiss (#105) 2024-08-29 11:46:07 -04:00
Chenlei Hu
e0bd271897 LGraphCanvas ES6 class conversion (#103)
* LGraphCanvas ES6 class conversion

* nit

---------

Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2024-08-29 11:36:46 -04:00
Chenlei Hu
6f71d9a441 Convert static canvas vars to private static fields (#102)
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2024-08-29 10:43:09 -04:00
Chenlei Hu
af99640aa9 DragAndScale ES6 class conversion (#101)
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2024-08-29 10:40:28 -04:00
Chenlei Hu
26cccd656d LGraphGroup ES6 class conversion (#100)
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2024-08-29 10:35:02 -04:00
Chenlei Hu
4f51edefef Revert "Revert "LGraphNode ES6 class conversion (#68)" (#72)" (#98)
This reverts commit e327b5fe62.
2024-08-28 15:41:25 -04:00
Chenlei Hu
0b19a039eb Fix group ref (#96) 2024-08-28 11:01:03 -04:00
Chenlei Hu
b419b53bd5 Add LGraphGroup.addNodes (#94) 2024-08-28 10:57:42 -04:00
Chenlei Hu
48613a3539 Fix not title click cond (#92) 2024-08-27 11:08:08 -04:00
Chenlei Hu
9fe28f4826 Fix hook on undefined (#90) 2024-08-27 10:42:31 -04:00
Chenlei Hu
fecb7d6707 Add onNodeTitleDblClick hook (#88)
* Add onNodeTitleDblClick hook

* nit
2024-08-26 22:30:46 -04:00
bymyself
227541c265 Increase timeout on prompt dialog dismiss (#86)
* Increase timeout on prompt dialog dismiss

* Add devtools node to test wf
2024-08-25 15:01:23 -04:00
bymyself
f351b1d87a Clock prompt dialog input on canvas click (#80) 2024-08-21 11:47:00 -04:00
bymyself
86d9391807 Expose zoom speed option (#19)
* Expose zoom speed option

* Avoid unnecessary operations
2024-08-21 11:44:55 -04:00
Chenlei Hu
1cbb74b1b6 Make node id serialization optional (#76) 2024-08-17 23:03:11 -04:00