@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.
Files changed (2) hide show
  1. package/index.d.ts +7 -0
  2. 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} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.34.1",
3
+ "version": "1.34.3",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"