Comfy Org PR Bot
ddfd89df60
0.13.7 ( #955 )
...
Patch version increment to 0.13.7
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-04-22 00:04:58 +10:00
filtered
78bd6704fe
Improve slot render stability & perf ( #954 )
...
- `draw` is now skipped for slots that should not be shown (prev. drawn
with 0 alpha)
- Fixes slot always rendered when widget not found in `node.widgets`
- Remove redundant check from `isWidgetInputSlot` - type is already
`INodeInputSlot`
2025-04-22 00:03:00 +10:00
filtered
2ad1481f02
Remove LayoutElement, resolve root TS issues ( #953 )
...
- Converts type assertions to use inference via discriminated unions
- Removes the LayoutElement class (only used by node slots, and recently
reduced to a single function)
- Splits `boundingRect` property out from `Positionable` interface
- Slots now use the standard `boundingRect` property
- Perf improvements / Removes redundant code
2025-04-21 22:23:09 +10:00
filtered
f7a0a92f3a
[CodeHealth] Standardise code ( #951 )
...
Refactors & standardises code.
2025-04-20 15:02:54 +00:00
filtered
7c236bcfc8
[API] Remove broken: node.addInputs & addOutputs ( #950 )
...
The current impls. do not work as intended; they will only assign the
additional info properties if there are at least three items in the
input array.
Adding replacements would be trivial, if required, and would benefit by
not inheriting the current public interface.
Confirmed unused via code search.
2025-04-20 12:59:23 +00:00
Comfy Org PR Bot
b6a04d245b
0.13.6 ( #949 )
...
Patch version increment to 0.13.6
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-04-20 11:26:31 +00:00
filtered
cc5aece6b6
[API] Mark ContextMenu methods as deprecated, cleanup ( #948 )
...
- Marks unused static methods as deprecated
- Removes redundant / orphaned code
- Uses existing AbortController to remove all root listeners
2025-04-20 11:25:25 +00:00
filtered
21a3f56187
[API] Allow new node to be created without links ( #947 )
...
When using the Add Node context menus, allows consumers to prevent new
nodes from being linked.
- Related: #946
2025-04-20 10:55:52 +00:00
filtered
a76c50252b
Fix part of snapped link follows pointer ( #945 )
...
Removes the green circle that always follows the pointer, even when a
link is snapped elsewhere.
2025-04-20 08:52:01 +00:00
filtered
c607c53543
[API] Return ContextMenu created for connecting link ( #944 )
...
Allows further customisation / hooks of the created ContextMenu.
2025-04-20 18:50:42 +10:00
filtered
b988238155
[Cleanup] Assorted minor code clean-up ( #943 )
...
Adds one warning log for an extreme edge case.
2025-04-20 08:35:45 +00:00
filtered
48bf415e52
[API] Allow connecting to nodes without known slot ( #942 )
...
Allows better downstream customisation of `LinkConnector`.
2025-04-20 08:20:12 +00:00
Comfy Org PR Bot
13db014387
0.13.5 ( #941 )
...
Patch version increment to 0.13.5
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-19 22:25:05 -04:00
Chenlei Hu
453257cd30
[Bug] Remove unused prop LayoutElement.value ( #940 )
...
Resolves https://github.com/Comfy-Org/litegraph.js/issues/939
The prop is unused and is causing object clone circular ref issue.
2025-04-19 22:23:49 -04:00
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
Christian Byrne
deeed9853c
Remove fetch-templates script invoke in CI ( #938 )
...
See https://github.com/Comfy-Org/ComfyUI_frontend/pull/3500 for details.
2025-04-19 16:41:43 -07:00
Comfy Org PR Bot
5100bf6b00
0.13.4 ( #937 )
...
Patch version increment to 0.13.4
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-04-18 16:14:23 +00:00
filtered
6293b4bbe0
Disconnect moved output links when dropped on canvas ( #936 )
...
- Resolves #884
2025-04-18 23:22:28 +10:00
filtered
02d165bf2a
[API] LinkConnector reset no longer run after drop ( #935 )
...
`reset()` is no longer automatically called after `dropLinks`. This
brings the API in line with original intent, and how canvas is already
configured; reset is called by `pointer.finally()`.
2025-04-18 11:45:36 +00:00
filtered
5c76bec611
[TS] Export types ( #933 )
...
Re-exports module-level exports at the package level.
2025-04-18 21:01:10 +10:00
filtered
ce46f19de9
Fix LinkConnector methods cannot be cancelled via API ( #934 )
...
- Checks if `e.preventDefault()` has been called for all cancellable
LinkConnector callbacks
- Sets `cancelable: true` on dispatched events
- Dedupes canvas pointer calls
2025-04-18 20:50:33 +10:00
filtered
51ec57dc5c
Fix graph.links cannot be iterated ( #932 )
...
Proxied links object now correctly supports spread operator.
2025-04-16 09:13:20 +00:00
Comfy Org PR Bot
af3fa1cd8c
0.13.3 ( #928 )
...
Patch version increment to 0.13.3
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-15 11:00:16 -04:00
Chenlei Hu
0063bf618d
[Bug] Show widget slot when slot is hovered ( #929 )
...
Resolves https://github.com/Comfy-Org/litegraph.js/issues/925
https://github.com/user-attachments/assets/81bd6ce3-6feb-456a-9bb3-e512008b2e63
2025-04-15 10:59:56 -04:00
Chenlei Hu
15fbc8fb77
Export types files under dist/ ( #927 )
...
This is required to enable "bundler" mode in tsconfig in
ComfyUI_frontend.
2025-04-15 10:51:02 -04:00
Comfy Org PR Bot
c90edcc201
0.13.2 ( #926 )
...
Patch version increment to 0.13.2
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-14 20:52:46 -04:00
Chenlei Hu
bdffdc9f10
[Bug] Fix configure of non-serializable widget ( #921 )
...
Follow up on https://github.com/Comfy-Org/litegraph.js/pull/915
Filter out non-serializable widgets during node configuration. Current
usage in frontend should not be affected as preview media widgets are
mostly dynamically added at the end of widget list.
2025-04-12 21:01:31 -04:00
dependabot[bot]
2acf16d3d0
Bump vite from 6.2.5 to 6.2.6 ( #922 )
2025-04-13 11:00:53 +10:00
filtered
2e72031344
[API] Remove deprecated: getAncestors ( #919 )
...
Removes unused and deprecated API: LGraph.getAncestors
2025-04-11 17:29:53 +00:00
Christian Byrne
3ba61c7265
Don't log every single node being replaced when node defs refreshed ( #918 )
...
Currently, when node defs are refreshed (e.g., by pressing "r"
shortcut), every single node def is logged, which is useless when
there's hundred of nodes and clutters console. This PR changes to only
log those messages when in debug mode.
2025-04-11 09:11:25 -07:00
Chenlei Hu
547fb22398
Update test-comfyui-frontend.yml ( #917 )
2025-04-09 17:06:38 -04:00
Comfy Org PR Bot
f3fba4007b
0.13.1 ( #916 )
...
Patch version increment to 0.13.1
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-09 16:08:31 -04:00
Chenlei Hu
197a6cbae8
Add IBaseWidget.serialize flag ( #915 )
...
https://github.com/Comfy-Org/ComfyUI_frontend/pull/3323
Some widgets are only used for display purpose (The preview image
widget), their value shouldn't be serialized into the workflow. This PR
adds a flag to allow widget to skip value serialization.
2025-04-09 16:06:05 -04:00
filtered
04b4485cc9
Add Disposable interface & polyfill ( #914 )
...
Adds the `Disposable` and `AsyncDisposable` interfaces via polyfill.
Implements Disposable interface in `InputIndicator`.
Ref:
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management
2025-04-09 11:05:39 +00:00
filtered
c60e9d8080
[Cleanup] Remove unused code ( #913 )
2025-04-09 09:35:08 +00:00
filtered
ae4a63c839
[Cleanup] Simplify code ( #912 )
...
- Simplifies internal APIs used by private functions
- Prefer param destructuring over manual object re-impl.
2025-04-09 08:54:34 +00:00
filtered
297b557b94
[Refactor] Rename layout method to arrange/measure ( #911 )
...
Prefer verb function names.
2025-04-09 07:49:41 +00:00
filtered
05e8e25b6b
[Cleanup] Remove redundant code ( #906 )
...
Removes a now-redundant workaround from LinkConnector.
2025-04-09 16:28:34 +10:00
filtered
f6ef85e7c3
[Test] Add measure unit tests ( #905 )
2025-04-09 16:28:05 +10:00
Comfy Org PR Bot
6a3f5271c8
0.13.0 ( #909 )
...
Patch version increment to 0.13.0
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-07 19:53:11 -04:00
Chenlei Hu
bf5e3f3c77
[Bug] Fix layout issue caused by absolute positioned slots ( #908 )
...
Before:

After:

Workflow:
[dynamically_added_input.json](https://github.com/user-attachments/files/19640371/dynamically_added_input.json )
This PR also fixes the issue that output slot's `pos` property is not
relative to node pos.
2025-04-07 19:52:58 -04:00
Chenlei Hu
d77100c401
[Refactor] Add LGraphNode.layout ( #907 )
...
Moves layout of LGraphNode slot and widget to `LGraphNode.layout`.
Codesearch shows that there is currently no usage on posY arg, so we can
just pass null to it instead.
https://cs.comfy.org/search?q=context:global+drawNodeWidgets&patternType=keyword&sm=0
2025-04-07 15:40:58 -04:00
Comfy Org PR Bot
24dfbe8b2b
0.13.0-0 ( #903 )
...
Preminor version increment to 0.13.0-0
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-06 11:35:49 -04:00
filtered
079a18a391
Reland "Support associated socket for widgets" ( #904 )
...
- Reverts Comfy-Org/litegraph.js#896
- Relands #891
2025-04-06 11:35:42 -04:00
filtered
3815296ab5
Add Disconnect Links option to input slot menu ( #901 )
2025-04-06 15:22:19 +00:00
Comfy Org PR Bot
0032675e00
0.12.0 ( #902 )
...
Patch version increment to 0.12.0
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-04-06 11:21:38 -04:00
filtered
ed34080e46
Remove auto-generated serialisation data on load ( #900 )
...
- Resolves #883
2025-04-06 15:10:08 +00:00
filtered
3b5cc8cd19
Add alt-right-click to delete reroutes ( #899 )
...
Alt-right-click to remove, regular right-click to show context menu.
2025-04-06 14:55:17 +00:00
filtered
6cafeeff19
Fix corruption of selected link highlights ( #897 )
...
Occurred when deselecting one side of a link when both sides were
selected.
2025-04-06 14:30:22 +00:00
filtered
7360e09172
Standardise right-click behaviour ( #894 )
...
- Uses CanvasPointer click to open context menu (formerly occurred on
`pointerdown`)
- Frees up right-click & drag to be used by future features
- Right-clicking a reroute now selects the reroute, using the same
selection logic used for right-clicking nodes
2025-04-06 13:31:09 +00:00