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
2b2a1474
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "bb4940d837f0cfd338ff64776b084303be066c67"
Commit
2b2a1474
authored
Jul 11, 2023
by
comfyanonymous
Browse files
Move to litegraph.
parent
cef30cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
web/lib/litegraph.core.js
web/lib/litegraph.core.js
+1
-1
web/scripts/app.js
web/scripts/app.js
+0
-12
No files found.
web/lib/litegraph.core.js
View file @
2b2a1474
...
@@ -8191,7 +8191,7 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -8191,7 +8191,7 @@ LGraphNode.prototype.executeAction = function(action)
**/
**/
LGraphCanvas
.
prototype
.
renderInfo
=
function
(
ctx
,
x
,
y
)
{
LGraphCanvas
.
prototype
.
renderInfo
=
function
(
ctx
,
x
,
y
)
{
x
=
x
||
10
;
x
=
x
||
10
;
y
=
y
||
this
.
canvas
.
h
eight
-
80
;
y
=
y
||
this
.
canvas
.
offsetH
eight
-
80
;
ctx
.
save
();
ctx
.
save
();
ctx
.
translate
(
x
,
y
);
ctx
.
translate
(
x
,
y
);
...
...
web/scripts/app.js
View file @
2b2a1474
...
@@ -4,18 +4,6 @@ import { api } from "./api.js";
...
@@ -4,18 +4,6 @@ import { api } from "./api.js";
import
{
defaultGraph
}
from
"
./defaultGraph.js
"
;
import
{
defaultGraph
}
from
"
./defaultGraph.js
"
;
import
{
getPngMetadata
,
importA1111
,
getLatentMetadata
}
from
"
./pnginfo.js
"
;
import
{
getPngMetadata
,
importA1111
,
getLatentMetadata
}
from
"
./pnginfo.js
"
;
// DPI scaling fix, see https://github.com/comfyanonymous/ComfyUI/pull/845
(
function
()
{
const
originalRenderInfo
=
LGraphCanvas
.
prototype
.
renderInfo
LGraphCanvas
.
prototype
.
renderInfo
=
function
(
ctx
,
x
,
y
)
{
// Patch renderInfo() to use canvas.offsetHeight instead of canvas.height as bottom viewpoint bound
if
(
!
y
)
{
y
=
this
.
canvas
.
offsetHeight
-
80
}
return
originalRenderInfo
.
call
(
this
,
ctx
,
x
,
y
)
}
})()
/**
/**
* @typedef {import("types/comfy").ComfyExtension} ComfyExtension
* @typedef {import("types/comfy").ComfyExtension} ComfyExtension
*/
*/
...
...
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