Serialize to node pos/size to plain array (#273)

This commit is contained in:
Chenlei Hu
2024-11-04 14:08:09 -05:00
committed by GitHub
parent 6c60045208
commit b663f86c9e
2 changed files with 8 additions and 5 deletions

View File

@@ -426,8 +426,8 @@ export class LGraphNode implements Positionable {
const o: ISerialisedNode = {
id: this.id,
type: this.type,
pos: this.pos,
size: this.size,
pos: [this.pos[0], this.pos[1]],
size: [this.size[0], this.size[1]],
flags: LiteGraph.cloneObject(this.flags),
order: this.order,
mode: this.mode,