mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 09:19:43 +00:00
Emit node-double-click event (#383)
* Emit node-double-click event * nit
This commit is contained in:
@@ -48,6 +48,7 @@ export type CanvasEventDetail =
|
||||
| DragggingCanvasEventDetail
|
||||
| ReadOnlyEventDetail
|
||||
| GroupDoubleClickEventDetail
|
||||
| NodeDoubleClickEventDetail
|
||||
| EmptyDoubleClickEventDetail
|
||||
| ConnectingWidgetLinkEventDetail
|
||||
| EmptyReleaseEventDetail
|
||||
@@ -81,6 +82,11 @@ export interface GroupDoubleClickEventDetail extends OriginalEvent {
|
||||
group: LGraphGroup
|
||||
}
|
||||
|
||||
export interface NodeDoubleClickEventDetail extends OriginalEvent {
|
||||
subType: "node-double-click"
|
||||
node: LGraphNode
|
||||
}
|
||||
|
||||
export interface DragggingCanvasEventDetail {
|
||||
subType: "dragging-canvas"
|
||||
draggingCanvas: boolean
|
||||
|
||||
Reference in New Issue
Block a user