|
@@ -1415,7 +1415,7 @@ export class GraphFrame {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public serialize(): IFrameData {
|
|
|
|
|
|
+ public serialize(saveCollapsedState: boolean): IFrameData {
|
|
this.serializePortData(this._exposedInPorts);
|
|
this.serializePortData(this._exposedInPorts);
|
|
this.serializePortData(this._exposedOutPorts);
|
|
this.serializePortData(this._exposedOutPorts);
|
|
return {
|
|
return {
|
|
@@ -1425,7 +1425,7 @@ export class GraphFrame {
|
|
height: this._height,
|
|
height: this._height,
|
|
color: this._color.asArray(),
|
|
color: this._color.asArray(),
|
|
name: this.name,
|
|
name: this.name,
|
|
- isCollapsed: true, //keeping closed to make reimporting cleaner
|
|
|
|
|
|
+ isCollapsed: saveCollapsedState ? this.isCollapsed: true, //keeping closed for stand along exporting.
|
|
blocks: this.nodes.map(n => n.block.uniqueId),
|
|
blocks: this.nodes.map(n => n.block.uniqueId),
|
|
comments: this._comments
|
|
comments: this._comments
|
|
}
|
|
}
|