Commit Graph

47 Commits

Author SHA1 Message Date
filtered
b29a32c1ae Add CanvasPointer API (#308)
* Add position rounding feature

Replaces previous impls. which only worked on some items, and were triggered when unexpected e.g. clicking a node that hadn't been moved.

Update test expectations

* Narrow TS types - readonly

* nit - Clean up, Doc

* nit - Clean up legacy accessors

Marks as deprecated

* Fix TS type - IContextMenuOptions.scale

* [Refactor] dist2 for use in pointer API

* Add CanvasPointer - API for pointer events

Add TS strict types
Add final click drag distance math
Add option to retain events

* nit - Rename

* nit

* Remove Subgraph - unused & not maintained

* Remove live_mode

Unused, not maintained.

* Update README

Remove live_mode reference

* Update delete selected - include reroutes & groups

* Bypass link menu if alt/shift pressed

* Remove old dragged_node interface

Incomplete impl. - unused.
Superceded by selectedItems

* Fix top/left edge of rectangles not in hitbox

* [Refactor] Match function names to interface names

* Add interface to find widgets by Point

LGraphNode.getWidgetOnPos

* Add widget search param - includeDisabled

* nit - Doc

* Rewrite canvas mouse handling

- Rewrites most pointer handling to use CanvasPointer callbacks
- All callbacks are declared ahead of time during the initial pointerdown event, logically grouped together
- Drastically simplifies the alteration or creation of new click / drag interactions
- Click events are all clicks, rather than some processed on mouse down, others on mouse up

- Functions return instead of setting and repeatedly checking multiple state vars
- Removes all lines that needed THIRTEEN tab indents

* Split middle click out from processMouseDown

* Use pointer API for link menus

* Narrow canvas event interfaces

* Fix canvas event types

Replaces original workarounds with final types

* Refactor - deprecated isInsideRectangle

* Add canvas hovering over state

- Centralises cursor set behaviour
- Provides simple downstream override

* nit

* [Refactor] Use measure functions

* Add double-click API to CanvasPointer

a

* nit - Doc

* Allow larger gap between double click events

* Rewrite double-click into CanvasPointer actions

* Improve double-click UX

Prefer down events over up events

* Add production defaults

* Add middle-click handling

* Remove debug code

* Remove redundant code

* Fix add reroute alt-click adds two undo steps

* Fix click on connected input disconnects

Old behaviour was to disconnect, then recreate a new link on drop.

* Add module export: CanvasPointer
2024-11-16 17:35:30 -05:00
Chenlei Hu
daa33fad94 0.7.34 (#40)
* 0.7.33

* Fix types

* 0.7.34

* Update readme
2024-07-30 16:09:07 -04:00
Chenlei Hu
6280fbf2c7 0.7.27 (#25)
* Update README

* 0.7.27
2024-07-23 10:50:56 -04:00
Chenlei Hu
10a30604f4 0.7.26 (#22)
* 0.7.26

* README update
2024-07-18 15:51:51 -04:00
Chenlei Hu
e361b39f36 Emit searchbox triggering canvas events (#10)
* Emit canvas event

* Update version
2024-07-06 18:13:26 -04:00
Chenlei Hu
ebb0d19da1 Update README.md 2024-07-05 20:00:53 -04:00
Chenlei Hu
989aa51270 Update README.md 2024-07-05 20:00:05 -04:00
fairlix
519b9bb14f add comfyUI to projects using it 2023-12-04 14:47:12 +01:00
Javi Agenjo
930375b2e2 Update README.md 2023-03-05 20:32:28 +01:00
Javi Agenjo
88aeee4e15 Update README.md 2021-08-17 09:13:03 +02:00
Scotty Franzyshen
7d7f5dc8bd Update README.md
Update Git Address
2021-06-15 10:05:32 -07:00
Eliot Lash
111befa86f Fix demo/editor links and local server directory 2020-08-30 20:09:16 -07:00
tamat
c74d8760b1 variable class works better\nFixes in panels\nBetter shader generation. 2020-07-17 19:21:07 +02:00
Javi Agenjo
eb953a0a4e Update README.md 2020-07-15 21:06:24 +02:00
Javi Agenjo
585692b3ae Update README.md 2020-03-04 18:38:39 +01:00
Javi Agenjo
4e47b90197 Update README.md 2019-12-02 12:15:01 +01:00
Javi Agenjo
bd672f0877 Update README.md 2019-11-27 09:28:53 +01:00
Javi Agenjo
62c7ba317e Update README.md 2019-05-06 12:44:46 +02:00
Javi Agenjo
37fbd97b79 Update README.md 2019-04-25 15:22:32 +02:00
Javi Agenjo
0bf563cef1 Update README.md 2019-01-18 16:50:33 +01:00
Javi Agenjo
8fbeb6b9bb Update README.md 2018-12-03 17:56:11 +01:00
Javi Agenjo
3e2690cc4a Update README.md 2018-11-05 17:59:25 +01:00
Javi Agenjo
030323b6bd Update README.md 2018-10-26 15:07:30 +02:00
Javi Agenjo
3b09e3b5e1 Update README.md 2018-10-26 15:05:01 +02:00
Javi Agenjo
29b8862eb6 Update README.md 2018-10-25 18:39:52 +02:00
Javi Agenjo
7663a64dc0 Update README.md 2018-10-24 17:59:22 +02:00
Javi Agenjo
7dd8dce41a Update README.md 2018-10-17 23:22:48 +02:00
Javi Agenjo
9e3c67be32 Update README.md 2018-10-16 18:36:27 +02:00
Javi Agenjo
fe604b3bb1 Update README.md 2018-10-16 18:35:16 +02:00
Olof Rappestad
f7cf2159fa revert accidental whitespace change 2018-10-04 21:01:08 +02:00
Olof Rappestad
61022a65f0 add demo section to readme 2018-10-04 21:00:04 +02:00
Javi Agenjo
ae8e056cff Update README.md 2018-08-27 13:53:30 +02:00
Javi Agenjo
963d5478ec Update README.md 2018-03-28 16:37:27 +02:00
Javi Agenjo
dbe4ec9649 Update README.md 2018-03-23 11:14:15 -07:00
Javi Agenjo
18c82e3ae4 Update README.md 2018-03-08 12:40:47 +01:00
Javi Agenjo
cf813a5d4d Update README.md 2018-03-08 12:36:35 +01:00
Javi Agenjo
54457e8d7b Update README.md 2017-12-05 16:44:11 +01:00
Kristofer
813b380973 Updated link 2017-12-02 13:03:31 +01:00
Kristofer
8bf09d4cc7 Updated readme wit npm 2017-12-02 10:37:36 +01:00
Javi Agenjo
3674fc5e6b Update README.md 2017-09-24 10:46:38 +02:00
Javi Agenjo
9a7887b1e0 Update README.md 2016-10-20 14:42:07 +02:00
Javi Agenjo
3352287298 Update README.md 2016-10-20 14:28:18 +02:00
Javi Agenjo
1dc2ce73d2 Update README.md 2016-10-20 14:27:27 +02:00
Javi Agenjo
b2d1f443e4 Update README.md 2016-10-20 13:38:01 +02:00
Javi Agenjo
0851ce6d6b Update README.md 2016-10-20 13:36:14 +02:00
tamat
23dc656b88 added remove slot option 2015-10-23 16:10:44 +02:00
tamat
a0b689da2b first commit 2013-09-26 19:40:42 +02:00