Update litegraph to 0.8.6 (#1316)

* Update litegraph

* Remove ts-expect-error
This commit is contained in:
Chenlei Hu
2024-10-26 14:36:45 -04:00
committed by GitHub
parent a3e4af40c1
commit ef4179a06c
4 changed files with 6 additions and 8 deletions

8
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.3.23",
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/litegraph": "^0.8.5",
"@comfyorg/litegraph": "^0.8.6",
"@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0",
"axios": "^1.7.4",
@@ -1910,9 +1910,9 @@
"dev": true
},
"node_modules/@comfyorg/litegraph": {
"version": "0.8.5",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.5.tgz",
"integrity": "sha512-ErCgQoRZJ95EVUGj3QxSMPhFtKYSZd0zDcsBjq1yLrzid45KipvT2FB1zrB/BlZtO3fj87b8FRffICZ2ba53TQ==",
"version": "0.8.6",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.6.tgz",
"integrity": "sha512-xPlUCTu6pePa3mV1soAZPYs2EAo3MIBRo1qewumdFsPDij1CZoqK4ZpSHYvUftzco3y+o+V+W5YGK31dFd6ULQ==",
"license": "MIT"
},
"node_modules/@cspotcode/source-map-support": {

View File

@@ -66,7 +66,7 @@
},
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/litegraph": "^0.8.5",
"@comfyorg/litegraph": "^0.8.6",
"@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0",
"axios": "^1.7.4",

View File

@@ -100,8 +100,7 @@ app.registerExtension({
} else {
w = node.size[0]
h = node.size[1]
// @ts-expect-error
let titleMode = node.constructor.title_mode
const titleMode = node.constructor.title_mode
if (
titleMode !== LiteGraph.TRANSPARENT_TITLE &&
titleMode !== LiteGraph.NO_TITLE

View File

@@ -1425,7 +1425,6 @@ export class ComfyApp {
if (color) {
const shape =
// @ts-expect-error
node._shape || node.constructor.shape || LiteGraph.ROUND_SHAPE
ctx.lineWidth = lineWidth
ctx.globalAlpha = 0.8