From 2a8e591e58f30a2518346e671c164846dc8fe184 Mon Sep 17 00:00:00 2001 From: EricXie-02 <91748564+EricXie-02@users.noreply.github.com> Date: Mon, 17 Jun 2024 00:07:43 -0400 Subject: [PATCH] Fix span set to 0 bug Fixed bug where xspan and yspan set to 0 in the downloaded json file --- src/app/core/component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/core/component.ts b/src/app/core/component.ts index 4b6677f4..1da42025 100644 --- a/src/app/core/component.ts +++ b/src/app/core/component.ts @@ -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() };