Type LGraphNode.getInnerNodes (#2498)

This commit is contained in:
Chenlei Hu
2025-02-10 16:35:26 -05:00
committed by GitHub
parent 0479b112c1
commit 8052b2a02a
5 changed files with 10 additions and 8 deletions

View File

@@ -856,6 +856,7 @@ export class GroupNodeHandler {
for (let i = 0; i < c.nodes.length; i++) {
let id = innerNodes?.[i]?.id
// Use existing IDs if they are set on the inner nodes
// @ts-expect-error id can be string or number
if (id == null || isNaN(id)) {
id = undefined
} else {

View File

@@ -151,7 +151,6 @@ app.registerExtension({
height
)
// @ts-expect-error hacky override
sceneWidget.serializeValue = async () => {
node.properties['Camera Info'] = load3d.getCameraState()
@@ -314,7 +313,6 @@ app.registerExtension({
height
)
// @ts-expect-error hacky override
sceneWidget.serializeValue = async () => {
node.properties['Camera Info'] = load3d.getCameraState()

View File

@@ -101,10 +101,8 @@ app.registerExtension({
capture
)
btn.disabled = true
// @ts-expect-error hacky override
btn.serializeValue = () => undefined
// @ts-expect-error hacky override
camera.serializeValue = async () => {
if (captureOnQueue.value) {
capture()