showConnectionMenu with searchbox options (#111)

* showConnectionMenu with searchbox options

* nit
This commit is contained in:
Chenlei Hu
2024-09-03 13:07:38 -04:00
committed by GitHub
parent bcd3c6b30f
commit 85076881c8
2 changed files with 25 additions and 16 deletions

11
public/litegraph.d.ts vendored
View File

@@ -1537,7 +1537,16 @@ export declare class LGraphCanvas {
callback: Function,
event: any
): HTMLDivElement;
showSearchBox(event?: MouseEvent): void;
showSearchBox(event?: MouseEvent, options?: LinkReleaseContext): void;
showConnectionMenu(optPass?: {
nodeFrom?: LGraphNode;
slotFrom?: INodeSlot | string | number;
nodeTo?: LGraphNode;
slotTo?: INodeSlot | string | number;
e?: MouseEvent;
allow_searchbox?: boolean;
showSearchBox?: (event?: MouseEvent, options?: LinkReleaseContext) => void;
}): void;
showEditPropertyValue(node: LGraphNode, property: any, options: any): void;
createDialog(
html: string,