Commit Graph

669 Commits

Author SHA1 Message Date
omar abdelzaher sleam
fb882aefb4 organize reciving input from prompt dialog 2023-04-05 03:45:12 +00:00
Javi Agenjo
8bd5315ba6 Merge pull request #354 from moritz89/master
Add tests for registerNodeType
2023-04-02 18:39:38 +02:00
Javi Agenjo
adb6962459 Merge pull request #355 from ernestp/mr-hdpi-scale
Scale canvas on HiPPI screens
2023-04-02 18:35:46 +02:00
Ernest Poletaev
3ef215cf11 Scale canvas on HiPPI screens 2023-04-02 13:08:06 +07:00
Moritz Ulmer
c18df08a74 Add tests for registerNodeType
Why:

- Ensure that the function works as expected

This change addresses the need by:

- Add tests
- Remove duplicate logic
2023-03-31 15:04:49 +02:00
Javi Agenjo
9dad6b0a0b Merge pull request #349 from moritz89/master
Add initial unit test
2023-03-21 12:56:55 +01:00
Moritz Ulmer
f64bb7ba6b Replace deprecated function 2023-03-21 09:41:08 +01:00
Moritz Ulmer
6366f9132b Add first test
Why:

- Every journey starts with a first step

This change addresses the need by:

- Adding jest and a test
- Resolve ESLint warnings/errors in the tested function
2023-03-20 16:08:50 +01:00
Javi Agenjo
de997aca7e Merge pull request #348 from atlasan/contrib
fix undefined def_options
2023-03-20 11:40:39 +01:00
Javi Agenjo
412e83360e Merge pull request #347 from moritz89/master
Proposed variable type update
2023-03-20 11:38:14 +01:00
atlasan
31ec9567e0 fix undefined def_options
https://github.com/jagenjo/litegraph.js/issues/346
2023-03-20 11:00:23 +01:00
Moritz Ulmer
47ac1b7612 Proposed variable type update
Why:

- Reduces scope to required / expected of variables

This change addresses the need by:

- Using let / const instead of global / var
- Update ESlint configurtation
2023-03-20 10:54:38 +01:00
Javi Agenjo
10cd9b7ded Merge pull request #345 from KaruroChori/master
Fix panel not defined.
2023-03-20 10:24:36 +01:00
KaruroChori
23e81adc8e Update litegraph.js
Prevent error since panel is not defined.
2023-03-18 18:07:05 +00:00
Javi Agenjo
930375b2e2 Update README.md 2023-03-05 20:32:28 +01:00
Javi Agenjo
8bdab2eb3c Merge pull request #340 from timgates42/bugfix_typos
docs: Fix a few typos
2023-03-05 20:29:26 +01:00
Tim Gates
4177923d1d docs: Fix a few typos
There are small typos in:
- editor/js/defaults.js
- editor/js/defaults_mobile.js
- src/litegraph.js
- src/nodes/geometry.js
- src/nodes/gltextures.js

Fixes:
- Should read `sequentially` rather than `sequentually`.
- Should read `default` rather than `deafult`.
- Should read `visually` rather than `visualy`.
- Should read `offscreen` rather than `offscren`.
- Should read `dichotomic` rather than `dichotimic`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2023-03-05 11:51:27 +11:00
Javi Agenjo
c72d1097e5 Merge pull request #338 from mohsen-karami/master
Prevent the blocks from becoming unselected when the user double-clicks or drags them.
2023-03-03 13:45:27 +01:00
Mohsen Karami
d7c118987e Prevent the blocks from becoming unselected as the user drags them. 2023-03-03 10:50:55 +03:30
Mohsen Karami
b57885e3d7 Prevent unselecting blocks if the user double-clicks on them. 2023-03-03 10:33:42 +03:30
Javi Agenjo
1312de64a7 Merge pull request #329 from mohsen-karami/master
Add the ability to select multi nodes/blocks without pressing extra keys (shift/Ctrl)
2023-03-02 11:52:17 +01:00
Javi Agenjo
cfc5d4eb2a Merge pull request #337 from astrot1988/fix_subgraph
fix: subgraph remove output
2023-03-02 11:47:21 +01:00
astrot1988
acf058a730 fix: subgraph remove output 2023-03-02 13:09:46 +03:00
tamat
29fc1a3929 fix in widget 2023-02-28 14:05:51 +01:00
tamat
4252b513de Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2023-02-28 13:29:00 +01:00
tamat
54c2c1c5f7 fixes 2023-02-28 13:28:57 +01:00
Javi Agenjo
5dde4d6fac Merge pull request #334 from astrot1988/patch-1
fix: declare var
2023-02-28 13:27:07 +01:00
astrot1988
f6920f4699 fix: declare var 2023-02-03 20:05:32 +03:00
Mohsen Karami
f62b33d95a Add the ability to deselect the selected blocks in multi-select mode 2022-12-06 23:27:33 +03:30
Mohsen Karami
6762f1f339 Allow selecting multi nodes without pressing extra keys 2022-11-30 16:00:34 +03:30
Javi Agenjo
f87fb7d137 Merge pull request #328 from ClaasJG/master
Fix NodeScript description
2022-11-17 11:01:05 +01:00
ClaasJG
b1cc66aa3e Fix NodeScript description
Change the description of NodeScript nodes to contain the correct number of allowed characters.
2022-11-17 09:45:33 +01:00
Javi Agenjo
ab9ca1afe2 Merge pull request #287 from sha-N/patch-6
Shouldn't update Event.deltaX as it is read-only property
2022-10-24 14:59:59 +02:00
Javi Agenjo
8ebbcfac47 Merge pull request #321 from tsbits/patch-1
Update README.md
2022-10-24 11:49:23 +02:00
Javi Agenjo
ab1c2378cf Merge pull request #324 from SRChiP/add-set-property
Add setProperty to typescript definition
2022-10-24 11:49:00 +02:00
Ranuka Perera
8cc0cd39ff Add setProperty to typescript definition 2022-10-24 14:31:54 +05:30
Olivier Destenay
afdebc1dc2 Update README.md
Just adding a missing "}".
2022-09-28 23:23:48 +02:00
Shan M
fd5e8610da Shouldn't update Event.deltaX as it is read-only property
As far as I can tell removing those lines doesn't have any issues. It solves typescripts error for e.deltaX having only getter.
2022-01-16 14:26:28 +03:00
tamat
376f6434e8 fixes to launch onInputAdded or onOutputAdded when configuring node 2021-12-22 18:09:59 +01:00
tamat
b6fb7de636 fix in grapg\/output 2021-12-07 10:50:28 +01:00
tamat
8c073dcb10 Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2021-12-02 13:12:20 +01:00
tamat
919007f741 fixes 2021-12-02 13:12:16 +01:00
Javi Agenjo
8959e1569e Merge pull request #162 from jitendra-kumawat/master
Updated arrange method to support vertical layout of nodes
2021-12-02 13:11:37 +01:00
tamat
2401cec699 fix in searchbox retenting the focus 2021-11-25 16:49:22 +01:00
tamat
af19af2c51 fixes in mouse events 2021-11-18 19:29:10 +01:00
tamat
f3f60fcd34 merge 2021-11-16 17:05:47 +01:00
tamat
d082927648 Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2021-11-16 17:04:45 +01:00
tamat
fc7045d71f default to drag inputs to disconnect 2021-11-16 17:04:40 +01:00
Javi Agenjo
894f590bac Merge pull request #273 from gausszhou/master
fix: issues #272
2021-11-15 11:30:49 +01:00
Gauss Zhou
c0ec1ce0a8 fix: issues #272
We should avoid using undeclared variables
2021-11-14 00:19:12 +08:00