Commit Graph

730 Commits

Author SHA1 Message Date
space-nuko
acb3a4a1f4 Untabify 2023-06-01 17:18:51 -05:00
space-nuko
51b2bd612c Don't copy non-clonable nodes 2023-06-01 17:07:05 -05:00
space-nuko
43aa627d34 Fix clonable test 2023-06-01 17:04:04 -05:00
space-nuko
6d86865d7b Reassign IDs of cloned subgraphs 2023-06-01 17:00:07 -05:00
space-nuko
77360a6e71 Option to use UUIDs instead of integers for node IDs 2023-06-01 14:23:51 -05:00
Javi Agenjo
0f2a905a07 Merge pull request #393 from lucklyisgood/master
Fix issue with subgraph inputs and outputs not being clickable in custom canvas size
2023-05-19 16:29:46 +02:00
lucklyisgood
9936e3de5d Refactor LGraphCanvas drawButton click logic(2) 2023-05-19 13:04:37 +00:00
lucklyisgood
676bb3617a Refactor LGraphCanvas drawButton click logic 2023-05-19 12:33:51 +00:00
lucklyisgood
bdde19b014 fix mouse pos detection in LGraphCanvas.drawButton 2023-05-19 09:45:57 +00:00
lucklyisgood
16c294e062 Fix issue with subgraph inputs and outputs not being clickable in custom canvas size 2023-05-19 14:07:17 +08:00
Javi Agenjo
888173a02e Merge pull request #390 from pythongosssss/widget-label
Render widget label in preference to name
2023-05-16 11:48:51 +02:00
pythongosssss
863c373d3b Render widget label in preference to name 2023-05-15 18:30:32 +01:00
Javi Agenjo
42fc7cd52e Merge pull request #388 from M1kep/alignment-no-whitespace-changes
Add ability to align selected nodes
2023-05-01 21:19:39 +02:00
Javi Agenjo
802dfaa93c Merge pull request #386 from MarcMeszaros/simplified-allow-interaction-override
Simplify the allow_interaction override to only use node flags
2023-05-01 21:17:21 +02:00
Michael Poutre
e466b5edc8 refactor: Update startup message for example app to include URL
Allows clicking the URL to launch example app, this also allows some IDEs such as WebStorm to launch integrated debugger far more easily
2023-04-30 23:26:31 -07:00
Michael Poutre
cfc64dfe52 feat: Target alignment when right clicking a specific node 2023-04-30 23:26:27 -07:00
Michael Poutre
9f3245d9f0 refactor: Only show Align options if more than one node is selected 2023-04-30 23:26:19 -07:00
Michael Poutre
badf134f12 feat: Add alignment for selected node 2023-04-30 23:26:12 -07:00
Marc Meszaros
044b29c614 Simplify the allow_interaction override to use node flags
Remove the need to use 'drag_mode' on the graph cavas and instead use a
similarly name flag on the node 'allow_interaction' to allow per node
interaction when the global 'allow_interaction' flag is set to false.
2023-04-30 10:38:14 -07:00
Javi Agenjo
e27ecd1d78 Merge pull request #384 from MarcMeszaros/guide-number-widget-precision
Update documentation to mention 'precision' as widget option
2023-04-28 11:16:52 +02:00
Javi Agenjo
976ba6f4f4 Merge pull request #385 from MarcMeszaros/moveable-interaction-off
Allow interactions per node override
2023-04-28 11:16:08 +02:00
Marc Meszaros
1dc167044e Allow dragging and interacting with nodes with graph being read-only 2023-04-26 10:55:39 -07:00
Marc Meszaros
b80209f7da Update documentation to mention 'precision' as widget option 2023-04-26 10:30:41 -07:00
Javi Agenjo
7ab10b5c10 Merge pull request #297 from mcejp/patch-slider-property
Fix: inner_value_change not called on slider interaction
2023-04-23 20:39:05 +02:00
Javi Agenjo
2047cfa772 Merge pull request #381 from pythongosssss/evaluate-decimals
Add support for decimal evaluation
2023-04-23 20:38:38 +02:00
Javi Agenjo
ecbde50d1b Merge pull request #378 from comfyanonymous/remapped_keyboard_fix
Fix CTRL-C, CTRL-V not working on remapped keyboards.
2023-04-21 18:35:38 +02:00
pythongosssss
efdc798c1c Add support for number[dot]number in the validation regex 2023-04-15 11:13:19 +01:00
comfyanonymous
9b92f5b647 Fix CTRL-C, CTRL-V not working on remapped keyboards. 2023-04-12 18:13:58 -04:00
Javi Agenjo
0970a40e7d Merge pull request #374 from tianlang0704/master
Add global switch for ctrl+shift+v to maintain old behavior in lib.
2023-04-11 10:40:21 +02:00
Javi Agenjo
d47fdde066 Merge pull request #366 from fsmorygo/master
Add some missing `var`s
2023-04-11 10:39:26 +02:00
tamat
9c404cbb1b added clear_background_color to clear, prior it was using the css bg color of the container 2023-04-11 10:08:14 +02:00
tamat
8ae1e5568d Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2023-04-11 08:58:01 +02:00
tamat
42cbc5838c just changing modes 2023-04-11 08:57:53 +02:00
CMonk
f0eb76005e Update guide with canvas shortcut information 2023-04-11 11:05:02 +08:00
CMonk
cf5f917bdc Add example and simple manual test for copy paste 2023-04-11 11:05:01 +08:00
CMonk
c2460e2c4e Add ctrl+shift+v global switch 2023-04-11 11:05:01 +08:00
Javi Agenjo
684a5459fb Merge pull request #371 from lathanbritz/missing-vars
missing var inX
2023-04-10 20:19:41 +02:00
lathan britz
a026a1ec8d miggins vrs inX 2023-04-10 14:18:37 -04:00
Javi Agenjo
bb382a83bb Merge pull request #367 from moritz89/fix-duplicate-slot-node-types
Fix duplicate slot node types
2023-04-10 19:00:16 +02:00
Javi Agenjo
d8ee77d140 Merge pull request #370 from tianlang0704/master
Add Ctrl+Shift+V to paste with unselected nodes connected
2023-04-10 18:55:35 +02:00
Moritz Ulmer
c3f0d587a5 Use older Jest for Node.js 12
Why:

- Allow tests to run on oldest targeted ECMAScript version

This change addresses the need by:

- Add script to run tests against older JS versions
2023-04-10 15:12:03 +02:00
CMonk
01f6e15d92 Add Ctrl+Shift+V to paste with connected nodes
Update litegraph.js
2023-04-10 15:11:22 +08:00
Moritz Ulmer
8eb76138d0 Fix duplicate slot node types
Why:

- If a node has multiple of the same slot types, it is duplicated

This change addresses the need by:

- Checking if the node type has been added for a slot type
- Adding tests
- Improve legibility
2023-04-08 20:59:38 +02:00
Filipp Smorygo
bd6c500764 Add some missing vars 2023-04-08 01:56:25 +02:00
Javi Agenjo
9be2c84205 Merge pull request #358 from omar92/allow-equations-in-number-inputs
try solve the numbers equations
2023-04-07 19:23:20 +02:00
Javi Agenjo
ca1d7548ba Merge branch 'master' into allow-equations-in-number-inputs 2023-04-07 19:23:09 +02:00
Javi Agenjo
492b7a507c Merge pull request #364 from atlasan/contrib
missing var
2023-04-07 19:14:36 +02:00
Javi Agenjo
8c0a561c70 Merge pull request #359 from omar92/organize-inner_value_change
organize reciving input  from prompt dialog
2023-04-07 18:51:49 +02:00
Javi Agenjo
7f98966597 Merge pull request #362 from baldurg/widgetmods
Little updates to the slider widget
2023-04-07 18:50:31 +02:00
atlamede
b0302a253c missing var 2023-04-06 22:08:55 +02:00