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
c092ffcc
Commit
c092ffcc
authored
Jun 03, 2023
by
comfyanonymous
Browse files
Latest litegraph from upstream.
parent
32f282c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
web/lib/litegraph.core.js
web/lib/litegraph.core.js
+9
-5
No files found.
web/lib/litegraph.core.js
View file @
c092ffcc
...
@@ -8099,11 +8099,15 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -8099,11 +8099,15 @@ LGraphNode.prototype.executeAction = function(action)
bgcolor
=
bgcolor
||
LiteGraph
.
NODE_DEFAULT_COLOR
;
bgcolor
=
bgcolor
||
LiteGraph
.
NODE_DEFAULT_COLOR
;
hovercolor
=
hovercolor
||
"
#555
"
;
hovercolor
=
hovercolor
||
"
#555
"
;
textcolor
=
textcolor
||
LiteGraph
.
NODE_TEXT_COLOR
;
textcolor
=
textcolor
||
LiteGraph
.
NODE_TEXT_COLOR
;
var
yFix
=
y
+
LiteGraph
.
NODE_TITLE_HEIGHT
+
2
;
// fix the height with the title
var
pos
=
this
.
ds
.
convertOffsetToCanvas
(
this
.
graph_mouse
);
var
pos
=
this
.
mouse
;
var
hover
=
LiteGraph
.
isInsideRectangle
(
pos
[
0
],
pos
[
1
],
x
,
y
,
w
,
h
);
var
hover
=
LiteGraph
.
isInsideRectangle
(
pos
[
0
],
pos
[
1
],
x
,
yFix
,
w
,
h
);
pos
=
this
.
last_click_position
?
[
this
.
last_click_position
[
0
],
this
.
last_click_position
[
1
]]
:
null
;
pos
=
this
.
last_click_position
;
if
(
pos
)
{
var
clicked
=
pos
&&
LiteGraph
.
isInsideRectangle
(
pos
[
0
],
pos
[
1
],
x
,
yFix
,
w
,
h
);
var
rect
=
this
.
canvas
.
getBoundingClientRect
();
pos
[
0
]
-=
rect
.
left
;
pos
[
1
]
-=
rect
.
top
;
}
var
clicked
=
pos
&&
LiteGraph
.
isInsideRectangle
(
pos
[
0
],
pos
[
1
],
x
,
y
,
w
,
h
);
ctx
.
fillStyle
=
hover
?
hovercolor
:
bgcolor
;
ctx
.
fillStyle
=
hover
?
hovercolor
:
bgcolor
;
if
(
clicked
)
if
(
clicked
)
...
...
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