From 3e85b9f3eabe5136c5131de9a5e8e7f1dffc569b Mon Sep 17 00:00:00 2001 From: drew08t Date: Thu, 26 Oct 2023 15:31:54 -0700 Subject: [PATCH] Update naming to be more clear --- .../canvas/components/connections/Connections.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/app/plugins/panel/canvas/components/connections/Connections.tsx b/public/app/plugins/panel/canvas/components/connections/Connections.tsx index 65e1863d024..80f5fe7043a 100644 --- a/public/app/plugins/panel/canvas/components/connections/Connections.tsx +++ b/public/app/plugins/panel/canvas/components/connections/Connections.tsx @@ -106,7 +106,7 @@ export class Connections { const transformRef = this.scene.transformComponentRef?.current; const parentBoundingRect = transformRef?.instance.wrapperComponent?.getBoundingClientRect(); - const transScale = transformRef?.instance.transformState.scale ?? 1; + const transformScale = transformRef?.instance.transformState.scale ?? 1; const relativeTop = elementBoundingRect.top - (parentBoundingRect?.top ?? 0); const relativeLeft = elementBoundingRect.left - (parentBoundingRect?.left ?? 0); @@ -114,10 +114,10 @@ export class Connections { if (this.connectionAnchorDiv) { this.connectionAnchorDiv.style.display = 'none'; this.connectionAnchorDiv.style.display = 'block'; - this.connectionAnchorDiv.style.top = `${relativeTop / transScale}px`; - this.connectionAnchorDiv.style.left = `${relativeLeft / transScale}px`; - this.connectionAnchorDiv.style.height = `${elementBoundingRect.height / transScale}px`; - this.connectionAnchorDiv.style.width = `${elementBoundingRect.width / transScale}px`; + this.connectionAnchorDiv.style.top = `${relativeTop / transformScale}px`; + this.connectionAnchorDiv.style.left = `${relativeLeft / transformScale}px`; + this.connectionAnchorDiv.style.height = `${elementBoundingRect.height / transformScale}px`; + this.connectionAnchorDiv.style.width = `${elementBoundingRect.width / transformScale}px`; } };