[Cleanup] Remove LGraphCanvas.adjustNodesSize (#528)

This commit is contained in:
Chenlei Hu
2025-02-14 11:10:40 -05:00
committed by GitHub
parent 75267957d5
commit de10bf0c3a

View File

@@ -5574,14 +5574,6 @@ export class LGraphCanvas implements ConnectionColorContext {
ctx.restore()
}
adjustNodesSize(): void {
const nodes = this.graph._nodes
for (let i = 0; i < nodes.length; ++i) {
nodes[i].size = nodes[i].computeSize()
}
this.setDirty(true, true)
}
/**
* resizes the canvas to a given size, if no size is passed, then it tries to fill the parentNode
* @todo Remove or rewrite