[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

@@ -76,6 +76,7 @@ export class LiteGraphGlobal {
DEFAULT_POSITION = [100, 100]
/** ,"circle" */
VALID_SHAPES = ["default", "box", "round", "card"]
ROUND_RADIUS = 8
// shapes are used for nodes but also for slots
BOX_SHAPE = RenderShape.BOX