Commit Graph

961 Commits

Author SHA1 Message Date
Chenlei Hu
1ddb80d291 0.8.2 (#204) 2024-10-10 17:46:05 -04:00
filtered
64518a300b Typescript LLink (#199)
* Format only

* Refactor array check, add TS types
2024-10-10 17:45:13 -04:00
Chenlei Hu
76e6f9366d 0.8.1 (#203) 2024-10-10 09:43:23 -04:00
filtered
9d0e06ac01 Typescript LGraph (#200)
* Format only

* nit - Refactor

* Refactor & reformat only

* Refactor TS narrowing & coercion

* Remove ts-nocheck

* Fix downstream break when node id is string
2024-10-08 16:36:39 -04:00
filtered
5d510cd674 Revert "Format all code with prettier (#197)" (#198)
This reverts commit 28382b7e45.
2024-10-08 13:14:36 -04:00
Chenlei Hu
28382b7e45 Format all code with prettier (#197)
* Add formatter support

* Format all code

* Fix moved @ts-expect-error
2024-10-07 14:06:44 -04:00
Chenlei Hu
8418c884c0 Remove unused test file (#196) 2024-10-07 13:24:14 -04:00
Chenlei Hu
7839969994 0.8.0 (#195) 2024-10-07 11:16:49 -04:00
Chenlei Hu
142c22ea41 Typescript conversion 0.7.84 (#194)
* Convert litegraph.js to TS

* Overhaul static litegraph.d.ts with updated types

* Fix rename oversights and revert fix unused param

- Some functions were broken by merging updated TS function signatures which included param renames
- Removal of unused params does not belong in the TS conversion PR, and has been reverted

* Remove legacy static .d.ts file

* Add callback decl from #180

Support allowing links to widgets (#180)
c23e610c11

* Convert NodeId to string | number

Results in significantly less downstream changes, despite being a change from the old static file.

---------

Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2024-10-07 11:15:29 -04:00
Chenlei Hu
36a8b1fea0 Don't draw badges when zoomed out (#192) 2024-10-04 08:34:46 -04:00
Chenlei Hu
a7e149304e 0.7.84 (#191) 2024-10-02 14:46:21 -04:00
Chenlei Hu
8ffb29d1a5 Add hidden link enum (#190) 2024-10-02 14:45:21 -04:00
bymyself
955dec36f2 Fix adding node to selection with ctrl click on mac (#189) 2024-10-02 10:41:41 -04:00
Chenlei Hu
596d6ecefa 0.7.83 (#187) 2024-10-01 11:08:44 -04:00
pythongosssss
c23e610c11 Support allowing links to widgets (#180)
* Add support for dragging links to widgets

* whitespace
2024-10-01 11:03:36 -04:00
Chenlei Hu
b3c785da4d 0.7.82 (#186) 2024-10-01 10:30:27 -04:00
Chenlei Hu
bb95a109e4 Allow panning when dragging a link (#185) 2024-10-01 10:29:34 -04:00
Chenlei Hu
dac886ae25 0.7.81 (#184) 2024-09-30 19:53:03 -04:00
Chenlei Hu
1574c16918 Canvas panning mode (#183)
* nit

* Read-only on holding space

* Expose dragging events
2024-09-30 19:52:52 -04:00
filtered
18600f48f9 Clean litegraph module entry file (#171)
* Move LiteGraph global class props, fix duplicates

* Split polyfills out to separate file

* Move prototype modifications to class decl
2024-09-30 16:31:18 -04:00
bymyself
21d0f6c149 Fix drag-select on Mac (#182)
* Drag selection work with meta key

* Apply to dragging rectangle
2024-09-30 16:28:48 -04:00
Chenlei Hu
2a5e846145 0.7.80 (#179) 2024-09-27 14:43:14 +09:00
pythongosssss
1c6f04f1db Add event when readonly changes (#160)
* Add even when readonly is changed

* Swap to ts private instead of es
2024-09-27 14:41:10 +09:00
huchenlei
70ca8b7c21 0.7.79 2024-09-27 10:45:06 +09:00
huchenlei
96f62f8f93 Revert accidental changes 2024-09-27 10:43:53 +09:00
huchenlei
0652de8e66 Change cursor shape to grab on dragging 2024-09-27 10:43:53 +09:00
filtered
7c11409881 Split CurveEditor out to TS file 2024-09-27 09:56:19 +09:00
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
Chenlei Hu
8a0adc55d8 0.7.78 (#174) 2024-09-26 15:08:16 +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
5d5d1c3e38 0.7.77 (#157) 2024-09-22 15:25:01 +09:00
Chenlei Hu
dd0f0d2890 Restyle hollow circle node slot (#156) 2024-09-22 15:23:54 +09:00
Chenlei Hu
0a86c3347c 0.7.76 (#155) 2024-09-22 11:49:40 +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
Chenlei Hu
cd1d5d16bc 0.7.75 (#149) 2024-09-16 10:17:44 +09:00
pythongosssss
ba5cffb5b8 Allow link creation from another link by shift+clicking (#148) 2024-09-16 10:15:29 +09:00
Chenlei Hu
fb561983bc 0.7.74 (#146) 2024-09-15 11:01:12 +09:00
Chenlei Hu
3a626f4596 Add getter of nodes on LGraphGroup (#145) 2024-09-15 11:00:32 +09:00
Chenlei Hu
c6b7716211 0.7.73 (#144) 2024-09-14 17:03:17 +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