Skip to content

Commit

Permalink
Update litegraph 0.8.95 (#2718)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Feb 25, 2025
1 parent 3a63b9e commit d3dda14
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-electron-types": "^0.4.20",
"@comfyorg/litegraph": "^0.8.94",
"@comfyorg/litegraph": "^0.8.96",
"@primevue/forms": "^4.2.5",
"@primevue/themes": "^4.2.5",
"@sentry/vue": "^8.48.0",
Expand Down
1 change: 1 addition & 0 deletions src/extensions/core/widgetInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ export function convertToInput(
const [oldWidth, oldHeight] = node.size
const inputIsOptional = !!widget.options?.inputIsOptional
const input = node.addInput(widget.name, type, {
// @ts-expect-error [GET_CONFIG] is not a valid property of IWidget
widget: { name: widget.name, [GET_CONFIG]: () => config },
...(inputIsOptional ? { shape: LiteGraph.SlotShape.HollowCircle } : {})
})
Expand Down
5 changes: 3 additions & 2 deletions src/services/litegraphService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
type INodeInputSlot,
LGraphEventMode,
LGraphNode,
LiteGraph
LiteGraph,
RenderShape
} from '@comfyorg/litegraph'
import { Vector2 } from '@comfyorg/litegraph'
import { IBaseWidget, IWidget } from '@comfyorg/litegraph/dist/types/widgets'
Expand Down Expand Up @@ -89,7 +90,7 @@ export const useLitegraphService = () => {
// Node connection inputs
const shapeOptions = inputIsRequired
? {}
: { shape: LiteGraph.SlotShape.HollowCircle }
: { shape: RenderShape.HollowCircle }
const inputOptions = {
...shapeOptions,
localized_name: st(nameKey, inputName)
Expand Down

0 comments on commit d3dda14

Please sign in to comment.