refactor(litegraph): replace type assertions with proper type guards

Amp-Thread-ID: https://ampcode.com/threads/T-019babbe-2ab8-7426-aa86-bba47c1ff997
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
DrJKL
2026-01-11 02:35:21 -08:00
parent a1ae4aa7bd
commit 0a99c6782b
21 changed files with 457 additions and 348 deletions

View File

@@ -120,7 +120,6 @@ app.registerExtension({
touchZooming = true
LiteGraph.closeAllContextMenus(window)
// @ts-expect-error
app.canvas.search_box?.close()
const newTouchDist = getMultiTouchPos(e)