Christian Byrne
|
7c88bda647
|
Add optional icon to LGraphBadge and use for API nodes (#930)
Adds option to include an icon when creating an `LGraphBadge`. Then,
adds the icon to the title of nodes whose `constructor.nodeData` has a
non-null `credits_cost` property (API nodes that ComfyUI_frontend was
able to successfully query a credit cost for).

- https://github.com/Comfy-Org/ComfyUI-private/pull/2
- https://github.com/Comfy-Org/litegraph.js/pull/930
- https://github.com/Comfy-Org/ComfyUI_frontend/pull/3470
---------
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
|
2025-04-20 10:10:45 +10:00 |
|
filtered
|
91077aa20b
|
Redesign invalid node indicator (#358)
* nit
* Remove unused code
Gradient can (and should) be impl. directly by caching a CanvasGradient.
* nit
* nit - Refactor
* Remove redundant code
* Add line width & colour options to shape stroke
* Rename drawSelectionBounding to strokeShape
* nit - Doc
* Fix rounded corners not scaling with padding
* Optimise node badge draw
* Redesign invalid node visual indication
Customisable boundary indicator now used, replacing red background.
* Update snapshot
---------
Co-authored-by: huchenlei <huchenlei@proton.me>
|
2024-11-29 16:26:25 -05:00 |
|
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 |
|
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
|
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 |
|