mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
Move createBounds to measure.ts (#290)
* nit * Move createBounds to measure * Export createBounds
This commit is contained in:
@@ -7885,7 +7885,7 @@ export class LGraphCanvas {
|
||||
}
|
||||
targetX = -bounds[0] - bounds[2] * 0.5 + (cw * 0.5) / targetScale
|
||||
targetY = -bounds[1] - bounds[3] * 0.5 + (ch * 0.5) / targetScale
|
||||
|
||||
|
||||
const animate = (timestamp: number) => {
|
||||
const elapsed = timestamp - startTimestamp
|
||||
const progress = Math.min(elapsed / duration, 1)
|
||||
|
||||
Reference in New Issue
Block a user