mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-11 19:12:34 +08:00
code improve
This commit is contained in:
parent
e1f5085ed0
commit
2ab0cb8cf3
@ -1205,7 +1205,12 @@ class Color(ComfyTypeIO):
|
|||||||
|
|
||||||
@comfytype(io_type="BOUNDING_BOX")
|
@comfytype(io_type="BOUNDING_BOX")
|
||||||
class BoundingBox(ComfyTypeIO):
|
class BoundingBox(ComfyTypeIO):
|
||||||
Type = dict
|
class BoundingBoxDict(TypedDict):
|
||||||
|
x: int
|
||||||
|
y: int
|
||||||
|
width: int
|
||||||
|
height: int
|
||||||
|
Type = BoundingBoxDict
|
||||||
|
|
||||||
class Input(WidgetInput):
|
class Input(WidgetInput):
|
||||||
def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None,
|
def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user