Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
eb0407e8
"ml/backend/git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "4d4463b2bd5443adc5e86943132ee727550f09b7"
Commit
eb0407e8
authored
Nov 13, 2023
by
comfyanonymous
Browse files
Update litegraph to latest.
parent
7339479b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
web/lib/litegraph.core.js
web/lib/litegraph.core.js
+10
-11
No files found.
web/lib/litegraph.core.js
View file @
eb0407e8
...
@@ -2533,7 +2533,7 @@
...
@@ -2533,7 +2533,7 @@
var
w
=
this
.
widgets
[
i
];
var
w
=
this
.
widgets
[
i
];
if
(
!
w
)
if
(
!
w
)
continue
;
continue
;
if
(
w
.
options
&&
w
.
options
.
property
&&
this
.
properties
[
w
.
options
.
property
])
if
(
w
.
options
&&
w
.
options
.
property
&&
(
this
.
properties
[
w
.
options
.
property
]
!=
undefined
)
)
w
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
properties
[
w
.
options
.
property
]
)
);
w
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
properties
[
w
.
options
.
property
]
)
);
}
}
if
(
info
.
widgets_values
)
{
if
(
info
.
widgets_values
)
{
...
@@ -4928,9 +4928,7 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -4928,9 +4928,7 @@ LGraphNode.prototype.executeAction = function(action)
this
.
title
=
o
.
title
;
this
.
title
=
o
.
title
;
this
.
_bounding
.
set
(
o
.
bounding
);
this
.
_bounding
.
set
(
o
.
bounding
);
this
.
color
=
o
.
color
;
this
.
color
=
o
.
color
;
if
(
o
.
font_size
)
{
this
.
font_size
=
o
.
font_size
;
this
.
font_size
=
o
.
font_size
;
}
};
};
LGraphGroup
.
prototype
.
serialize
=
function
()
{
LGraphGroup
.
prototype
.
serialize
=
function
()
{
...
@@ -5714,10 +5712,10 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -5714,10 +5712,10 @@ LGraphNode.prototype.executeAction = function(action)
* @method enableWebGL
* @method enableWebGL
**/
**/
LGraphCanvas
.
prototype
.
enableWebGL
=
function
()
{
LGraphCanvas
.
prototype
.
enableWebGL
=
function
()
{
if
(
typeof
GL
===
undefined
)
{
if
(
typeof
GL
===
"
undefined
"
)
{
throw
"
litegl.js must be included to use a WebGL canvas
"
;
throw
"
litegl.js must be included to use a WebGL canvas
"
;
}
}
if
(
typeof
enableWebGLCanvas
===
undefined
)
{
if
(
typeof
enableWebGLCanvas
===
"
undefined
"
)
{
throw
"
webglCanvas.js must be included to use this feature
"
;
throw
"
webglCanvas.js must be included to use this feature
"
;
}
}
...
@@ -7110,15 +7108,16 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -7110,15 +7108,16 @@ LGraphNode.prototype.executeAction = function(action)
}
}
};
};
LGraphCanvas
.
prototype
.
copyToClipboard
=
function
()
{
LGraphCanvas
.
prototype
.
copyToClipboard
=
function
(
nodes
)
{
var
clipboard_info
=
{
var
clipboard_info
=
{
nodes
:
[],
nodes
:
[],
links
:
[]
links
:
[]
};
};
var
index
=
0
;
var
index
=
0
;
var
selected_nodes_array
=
[];
var
selected_nodes_array
=
[];
for
(
var
i
in
this
.
selected_nodes
)
{
if
(
!
nodes
)
nodes
=
this
.
selected_nodes
;
var
node
=
this
.
selected_nodes
[
i
];
for
(
var
i
in
nodes
)
{
var
node
=
nodes
[
i
];
if
(
node
.
clonable
===
false
)
if
(
node
.
clonable
===
false
)
continue
;
continue
;
node
.
_relative_id
=
index
;
node
.
_relative_id
=
index
;
...
@@ -11702,7 +11701,7 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -11702,7 +11701,7 @@ LGraphNode.prototype.executeAction = function(action)
default
:
default
:
iS
=
0
;
// try with first if no name set
iS
=
0
;
// try with first if no name set
}
}
if
(
typeof
options
.
node_from
.
outputs
[
iS
]
!==
undefined
){
if
(
typeof
options
.
node_from
.
outputs
[
iS
]
!==
"
undefined
"
){
if
(
iS
!==
false
&&
iS
>-
1
){
if
(
iS
!==
false
&&
iS
>-
1
){
options
.
node_from
.
connectByType
(
iS
,
node
,
options
.
node_from
.
outputs
[
iS
].
type
);
options
.
node_from
.
connectByType
(
iS
,
node
,
options
.
node_from
.
outputs
[
iS
].
type
);
}
}
...
@@ -11730,7 +11729,7 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -11730,7 +11729,7 @@ LGraphNode.prototype.executeAction = function(action)
default
:
default
:
iS
=
0
;
// try with first if no name set
iS
=
0
;
// try with first if no name set
}
}
if
(
typeof
options
.
node_to
.
inputs
[
iS
]
!==
undefined
){
if
(
typeof
options
.
node_to
.
inputs
[
iS
]
!==
"
undefined
"
){
if
(
iS
!==
false
&&
iS
>-
1
){
if
(
iS
!==
false
&&
iS
>-
1
){
// try connection
// try connection
options
.
node_to
.
connectByTypeOutput
(
iS
,
node
,
options
.
node_to
.
inputs
[
iS
].
type
);
options
.
node_to
.
connectByTypeOutput
(
iS
,
node
,
options
.
node_to
.
inputs
[
iS
].
type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment