mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 08:19:51 +00:00
[API] Add improved slot locator functions (#716)
- Returns object with slot, index, and pos - Locate-by-type returns object with slot & index - Uses standard `undefined` return for concise chaining & validation - Free 10x perf increase over getConnectionPos (used basic random data to test, out of curiosity)
This commit is contained in:
@@ -3109,16 +3109,6 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
return
|
||||
}
|
||||
|
||||
/** @deprecated - use {@link isOverNodeInput} from '@/canvas/measureSlots.ts' */
|
||||
isOverNodeInput(node: LGraphNode, canvasx: number, canvasy: number, slot_pos?: Point): number {
|
||||
return isOverNodeInput(node, canvasx, canvasy, slot_pos)
|
||||
}
|
||||
|
||||
/** @deprecated - use {@link isOverNodeOutput} from '@/canvas/measureSlots.ts' */
|
||||
isOverNodeOutput(node: LGraphNode, canvasx: number, canvasy: number, slot_pos?: Point): number {
|
||||
return isOverNodeOutput(node, canvasx, canvasy, slot_pos)
|
||||
}
|
||||
|
||||
/**
|
||||
* process a key event
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user