filtered
de21f5ccd3
Fix unnecessary module loading for type imports ( #1053 )
2025-05-15 23:16:27 +00:00
filtered
b035c95cc0
[chore] Update vite / vitest / dts packages ( #1052 )
2025-05-15 11:16:44 +00:00
Comfy Org PR Bot
2b45828afc
0.15.10 ( #1051 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-15 09:46:58 +00:00
filtered
19b7d28d97
[API] Add dirty state flag for selectedItems ( #1050 )
2025-05-15 19:33:51 +10:00
filtered
ad528461c9
[API] Deprecate node.captureInput ( #1049 )
2025-05-15 06:58:46 +00:00
Comfy Org PR Bot
c4b0372cd4
0.15.9 ( #1044 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-13 05:04:55 +10:00
filtered
de32560816
[TS] Improve types and ( #1043 )
2025-05-12 19:02:57 +00:00
filtered
10118d95e3
Export the viewport offset and scale with the graph ( #1042 )
2025-05-12 18:47:10 +00:00
filtered
c2a88d3088
[Refactor] Use Rectangle for canvas visible area ( #1041 )
2025-05-12 11:01:36 +00:00
filtered
6ff80cfd36
[Cleanup] Fix node background drawn twice / misc ( #1040 )
2025-05-10 14:47:48 +00:00
filtered
d452240936
[TS] Declare missing types in BaseWidget ( #1038 )
2025-05-09 06:37:59 +00:00
Comfy Org PR Bot
bc8b13b5a4
0.15.8 ( #1036 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-09 10:35:44 +10:00
filtered
441f14c12e
[TS] Fix callback type prevents use as method ( #1035 )
2025-05-09 10:34:45 +10:00
Comfy Org PR Bot
1adc0b6c00
0.15.7 ( #1034 )
...
Co-authored-by: huchenlei <20929282+huchenlei@users.noreply.github.com >
2025-05-08 13:55:19 -04:00
Chenlei Hu
2405be993c
Add DragAndScale.fitToBounds ( #1033 )
2025-05-08 13:55:11 -04:00
Comfy Org PR Bot
f55c01af65
0.15.6 ( #1032 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-08 09:27:30 +10:00
filtered
3fec0e2d39
Fix explicit undefined interpreted as text by consumers ( #1031 )
2025-05-08 09:26:55 +10:00
Comfy Org PR Bot
dbc5cdf600
0.15.5 ( #1030 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-08 08:54:55 +10:00
filtered
4f9a40dcfd
Fix downstream DOM widget impl. crash on load ( #1029 )
2025-05-08 08:54:07 +10:00
Comfy Org PR Bot
288f961688
0.15.4 ( #1028 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-08 06:39:22 +10:00
filtered
1b37502d70
[API] Improve widget typing ( #1027 )
2025-05-08 06:37:16 +10:00
Comfy Org PR Bot
33a76714f7
0.15.3 ( #1026 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-07 22:38:48 +10:00
filtered
44c98fbf62
Rename widget _displayValue to resolve conflict ( #1025 )
2025-05-07 22:36:40 +10:00
Comfy Org PR Bot
8cf449c957
0.15.2 ( #1024 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-07 21:48:14 +10:00
filtered
86d1c2a93a
Workaround crash on load from custom nodes ( #1023 )
2025-05-07 21:18:42 +10:00
filtered
ccbdff0ad1
Fix Rectangle subarray end offset logic ( #1021 )
2025-05-06 18:10:59 +00:00
filtered
df6e4debb5
Fix widget snap to work with input sockets ( #1017 )
2025-05-07 02:02:49 +10:00
Comfy Org PR Bot
c7c7547454
0.15.1 ( #1020 )
...
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-06 19:55:15 +10:00
filtered
c6df437662
[CodeHealth] Replace temporary TS conversion widget types ( #1019 )
2025-05-06 19:53:49 +10:00
filtered
a74df42cce
Fix Rectangle.size exception on access ( #1013 )
2025-05-06 19:28:51 +10:00
filtered
28434e7165
Fix node with any widgets bypasses link validation ( #1016 )
...
- Followup on #891
2025-05-06 09:10:35 +00:00
filtered
c344a73739
[API] Export widget classes for downstream use ( #1018 )
...
Exports all widget classes.
- BaseSteppedWidget
- BaseWidget
- BooleanWidget
- ButtonWidget
- ComboWidget
- KnobWidget
- NumberWidget
- SliderWidget
- TextWidget
2025-05-06 06:50:17 +10:00
Comfy Org PR Bot
f6101bccae
0.15.0 ( #1012 )
...
Minor version increment to 0.15.0
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-05 10:51:30 +10:00
filtered
75df19521b
Widget overhaul ( #1010 )
...
### Widget text overhaul
#### Current
- Numbers and text overlap
- Combo boxes truncate the value before the label

#### Proposed
**By default, widgets will now truncate their labels before their
values.**
https://github.com/user-attachments/assets/296ea5ab-d2ff-44f2-9139-5d97789e4f12
- Changes the way widget text is rendered, calculated, and truncated
- Truncation now applies in a standard way to the following widgets:
- Text
- Combo
- Number
- Centralises widget draw routines in base class
### Config
```ts
// Truncate **both** widgets and labels evenly
LiteGraph.truncateWidgetTextEvenly = true
// Swap the default from truncating labels before values, to truncating values first (restores legacy behaviour)
// truncateWidgetTextEvenly **must** be `false`.
LiteGraph.truncateWidgetValuesFirst = true
```
### API / interfaces
- Adds rich `Rectangle` concrete impl., with many methods and helpful
accessors (e.g. `right`, `bottom`)
- Actually _improves_ performance due to switch from Float32Array to
Float64Array
- Impact vs plain Float64Array was not detectable outside of a 2M+
instantiation-loop with random data
- Lazy `pos` & `size` `subarray` properties
- Adds `ReadOnlySize`
- Adds higher-level text draw functions to abstract the nitty gritty in
a performant way (binary search)
- Resolves Comfy-Org/ComfyUI_frontend/issues/457
2025-05-05 10:48:06 +10:00
Comfy Org PR Bot
406abd7731
0.15.0-3 ( #1011 )
...
Prerelease version increment to 0.15.0-3
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-05 09:01:05 +10:00
filtered
386f18a1e5
Remove DragAndScale rounding when using trackpad ( #1009 )
...
Fixes issue where pinch to zoom would jitter around scale 1 - D&S rounds
the value to exactly 1 when it is "close enough". Good for pointer, poor
UX for precision trackpad.
2025-05-04 21:06:43 +00:00
Comfy Org PR Bot
53f766af3d
0.15.0-2 ( #1008 )
...
Prerelease version increment to 0.15.0-2
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-04 12:00:10 +10:00
filtered
81eed7a1fa
Add macOS trackpad gesture support ( #1007 )
...
Adds trackpad gesture support to canvas interaction. Supports:
- Pinch to zoom
- Two-finger panning
Feature is off by default. Also by default, the browser user-agent must
include "Mac" (even if the feature has been enabled).
```ts
// Enable mac trackpad gestures
LiteGraph.macTrackpadGestures = true
// Disable the default Mac user-agent check
LiteGraph.macGesturesRequireMac = false
```
2025-05-04 11:58:24 +10:00
filtered
bfc87af9d1
[TS] Force explicit override & property access ( #1006 )
...
Enables TypeScript rules that improve code legibility.
- Requires `override` keyword
- Prevent indexed properties from being accessed with dot notation
```ts
const obj: Record<string, unknown> = {}
// Prefer
obj["property"]
// Over
obj.property
```
2025-05-03 20:37:01 +00:00
filtered
f2eafae82d
Add no-items-selected event ( #1004 )
...
Emits an event when attempting to delete items with nothing selected.
Event is generic and should also be used to report any other
user-initiated actions.
Emitted from LGraphCanvas.canvas
- bubbles
- non-cancellable
```
litegraph:no-items-selected
```
2025-05-03 13:49:33 +00:00
Comfy Org PR Bot
aa9f2f74b1
0.15.0-1 ( #1003 )
...
Prerelease version increment to 0.15.0-1
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-03 08:14:00 +10:00
filtered
27fbc2ea7c
[API] Rewrite LGraphCanvas.setGraph for subgraph ( #1002 )
...
Code search showed no usage.
Fixes TS type on LGraph.
2025-05-02 22:01:59 +00:00
filtered
9dcc3bf39a
[Refactor] Remove redundant code ( #1001 )
...
Removes redundant code. After being refactored out of LGraphCanvas, the
class methods were being passed their own properties as params.
2025-05-02 18:06:23 +00:00
Comfy Org PR Bot
b838a70ed2
0.15.0-0 ( #998 )
...
Preminor version increment to 0.15.0-0
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-02 00:10:00 +00:00
filtered
199eeae269
Add subgraph skeleton classes ( #997 )
...
Allows downstream consumers to use subgraph types ahead of impl.
2025-05-01 23:16:19 +00:00
filtered
ee89fc575f
[Cleanup] Removes unused code ( #996 )
...
- Removes unused code
- Removes unnecessary globalAlpha reset when drawing reroute highlight
2025-05-01 22:38:54 +00:00
filtered
cb6020dfc1
[Perf] Prefer set over array.includes ( #995 )
...
Simplifies code and improves performance.
2025-05-01 22:31:51 +00:00
filtered
388a3d64cc
[Refactor] Split node slot code out to base class ( #994 )
...
Foundational work for subgraph.
2025-05-01 22:26:25 +00:00
filtered
2e0267105e
[chore] Update typescript package ( #993 )
...
v5.8.2 -> v5.8.3
2025-05-01 22:19:50 +00:00
Comfy Org PR Bot
7a9b23087e
0.14.6 ( #992 )
...
Patch version increment to 0.14.6
Co-authored-by: webfiltered <176114999+webfiltered@users.noreply.github.com >
2025-05-02 05:57:12 +10:00