[Refactor] Move strokeShape from LGraphCanvas to draw (#435)

* [Refactor] Move strokeShape from LGraphCanvas to draw

* Fix round radius

* nit

* nit

* nit
This commit is contained in:
Chenlei Hu
2025-02-02 19:29:26 -08:00
committed by GitHub
parent a4791f6e6b
commit 817214e6da
6 changed files with 131 additions and 113 deletions

View File

@@ -83,6 +83,7 @@ export type {
export { CanvasPointer } from "./CanvasPointer"
export { Reroute } from "./Reroute"
export { createBounds } from "./measure"
export { strokeShape } from "./draw"
export function clamp(v: number, a: number, b: number): number {
return a > v ? a : b < v ? b : v