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

@@ -25,6 +25,7 @@ export { LGraphBadge, BadgePosition }
export { SlotShape, LabelPosition, SlotDirection, SlotType }
export { EaseFunction } from "./types/globalEnums"
export type { SerialisableGraph, SerialisableLLink } from "./types/serialisation"
export { createBounds } from "./measure"
export function clamp(v: number, a: number, b: number): number {
return a > v ? a : b < v ? b : v