mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 21:50:05 +00:00
fixed mouse function for custom widget : take custom height into account
This commit is contained in:
5
src/litegraph.d.ts
vendored
5
src/litegraph.d.ts
vendored
@@ -62,17 +62,16 @@ export interface IWidget<TValue = any, TOptions = any> {
|
||||
width: number,
|
||||
posY: number,
|
||||
height: number
|
||||
): number | undefined;
|
||||
): void;
|
||||
/**
|
||||
* Called by `LGraphCanvas.processNodeWidgets`
|
||||
* https://github.com/jagenjo/litegraph.js/issues/76
|
||||
*/
|
||||
mouse?(
|
||||
ctx: undefined,
|
||||
event: MouseEvent,
|
||||
pos: Vector2,
|
||||
node: LGraphNode
|
||||
): void;
|
||||
): boolean;
|
||||
/** Called by `LGraphNode.computeSize` */
|
||||
computeSize?(width: number): [number, number];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user