Skip to content

Commit

Permalink
Added logic for logo scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayesh Patil authored and Jayesh Patil committed Sep 11, 2023
1 parent be94c3d commit 9eb0459
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ export class SVGDrawing {
_isDataDotBehindLogo = this.isDataDotBehindLogo(nLeft , nTop );
}
if(_isDataDotBehindLogo ){
continue
continue;
}

if(this.isSmoothPattern){
Expand Down Expand Up @@ -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 ;
Expand Down

0 comments on commit 9eb0459

Please sign in to comment.