filtered
5469bfdd52
Add ESLint, pre-commit hook & format all files ( #319 )
...
* Add ESLint config
* Add ESLint packages
* Add prettier config
* Fix ESLint package version
* Format all files
* Format static assets
* Format project root config
* Add pre-commit code formatting
Formats .css & .js files automatically. If any .ts or .mts files are staged, the entire project is type-checked.
Packages:
- lint-staged
- husky
- prettier
2024-11-20 21:50:58 -05:00
Chenlei Hu
7c0240857c
Revert branch to cb6e80a645 ( #257 )
2024-11-03 09:12:47 -05:00
dmx
79c53e0095
(prettier formatting)
2024-11-03 09:20:57 +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
8ffb29d1a5
Add hidden link enum ( #190 )
2024-10-02 14:45:21 -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
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
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
filtered
32740cc811
Add export ContextMenu (and clamp because why not) ( #134 )
2024-09-12 10:49:11 +09:00
Chenlei Hu
526ba6d8b3
Add LGraphBadge support on node ( #130 )
...
* Add badge
* Add badge support
2024-09-11 17:42:43 +09:00
Chenlei Hu
8a5b165a5b
[skip ci] fix getNodeById arg type ( #124 )
2024-09-05 10:58:33 -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
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
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
b419b53bd5
Add LGraphGroup.addNodes ( #94 )
2024-08-28 10:57:42 -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
41ab07747a
Add zoom_speed to LGraphCanvas type def ( #83 )
2024-08-26 22:30:33 -04:00
Chenlei Hu
1cbb74b1b6
Make node id serialization optional ( #76 )
2024-08-17 23:03:11 -04:00
Chenlei Hu
d2ef32fcb5
Fix Vite build ( #55 )
...
* Fix build output
* 0.7.37
* Fix type export
* 0.7.38
* Adjust build
* 0.7.39
* Add css to package declaration
* 0.7.40
* ESM style named export
* 0.7.41
* Fix style export for unit test
* 0.7.42
2024-08-06 10:56:57 -04:00
filtered
ddd1ac4f99
Add vite build ( #53 )
...
* Add vite build - baseline
* Fix build output folder structure
Matches pre-vite output
* Fix litegraph errors introduced by vite process
- Remove pre-written encapsulating iife (one is injected by vite)
- Replace all references to the global "this" with globalThis
2024-08-06 09:14:17 -04:00