From 9eb045998bea052bddb7b1dabf8b581bcd092842 Mon Sep 17 00:00:00 2001 From: Jayesh Patil Date: Mon, 11 Sep 2023 15:06:59 +0530 Subject: [PATCH] Added logic for logo scale --- src/Svg.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Svg.ts b/src/Svg.ts index be82546..bc25ea0 100644 --- a/src/Svg.ts +++ b/src/Svg.ts @@ -976,7 +976,7 @@ export class SVGDrawing { _isDataDotBehindLogo = this.isDataDotBehindLogo(nLeft , nTop ); } if(_isDataDotBehindLogo ){ - continue + continue; } if(this.isSmoothPattern){ @@ -2364,6 +2364,9 @@ export class SVGDrawing { } + logoAreaHeight = ( this.config.logoScale / maxLogoScale ) * logoAreaHeight ; + logoAreaWidth = ( this.config.logoScale / maxLogoScale ) * logoAreaWidth ; + this.calculatedLogoAreaHeight = logoAreaHeight ; this.calculatedLogoAreaWidth = logoAreaWidth ; logoHeight = ( ( 100 - logoMargin) / 100 ) * logoAreaHeight ;