@comfyorg/comfyui-frontend-types 1.34.1 → 1.34.3
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.
- package/index.d.ts +7 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5153,6 +5153,13 @@ export declare class ComfyApp {
|
|
|
5153
5153
|
* @returns Position of the output slot
|
|
5154
5154
|
*/
|
|
5155
5155
|
getOutputPos(outputSlotIndex: number): Point;
|
|
5156
|
+
/**
|
|
5157
|
+
* Get slot position using layout tree if available, fallback to node's position * Unified implementation used by both LitegraphLinkAdapter and useLinkLayoutSync
|
|
5158
|
+
* @param slotIndex The slot index
|
|
5159
|
+
* @param isInput Whether this is an input slot
|
|
5160
|
+
* @returns Position of the slot center in graph coordinates
|
|
5161
|
+
*/
|
|
5162
|
+
getSlotPosition(slotIndex: number, isInput: boolean): Point;
|
|
5156
5163
|
/** @inheritdoc */
|
|
5157
5164
|
snapToGrid(snapTo: number): boolean;
|
|
5158
5165
|
/** @see {@link snapToGrid} */
|