mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-04 07:52:46 +08:00
Move to litegraph.
This commit is contained in:
@@ -4,18 +4,6 @@ import { api } from "./api.js";
|
||||
import { defaultGraph } from "./defaultGraph.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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user