@comfyorg/comfyui-frontend-types 1.36.0 → 1.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +16 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3785,8 +3785,10 @@ export declare class ComfyApp {
3785
3785
  linkRenderer: LitegraphLinkAdapter | null;
3786
3786
  /** If true, enable drag zoom. Ctrl+Shift+Drag Up/Down: zoom canvas. */
3787
3787
  dragZoomEnabled: boolean;
3788
+ /** If true, enable live selection during drag. Nodes are selected/deselected in real-time. */
3789
+ liveSelection: boolean;
3788
3790
  getMenuOptions?(): IContextMenuValue<string>[];
3789
- getExtraMenuOptions?(canvas: LGraphCanvas, options: IContextMenuValue<string>[]): IContextMenuValue<string>[];
3791
+ getExtraMenuOptions?(canvas: LGraphCanvas, options: (IContextMenuValue<string> | null)[]): (IContextMenuValue<string> | null)[];
3790
3792
  static active_node: LGraphNode;
3791
3793
  /** called before modifying the graph */
3792
3794
  onBeforeChange?(graph: LGraph): void;
@@ -3977,6 +3979,17 @@ export declare class ComfyApp {
3977
3979
  _deserializeItems(parsed: ClipboardItems_2, options: IPasteFromClipboardOptions): ClipboardPasteResult | undefined;
3978
3980
  pasteFromClipboard(options?: IPasteFromClipboardOptions): void;
3979
3981
  processNodeDblClicked(n: LGraphNode): void;
3982
+ /**
3983
+ * Handles live selection updates during drag. Called on each pointer move.
3984
+ * @param e The pointer move event
3985
+ * @param dragRect The current drag rectangle
3986
+ * @param initialSelection The selection state before the drag started
3987
+ */
3988
+ private handleLiveSelect;
3989
+ /**
3990
+ * Finalizes the live selection when drag ends.
3991
+ */
3992
+ private finalizeLiveSelect;
3980
3993
  /**
3981
3994
  * Determines whether to select or deselect an item that has received a pointer event. Will deselect other nodes if
3982
3995
  * @param item Canvas item to select/deselect
@@ -4190,7 +4203,7 @@ export declare class ComfyApp {
4190
4203
  closePanels(): void;
4191
4204
  showShowNodePanel(node: LGraphNode): void;
4192
4205
  checkPanels(): void;
4193
- getCanvasMenuOptions(): IContextMenuValue[];
4206
+ getCanvasMenuOptions(): (IContextMenuValue | null)[];
4194
4207
  getNodeMenuOptions(node: LGraphNode): (IContextMenuValue<INodeSlotContextItem, unknown, unknown> | IContextMenuValue<string, unknown, unknown> | IContextMenuValue<string | null, unknown, unknown> | IContextMenuValue<"round" | "default" | "box" | "card", unknown, unknown> | IContextMenuValue<unknown, LGraphNode, unknown> | null)[];
4195
4208
  /** @deprecated */
4196
4209
  getGroupMenuOptions(group: LGraphGroup): (IContextMenuValue<string, unknown, unknown> | IContextMenuValue<string | null, unknown, unknown> | null)[];
@@ -4582,7 +4595,7 @@ export declare class ComfyApp {
4582
4595
  block_delete?: boolean;
4583
4596
  selected?: boolean;
4584
4597
  showAdvanced?: boolean;
4585
- comfyMatchType?: Record<string, Record<string, string>>;
4598
+ comfyDynamic?: Record<string, object>;
4586
4599
  comfyClass?: string;
4587
4600
  isVirtualNode?: boolean;
4588
4601
  applyToGraph?(extraLinks?: LLink[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.36.0",
3
+ "version": "1.36.2",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"