mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 18:22:40 +00:00
[TS] TS type fix & nits (#801)
Fixes downstream type specificity issues with UUID template type. No real benefit from template literal type at present.
This commit is contained in:
@@ -3,7 +3,12 @@ import type { Point, ReadOnlyRect, Rect, Rect32 } from "./interfaces"
|
||||
import { EaseFunction } from "./litegraph"
|
||||
|
||||
export interface DragAndScaleState {
|
||||
/**
|
||||
* The offset from the top-left of the current canvas viewport to `[0, 0]` in graph space.
|
||||
* Or said another way, the inverse offset of the viewport.
|
||||
*/
|
||||
offset: Point
|
||||
/** The scale of the graph. */
|
||||
scale: number
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user