Commit Graph

1141 Commits

Author SHA1 Message Date
christian-byrne
b1f8afea2f fix nullish condition 2025-01-04 20:27:42 -05:00
bymyself
06b6da1353 Update src/LGraphCanvas.ts
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
2025-01-04 20:27:42 -05:00
christian-byrne
6c037ca629 Fix dragging behavior in LGraphCanvas to depend on pointer state 2025-01-04 20:27:42 -05:00
huchenlei
34eb1c2add 0.8.59 2025-01-03 11:12:18 -05:00
filtered
a548a72f66 Fix selection box is always a square 2025-01-03 11:11:11 -05:00
huchenlei
318c4e27a2 0.8.58 2025-01-02 16:47:58 -05:00
huchenlei
459e0909a5 0.8.57 2025-01-02 15:53:12 -05:00
Chenlei Hu
f2d257a469 0.8.56 (#416) 2025-01-02 15:51:42 -05:00
Chenlei Hu
c480dca814 0.8.55 (#415) 2025-01-02 15:46:27 -05:00
bymyself
bee9c18a31 Enhance context menu scrolling behavior (#414) 2025-01-02 14:57:05 -05:00
Chenlei Hu
b308a81e38 0.8.54 (#413) 2025-01-01 19:35:30 -05:00
filtered
c64c81882c Add workaround for Firefox pointer events (#412)
* Add workaround for Firefox pointer events

Co-Authored-By: catboxanon <122327233+catboxanon@users.noreply.github.com>

* nit

---------

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>
Co-authored-by: huchenlei <huchenlei@proton.me>
2025-01-01 19:34:58 -05:00
Chenlei Hu
e11e7f8052 0.8.53 (#410) 2024-12-30 00:20:33 -05:00
Chenlei Hu
edaf2933e1 Track LGraphState.draggingCanvas (#409)
* Track LGraphState.draggingCanvas

* nit
2024-12-30 00:20:01 -05:00
Chenlei Hu
3579436817 0.8.52 (#408) 2024-12-30 00:11:08 -05:00
Chenlei Hu
7d77fceffa Properly update cursor style on mouse/keyboard events (#407)
* Properly update cursor style on mouse/keyboard events

* nit
2024-12-30 00:10:26 -05:00
Chenlei Hu
757560f6e2 0.8.51 (#406) 2024-12-29 23:40:02 -05:00
Chenlei Hu
8856983597 Upstream cursor style (#405) 2024-12-29 23:39:23 -05:00
Chenlei Hu
1c6d34e948 Update test-comfyui-frontend (#404) 2024-12-29 16:40:01 -05:00
Chenlei Hu
6396e246f8 0.8.50 (#402) 2024-12-27 13:53:34 -05:00
filtered
802e734657 Fix deeply nested context menus remain open (#399)
* nit - Remove redundant workaround

* Fix deeply nested context menus remain open
2024-12-27 13:52:35 -05:00
filtered
0b161c1195 Fix scaled font blurriness in context menus (#400)
Requires that fonts scale in increments of 0.25.
2024-12-27 13:51:53 -05:00
Chenlei Hu
54d7292d24 Stricter return value check on LGraphCanvas.getExtraMenuOptions (#401) 2024-12-27 13:51:31 -05:00
Chenlei Hu
c7ce89e10f 0.8.49 (#398) 2024-12-25 23:17:37 -05:00
filtered
e6efff040d Resolve #395 - thick selection rectangle (#397) 2024-12-25 21:25:37 -05:00
bymyself
57dd8392db Don't process hidden links or reroutes (#396) 2024-12-25 21:25:15 -05:00
Chenlei Hu
bc72e3f59f 0.8.48 (#390) 2024-12-23 20:05:07 -05:00
Chenlei Hu
11ce8e0f7b Fix NODE_DEFAULT_SHAPE (#389)
* Fix NODE_DEFAULT_SHAPE

* update snapshot
2024-12-23 20:04:32 -05:00
Chenlei Hu
c8796f8c93 Auto generate github release on version change (#387) 2024-12-23 14:41:19 -05:00
Chenlei Hu
063c1d704d 0.8.47 (#384) 2024-12-19 16:37:57 -08:00
Chenlei Hu
e442732a09 Emit node-double-click event (#383)
* Emit node-double-click event

* nit
2024-12-19 16:37:29 -08:00
Chenlei Hu
6165709fce 0.8.46 (#382) 2024-12-15 12:48:57 -08:00
Chenlei Hu
7f0c3b02fb Fix slider value display when widget.label is present (#381) 2024-12-15 12:47:53 -08:00
filtered
6956973be1 Fix reroutes ignore change in radius (#379) 2024-12-15 10:55:46 -08:00
filtered
71f8a1decf Export Reroute class the same as other similar classes (#378)
* Export Reroute class the same as other similar classes

* Update test expectations
2024-12-15 10:54:50 -08:00
Chenlei Hu
8e21d44f5d 0.8.45 (#377) 2024-12-13 12:01:57 -08:00
Chenlei Hu
0048b5a0fe [i18n] Add INodeSlot.localized_name field (#376)
* [i18n] Add INodeSlot.localized_name field

* nit
2024-12-13 12:01:21 -08:00
filtered
1c1241bdb1 Optimise positionableItems / empty getters (#373)
* Optimise LGraph.empty() getter

* Optimise positionableItems getters

- No change to internal functionality
- Replaces forced spread of all items on every property access with generator function
- Consumers that require an array can very cleanly spread into one
2024-12-07 00:00:29 -05:00
Chenlei Hu
a7be883b97 0.8.44 (#372) 2024-12-06 17:53:43 -05:00
Chenlei Hu
a9940da05f Add LGraph.empty (#371) 2024-12-06 17:49:50 -05:00
Chenlei Hu
0d0dfafc5b 0.8.43 (#370) 2024-12-05 11:34:01 -05:00
filtered
1238f83728 Prevent distortion of area select rectangle (#368) 2024-12-05 11:33:51 -05:00
Chenlei Hu
c69bbdfb10 Export LGraphEventMode (#369) 2024-12-05 11:32:08 -05:00
Chenlei Hu
38227a9c96 0.8.42 (#365) 2024-12-01 20:32:35 -05:00
filtered
8cda1ac48a Add CanvasPointer callback for node widgets (#363)
* Add CanvasPointer callback for node widgets

* Add API documentation

* nit - Docs
2024-12-01 20:31:48 -05:00
pythongosssss
a0b50dcf15 Fix cloning pinned nodes (#364) 2024-12-01 20:31:12 -05:00
Chenlei Hu
2d6adf46e5 0.8.41 (#361) 2024-11-29 16:27:11 -05: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
2a39b21578 Fix Zoom Centre (#135) 2024-11-28 11:54:09 -05:00
Chenlei Hu
eb54546ac9 0.8.40 (#357) 2024-11-28 09:50:29 -05:00