Commit Graph

3858 Commits

Author SHA1 Message Date
altarfinch
319a80dd04 Widgets with custom size function don't overflow anymore 2020-06-18 14:51:31 +02:00
tamat
ab7bc960a0 math node supports array and objects as A 2020-06-11 17:07:47 +02:00
tamat
e34b079908 Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2020-05-24 00:02:04 +02:00
tamat
e6c5474155 better disabled display 2020-05-24 00:01:42 +02:00
harshadchavan
e6bb688e3f fixed this pointer in the code
Getting continuous errors in a loop, because of this error. It says catch_errors of undefined
2020-05-18 22:16:42 -07:00
tamat
94f657a401 build 2020-05-15 12:16:26 +02:00
tamat
4cb1d9c0e5 fixes 2020-05-15 12:15:33 +02:00
altarfinch
058e6ea03c fixed enableWebGL missing declarations 2020-05-15 11:14:25 +02:00
altarfinch
93ba405a23 fixed enableWebGL missing declarations 2020-05-15 10:57:17 +02:00
altarfinch
4fe32687d2 fixed mouse function for custom widget : take custom height into account 2020-05-15 01:36:32 +02:00
altarfinch
7ba41d1d75 custom widget custom size support 2020-05-15 01:36:31 +02:00
Javi Agenjo
9fcc6c4975 Merge pull request #139 from sha-N/patch-4
fixes typedef for onDrawBackground and onDrawForeground
2020-05-11 12:54:01 +02:00
Shan M
c2f92e62aa fixes typedef for onDrawBackground and onDrawForeground
fixes the issue #131
2020-05-11 13:49:59 +03:00
Shan M
0a2f8a1d6d added type def for callback onNodeAdded 2020-05-11 13:44:52 +03:00
altarfinch
11a1026074 fixed mouse function for custom widget : take custom height into account 2020-05-08 01:40:15 +02:00
altarfinch
706b65a8f6 custom widget custom size support 2020-05-07 19:45:36 +02:00
Javi Agenjo
240cee0209 Merge pull request #124 from sker65/master
Added hook for slot context menu
2020-05-06 10:02:00 +02:00
Shan M
626a69fec4 Error correction in type definition 2020-05-06 09:33:55 +03:00
Shan M
dbb4391099 Update for missing type definitions
Updated onConnectInput to match current function definition

Added missing definitions for

LGraphCanvas.onDrawLinkTooltip
LGraphCanvas.onNodeMoved
LGraphCanvas.onSelectionChange
LGraphCanvas.onNodeSelected
LGraphCanvas.onNodeDeselected
LGraphCanvas.onShowNodePanel
LGraphCanvas.onNodeDblClicked

LGraphNode.onConnectionsChange

Can close #127
2020-05-05 18:07:39 +03:00
tamat
a1c312fab9 fix on onConnectInput to have more info 2020-05-05 12:57:59 +02:00
tamat
26a72a0a44 added onResize event to nodes 2020-05-03 13:47:12 +02:00
tamat
22190622b4 fix in roundRect 2020-04-27 00:22:24 +02:00
Stefan Rinke
ac1d8f8f71 - added hook for slot context menu 2020-04-23 00:07:18 +02:00
tamat
6ff8bb700d fix in roundRect 2020-04-21 12:38:54 +02:00
tamat
815b6e3602 Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2020-04-21 12:35:09 +02:00
tamat
78e55db0b1 fix in widgets 2020-04-21 12:35:02 +02:00
Shan M
df5a042099 nodes attribute in selectNodes function is optional 2020-04-20 16:50:53 +03:00
Javi Agenjo
bb1ce7b899 Merge pull request #98 from amfl/websocket-fixes
Websocket node bugfixes
2020-04-15 10:51:00 +02:00
Javi Agenjo
e4c4d8acb3 Merge pull request #110 from DiegoBM/patch-1
Documentation mismatch
2020-04-15 10:49:22 +02:00
Javi Agenjo
738004f460 Merge pull request #118 from sha-N/patch-4
Fixes type definition for renderInfo()
2020-04-15 10:48:59 +02:00
Javi Agenjo
a027c0eb87 Merge pull request #113 from sha-N/patch-1
fixes type error in function wrapFunctionAsNode
2020-04-15 10:48:42 +02:00
Shan M
6607593471 fix typo 2020-04-15 11:45:25 +03:00
Shan M
9b6ff21e00 Fixes type definition for renderInfo() 2020-04-15 11:41:43 +03:00
tamat
e2fce11afc Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2020-04-08 17:15:01 +02:00
tamat
28c0eec6c2 fix 2020-04-08 17:14:32 +02:00
Shan M
03408f13df adds missing type unregisterNodeType 2020-04-06 12:06:36 +03:00
tamat
2158aff0b0 added setValue to some nodes 2020-04-03 17:45:05 +02:00
Shan M
6ef31c8c3a Adds missing type for showMenuNodeOptionalOutputs 2020-03-31 17:21:53 +03:00
Shan M
d86b463d5e fixes type error in function wrapFunctionAsNode 2020-03-28 10:59:57 +03:00
tamat
e8eda9d30f fixes in audio 2020-03-25 13:13:58 +01:00
DiegoBM
f541bb412e Documentation mismatch
Some method names didn't match the actual method names, rendering the automatically generated documentation misleading
2020-03-24 23:39:17 +01:00
Javi Agenjo
6c98476cd5 Merge pull request #108 from smarthug/patch-2
resolve "TypeError: Cannot redefine property: shape" issue
2020-03-19 09:01:17 +01:00
tamat
7f4e5b8d79 fix 2020-03-19 08:57:36 +01:00
smarthug
d9cdf4ec13 resolve "TypeError: Cannot redefine property: shape" issue
When same node registered twice. It gives error.
ex:
LiteGraph.registerNodeType("basic/test", MyAddNode);
LiteGraph.registerNodeType("basic/test", MyAddNode);

To redefine an object property with "Object.defineProperty" method, configurable property should be set on true ( default is false)
ex : Object.defineProperty( '...' , '...' , {configurable: true})
2020-03-19 15:41:19 +09:00
Phil Mercurio
6e4525c7a5 Revises loops on arrays 2020-02-28 17:21:36 -08:00
tamat
b550042709 fix 2020-02-15 01:45:16 +01:00
tamat
5cef341c29 added combo widget 2020-02-04 15:13:32 +01:00
amfl
d134ab73f0 bugfix: Websocket checks parsed payload data
We parse the JSON payload, but then it wasn't being referred to when we
were checking the data type, which could lead to looking at the `type`
attribute of a string.
2020-01-14 14:31:34 +13:00
amfl
40e09fe294 bugfix: Correct reference to websocket room name
When inside the onmessage function, `this` no longer refers to the
websocket node. It needs to be accessed with `that`, which is where we
stored it previously.
2020-01-14 14:31:23 +13:00
tamat
469e3d964c Merge branch 'master' of https://github.com/jagenjo/litegraph.js 2020-01-13 18:41:16 +01:00