Skip to content

Commit

Permalink
Fix span set to 0 bug
Browse files Browse the repository at this point in the history
Fixed bug where xspan and yspan set to 0 in the downloaded json file
  • Loading branch information
EricXie-02 authored Jun 17, 2024
1 parent 11da5c0 commit 2a8e591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ export default class Component {
name: this._name,
entity: this._entity,
params: this._params.toJSON(),
"x-span": this._xspan,
"y-span": this._yspan,
"x-span": bounds.width,
"y-span": bounds.height,
ports: portdata,
layers: this.findLayerReferences()
};
Expand Down

0 comments on commit 2a8e591

Please sign in to comment.