Typescript LiteGraphGlobal (#210)

* nit - Format

* Refactor - prefer typeof over constructor check

* Fix initialisers

* Add TS types

* nit - auto const/let

* nit - manual const/let

* nit

* Add TS types

* nit - Remove redundant JSDoc

* nit

* Use enums in LiteGraph global

* Fix TS type - node shape

* Add TS types

* Remove unused vars

* nit - Refactor / format

* nit - Refactor

* Refactor - optional chaining
This commit is contained in:
filtered
2024-10-25 11:00:29 +11:00
committed by GitHub
parent c0afb1306e
commit eb98a36d47
2 changed files with 281 additions and 409 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -28,6 +28,7 @@ export enum LinkDirection {
/** The path calculation that links follow */
export enum LinkRenderType {
HIDDEN_LINK = -1,
/** Juts out from the input & output a little @see LinkDirection, then a straight line between them */
STRAIGHT_LINK = 0,
/** 90° angles, clean and box-like */