Move createBounds to measure.ts (#290)

* nit

* Move createBounds to measure

* Export createBounds
This commit is contained in:
Chenlei Hu
2024-11-08 13:49:30 -05:00
committed by GitHub
parent 6ad864bc20
commit c7d5c863ec
4 changed files with 27 additions and 27 deletions

View File

@@ -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)