mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 13:40:25 +00:00
Update litegraph 0.8.95 (#2718)
This commit is contained in:
@@ -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 } : {})
|
||||
})
|
||||
|
||||
@@ -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'
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user