Update node search to use litegraph LinkConnector (#3546)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2025-04-23 00:35:49 +10:00
committed by GitHub
parent 11f909436c
commit c7318bcf0a
5 changed files with 143 additions and 169 deletions

View File

@@ -27,9 +27,15 @@ export const useCanvasStore = defineStore('canvas', () => {
selectedItems.value = items.map((item) => markRaw(item))
}
const getCanvas = () => {
if (!canvas.value) throw new Error('getCanvas: canvas is null')
return canvas.value
}
return {
canvas,
selectedItems,
updateSelectedItems
updateSelectedItems,
getCanvas
}
})